:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --orange-500: #f97316;
  --blue-500: #3b82f6;
  --green-500: #22c55e;
  --rose-500: #f43f5e;
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(148, 163, 184, 0.25);
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 46%, #f8fafc 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--slate-950), var(--slate-900), var(--slate-800));
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.25);
}

.nav-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  color: #111827;
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.36);
}

.brand-text,
.footer-logo {
  font-size: 22px;
  background: linear-gradient(90deg, var(--amber-400), var(--orange-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link,
.nav-sub-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-sub-link:hover {
  color: var(--amber-400);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  display: none;
  min-width: 220px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.32);
}

.nav-dropdown:hover .nav-dropdown-panel {
  display: grid;
  gap: 4px;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #ffffff;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 18% 12%, rgba(245, 158, 11, 0.22), transparent 34%), linear-gradient(135deg, #020617 0%, #111827 48%, #1e293b 100%);
  min-height: 680px;
  padding: 70px 20px 42px;
}

.hero-glow {
  position: absolute;
  inset: auto -140px -180px auto;
  width: 480px;
  height: 480px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.24);
  filter: blur(40px);
}

.hero-stage {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  min-height: 500px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: 46px;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.hero-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  background: linear-gradient(135deg, var(--slate-800), var(--slate-950));
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(2, 6, 23, 0.5));
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-400);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 18px 0 18px;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.8;
}

.hero-meta,
.detail-meta,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-meta {
  margin: 24px 0 30px;
}

.hero-meta span,
.detail-meta span,
.meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 800;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
  color: #111827;
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.32);
}

.btn.secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn.outline {
  color: var(--slate-900);
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(15, 23, 42, 0.12);
}

.hero-dots {
  position: relative;
  z-index: 3;
  max-width: 1240px;
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.hero-dot {
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  text-align: left;
  font-weight: 800;
}

.hero-dot span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-right: 8px;
  border-radius: 9px;
  background: rgba(245, 158, 11, 0.16);
  color: var(--amber-400);
}

.hero-dot.is-active {
  color: #ffffff;
  border-color: rgba(251, 191, 36, 0.52);
  background: rgba(245, 158, 11, 0.18);
}

.section-wrap,
.page-hero,
.detail-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 20px;
}

.intro-panel {
  margin-top: -40px;
  position: relative;
  z-index: 5;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading.split {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.section-heading.light h2,
.section-heading.light p {
  color: #ffffff;
}

.section-heading h2,
.page-hero h1,
.detail-intro h1 {
  margin: 8px 0 10px;
  color: var(--slate-900);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p,
.intro-panel p {
  color: var(--muted);
  line-height: 1.8;
}

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

.quick-stats a,
.category-card,
.category-overview-card,
.filter-panel,
.content-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-stats a {
  padding: 22px;
}

.quick-stats strong,
.category-card span,
.category-overview-card span {
  display: block;
  color: var(--slate-900);
  font-size: 20px;
  font-weight: 900;
}

.quick-stats span,
.category-card p,
.category-overview-card p {
  color: var(--muted);
  line-height: 1.7;
}

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

.category-card {
  padding: 22px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover,
.category-overview-card:hover,
.movie-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.42);
}

.category-card strong {
  font-size: 42px;
  color: var(--amber-500);
  line-height: 1;
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  margin-bottom: 28px;
}

.filter-panel strong {
  display: block;
  font-size: 20px;
}

.filter-panel p {
  margin: 6px 0 0;
  color: var(--muted);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: min(440px, 100%);
  padding: 10px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border);
}

.search-box span {
  color: var(--amber-500);
  font-weight: 900;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--slate-900);
  background: transparent;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.16);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-900), var(--slate-700));
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.7));
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #111827;
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  font-size: 12px;
  font-weight: 900;
}

.movie-card-body {
  padding: 16px;
}

.meta-row {
  margin-bottom: 10px;
}

.meta-row span {
  min-height: 24px;
  padding: 0 8px;
  background: var(--slate-100);
  color: var(--slate-600);
  font-size: 12px;
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.35;
  color: var(--slate-900);
}

