:root {
  color-scheme: dark;
  font-family:
    "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  color: #f7f2ea;
  background: #111111;
  --bg: #111111;
  --panel: #1b1b1b;
  --panel-soft: #23201d;
  --line: rgba(255, 255, 255, 0.11);
  --text: #f7f2ea;
  --muted: #bdb2a6;
  --accent: #d94f45;
  --gold: #e7b75f;
  --teal: #57b6ad;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(217, 79, 69, 0.18), transparent 34rem),
    radial-gradient(circle at 85% 18%, rgba(87, 182, 173, 0.14), transparent 28rem),
    var(--bg);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 72px;
  padding: 0 clamp(16px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(17, 17, 17, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1440px, 100%);
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  margin: 0 auto;
}

.brand,
.nav-links,
.hero-actions,
.quick-bar,
.meta-row,
.tags,
.site-footer nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #16120f;
  background: var(--gold);
}

.nav-links {
  justify-content: center;
  gap: clamp(10px, 1.55vw, 24px);
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
  overflow-x: auto;
}

.nav-links a {
  padding: 24px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--text);
  border-color: var(--accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(231, 183, 95, 0.42);
  border-radius: 8px;
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
  background: rgba(231, 183, 95, 0.08);
}

.hero {
  position: relative;
  min-height: clamp(420px, 52vh, 560px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.9), rgba(17, 17, 17, 0.42)),
    linear-gradient(0deg, #111111, transparent 46%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  padding: 78px clamp(18px, 5vw, 72px) 52px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 16px;
  font-size: clamp(2rem, 4.8vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow),
.page-title p,
.topic-panel p,
.synopsis,
.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-copy p:not(.eyebrow) {
  max-width: 640px;
  font-size: 1rem;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  border-color: var(--accent);
  color: #fffaf5;
  background: var(--accent);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.06);
}

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

.quick-bar {
  gap: 10px;
  padding: 14px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.quick-bar a,
.tag,
.pill,
.count-label {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.quick-bar a {
  padding: 9px 14px;
  white-space: nowrap;
}

.section,
.page-title {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 56px clamp(16px, 4vw, 56px);
}

.section.flush {
  padding-top: 24px;
}

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

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

.count-label {
  padding: 8px 12px;
  font-size: 0.9rem;
}

.feature-grid,
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(188px, 1fr));
  gap: 16px;
}

.feature-grid {
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
}

.movie-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.movie-card:hover {
  transform: translateY(-3px);
  border-color: rgba(231, 183, 95, 0.55);
  background: rgba(255, 255, 255, 0.07);
}

.poster {
  position: relative;
  aspect-ratio: 0.68;
  background: #24201e;
  overflow: hidden;
}

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

.badge,
.score {
  position: absolute;
  top: 8px;
  z-index: 1;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 850;
}

.badge {
  left: 8px;
  color: #17110c;
  background: var(--gold);
}

.score {
  right: 8px;
  color: #ffffff;
  background: rgba(17, 17, 17, 0.82);
}

.card-body {
  padding: 10px;
}

.card-body h3 {
  margin-bottom: 7px;
  font-size: 0.92rem;
  line-height: 1.35;
}

.meta-row {
  gap: 6px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.78rem;
}

.tags {
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 9px;
}

.tag {
  padding: 3px 7px;
  font-size: 0.72rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
}

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

.rank-list li {
  counter-increment: rank;
}

.rank-list a {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.rank-list a::before {
  content: counter(rank, decimal-leading-zero);
  color: var(--gold);
  font-weight: 900;
}

.topic-panel,
.toolbar {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(217, 79, 69, 0.18), transparent 46%),
    rgba(255, 255, 255, 0.04);
}

.topic-panel {
  align-self: start;
  padding: 28px;
}

.page-title {
  padding-bottom: 28px;
}

.page-title h1 {
  margin-bottom: 16px;
}

.page-title p {
  max-width: 760px;
}

.toolbar {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 14px;
  margin: 0 clamp(16px, 4vw, 56px) 18px;
  padding: 16px;
}

.toolbar label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: #151515;
  padding: 0 12px;
  font: inherit;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(210px, 300px) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 44px);
  padding: 44px clamp(16px, 4vw, 56px);
}

.detail-poster {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.detail-copy h1 {
  margin-bottom: 14px;
}

.detail-copy .meta-row {
  margin-bottom: 18px;
}

.pill {
  padding: 7px 10px;
  font-size: 0.86rem;
}

.player-panel {
  margin: 0 clamp(16px, 4vw, 56px) 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #0c0c0c;
}

.player-screen {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
}

.player-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.play-button {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(217, 79, 69, 0.86);
}

.play-button::before {
  content: "";
  margin-left: 6px;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 23px solid #ffffff;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 0 clamp(16px, 4vw, 56px) 56px;
}

.info-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.site-footer {
  padding: 42px clamp(16px, 4vw, 56px) 22px;
  border-top: 1px solid var(--line);
  background: #0d0d0d;
}

.site-footer p {
  margin: 8px 0 0;
}

.footer-grid {
  width: min(1440px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(170px, 0.9fr));
  gap: 28px;
}

.footer-brand p,
.footer-column p,
.footer-bottom {
  color: var(--muted);
  line-height: 1.7;
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 9px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-column strong {
  color: var(--text);
  margin-bottom: 4px;
}

.footer-column a:hover {
  color: var(--gold);
}

.footer-bottom {
  width: min(1440px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
}

@media (max-width: 1080px) {
  .split,
  .detail-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding-top: 12px;
    padding-bottom: 0;
  }

  .header-inner {
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 8px;
  }

  .nav-links {
    justify-content: flex-start;
    width: 100%;
  }

  .nav-cta {
    margin-bottom: 12px;
  }

  .hero {
    min-height: 520px;
  }

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

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

  .player-screen {
    min-height: 280px;
  }
}

@media (max-width: 520px) {
  .movie-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .card-body {
    padding: 9px;
  }

  .card-body h3 {
    font-size: 0.86rem;
  }

  .meta-row,
  .tags {
    gap: 5px;
  }
}
