:root {
  color-scheme: dark;
  --page-bg: #020617;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(245, 158, 11, 0.22);
  --line-soft: rgba(148, 163, 184, 0.18);
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --text: #f8fafc;
  --muted: #94a3b8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.14), transparent 34rem),
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.12), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(14px);
}

.site-nav {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #0f172a;
  background: linear-gradient(135deg, #fbbf24, #f59e0b 60%, #d97706);
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.36);
}

.logo-text {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #cbd5e1;
  font-weight: 600;
}

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

.nav-links a:hover,
.mobile-menu a:hover {
  color: var(--gold-light);
}

.menu-toggle {
  display: none;
  color: #cbd5e1;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 8px 10px;
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  color: #cbd5e1;
}

.mobile-menu.is-open {
  display: grid;
  gap: 12px;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 580px;
  height: 72vh;
  overflow: hidden;
  border-bottom: 1px solid rgba(245, 158, 11, 0.18);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  background-size: cover;
  background-position: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.78) 44%, rgba(15, 23, 42, 0.26) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.2) 54%, rgba(2, 6, 23, 0.72) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 36px;
  align-items: end;
  padding: 96px 0 76px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 6px 12px;
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 999px;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.14);
  font-size: 14px;
  font-weight: 700;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-title-gradient,
.section-title span,
.page-hero strong {
  background: linear-gradient(90deg, #fbbf24, #f59e0b 50%, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-meta,
.card-meta,
.item-meta,
.detail-meta,
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #cbd5e1;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  padding: 5px 10px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.62);
  font-size: 13px;
}

.pill.gold {
  border-color: rgba(245, 158, 11, 0.44);
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.13);
}

.hero-desc {
  max-width: 720px;
  margin: 22px 0 28px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.38);
  color: #fff;
  background: rgba(15, 23, 42, 0.72);
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 18px 38px rgba(245, 158, 11, 0.28);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(245, 158, 11, 0.16);
}

.hero-side {
  padding: 20px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.66);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.hero-side h2 {
  margin: 0 0 16px;
  color: #fbbf24;
  font-size: 20px;
  font-weight: 900;
}

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

.hero-rank-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.42);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-rank-item:hover {
  background: rgba(245, 158, 11, 0.12);
  transform: translateX(4px);
}

.rank-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #111827;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  font-weight: 900;
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 5;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 30px;
  background: #f59e0b;
}

.section {
  padding: 64px 0 0;
}

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

.section-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-title::after {
  content: "";
  width: min(28vw, 260px);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.7), transparent);
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card,
.category-card,
.rank-card,
.related-card,
.timeline-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.56);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card {
  overflow: hidden;
  border-radius: 22px;
}

.movie-card:hover,
.category-card:hover,
.rank-card:hover,
.related-card:hover,
.timeline-card:hover {
  border-color: rgba(245, 158, 11, 0.54);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(245, 158, 11, 0.13);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0f172a;
}

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

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

.movie-card:hover img,
.rank-card:hover img,
.related-card:hover img,
.timeline-card:hover img {
  transform: scale(1.07);
}

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.88) 0%, transparent 45%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade,
.rank-card:hover .poster-shade,
.related-card:hover .poster-shade,
.timeline-card:hover .poster-shade {
  opacity: 1;
}

.card-badge,
.card-year,
.card-rank {
  position: absolute;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.card-badge {
  left: 12px;
  background: rgba(245, 158, 11, 0.9);
}

.card-year {
  right: 12px;
  background: rgba(15, 23, 42, 0.82);
}

.card-rank {
  left: 12px;
  background: linear-gradient(135deg, #fbbf24, #d97706);
}

.play-hover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.play-hover span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(245, 158, 11, 0.92);
  box-shadow: 0 16px 40px rgba(245, 158, 11, 0.28);
}

.movie-card:hover .play-hover,
.rank-card:hover .play-hover,
.related-card:hover .play-hover,
.timeline-card:hover .play-hover {
  opacity: 1;
}

.card-body {
  padding: 16px;
}

.card-body h3,
.category-card h3,
.rank-content h3,
.related-card h3,
.timeline-card h3 {
  margin: 0 0 8px;
  color: #fff;
  font-weight: 850;
  line-height: 1.3;
}

.card-body p,
.category-card p,
.rank-content p,
.timeline-card p,
.detail-text,
.page-hero p {
  color: #cbd5e1;
  line-height: 1.75;
}

.line-clamp-1,
.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-1 {
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

.page-hero {
  padding: 66px 0 34px;
}

.page-hero h1 {
  max-width: 900px;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(130px, 180px));
  gap: 12px;
  margin: 20px 0 28px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.62);
}

