:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-850: #111827;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --orange-500: #f97316;
  --blue-600: #2563eb;
  --cyan-500: #06b6d4;
  --white: #ffffff;
  --black: #000000;
  --shadow-soft: 0 20px 55px rgba(15, 23, 42, 0.14);
  --shadow-glow: 0 20px 60px rgba(245, 158, 11, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--slate-50);
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: var(--slate-900);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.08), transparent 34rem),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.container {
  width: min(100% - 32px, 1280px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(16px);
}

.nav-container {
  display: flex;
  align-items: center;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  box-shadow: 0 0 32px rgba(245, 158, 11, 0.42);
  font-size: 18px;
  font-weight: 900;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 22px;
  letter-spacing: 0.04em;
}

.brand-copy small {
  color: var(--slate-400);
  margin-top: 4px;
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-link {
  color: var(--slate-300);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(245, 158, 11, 0.18);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.28);
}

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.26);
  padding: 6px;
  border-radius: 999px;
}

.top-search input {
  width: 190px;
  border: 0;
  outline: 0;
  color: var(--white);
  background: transparent;
  padding: 8px 10px;
}

.top-search input::placeholder {
  color: var(--slate-400);
}

.top-search button,
.menu-toggle {
  border: 0;
  cursor: pointer;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  padding: 10px 16px 18px;
  background: rgba(15, 23, 42, 0.98);
}

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

.mobile-link {
  color: var(--slate-300);
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.mobile-link.active {
  color: var(--white);
  background: rgba(245, 158, 11, 0.2);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  min-height: 78vh;
  background:
    radial-gradient(circle at 20% 24%, rgba(245, 158, 11, 0.24), transparent 25rem),
    radial-gradient(circle at 80% 30%, rgba(37, 99, 235, 0.18), transparent 22rem),
    linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.58), rgba(2, 6, 23, 0.86)),
    radial-gradient(circle at center, transparent, rgba(2, 6, 23, 0.42));
  z-index: 1;
}

.hero-orb {
  position: absolute;
  width: 36rem;
  height: 36rem;
  right: -10rem;
  top: -8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(249, 115, 22, 0.06));
  filter: blur(10px);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 70px 0 84px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  gap: 48px;
  align-items: center;
  min-height: 560px;
}

.hero-slide.active {
  display: grid;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-300, #fcd34d);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.24);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-title {
  margin: 24px 0 18px;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.gradient-text {
  background: linear-gradient(90deg, var(--amber-400), #fff7cc, var(--amber-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  max-width: 720px;
  color: var(--slate-300);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 32px;
}

.hero-tags span,
.tag-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--slate-200);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 900;
  transition: 0.25s ease;
}

.btn-primary {
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  box-shadow: var(--shadow-glow);
}

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

.btn-ghost {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-visual {
  position: relative;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  aspect-ratio: 3 / 4;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.38), rgba(15, 23, 42, 0.78)),
    var(--slate-800);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

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

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

.hero-card-float {
  position: absolute;
  left: -24px;
  bottom: 38px;
  width: min(260px, 80%);
  color: var(--white);
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 18px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.hero-card-float strong {
  display: block;
  font-size: 18px;
  line-height: 1.35;
}

.hero-card-float span {
  color: var(--slate-300);
  font-size: 13px;
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: relative;
  z-index: 3;
  padding-bottom: 32px;
}

.hero-control {
  width: 44px;
  height: 44px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 24px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  transition: 0.2s ease;
}

.hero-dot.active {
  width: 30px;
  background: var(--amber-400);
}

.section {
  padding: 66px 0;
}

.section.dark {
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

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

.section-title h1,
.section-title h2 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.section-title p {
  color: var(--slate-500);
  margin: 10px 0 0;
  max-width: 760px;
}

.dark .section-title p {
  color: var(--slate-300);
}

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

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

.movie-card {
  min-width: 0;
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 34px rgba(15, 23, 42, 0.09);
  transition: 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-soft);
}

.dark .movie-card {
  color: var(--slate-900);
}

.poster-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.34), rgba(15, 23, 42, 0.92)),
    var(--slate-800);
}

.compact-card .poster-frame {
  aspect-ratio: 16 / 9;
}

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

.movie-card:hover .cover-img,
.related-item:hover .cover-img,
.rank-row:hover .cover-img {
  transform: scale(1.08);
}

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(2, 6, 23, 0.72));
}

.poster-meta,
.poster-category,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: var(--white);
  font-weight: 800;
  font-size: 12px;
}

.poster-meta {
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  background: rgba(0, 0, 0, 0.68);
}

.poster-category {
  left: 12px;
  bottom: 12px;
  padding: 5px 10px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
}

