
:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.74);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --soft: #94a3b8;
  --gold: #f59e0b;
  --gold-light: #fbbf24;
  --blue: #2563eb;
  --radius: 24px;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(37, 99, 235, 0.28), transparent 32rem),
    radial-gradient(circle at 90% 18%, rgba(245, 158, 11, 0.16), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.68;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 64, 175, 0.9), rgba(15, 23, 42, 0.96));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 68px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #f59e0b, #fb923c);
  box-shadow: 0 0 32px rgba(245, 158, 11, 0.42);
}

.brand-text {
  font-size: 1.2rem;
  background: linear-gradient(90deg, #fde68a, #fbbf24, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link {
  padding: 9px 13px;
  border-radius: 12px;
  color: #dbeafe;
  font-size: 0.95rem;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(245, 158, 11, 0.95);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.24);
}

.menu-button {
  display: none;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 9px 12px;
  font-size: 1.15rem;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  transform: scale(1.05);
  filter: saturate(1.12) contrast(1.08);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(15, 23, 42, 0.78) 44%, rgba(2, 6, 23, 0.38) 100%),
    linear-gradient(0deg, #020617 0%, transparent 36%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding: 150px 28px 120px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6.4vw, 5.8rem);
  line-height: 1.03;
  background: linear-gradient(90deg, #fff7ed, #fbbf24, #fb923c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 18px 70px rgba(245, 158, 11, 0.2);
}

.hero-desc {
  max-width: 720px;
  margin: 24px auto 0;
  color: #e5e7eb;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions,
.hero-search,
.section-head,
.rank-panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-actions {
  justify-content: center;
  margin-top: 34px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-soft,
.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.25s ease;
}

.btn-primary,
.hero-search button {
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #f59e0b, #fb923c);
  box-shadow: 0 18px 40px rgba(245, 158, 11, 0.28);
}

.btn-primary:hover,
.hero-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(245, 158, 11, 0.38);
}

.btn-soft {
  color: #fff;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

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

.btn-primary.full {
  width: 100%;
  display: block;
  text-align: center;
}

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

.hero-dot {
  width: 44px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
}

.hero-dot.active {
  background: var(--gold-light);
}

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px;
}

.intro-strip {
  margin-top: -44px;
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 460px);
  align-items: center;
  gap: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.intro-strip h2,
.section-head h2,
.rank-panel h2,
.page-hero h1,
.detail-info h1,
.content-card h2 {
  margin: 0;
  line-height: 1.18;
}

.intro-strip h2,
.section-head h2,
.rank-panel h2,
.page-hero h1 {
  font-size: clamp(1.7rem, 3vw, 3rem);
}

.intro-strip p,
.page-hero p {
  color: var(--muted);
}

.hero-search {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.55);
}

.hero-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 10px 14px;
  color: #fff;
  background: transparent;
}

.section-head {
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-head.compact {
  margin-bottom: 22px;
}

.text-link {
  color: var(--gold-light);
  font-weight: 800;
}

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

.category-tile {
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.72));
  transition: 0.25s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: 0 24px 70px rgba(245, 158, 11, 0.14);
}

.category-main {
  display: block;
  padding: 22px;
}

.category-main span {
  display: block;
  color: var(--gold-light);
  font-weight: 900;
  margin-bottom: 10px;
}

.category-main strong {
  display: block;
  color: #e5e7eb;
  font-size: 0.98rem;
}

.category-samples {
  padding: 0 22px 20px;
  display: grid;
  gap: 5px;
  color: var(--soft);
  font-size: 0.9rem;
}

.category-samples a:hover {
  color: #fff;
}

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 26px;
}

.filter-panel {
  margin-bottom: 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(140px, 1fr));
  gap: 14px;
}

.filter-grid label {
  display: grid;
  gap: 7px;
  color: var(--soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  border: 1px solid var(--line);
  outline: 0;
  border-radius: 14px;
  padding: 12px 14px;
  color: #fff;
  background: rgba(2, 6, 23, 0.74);
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.62));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  transition: 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(251, 191, 36, 0.54);
  box-shadow: 0 24px 80px rgba(245, 158, 11, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 2.8;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
}

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

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

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

.poster-year {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  color: #111827;
  background: rgba(251, 191, 36, 0.96);
  font-weight: 900;
  font-size: 0.8rem;
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 800;
}

.card-body h3 {
  margin: 8px 0 8px;
  font-size: 1.08rem;
  line-height: 1.28;
}

.card-body h3 a:hover {
  color: var(--gold-light);
}

.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag-row span {
  padding: 4px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
}

.small-card .card-body p {
  display: none;
}

.small-card .poster-link {
  aspect-ratio: 16 / 11;
}

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

.rank-panel {
  position: sticky;
  top: 92px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
}

.rank-panel-head {
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.rank-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.rank-list a {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 8px 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.rank-list a:hover {
  background: rgba(245, 158, 11, 0.16);
}

.rank-number {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #111827;
  background: var(--gold-light);
  font-weight: 900;
}

.rank-title {
  font-weight: 800;
}

.rank-meta {
  color: var(--soft);
  font-size: 0.84rem;
}

.page-hero {
  max-width: 1280px;
  margin: 34px auto 0;
  padding: 76px 24px;
  border: 1px solid var(--line);
  border-radius: 0 0 36px 36px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.32), rgba(245, 158, 11, 0.12)),
    rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
}

.category-overview-block {
  padding-top: 40px;
  padding-bottom: 40px;
}

.detail-hero {
  max-width: 1280px;
  margin: 36px auto 0;
  padding: 28px 24px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 30px;
  align-items: end;
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.detail-cover img {
  aspect-ratio: 2 / 2.8;
  object-fit: cover;
}

.detail-info {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.72);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--soft);
  font-size: 0.92rem;
}

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

.detail-info h1 {
  font-size: clamp(2rem, 4vw, 4.2rem);
}

.detail-line {
  color: var(--muted);
  font-size: 1.1rem;
}

.player-section {
  padding-top: 30px;
  padding-bottom: 30px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.player-cover-button {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: radial-gradient(circle, rgba(2, 6, 23, 0.24), rgba(2, 6, 23, 0.68));
}

.player-cover-button.hidden {
  display: none;
}

.play-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  border-radius: 50%;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #f59e0b, #fb923c);
  box-shadow: 0 20px 50px rgba(245, 158, 11, 0.36);
  font-size: 1.8rem;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding-top: 28px;
}

.content-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: rgba(15, 23, 42, 0.72);
}

.content-card p {
  color: var(--muted);
  margin-bottom: 0;
}

[data-card].is-hidden {
  display: none;
}

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

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

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

  .section-split {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .header-inner {
    min-height: 62px;
  }

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

  .main-nav {
    position: absolute;
    top: 62px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.96);
  }

  .main-nav.open {
    display: grid;
  }

  .nav-link {
    display: block;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding: 120px 20px 100px;
  }

  .intro-strip,
  .filter-grid,
  .detail-hero,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .hero-search,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

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

  .detail-hero {
    padding: 18px;
  }

  .detail-cover {
    max-width: 260px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 42px 16px;
  }

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

  .brand-text {
    font-size: 1rem;
  }

  .page-hero {
    margin-top: 20px;
    padding: 48px 18px;
    border-radius: 0 0 26px 26px;
  }
}