.toolbar input,
.toolbar select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  outline: none;
  color: #e2e8f0;
  background: rgba(2, 6, 23, 0.72);
  padding: 0 12px;
}

.category-card {
  display: grid;
  gap: 14px;
  min-height: 210px;
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(2, 6, 23, 0.62));
}

.category-card h3 {
  font-size: 24px;
}

.category-card .count {
  color: #fbbf24;
  font-weight: 900;
}

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

.inline-list a {
  border-radius: 999px;
  padding: 6px 10px;
  color: #cbd5e1;
  background: rgba(148, 163, 184, 0.12);
  font-size: 13px;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 70px 210px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  border-radius: 24px;
  overflow: hidden;
}

.rank-index {
  display: grid;
  place-items: center;
  color: #0f172a;
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
  font-size: 24px;
  font-weight: 950;
}

.rank-content {
  padding: 18px 18px 18px 0;
}

.yearline {
  position: relative;
  display: grid;
  gap: 28px;
  padding-left: 64px;
}

.yearline::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #f59e0b, rgba(245, 158, 11, 0));
}

.year-block {
  position: relative;
}

.year-bullet {
  position: absolute;
  left: -64px;
  top: 0;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 3px solid #f59e0b;
  border-radius: 999px;
  color: #fbbf24;
  background: #0f172a;
  font-weight: 900;
}

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

.timeline-card {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 16px;
  border-radius: 18px;
  overflow: hidden;
}

.timeline-card .card-body {
  padding: 16px 16px 16px 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.player-box {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 26px;
  background: #000;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

.player-box video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  cursor: pointer;
  background: #020617;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.player-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.84), rgba(2, 6, 23, 0.08));
}

.player-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 24px 52px rgba(245, 158, 11, 0.34);
  transform: translate(-50%, -50%);
}

.detail-panel,
.side-panel {
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.62);
  padding: 22px;
}

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

.detail-panel h2,
.side-panel h2 {
  margin: 0 0 14px;
  color: #fbbf24;
  font-size: 22px;
  font-weight: 900;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.detail-grid div {
  border-radius: 14px;
  padding: 12px;
  background: rgba(2, 6, 23, 0.36);
  color: #cbd5e1;
}

.detail-grid b {
  display: block;
  color: #fbbf24;
  margin-bottom: 4px;
}

.side-panel {
  position: sticky;
  top: 92px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: 12px;
  border-radius: 16px;
  overflow: hidden;
}

.related-card .card-body {
  padding: 10px 10px 10px 0;
}

.related-card h3 {
  font-size: 15px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 30px 0 14px;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #fbbf24;
}

.site-footer {
  margin-top: 76px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.72);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0;
  display: grid;
  gap: 14px;
  color: #94a3b8;
}

.back-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(245, 158, 11, 0.92);
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.28);
}

.back-top.is-visible {
  display: grid;
}

.hidden-by-filter {
  display: none !important;
}

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

  .menu-toggle {
    display: inline-flex;
  }

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

  .hero-side {
    display: none;
  }

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

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

  .side-panel {
    position: static;
  }
}

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

  .logo {
    font-size: 20px;
  }

  .hero {
    min-height: 620px;
    height: auto;
  }

  .hero-slide {
    position: relative;
    min-height: 620px;
    display: none;
  }

  .hero-slide.is-active {
    display: block;
  }

  .hero-inner {
    align-items: end;
    padding: 92px 0 70px;
  }

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

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

  .rank-card,
  .timeline-card {
    grid-template-columns: 1fr;
  }

  .rank-index {
    min-height: 48px;
  }

  .rank-content,
  .timeline-card .card-body {
    padding: 16px;
  }

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

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

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

  .section-title::after {
    display: none;
  }

  .yearline {
    padding-left: 0;
  }

  .yearline::before,
  .year-bullet {
    display: none;
  }
}