.rank-badge {
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  background: linear-gradient(135deg, #ef4444, var(--orange-500));
}

.movie-info {
  padding: 18px;
}

.movie-info h3 {
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-info p {
  margin: 0 0 14px;
  min-height: 48px;
  color: var(--slate-600);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--slate-500);
  font-size: 12px;
}

.movie-meta span {
  background: var(--slate-100);
  border-radius: 999px;
  padding: 4px 8px;
}

.scroller {
  overflow-x: auto;
  padding: 8px 2px 18px;
}

.scroller-track {
  display: flex;
  gap: 22px;
  min-width: max-content;
}

.scroller .movie-card {
  width: 330px;
}

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

.category-card {
  min-height: 210px;
  color: var(--white);
  border-radius: 26px;
  padding: 22px;
  background:
    radial-gradient(circle at 70% 12%, rgba(245, 158, 11, 0.32), transparent 10rem),
    linear-gradient(135deg, var(--slate-900), var(--slate-700));
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.14);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: var(--slate-300);
}

.category-card span {
  color: var(--amber-400);
  font-weight: 900;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 14px;
  margin: 26px 0 30px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(12px);
}

.filter-search input,
.filter-selects select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  color: var(--slate-900);
  background: var(--white);
  outline: 0;
}

.filter-search input {
  padding: 0 16px;
}

.filter-selects {
  display: flex;
  gap: 10px;
}

.filter-selects select {
  padding: 0 12px;
}

.hidden-card {
  display: none;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 70px 160px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.rank-num {
  color: var(--amber-600);
  font-size: 28px;
  font-weight: 1000;
  text-align: center;
}

.rank-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.34), rgba(15, 23, 42, 0.92)),
    var(--slate-800);
}

.rank-body h2,
.rank-body h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.rank-body p {
  margin: 0;
  color: var(--slate-600);
}

.rank-score {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
}

.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--slate-200);
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 54px;
  color: var(--slate-500);
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 30px;
  padding: 34px 0 70px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: var(--slate-950);
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.48));
  transition: 0.22s ease;
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  box-shadow: var(--shadow-glow);
  font-size: 34px;
  padding-left: 6px;
}

.player-shell.is-playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.detail-card,
.side-card {
  background: var(--white);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 12px 38px rgba(15, 23, 42, 0.08);
}

.detail-card {
  margin-top: 24px;
}

.detail-card h1 {
  margin: 12px 0 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.16;
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.detail-lead {
  color: var(--slate-700);
  font-size: 18px;
}

.detail-prose p {
  color: var(--slate-700);
  font-size: 17px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.detail-tags a,
.detail-tags span {
  color: var(--slate-700);
  background: var(--slate-100);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 14px;
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 20px;
}

.meta-strip span {
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--slate-700);
  background: var(--slate-100);
  font-weight: 700;
}

.side-stack {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 20px;
}

.side-cover {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 3 / 4;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.34), rgba(15, 23, 42, 0.92)),
    var(--slate-800);
}

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

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

.related-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 9px;
  border-radius: 18px;
  transition: 0.2s ease;
}

.related-item:hover {
  background: var(--slate-50);
}

.related-thumb {
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.34), rgba(15, 23, 42, 0.92)),
    var(--slate-800);
}

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

.related-meta {
  color: var(--slate-500);
  font-size: 13px;
}

.pagination-note {
  color: var(--slate-500);
  margin-top: 22px;
}

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

  .top-search {
    margin-left: auto;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: auto;
  }

  .hero-visual {
    max-width: 460px;
    margin: 0 auto;
  }

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

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

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

  .side-stack {
    position: static;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1280px);
  }

  .nav-container {
    min-height: 68px;
    gap: 12px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-copy small {
    display: none;
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .top-search {
    display: none;
  }

  .hero-inner {
    padding: 44px 0 56px;
  }

  .hero-slide {
    min-height: auto;
  }

  .hero-card-float {
    left: 14px;
    bottom: 18px;
  }

  .hero-controls {
    padding-bottom: 22px;
  }

  .section {
    padding: 44px 0;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-grid,
  .movie-grid.dense {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-info {
    padding: 14px;
  }

  .movie-info h3 {
    font-size: 16px;
  }

  .movie-info p {
    min-height: 42px;
    font-size: 13px;
  }

  .scroller .movie-card {
    width: 260px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .filter-selects {
    flex-direction: column;
  }

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

  .rank-score {
    grid-column: 3;
    width: max-content;
  }

  .detail-card,
  .side-card {
    padding: 20px;
    border-radius: 22px;
  }

  .play-overlay span {
    width: 66px;
    height: 66px;
    font-size: 28px;
  }
}

@media (max-width: 460px) {
  .movie-grid,
  .movie-grid.dense {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 1fr;
  }

  .rank-num {
    text-align: left;
  }

  .rank-cover {
    width: 100%;
  }

  .related-item {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}

.overview-grid {
  align-items: stretch;
}

.category-samples {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.category-samples a {
  color: var(--slate-200);
  font-size: 14px;
}

.category-samples a:hover {
  color: var(--amber-400);
}
