:root {
  --site-pink: #ec4899;
  --site-purple: #a855f7;
  --site-blue: #3b82f6;
  --site-cyan: #06b6d4;
  --site-dark: #111827;
  --site-text: #1f2937;
  --site-muted: #6b7280;
  --site-card: rgba(255, 255, 255, 0.92);
  --site-line: rgba(229, 231, 235, 0.92);
}

body {
  min-height: 100vh;
  color: var(--site-text);
  background: linear-gradient(135deg, #fdf2f8 0%, #faf5ff 45%, #eff6ff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  backdrop-filter: blur(16px);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--site-pink), var(--site-purple), var(--site-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.logo-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--site-pink), var(--site-purple));
  box-shadow: 0 18px 35px rgba(168, 85, 247, 0.25);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
  color: #374151;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a {
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--site-pink);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(90deg, var(--site-pink), var(--site-purple));
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.22);
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 16px;
  border-top: 1px solid var(--site-line);
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 14px;
  color: #374151;
  font-weight: 600;
}

.mobile-nav a:hover {
  background: linear-gradient(90deg, #fdf2f8, #faf5ff);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, var(--site-pink), var(--site-purple), var(--site-blue));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.85) 0 2px, transparent 2px), radial-gradient(circle at 80% 50%, rgba(255,255,255,0.65) 0 3px, transparent 3px);
  background-size: 58px 58px, 96px 96px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 30%, rgba(255,255,255,0.28), transparent 34%), linear-gradient(90deg, rgba(0,0,0,0.32), rgba(0,0,0,0.04));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 82px 24px 78px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.72fr);
  gap: 42px;
  align-items: center;
}

.hero-kicker,
.section-kicker,
.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  margin-bottom: 16px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -0.05em;
  text-shadow: 0 16px 32px rgba(17, 24, 39, 0.28);
}

.hero p {
  max-width: 780px;
  margin-top: 22px;
  color: rgba(255,255,255,0.92);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.75;
  text-shadow: 0 8px 24px rgba(17, 24, 39, 0.24);
}

.hero-actions,
.filter-actions,
.card-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-actions {
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 16px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--site-pink), var(--site-purple));
  box-shadow: 0 18px 36px rgba(236, 72, 153, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 22px 46px rgba(168, 85, 247, 0.36);
}

.btn-light {
  color: #fff;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.26);
  backdrop-filter: blur(14px);
}

.btn-soft {
  color: #7e22ce;
  background: linear-gradient(90deg, #fdf2f8, #faf5ff);
  border: 1px solid rgba(233, 213, 255, 0.96);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-pill,
.meta-pill,
.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
}

.hero-pill {
  color: #fff;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.24);
  backdrop-filter: blur(12px);
}

.hero-slider {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  min-height: 450px;
  background: rgba(17, 24, 39, 0.28);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 35px 80px rgba(17,24,39,0.34);
  backdrop-filter: blur(16px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.55s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-slide-content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 34px;
  color: #fff;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.45), transparent);
}

.hero-slide-content h2 {
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 12px;
}

.hero-slide-content p {
  margin: 0 0 18px;
  color: rgba(255,255,255,0.88);
  font-size: 16px;
  line-height: 1.65;
  text-shadow: none;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  right: 28px;
  top: 26px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.45);
}

.hero-dot.is-active {
  width: 28px;
  background: #fff;
}

.section {
  padding: 54px 0 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.035em;
  background: linear-gradient(90deg, #db2777, #9333ea);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-desc {
  max-width: 780px;
  color: var(--site-muted);
  font-size: 17px;
  line-height: 1.8;
  margin-top: 10px;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.movie-grid.compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--site-card);
  border: 1px solid rgba(255,255,255,0.92);
  box-shadow: 0 20px 50px rgba(17, 24, 39, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 68px rgba(168, 85, 247, 0.18);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #fce7f3, #e0f2fe);
  overflow: hidden;
}

.poster-wrap.wide {
  aspect-ratio: 16 / 9;
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-wrap img {
  transform: scale(1.06);
}

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(17,24,39,0.72), transparent 54%);
}

.card-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  border-radius: 999px;
  padding: 7px 11px;
  background: linear-gradient(90deg, var(--site-pink), var(--site-purple));
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.18);
}

.card-rating {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(17, 24, 39, 0.64);
  backdrop-filter: blur(10px);
}

.card-body {
  padding: 18px;
}

.card-title {
  display: block;
  min-height: 54px;
  color: #111827;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 900;
}

.card-title:hover {
  color: var(--site-pink);
}

.card-desc {
  margin-top: 8px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.meta-pill {
  color: #6b21a8;
  background: #faf5ff;
  border: 1px solid #e9d5ff;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-pill {
  color: #be185d;
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  border-radius: 28px;
  padding: 28px;
  color: #fff;
  background: linear-gradient(135deg, var(--site-pink), var(--site-purple), var(--site-blue));
  box-shadow: 0 24px 60px rgba(168, 85, 247, 0.18);
}

.category-card::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -62px;
  bottom: -72px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
}

.category-card h2,
.category-card h3 {
  position: relative;
  z-index: 1;
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 12px;
}

.category-card p {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,0.9);
  line-height: 1.75;
}

