:root {
  color-scheme: dark;
  --bg: #090a0c;
  --panel: #14161a;
  --panel-2: #1c1f24;
  --text: #f6f3ed;
  --muted: #aeb5bd;
  --line: rgba(255,255,255,.11);
  --gold: #f4b74d;
  --jade: #41d6b0;
  --rose: #e35b73;
  --blue: #65a7ff;
  --shadow: 0 22px 60px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 82% -10%, rgba(65,214,176,.19), transparent 32rem),
    radial-gradient(circle at 14% 6%, rgba(244,183,77,.16), transparent 28rem),
    linear-gradient(180deg, #090a0c 0%, #101217 52%, #08090b 100%);
  color: var(--text);
  font-family: "Microsoft YaHei UI", "PingFang SC", Arial, sans-serif;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr minmax(230px, 340px);
  align-items: center;
  gap: 20px;
  padding: 16px clamp(18px, 5vw, 64px);
  background: rgba(9,10,12,.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.site-header.compact { background: rgba(9,10,12,.92); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 154px;
  font-weight: 900;
}
.brand span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  color: #15100a;
  background: linear-gradient(135deg, var(--gold), #fff0b2);
  box-shadow: 0 10px 30px rgba(244,183,77,.22);
}
.brand strong { font-size: 22px; }
.main-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}
.main-nav a {
  padding: 10px 13px;
  border-radius: 5px;
  color: var(--muted);
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: #111;
  background: var(--gold);
}
.search { display: flex; border: 1px solid var(--line); background: rgba(255,255,255,.05); }
.search input,
.search button {
  height: 42px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}
.search input { width: 100%; padding: 0 14px; }
.search button {
  min-width: 72px;
  color: #101217;
  background: var(--jade);
  font-weight: 800;
  cursor: pointer;
}
.nav-toggle { display: none; }

main { width: min(1420px, calc(100% - 32px)); margin: 0 auto; }
.hero-shell {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, .98fr);
  gap: 30px;
  align-items: end;
  padding: 42px 0 30px;
}
.hero-copy {
  align-self: center;
  padding: 34px 0 28px;
}
.eyebrow, .section-title span, .page-head span {
  color: var(--jade);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.hero-copy h1 {
  margin: 12px 0 16px;
  max-width: 760px;
  font-size: clamp(40px, 6vw, 86px);
  line-height: .96;
}
.hero-copy p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 5px;
  font-weight: 900;
  border: 1px solid var(--line);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { color: #17120b; background: var(--gold); border-color: var(--gold); }
.btn.secondary { background: rgba(255,255,255,.06); }

.hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: end;
}
.feature-poster {
  min-height: 520px;
  border-radius: 7px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.feature-poster img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; transition: transform .45s ease; }
.feature-poster:hover img { transform: scale(1.05); }
.mini-stack { display: grid; gap: 14px; }
.mini-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.mini-card:hover { transform: translateX(-4px); border-color: rgba(244,183,77,.6); background: rgba(244,183,77,.1); }
.mini-card img { width: 92px; aspect-ratio: 2/3; object-fit: cover; border-radius: 4px; }
.mini-card strong { display: block; margin-bottom: 6px; }
.mini-card span { color: var(--muted); font-size: 13px; }

.entry-ribbon {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 6px 0 26px;
}
.entry-ribbon a {
  padding: 16px 12px;
  text-align: center;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  color: var(--text);
  font-weight: 800;
  transition: transform .2s ease, color .2s ease, border-color .2s ease;
}
.entry-ribbon a:hover { transform: translateY(-3px); color: var(--gold); border-color: rgba(244,183,77,.55); }
.intro-band {
  padding: 24px clamp(18px, 3vw, 36px);
  margin-bottom: 34px;
  border-left: 4px solid var(--gold);
  background: linear-gradient(90deg, rgba(244,183,77,.13), rgba(65,214,176,.06));
}
.intro-band p { margin: 0; color: #e2e4e5; line-height: 1.9; }

.section-block { margin: 34px 0; }
.section-block.tight { margin: 0; }
.section-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}
.section-title h1,
.section-title h2 { margin: 4px 0 0; font-size: clamp(25px, 3vw, 40px); }
.section-title a { color: var(--gold); font-weight: 900; }
.section-title.slim h2 { font-size: 26px; }

.rail-grid,
.library-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(65,214,176,.6);
  box-shadow: 0 20px 42px rgba(0,0,0,.35);
}
.poster {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: linear-gradient(135deg, #20252d, #101217);
}
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .35s ease; }
.movie-card:hover img { transform: scale(1.07); filter: saturate(1.12); }
.badge {
  position: absolute;
  left: 9px;
  top: 9px;
  padding: 5px 8px;
  border-radius: 4px;
  color: #111;
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
}
.card-body { padding: 12px; min-height: 116px; }
.card-body h3 { margin: 0 0 8px; font-size: 16px; line-height: 1.35; }
.card-body p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.card-body span { display: block; margin-top: 10px; color: var(--jade); font-weight: 900; font-size: 13px; }

