:root {
  color-scheme: light;
  --blue-950: #082f49;
  --blue-900: #0c4a6e;
  --blue-800: #075985;
  --blue-700: #0369a1;
  --blue-600: #0284c7;
  --cyan-500: #06b6d4;
  --cyan-300: #67e8f9;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 80px rgba(2, 132, 199, 0.18);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  color: #0f172a;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 45%, #ecfeff 100%);
  line-height: 1.6;
}

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

button,
input,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  backdrop-filter: blur(20px);
}

.nav-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: 22px;
  color: var(--blue-950);
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: white;
  font-size: 14px;
  letter-spacing: 0;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  box-shadow: 0 14px 34px rgba(2, 132, 199, 0.34);
}

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

.nav-links a,
.mobile-nav a {
  color: #334155;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 999px;
  transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active,
.mobile-nav a:hover {
  color: var(--blue-700);
  background: #e0f2fe;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: var(--blue-900);
  background: #e0f2fe;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  padding: 0 0 18px;
}

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

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: white;
  background-color: var(--blue-950);
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 47, 73, 0.92), rgba(14, 116, 144, 0.74), rgba(2, 6, 23, 0.16));
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient(0deg, #eff6ff, rgba(239, 246, 255, 0));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 70px 0 130px;
}

.hero-copy {
  width: min(680px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(14, 165, 233, 0.26);
  backdrop-filter: blur(16px);
  font-size: 14px;
  font-weight: 800;
}

.hero h1,
.page-hero h1,
.detail-title {
  margin: 20px 0 18px;
  font-size: clamp(38px, 7vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.hero h1 span {
  display: block;
  margin-top: 10px;
  font-size: clamp(24px, 4vw, 40px);
  color: #bae6fd;
}

.hero p {
  width: min(650px, 100%);
  margin: 0 0 32px;
  color: #e0f2fe;
  font-size: 20px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 900;
  transition: 0.25s ease;
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  box-shadow: 0 18px 38px rgba(2, 132, 199, 0.32);
}

.btn-ghost {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

.btn-light {
  color: var(--blue-900);
  background: #e0f2fe;
}

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

.hero-featured {
  position: relative;
  z-index: 3;
  margin-top: -94px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.section {
  padding: 74px 0;
}

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

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.section-subtitle {
  margin: 8px 0 0;
  color: #64748b;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  transition: 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(2, 132, 199, 0.20);
  border-color: rgba(14, 165, 233, 0.35);
}

.poster {
  position: relative;
  min-height: 250px;
  background-color: #0f172a;
  background-size: cover;
  background-position: center;
}

.movie-grid.compact .poster {
  min-height: 210px;
}

.poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0));
}

.badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 900;
  background: rgba(2, 132, 199, 0.86);
  backdrop-filter: blur(12px);
}

.badge.alt {
  background: rgba(15, 23, 42, 0.76);
}

.card-body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.card-body h3 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.3;
}

.card-body p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 13px;
}

.meta-row span {
  padding: 4px 9px;
  border-radius: 999px;
  background: #f1f5f9;
}

.feature-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: stretch;
  min-height: 170px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 24px;
  color: white;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.18);
  backdrop-filter: blur(20px);
  transition: 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.24);
}

.feature-card .poster {
  min-height: 142px;
  border-radius: 18px;
}

.feature-card h3 {
  margin: 4px 0 8px;
  font-size: 18px;
}

.feature-card p {
  margin: 0;
  color: #e0f2fe;
  font-size: 14px;
}

.stat-band {
  background: linear-gradient(90deg, var(--blue-700), var(--cyan-500));
  color: white;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat-card {
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.stat-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 30px;
}

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

.category-card {
  display: grid;
  gap: 12px;
  padding: 24px;
  min-height: 174px;
  border-radius: 24px;
  color: white;
  background: radial-gradient(circle at 20% 20%, rgba(103, 232, 249, 0.34), transparent 34%), linear-gradient(135deg, #0c4a6e, #0284c7);
  box-shadow: var(--shadow);
  transition: 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-card h3 {
  margin: 0;
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: #e0f2fe;
}

.page-hero {
  padding: 72px 0 60px;
  color: white;
  background: radial-gradient(circle at 20% 20%, rgba(103, 232, 249, 0.30), transparent 30%), linear-gradient(135deg, var(--blue-950), var(--blue-700) 60%, var(--cyan-500));
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #e0f2fe;
  font-size: 19px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  color: #bae6fd;
  font-size: 14px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  margin-bottom: 28px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.search-input,
.select-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 13px 18px;
  color: #0f172a;
  outline: none;
  background: white;
  transition: 0.2s ease;
}

.search-input:focus,
.select-input:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 72px 92px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  transition: 0.25s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  border-color: rgba(14, 165, 233, 0.35);
}

.rank-num {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: white;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
}

.rank-poster {
  width: 92px;
  height: 116px;
  border-radius: 18px;
  background-color: #0f172a;
  background-size: cover;
  background-position: center;
}

.rank-info h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.rank-info p {
  margin: 0;
  color: #64748b;
}

.detail-hero {
  padding: 40px 0 30px;
  color: white;
  background: radial-gradient(circle at 20% 20%, rgba(103, 232, 249, 0.28), transparent 32%), linear-gradient(135deg, var(--slate-950), var(--blue-950));
}

.detail-title {
  max-width: 980px;
}

.player-shell {
  padding: 34px 0 20px;
  background: #020617;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000;
  box-shadow: 0 28px 90px rgba(2, 6, 23, 0.48);
  aspect-ratio: 16 / 9;
}

.player-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: white;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(14, 165, 233, 0.16), rgba(2, 6, 23, 0.68));
  transition: 0.24s ease;
}

.play-layer span {
  width: 90px;
  height: 90px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 34px;
  padding-left: 6px;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  box-shadow: 0 20px 50px rgba(6, 182, 212, 0.32);
}

.play-layer:hover span {
  transform: scale(1.05);
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
}

.detail-poster {
  min-height: 450px;
  border-radius: 28px;
  background-color: #0f172a;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.detail-card {
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.detail-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.detail-card p {
  color: #475569;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.tag-list span {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--blue-900);
  font-size: 13px;
  font-weight: 800;
  background: #e0f2fe;
}

.footer {
  margin-top: 30px;
  color: white;
  background: linear-gradient(135deg, var(--slate-950), var(--blue-950));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 52px 0 36px;
}

.footer h2,
.footer h3 {
  margin: 0 0 14px;
}

.footer p,
.footer a {
  color: #cbd5e1;
}

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

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0 26px;
  color: #94a3b8;
  font-size: 14px;
}

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

  .hero-featured,
  .stat-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-poster {
    min-height: 360px;
  }
}

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

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

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

  .hero p {
    font-size: 17px;
  }

  .hero-featured {
    margin-top: 24px;
  }

  .feature-card {
    grid-template-columns: 100px 1fr;
  }

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

  .poster {
    min-height: 190px;
  }

  .section-head,
  .filter-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .rank-item {
    grid-template-columns: 50px 72px 1fr;
  }

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

  .rank-poster {
    width: 72px;
    height: 92px;
  }

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

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

  .feature-card {
    grid-template-columns: 1fr;
  }
}