.category-card .btn {
  position: relative;
  z-index: 1;
  margin-top: 22px;
}

.filter-panel {
  margin: 28px 0 26px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 220px 180px;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 52px rgba(17, 24, 39, 0.07);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--site-pink);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.13);
}

.page-hero {
  padding: 62px 0 26px;
}

.page-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  padding: 46px;
  color: #fff;
  background: linear-gradient(120deg, var(--site-pink), var(--site-purple), var(--site-blue));
  box-shadow: 0 28px 70px rgba(168, 85, 247, 0.18);
}

.page-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle at 20% 30%, #fff 0 2px, transparent 2px);
  background-size: 64px 64px;
}

.page-hero-card h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(38px, 6vw, 70px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.page-hero-card p {
  position: relative;
  z-index: 1;
  max-width: 830px;
  margin-top: 16px;
  color: rgba(255,255,255,0.9);
  font-size: 18px;
  line-height: 1.8;
}

.rank-list {
  display: grid;
  gap: 16px;
}

.rank-card {
  display: grid;
  grid-template-columns: 72px 132px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.94);
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.06);
}

.rank-number {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  border-radius: 18px;
  background: linear-gradient(135deg, #f59e0b, var(--site-pink));
}

.rank-poster {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #fce7f3, #dbeafe);
}

.rank-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-title {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.3;
}

.rank-title:hover {
  color: var(--site-pink);
}

.rank-desc {
  margin-top: 7px;
  color: #6b7280;
  line-height: 1.65;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 360px;
  gap: 30px;
  align-items: start;
}

.detail-main,
.detail-side,
.content-card {
  border-radius: 28px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.95);
  box-shadow: 0 20px 54px rgba(17, 24, 39, 0.07);
}

.detail-main {
  overflow: hidden;
}

.player-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}

.movie-player-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(17,24,39,0.72), rgba(17,24,39,0.36));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.player-play-button {
  position: relative;
  z-index: 4;
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--site-pink), var(--site-purple));
  box-shadow: 0 28px 65px rgba(236, 72, 153, 0.35);
}

.player-play-button span {
  display: block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 24px solid #fff;
}

.detail-content {
  padding: 30px;
}

.breadcrumbs {
  margin: 0 0 16px;
  color: #7e22ce;
}

.breadcrumbs a:hover {
  color: var(--site-pink);
}

.detail-content h1 {
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #111827;
}

.detail-lead {
  margin-top: 16px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.85;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.article-body {
  display: grid;
  gap: 22px;
  padding: 30px;
}

.article-body h2 {
  font-size: 25px;
  font-weight: 900;
  color: #111827;
}

.article-body p {
  color: #374151;
  line-height: 2;
  font-size: 16px;
}

.detail-side {
  padding: 22px;
}

.side-poster {
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #fce7f3, #dbeafe);
}

.side-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.side-block {
  margin-top: 24px;
}

.side-block h2,
.side-block h3 {
  font-size: 21px;
  font-weight: 900;
  margin-bottom: 14px;
  color: #111827;
}

.related-list {
  display: grid;
  gap: 12px;
}

.related-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: linear-gradient(90deg, #fff, #faf5ff);
  border: 1px solid #f3e8ff;
}

.related-thumb {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #fce7f3, #dbeafe);
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-title {
  font-weight: 900;
  line-height: 1.35;
  color: #111827;
}

.related-title:hover {
  color: var(--site-pink);
}

.related-meta {
  margin-top: 5px;
  color: #6b7280;
  font-size: 13px;
}

.empty-state {
  display: none;
  padding: 42px 18px;
  text-align: center;
  color: #6b7280;
}

.empty-state.is-visible {
  display: block;
}

.site-footer {
  margin-top: 70px;
  color: #fff;
  background: linear-gradient(90deg, #111827, #581c87, #111827);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(90deg, #f472b6, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-inner p {
  margin-top: 14px;
  color: #d1d5db;
  line-height: 1.75;
}

.footer-col h2,
.footer-col h3 {
  color: #f9a8d4;
  font-weight: 900;
  margin-bottom: 14px;
}

.footer-links {
  display: grid;
  gap: 9px;
  color: #d1d5db;
}

.footer-links a:hover {
  color: #f472b6;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 24px;
  color: #9ca3af;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
}

@media (max-width: 1080px) {
  .movie-grid,
  .movie-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-inner,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-side {
    order: -1;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-inner {
    padding: 0 18px;
  }

  .hero-inner {
    padding: 62px 18px 58px;
  }

  .hero-slider {
    min-height: 380px;
  }

  .movie-grid,
  .movie-grid.compact,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .rank-card {
    grid-template-columns: 54px 96px minmax(0, 1fr);
  }

  .rank-card .btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .logo-link {
    font-size: 20px;
  }

  .logo-mark {
    width: 36px;
    height: 36px;
  }

  .container {
    padding: 0 16px;
  }

  .hero {
    min-height: auto;
  }

  .hero h1,
  .page-hero-card h1 {
    letter-spacing: -0.035em;
  }

  .movie-grid,
  .movie-grid.compact,
  .category-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .page-hero-card,
  .detail-content,
  .article-body {
    padding: 24px;
  }

  .rank-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .rank-poster {
    display: none;
  }

  .hero-slide-content {
    padding: 24px;
  }
}
