* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111827;
  --panel-glass: rgba(15, 23, 42, 0.78);
  --line: rgba(148, 163, 184, 0.22);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --soft: #94a3b8;
  --amber: #f59e0b;
  --amber-light: #fbbf24;
  --orange: #f97316;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 32rem),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.12), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

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

.navbar {
  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;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 12px 32px rgba(245, 158, 11, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-weight: 650;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--amber-light);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.84);
  color: var(--text);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.98);
}

.mobile-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--muted);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--amber-light);
  background: rgba(245, 158, 11, 0.1);
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #020617;
}

.hero-stage {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 680ms ease, visibility 680ms ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.64) 42%, rgba(2, 6, 23, 0.3) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.12) 45%, rgba(2, 6, 23, 0.48) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0 106px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
  gap: 40px;
  align-items: center;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 12px;
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 999px;
  color: var(--amber-light);
  background: rgba(245, 158, 11, 0.12);
  font-size: 14px;
  font-weight: 760;
}

.hero h1,
.hero h2 {
  margin: 0 0 18px;
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.07em;
  font-weight: 900;
}

.hero p {
  margin: 0 0 28px;
  max-width: 760px;
  color: #e2e8f0;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.65;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 780;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 16px 38px rgba(245, 158, 11, 0.26);
}

.btn-ghost {
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.66);
}

.btn-ghost:hover {
  border-color: rgba(245, 158, 11, 0.48);
  background: rgba(245, 158, 11, 0.13);
}

.hero-card {
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 30px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-card-body {
  position: absolute;
  inset: auto 0 0;
  padding: 22px;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0));
}

.hero-card-body strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}

.hero-card-body span {
  color: var(--muted);
  font-size: 14px;
}

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

.hero-dot {
  width: 38px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(203, 213, 225, 0.32);
  transition: width 180ms ease, background 180ms ease;
}

.hero-dot.is-active {
  width: 58px;
  background: var(--amber-light);
}

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

.section {
  padding: 72px 0;
}

.section-tight {
  padding: 48px 0;
}

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

.section-kicker {
  margin: 0 0 8px;
  color: var(--amber-light);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section h2,
.page-hero h1,
.detail-title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.section-desc,
.page-hero p,
.detail-lead {
  margin: 10px 0 0;
  max-width: 760px;
  color: var(--soft);
  line-height: 1.75;
}

.page-hero {
  position: relative;
  padding: 72px 0 38px;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 50%;
  width: 48vw;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15), transparent 70%);
  transform: translateX(-10%);
  pointer-events: none;
}

.breadcrumb {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--soft);
  font-size: 14px;
}

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

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

.search-panel {
  margin-bottom: 26px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.2);
}

.search-input {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  outline: none;
  color: var(--text);
  background: rgba(2, 6, 23, 0.62);
}

.search-input:focus {
  border-color: rgba(245, 158, 11, 0.72);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.96));
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.24);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.movie-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(245, 158, 11, 0.42);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.poster {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #111827, #020617);
}

.poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 460ms ease, filter 460ms ease;
}

.movie-card:hover .poster img {
  transform: scale(1.08);
  filter: brightness(0.78);
}

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0));
  transition: opacity 240ms ease;
}

.movie-card:hover .poster::after {
  opacity: 1;
}

.card-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 220ms ease;
}

.movie-card:hover .card-play {
  opacity: 1;
}

.play-bubble {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  box-shadow: 0 16px 36px rgba(245, 158, 11, 0.28);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(245, 158, 11, 0.92);
  font-size: 12px;
  font-weight: 760;
}

.poster .badge {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
}

.card-body {
  padding: 16px;
}

.card-title {
  margin: 0 0 8px;
  display: -webkit-box;
  overflow: hidden;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 820;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.card-meta {
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--soft);
  font-size: 13px;
}

.card-text {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.category-card {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.2), transparent 46%),
    linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.96));
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.22);
  transition: transform 200ms ease, border-color 200ms ease;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245, 158, 11, 0.46);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.category-card p {
  margin: 0;
  color: var(--soft);
  line-height: 1.7;
  font-size: 14px;
}

.preview-list {
  margin-top: 18px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.preview-list span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 64px 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.78);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.rank-row:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.42);
  background: rgba(30, 41, 59, 0.82);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--amber), var(--orange));
  font-weight: 900;
}

.rank-row img {
  width: 72px;
  height: 98px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-row h2,
.rank-row h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 850;
}

.rank-row p {
  margin: 0;
  color: var(--soft);
  line-height: 1.58;
}

.rank-score {
  min-width: 68px;
  text-align: center;
  color: var(--amber-light);
  font-size: 26px;
  font-weight: 900;
}

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

.detail-panel,
.side-panel {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.24);
}

.detail-panel {
  overflow: hidden;
}

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

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background:
    linear-gradient(0deg, rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.08)),
    rgba(2, 6, 23, 0.22);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.play-overlay-inner {
  display: grid;
  place-items: center;
  gap: 14px;
  transform: translateY(10px);
}

.play-overlay strong {
  font-size: 22px;
}

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

.detail-body {
  padding: 28px;
}

.detail-title {
  margin-bottom: 14px;
}

.detail-lead {
  font-size: 17px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 20px 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(245, 158, 11, 0.26);
  border-radius: 999px;
  color: var(--amber-light);
  background: rgba(245, 158, 11, 0.1);
  font-size: 13px;
  font-weight: 760;
}

.prose {
  color: #dbeafe;
  line-height: 1.92;
  font-size: 16px;
}

.prose h2 {
  margin: 30px 0 10px;
  color: #ffffff;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.prose p {
  margin: 0 0 16px;
}

.side-panel {
  padding: 18px;
}

.side-panel h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
}

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

.side-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.28);
  transition: border-color 180ms ease, transform 180ms ease;
}

.side-item:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.4);
}

.side-item img {
  width: 76px;
  height: 106px;
  border-radius: 14px;
  object-fit: cover;
}

.side-item strong {
  display: -webkit-box;
  overflow: hidden;
  color: #ffffff;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.side-item span {
  display: block;
  margin-top: 8px;
  color: var(--soft);
  font-size: 13px;
}

.empty-state {
  display: none;
  margin: 24px 0 0;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  color: var(--soft);
  background: rgba(15, 23, 42, 0.74);
}

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

.site-footer {
  margin-top: 72px;
  border-top: 1px solid rgba(51, 65, 85, 0.7);
  background: rgba(2, 6, 23, 0.88);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 30px;
  color: var(--soft);
}

.footer-inner h2,
.footer-inner h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 18px;
}

.footer-inner p,
.footer-inner a {
  color: var(--soft);
  line-height: 1.8;
}

.footer-inner a:hover {
  color: var(--amber-light);
}

.footer-links {
  display: grid;
  gap: 8px;
}

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

  .hero-card {
    display: none;
  }

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

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

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

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

  .mobile-nav.is-open {
    display: block;
  }

  .hero,
  .hero-stage {
    min-height: 560px;
  }

  .hero-content {
    padding: 70px 0 96px;
  }

  .hero-actions,
  .section-header {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

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

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

  .rank-row img {
    width: 58px;
    height: 80px;
  }

  .rank-score {
    grid-column: 2 / 4;
    text-align: left;
    font-size: 18px;
  }

  .detail-body {
    padding: 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

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