.movie-card p {
  display: -webkit-box;
  min-height: 52px;
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 800;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.text-link {
  color: var(--orange-500);
  font-weight: 900;
}

.text-link.muted {
  color: var(--slate-600);
}

.ranking-band {
  max-width: none;
  margin-top: 18px;
  padding: 56px max(20px, calc((100% - 1240px) / 2));
  background: linear-gradient(135deg, var(--slate-950), var(--slate-900));
}

.rank-grid .movie-card {
  background: rgba(255, 255, 255, 0.96);
}

.movie-card-compact .movie-card-body {
  padding: 14px;
}

.movie-card-compact h3 {
  font-size: 17px;
}

.movie-card-compact p {
  min-height: auto;
  -webkit-line-clamp: 1;
}

.page-hero,
.detail-hero {
  margin-top: 30px;
  border-radius: 34px;
}

.page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #ffffff;
  background: radial-gradient(circle at 10% 0%, rgba(251, 191, 36, 0.28), transparent 34%), linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.page-hero h1,
.page-hero p {
  color: #ffffff;
}

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

.category-overview-card {
  padding: 24px;
}

.category-mini-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.category-mini-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--slate-50);
  color: var(--slate-700);
  font-weight: 800;
}

.category-mini-list span {
  font-size: 13px;
  color: var(--amber-500);
}

.detail-hero {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 36px;
  color: #ffffff;
  background: radial-gradient(circle at 90% 10%, rgba(249, 115, 22, 0.25), transparent 36%), linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, var(--slate-900), var(--slate-700));
  box-shadow: 0 24px 54px rgba(2, 6, 23, 0.44);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.breadcrumb a {
  color: var(--amber-400);
}

.detail-intro h1 {
  margin-top: 26px;
  color: #ffffff;
  font-size: clamp(38px, 6vw, 68px);
}

.lead {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.9;
}

.detail-meta {
  margin: 24px 0 20px;
}

.detail-tags {
  margin-bottom: 28px;
}

.detail-layout {
  display: grid;
  gap: 24px;
}

.content-card {
  padding: 26px;
}

.content-card h2 {
  margin: 0 0 18px;
  color: var(--slate-900);
  font-size: 26px;
  letter-spacing: -0.03em;
}

.content-card p {
  margin: 0;
  color: #334155;
  line-height: 2;
  font-size: 17px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000000;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.74));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  box-shadow: 0 20px 36px rgba(249, 115, 22, 0.34);
}

.play-icon::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 7px;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 24px solid #111827;
}

.related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-footer {
  margin-top: 40px;
  padding: 42px 20px;
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(90deg, var(--slate-950), var(--slate-900));
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 34px;
}

.footer-inner p {
  max-width: 520px;
  line-height: 1.8;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
}

.is-filtered-out {
  display: none;
}

@media (max-width: 1024px) {
  .hero-slide,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    min-height: 780px;
  }

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

  .quick-stats {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    max-width: 340px;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    min-height: 62px;
  }

  .mobile-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 62px;
    left: 12px;
    right: 12px;
    display: none;
    padding: 12px;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 20px 38px rgba(2, 6, 23, 0.32);
  }

  .main-nav.is-open {
    display: grid;
    gap: 6px;
  }

  .nav-dropdown-panel {
    position: static;
    display: grid;
    gap: 4px;
    margin-top: 6px;
    box-shadow: none;
  }

  .hero-slider {
    min-height: 760px;
    padding-top: 38px;
  }

  .hero-stage {
    min-height: 610px;
  }

  .hero-slide {
    gap: 26px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-dots {
    grid-template-columns: 1fr;
  }

  .section-heading.split,
  .filter-panel,
  .page-hero,
  .footer-inner {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .rank-grid,
  .category-grid,
  .category-overview-grid,
  .related-grid,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .section-wrap,
  .page-hero,
  .detail-hero {
    padding: 32px 16px;
  }

  .search-box {
    min-width: 0;
    width: 100%;
  }
}
