:root {
  color-scheme: light;
  --paper: #fbfbf7;
  --ink: #1f2328;
  --muted: #69707a;
  --line: #dfe2e0;
  --red: #d93a2f;
  --green: #006f61;
  --sun: #f2bf27;
  --blue: #2b6dd8;
  --panel: #ffffff;
  --shadow: 0 18px 45px rgba(31, 35, 40, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "Microsoft YaHei", serif;
  letter-spacing: 0;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr minmax(220px, 320px);
  align-items: center;
  gap: 22px;
  padding: 14px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 251, 247, .92);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Microsoft YaHei", sans-serif;
  font-weight: 900;
}
.brand span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: var(--red);
}
.brand strong { font-size: 22px; }
.nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}
.nav a {
  padding: 9px 12px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  font-family: "Microsoft YaHei", sans-serif;
  font-size: 14px;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--red);
  border-bottom-color: var(--red);
}
.search {
  display: grid;
  grid-template-columns: 1fr auto;
  border: 1px solid var(--ink);
  background: var(--panel);
  min-width: 0;
}
.search input,
.search button {
  height: 38px;
  border: 0;
  background: transparent;
  font: 14px/1.2 "Microsoft YaHei", sans-serif;
}
.search input { min-width: 0; padding: 0 12px; outline: none; }
.search button {
  padding: 0 14px;
  color: #fff;
  background: var(--ink);
  cursor: pointer;
}
.nav-toggle { display: none; }

main {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}
.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  min-height: 530px;
  gap: 28px;
  padding: 34px 0 24px;
  border-bottom: 3px solid var(--ink);
}
.hero-card {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: #111;
}
.hero-card img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  transition: transform .45s ease;
}
.hero-card:hover img { transform: scale(1.035); }
.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(24px, 5vw, 46px);
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .78));
}
.hero-copy span,
.section-head span,
.archive-head span {
  display: inline-block;
  color: var(--red);
  font: 800 13px/1 "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}
.hero-copy h1 {
  margin: 10px 0 12px;
  max-width: 680px;
  font-size: clamp(36px, 6vw, 78px);
  line-height: .98;
  letter-spacing: 0;
}
.hero-copy p { max-width: 680px; margin: 0 0 22px; line-height: 1.8; }
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  color: #fff;
  background: var(--red);
  font: 700 14px/1 "Microsoft YaHei", sans-serif;
}
.hero-side {
  display: grid;
  gap: 14px;
}
.side-ticket {
  display: grid;
  grid-template-columns: 110px 1fr;
  min-height: 152px;
  border: 1px solid var(--ink);
  background: var(--panel);
  transition: transform .2s ease, box-shadow .2s ease;
}
.side-ticket:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.side-ticket img {
  width: 110px;
  height: 100%;
  object-fit: cover;
}
.side-ticket div { padding: 14px; }
.side-ticket b {
  display: block;
  margin-bottom: 7px;
  font-size: 19px;
  line-height: 1.25;
}
.side-ticket p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 13px; }

.intro {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.intro p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}
.quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.quick-links a,
.filters a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--green);
  font: 700 13px/1 "Microsoft YaHei", sans-serif;
}
.quick-links a:hover,
.filters a:hover {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}
.layout-two {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 24px;
  margin: 28px 0;
}
.panel {
  margin: 28px 0;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}
.section-head h1,
.section-head h2 {
  grid-column: 1;
  margin: 6px 0 0;
  font-size: clamp(24px, 3.3vw, 42px);
  line-height: 1.1;
}
.section-head a {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: var(--blue);
  font: 800 14px/1 "Microsoft YaHei", sans-serif;
}
.section-head.compact {
  display: block;
  margin-bottom: 12px;
}
.section-head.compact h2 { font-size: 26px; }
.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.wide-card,
.movie-card {
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: #fff;
  transition: transform .22s ease, box-shadow .22s ease;
}
.wide-card:hover,
.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.wide-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.wide-card div,
.movie-card div { padding: 13px; }
.wide-card h3,
.movie-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.2;
}
.wide-card p,
.movie-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.meta span {
  padding: 4px 7px;
  color: var(--ink);
  background: #f2f4f5;
  font: 700 12px/1 "Microsoft YaHei", sans-serif;
}
.rank-panel {
  margin: 28px 0;
  padding: 18px;
  color: #fff;
  background: var(--ink);
}
.rank-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.rank-item b { color: var(--sun); font-size: 24px; }
.rank-item strong { display: block; margin-bottom: 4px; }
.rank-item span span { color: rgba(255, 255, 255, .7); font-size: 13px; }
.rank-item:hover strong { color: var(--sun); }

.mosaic,
.library-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.movie-card img {
  width: 100%;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
}
.movie-card .badge {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 5px 7px;
  color: #fff;
  background: var(--red);
  font: 800 12px/1 "Microsoft YaHei", sans-serif;
}
.movie-card h3 { font-size: 16px; }
.movie-card:focus-within { outline: 3px solid rgba(43, 109, 216, .35); }
.story-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.story-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  min-height: 120px;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform .22s ease, box-shadow .22s ease;
}
.story-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow);
}
.story-item img {
  width: 160px;
  height: 100%;
  object-fit: cover;
}
.story-item div { padding: 14px; }
.story-item strong { display: block; margin-bottom: 7px; font-size: 20px; }
.story-item p { margin: 0 0 8px; color: var(--muted); line-height: 1.65; }
.story-item span { color: var(--green); font: 800 13px/1 "Microsoft YaHei", sans-serif; }