.split-area {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  margin: 36px 0;
}
.story-list { display: grid; gap: 12px; }
.story-item {
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 15px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  transition: transform .2s ease, background .2s ease;
}
.story-item:hover { transform: translateX(5px); background: rgba(255,255,255,.08); }
.story-item img { width: 124px; aspect-ratio: 16/10; object-fit: cover; border-radius: 5px; }
.story-item strong { font-size: 18px; }
.story-item p { margin: 8px 0; color: var(--muted); line-height: 1.7; }
.story-item span { color: var(--gold); font-weight: 800; }
.rank-card {
  padding: 18px;
  background: linear-gradient(180deg, rgba(227,91,115,.18), rgba(255,255,255,.04));
  border: 1px solid var(--line);
  align-self: start;
}
.rank-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.rank-item b { color: var(--gold); font-size: 24px; }
.rank-item strong { display: block; }
.rank-item span { color: var(--muted); font-size: 13px; }

.category-wall {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin: 40px 0 58px;
}
.category-wall a {
  min-height: 132px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(65,214,176,.12), rgba(244,183,77,.08));
  transition: transform .22s ease, border-color .22s ease;
}
.category-wall a:hover { transform: translateY(-5px); border-color: rgba(244,183,77,.55); }
.category-wall strong { font-size: 22px; }
.category-wall span { margin-top: 8px; color: var(--muted); }

.page-head { padding: 54px 0 18px; max-width: 920px; }
.page-head h1 { margin: 8px 0 12px; font-size: clamp(36px, 5vw, 62px); }
.page-head p { color: var(--muted); line-height: 1.9; }
.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(130px, 180px));
  gap: 10px;
  padding: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
}
.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  color: var(--text);
  background: #111318;
  padding: 0 12px;
  outline: 0;
}
.result-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  margin: 20px 0;
}
.result-line strong { color: var(--gold); }

.detail-hero {
  display: grid;
  grid-template-columns: minmax(250px, 380px) 1fr;
  gap: 34px;
  padding: 48px 0 28px;
}
.detail-hero .poster { border: 1px solid var(--line); box-shadow: var(--shadow); }
.detail-copy h1 { margin: 8px 0 14px; font-size: clamp(38px, 5vw, 72px); }
.detail-copy p { color: var(--muted); line-height: 1.9; }
.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 22px 0;
}
.meta-grid div { padding: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.meta-grid span { display: block; color: var(--muted); font-size: 12px; }
.meta-grid strong { display: block; margin-top: 6px; font-size: 18px; }
.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  padding: 42px 0;
}
.screen {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #020203;
  border: 1px solid var(--line);
}
.screen img { width: 100%; height: 100%; object-fit: cover; opacity: .58; filter: blur(1px); }
.play-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
}
.play-mark b {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 0 auto 14px;
  border-radius: 50%;
  color: #101217;
  background: var(--gold);
  font-size: 28px;
}
.play-info,
.side-panel {
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.055);
}
.play-info h1 { margin: 8px 0; }
.episode-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.episode-grid a {
  padding: 10px 8px;
  text-align: center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
}
.episode-grid a:hover,
.episode-grid a.active { color: #111; background: var(--jade); }
.empty { padding: 34px; border: 1px solid var(--line); color: var(--muted); }

.site-footer {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 22px;
  padding: 38px clamp(18px, 5vw, 64px) 28px;
  background: #07080a;
  border-top: 1px solid var(--line);
}
.site-footer h2 { margin: 0 0 10px; }
.site-footer p,
.site-footer a { color: var(--muted); line-height: 1.8; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px; }
.copyright { grid-column: 1 / -1; margin: 12px 0 0; color: #7f8790; }

@media (max-width: 1120px) {
  .site-header { grid-template-columns: auto auto; }
  .main-nav,
  .search { display: none; }
  .nav-toggle {
    justify-self: end;
    display: grid;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.05);
    padding: 9px;
  }
  .nav-toggle i { display: block; height: 2px; background: var(--text); }
  body.nav-open .main-nav,
  body.nav-open .search {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .hero-shell,
  .split-area,
  .detail-hero,
  .watch-layout { grid-template-columns: 1fr; }
  .rail-grid,
  .library-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .category-wall,
  .entry-ribbon { grid-template-columns: repeat(3, 1fr); }
  .filter-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  main { width: min(100% - 22px, 1420px); }
  .hero-stage { grid-template-columns: 1fr; }
  .feature-poster img,
  .feature-poster { min-height: 420px; }
  .rail-grid,
  .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .entry-ribbon,
  .category-wall,
  .filter-panel,
  .site-footer,
  .meta-grid { grid-template-columns: 1fr; }
  .story-item { grid-template-columns: 100px 1fr; }
  .story-item img { width: 100px; }
  .card-body { min-height: 126px; }
}
