:root {
  color-scheme: light;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  color: #18201f;
  background: #f6f1e8;
  --paper: #f6f1e8;
  --ink: #18201f;
  --muted: #6d6a61;
  --line: rgba(24, 32, 31, 0.14);
  --card: #fffaf1;
  --sage: #3d6f64;
  --tomato: #c94132;
  --blue: #2a5f89;
  --sand: #ead8bd;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(24, 32, 31, 0.045) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(0deg, rgba(24, 32, 31, 0.04) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--paper);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(170px, 0.85fr) minmax(0, auto) minmax(120px, 0.5fr);
  align-items: center;
  gap: 20px;
  min-height: 72px;
  padding: 10px clamp(16px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 241, 232, 0.92);
  backdrop-filter: blur(16px);
}

.brand { display: grid; gap: 2px; width: max-content; }
.brand span { font-size: 1.1rem; font-weight: 900; }
.brand small { color: var(--muted); font-size: 0.72rem; letter-spacing: 0; text-transform: uppercase; }

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.82);
  overflow-x: auto;
}
.nav-shell a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}
.nav-shell a.active,
.nav-shell a:hover { color: #fff; background: var(--sage); }
.header-link { justify-self: end; color: var(--tomato); font-weight: 900; white-space: nowrap; }

.hero-panel {
  width: min(1280px, calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(170px, 230px) minmax(0, 1fr) minmax(150px, 230px);
  gap: clamp(14px, 2vw, 24px);
  align-items: stretch;
  margin: 24px auto 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.hero-media,
.hero-stack a {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--sand);
}
.hero-media {
  min-height: 318px;
  max-height: 360px;
}
.hero-media a,
.hero-media img,
.hero-stack img { width: 100%; height: 100%; }
.hero-media img,
.hero-stack img { object-fit: cover; }

.hero-copy {
  display: grid;
  align-content: center;
  padding: clamp(12px, 2.4vw, 28px);
}
.hero-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.hero-stack a { min-height: 154px; }

.eyebrow {
  margin: 0 0 9px;
  color: var(--tomato);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1 { margin-bottom: 14px; font-size: clamp(2rem, 4.2vw, 4rem); line-height: 1.04; letter-spacing: 0; }
h2 { margin-bottom: 0; font-size: clamp(1.35rem, 2.2vw, 2.1rem); line-height: 1.14; letter-spacing: 0; }
.hero-copy p:not(.eyebrow), .page-kicker p, .digest-copy p, .synopsis, .footer-brand p, .footer-links span {
  color: var(--muted);
  line-height: 1.72;
}
.hero-copy p:not(.eyebrow) { margin-bottom: 10px; }

.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  font-weight: 900;
}
.button.solid { color: #fff; background: var(--tomato); }
.button.plain { border: 1px solid var(--line); background: #fff; }

.topic-strip {
  width: min(1280px, calc(100% - 32px));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 14px auto 0;
}
.topic-strip a {
  min-height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.78);
  font-weight: 900;
}

.section,
.page-kicker {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 0;
}
.section.tight { padding-top: 24px; }
.section-title {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 14px;
  margin-bottom: 16px;
}
.section-title .eyebrow { grid-column: 1 / -1; margin-bottom: -4px; }
.section-title a,
.section-title span { color: var(--blue); font-weight: 900; }

.spotlight-grid,
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 14px;
}
.spotlight-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

.movie-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 250, 241, 0.88);
  box-shadow: 0 14px 32px rgba(58, 47, 34, 0.07);
}
.movie-card a { display: grid; height: 100%; }
.poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--sand);
}
.poster img { width: 100%; height: 100%; object-fit: cover; }
.badge,
.score {
  position: absolute;
  top: 8px;
  z-index: 1;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 950;
}
.badge { left: 8px; color: #fff; background: var(--sage); }
.score { right: 8px; color: var(--ink); background: rgba(255, 250, 241, 0.92); }
.card-body { display: grid; gap: 7px; padding: 11px; }
.card-body h3 { margin-bottom: 0; font-size: 0.95rem; line-height: 1.34; }
.meta-row,
.tags { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 0.78rem; }
.tag { padding: 4px 8px; border-radius: 999px; background: rgba(61, 111, 100, 0.1); }

.digest {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 24px;
  padding-bottom: 52px;
}
.digest-copy {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}
.digest-copy p { color: rgba(255, 255, 255, 0.72); }
.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: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 58px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.82);
}
.rank-list a::before { content: counter(rank, decimal-leading-zero); color: var(--tomato); font-weight: 950; }

.page-kicker { padding-top: 42px; }
.page-kicker h1 { max-width: 900px; }
.page-kicker p { max-width: 760px; }
.filter-board {
  width: min(1280px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 1.35fr 0.75fr 0.75fr;
  gap: 12px;
  margin: 22px auto 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}
.filter-board label { display: grid; gap: 7px; color: var(--muted); font-size: 0.82rem; font-weight: 800; }
input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  padding: 0 12px;
  font: inherit;
}

.detail-hero {
  width: min(1280px, calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(220px, 310px) minmax(0, 1fr);
  gap: 22px;
  margin: 28px auto 0;
}
.detail-poster,
.detail-copy,
.info-box,
.player-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  overflow: hidden;
}
.detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.detail-copy { display: grid; align-content: center; padding: clamp(20px, 3vw, 34px); }
.pill { padding: 6px 10px; border-radius: 999px; background: rgba(42, 95, 137, 0.1); }
.player-panel { width: min(1280px, calc(100% - 32px)); margin: 22px auto 0; }
.player-screen {
  min-height: 330px;
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
  position: relative;
}
.player-screen::after { content: ""; position: absolute; inset: 0; background: rgba(24, 32, 31, 0.42); }
.play-button {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
}
.play-button::before {
  content: "";
  margin-left: 5px;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 21px solid var(--tomato);
}
.detail-grid {
  width: min(1280px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 18px;
  margin: 22px auto 0;
}
.info-box { padding: 20px; }

.site-footer {
  margin-top: 60px;
  padding: 34px clamp(16px, 4vw, 54px) 20px;
  color: #fff;
  background: #1d2827;
}
.footer-brand,
.footer-links,
.footer-bottom { width: min(1280px, 100%); margin-left: auto; margin-right: auto; }
.footer-brand {
  display: grid;
  grid-template-columns: 0.34fr 1fr;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand strong { font-size: 1.65rem; }
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 22px 0;
}
.footer-links nav { display: grid; align-content: start; gap: 9px; color: rgba(255, 255, 255, 0.7); }
.footer-links strong { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.85rem;
}

@media (max-width: 980px) {
  .site-header,
  .hero-panel,
  .digest,
  .filter-board,
  .detail-hero,
  .detail-grid,
  .footer-brand,
  .footer-links { grid-template-columns: 1fr; }
  .nav-shell { justify-content: flex-start; }
  .header-link { justify-self: start; }
  .topic-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-media { min-height: 260px; }
  .hero-stack { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero-stack a { min-height: 120px; }
}

@media (max-width: 560px) {
  .movie-grid,
  .spotlight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .section-title,
  .footer-bottom { grid-template-columns: 1fr; align-items: start; flex-direction: column; }
  .card-body { padding: 9px; }
  .card-body h3 { font-size: 0.86rem; }
}