.archive-head {
  padding: 54px 0 22px;
  border-bottom: 3px solid var(--ink);
}
.archive-head h1 {
  margin: 8px 0 12px;
  font-size: clamp(38px, 7vw, 84px);
  line-height: .95;
}
.archive-head p { max-width: 780px; margin: 0; color: var(--muted); line-height: 1.8; }
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 0 0;
}
.library-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.library-grid.related { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.detail-shell {
  display: grid;
  grid-template-columns: minmax(260px, 390px) 1fr;
  gap: 34px;
  padding: 42px 0 10px;
}
.detail-poster {
  border: 1px solid var(--ink);
  background: #fff;
}
.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4.2;
  object-fit: cover;
}
.detail-copy {
  align-self: center;
  padding: 12px 0;
}
.detail-copy .eyebrow { color: var(--red); font: 800 14px/1 "Microsoft YaHei", sans-serif; }
.detail-copy h1 {
  margin: 12px 0;
  font-size: clamp(40px, 7vw, 90px);
  line-height: .95;
}
.detail-copy p { max-width: 760px; color: var(--muted); line-height: 1.85; font-size: 17px; }
.detail-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}
.detail-meta span {
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: "Microsoft YaHei", sans-serif;
}
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.detail-actions a {
  padding: 13px 18px;
  color: #fff;
  background: var(--red);
  font: 800 14px/1 "Microsoft YaHei", sans-serif;
}
.detail-actions a.secondary { color: var(--ink); background: var(--sun); }

.watch-shell {
  padding: 38px 0 10px;
}
.player {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  border: 1px solid var(--ink);
  background: #fff;
}
.screen {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: #111;
}
.screen img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  opacity: .82;
}
.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(217, 58, 47, .92);
}
.play-mark::after {
  content: "";
  position: absolute;
  left: 34px;
  top: 25px;
  border-left: 24px solid #fff;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
}
.watch-info {
  padding: 24px;
  border-left: 1px solid var(--ink);
}
.watch-info h1 { margin: 8px 0 12px; font-size: 34px; line-height: 1.12; }
.watch-info p { color: var(--muted); line-height: 1.8; }
.episode-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 18px;
}
.episode-list a {
  padding: 11px 8px;
  text-align: center;
  border: 1px solid var(--line);
  font: 800 13px/1 "Microsoft YaHei", sans-serif;
}
.episode-list a:hover { color: #fff; background: var(--green); border-color: var(--green); }

.footer {
  width: min(1220px, calc(100% - 32px));
  margin: 42px auto 0;
  padding: 28px 0 38px;
  border-top: 3px solid var(--ink);
  color: var(--muted);
}
.footer strong {
  display: block;
  color: var(--ink);
  font-size: 28px;
  margin-bottom: 10px;
}
.footer p { margin: 8px 0; line-height: 1.8; }
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 18px 0;
}
.footer a { color: var(--green); font-weight: 800; }

@media (max-width: 1020px) {
  .topbar { grid-template-columns: auto auto 1fr; }
  .nav-toggle {
    display: inline-grid;
    gap: 4px;
    width: 38px;
    height: 38px;
    place-content: center;
    border: 1px solid var(--ink);
    background: #fff;
  }
  .nav-toggle i { display: block; width: 18px; height: 2px; background: var(--ink); }
  .nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 70px;
    padding: 12px;
    border: 1px solid var(--ink);
    background: #fff;
  }
  .nav-open .nav { display: grid; grid-template-columns: repeat(2, 1fr); }
  .masthead,
  .layout-two,
  .detail-shell,
  .player { grid-template-columns: 1fr; }
  .intro { grid-template-columns: 1fr; }
  .quick-links { justify-content: flex-start; }
  .mosaic,
  .library-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .watch-info { border-left: 0; border-top: 1px solid var(--ink); }
}

@media (max-width: 720px) {
  main,
  .footer { width: min(100% - 22px, 1220px); }
  .topbar {
    grid-template-columns: auto auto;
    gap: 10px;
  }
  .search { grid-column: 1 / -1; }
  .brand strong { font-size: 20px; }
  .masthead { min-height: 0; padding-top: 18px; }
  .hero-card,
  .hero-card img { min-height: 420px; }
  .hero-copy h1 { font-size: 42px; }
  .side-ticket { grid-template-columns: 96px 1fr; min-height: 132px; }
  .side-ticket img { width: 96px; }
  .feature-strip,
  .story-list { grid-template-columns: 1fr; }
  .mosaic,
  .library-grid,
  .library-grid.related { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .panel { padding: 16px; }
  .section-head { grid-template-columns: 1fr; }
  .section-head a { grid-column: 1; grid-row: auto; }
  .story-item { grid-template-columns: 112px 1fr; }
  .story-item img { width: 112px; }
  .detail-meta { grid-template-columns: repeat(2, 1fr); }
  .screen,
  .screen img { min-height: 330px; }
}
