:root {
  color-scheme: dark;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  --bg: #0b0d10;
  --panel: #15191e;
  --panel-2: #1c2027;
  --ink: #f4f0e8;
  --muted: #a7a29a;
  --line: rgba(244, 240, 232, 0.12);
  --red: #df3f36;
  --amber: #f0b95d;
  --green: #42b883;
  --blue: #6ca8ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(223, 63, 54, 0.12), transparent 360px),
    radial-gradient(circle at 80% 10%, rgba(108, 168, 255, 0.14), transparent 360px),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 70px;
  padding: 0 clamp(16px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(11, 13, 16, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 950;
  white-space: nowrap;
}
.brand-sign {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #120c08;
  background: var(--amber);
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 2vw, 28px);
  overflow-x: auto;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}
.main-nav a { padding: 25px 0 22px; border-bottom: 2px solid transparent; }
.main-nav a.active,
.main-nav a:hover { color: var(--ink); border-color: var(--red); }
.top-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(240, 185, 93, 0.45);
  border-radius: 8px;
  color: var(--amber);
  font-weight: 900;
  white-space: nowrap;
  background: rgba(240, 185, 93, 0.08);
}

.cinema-hero {
  width: min(1380px, calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.25fr) minmax(190px, 0.55fr);
  gap: 18px;
  align-items: stretch;
  margin: 24px auto 0;
}
.hero-copy,
.show-card,
.rank-panel,
.filter-panel,
.detail-info,
.detail-cards article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
}
.hero-copy {
  display: grid;
  align-content: center;
  min-height: 360px;
  padding: clamp(24px, 4vw, 42px);
}
.screen-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.screen-wall a,
.show-card a {
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel-2);
}
.screen-wall a { min-height: 176px; border: 1px solid var(--line); }
.screen-wall img,
.show-card img { width: 100%; height: 100%; object-fit: cover; }
.show-card { padding: 12px; display: grid; gap: 10px; }
.show-card #heroPoster,
.show-card a { min-height: 310px; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1 { margin-bottom: 14px; font-size: clamp(2.2rem, 4.8vw, 4.8rem); line-height: 1.04; letter-spacing: 0; }
h2 { margin-bottom: 0; font-size: clamp(1.35rem, 2.5vw, 2.15rem); line-height: 1.15; letter-spacing: 0; }
.hero-copy p:not(.eyebrow),
.page-title p,
.feature-row p,
.card-copy p,
.footer p,
.detail-info p,
.detail-cards p { color: var(--muted); line-height: 1.72; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}
.button.primary { border-color: var(--red); color: #fff; background: var(--red); }
.button.ghost { background: rgba(255,255,255,0.05); }
.text-link { color: var(--amber); font-weight: 950; }

.channel-strip {
  width: min(1380px, calc(100% - 32px));
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 14px auto 0;
}
.channel-strip a {
  min-height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 900;
  background: rgba(255,255,255,0.04);
}
.channel-strip a:hover { color: var(--ink); border-color: rgba(240,185,93,0.5); }

.section,
.page-title {
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 0;
}
.section.flush { padding-top: 26px; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
}
.feature-rows { display: grid; gap: 10px; }
.feature-row a {
  display: grid;
  grid-template-columns: 44px 74px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 100px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
}
.row-number { color: var(--red); font-weight: 950; }
.row-poster {
  width: 74px;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel-2);
}
.row-poster img { width: 100%; height: 100%; object-fit: cover; }
.feature-row h3 { margin-bottom: 4px; font-size: 1rem; }

.rank-panel { padding: 20px; align-self: start; }
.rank-list { display: grid; gap: 10px; padding: 0; margin: 18px 0 0; list-style: none; counter-reset: rank; }
.rank-list li { counter-increment: rank; }
.rank-list a {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
}
.rank-list a::before { content: counter(rank, decimal-leading-zero); color: var(--amber); font-weight: 950; }
.rank-list strong { font-size: 0.9rem; }
.rank-list span { color: var(--green); font-weight: 950; }

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.movie-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}
.movie-card a {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  min-height: 168px;
}
.poster { position: relative; overflow: hidden; background: var(--panel-2); }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.badge,
.score {
  position: absolute;
  z-index: 1;
  top: 8px;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 950;
}
.badge { left: 8px; color: #17110c; background: var(--amber); }
.score { right: 8px; color: #fff; background: rgba(11,13,16,0.82); }
.card-copy { min-width: 0; display: grid; align-content: start; gap: 7px; padding: 13px; }
.card-copy h3 { margin-bottom: 0; font-size: 1rem; line-height: 1.32; }
.card-copy p { margin-bottom: 0; font-size: 0.78rem; }
.meta-row,
.tags { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 0.76rem; }
.tags span,
.count-pill,
.detail-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
}
.count-pill { font-size: 0.88rem; font-weight: 900; }

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

.detail-stage {
  width: min(1180px, calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
  gap: 22px;
  margin: 30px auto 0;
}
.detail-poster {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}
.detail-poster img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { display: grid; align-content: center; padding: clamp(22px, 4vw, 42px); }
.sub-name { margin-bottom: 14px; color: var(--muted); }
.detail-meta { margin: 0 0 18px; }
.synopsis { max-width: 760px; }
.player {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 330px;
  display: grid;
  place-items: center;
  margin: 22px auto 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.player::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.58); }
.play-button {
  position: relative;
  z-index: 1;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
}
.play-button::before {
  content: "";
  margin-left: 6px;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 23px solid #fff;
}
.detail-cards {
  width: min(1180px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
  margin: 22px auto 0;
}
.detail-cards article { padding: 20px; }

.footer {
  margin-top: 58px;
  padding: 36px clamp(16px, 4vw, 54px) 20px;
  border-top: 1px solid var(--line);
  background: #08090b;
}
.footer-grid {
  width: min(1380px, 100%);
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(170px, 0.8fr));
  gap: 26px;
  margin: 0 auto;
}
.footer strong { display: block; margin-bottom: 9px; color: var(--ink); }
.footer nav { display: grid; align-content: start; gap: 9px; color: var(--muted); }
.footer p { margin-bottom: 0; }
.footer-bottom {
  width: min(1380px, 100%);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 26px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

@media (max-width: 1040px) {
  .topbar,
  .cinema-hero,
  .split-layout,
  .filter-panel,
  .detail-stage,
  .detail-cards,
  .footer-grid { grid-template-columns: 1fr; }
  .main-nav { justify-content: flex-start; }
  .screen-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .top-action { justify-self: start; }
}

@media (max-width: 640px) {
  .channel-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .movie-grid { grid-template-columns: 1fr; }
  .movie-card a { grid-template-columns: 96px minmax(0, 1fr); min-height: 148px; }
  .screen-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head,
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}
