:root {
  color-scheme: light;
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  --bg: #f4efe6;
  --paper: #fffaf1;
  --paper-2: #f9f0df;
  --ink: #17130f;
  --muted: #776c5f;
  --soft: rgba(23,19,15,.1);
  --line: rgba(23,19,15,.18);
  --red: #b91f2b;
  --red-2: #e5484d;
  --gold: #b9822d;
  --green: #236d5d;
  --blue: #1f4e79;
  --shadow: 0 24px 60px rgba(69,45,25,.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(185,31,43,.055) 1px, transparent 1px 48px),
    linear-gradient(0deg, rgba(31,78,121,.045) 1px, transparent 1px 48px),
    radial-gradient(circle at 16% 0, rgba(185,31,43,.14), transparent 24rem),
    radial-gradient(circle at 92% 10%, rgba(35,109,93,.13), transparent 26rem),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
h1, h2, h3, p, figure { margin-top: 0; }
button, select { font: inherit; }

.masthead {
  width: min(1480px, calc(100% - 28px));
  margin: 18px auto 0;
  min-height: 72px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  background: rgba(255,250,241,.86);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(69,45,25,.12);
  position: sticky;
  top: 12px;
  z-index: 20;
  backdrop-filter: blur(18px);
}
.brand {
  min-height: 50px;
  padding: 7px 16px;
  display: grid;
  align-content: center;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
}
.brand strong {
  font-size: 1.5rem;
  line-height: 1;
}
.brand span {
  margin-top: 4px;
  color: #f7c96d;
  font-size: .72rem;
  font-weight: 900;
}
.masthead nav {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.masthead nav a {
  min-height: 38px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  border-radius: 999px;
  white-space: nowrap;
  font-weight: 900;
}
.masthead nav a.active,
.masthead nav a:hover {
  color: #fff;
  background: var(--red);
}

.magazine {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: clamp(18px, 2.3vw, 34px);
  display: grid;
  gap: clamp(18px, 2.1vw, 30px);
}
.cover {
  min-height: 650px;
  display: grid;
  grid-template-columns: .78fr .92fr 330px;
  grid-template-rows: auto 1fr;
  gap: 16px;
  align-items: stretch;
}
.cover-label {
  grid-column: 1 / -1;
  min-height: 54px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.cover-label p {
  margin: 0;
  font-weight: 900;
}
.cover-label b {
  color: #ffe5a7;
  font-size: 1.35rem;
}
.cover-copy,
.cover-poster,
.cover-note,
.section,
.library-cover,
.filter-strip,
.detail-stage,
.footer {
  background: rgba(255,250,241,.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.cover-copy {
  padding: clamp(26px, 5vw, 72px);
  display: grid;
  align-content: center;
  position: relative;
  overflow: hidden;
}
.cover-copy::before {
  content: "";
  position: absolute;
  inset: 22px 22px auto auto;
  width: 108px;
  height: 108px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 29px, var(--red) 30px 32px, transparent 33px),
    radial-gradient(circle, transparent 0 48px, rgba(23,19,15,.18) 49px 50px, transparent 51px);
  opacity: .55;
}
.eyebrow {
  margin-bottom: 10px;
  color: var(--red);
  font-size: .74rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.55rem, 5.1vw, 5.2rem);
  line-height: 1;
}
h2 {
  margin-bottom: 0;
  font-size: clamp(1.22rem, 1.85vw, 1.85rem);
  line-height: 1.14;
}
h3 { line-height: 1.18; }
.cover-copy p,
.cover-note p,
.section p,
.library-cover p,
.detail-copy p,
.footer p,
.rank-row small {
  color: var(--muted);
  line-height: 1.76;
}
.hero-stats {
  margin: 8px 0 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.hero-stats span {
  padding: 12px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 900;
}
.hero-stats b {
  display: block;
  color: var(--ink);
  font-size: 1.55rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.action,
.ghost {
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 950;
}
.action {
  color: #fff;
  background: var(--ink);
}
.ghost {
  color: var(--red);
  background: #fff;
  border: 1px solid var(--line);
}
.cover-poster {
  padding: 12px;
  background: var(--ink);
}
.cover-poster a {
  position: relative;
  display: block;
  height: 100%;
  min-height: 560px;
  overflow: hidden;
  border-radius: 14px;
}
.cover-poster img {
  height: 100%;
  object-fit: cover;
}
.cover-poster span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 12px 14px;
  color: #fff;
  background: rgba(23,19,15,.82);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  font-weight: 950;
  backdrop-filter: blur(10px);
}
.cover-note {
  padding: clamp(22px, 3vw, 42px);
  display: grid;
  align-content: end;
  background:
    linear-gradient(180deg, rgba(255,250,241,.9), rgba(255,250,241,.98)),
    linear-gradient(135deg, var(--paper-2), #fff);
}
.cover-note h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.channel-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.channel-rail a {
  min-height: 120px;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px;
  gap: 12px;
  align-items: center;
  background: rgba(255,250,241,.9);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(69,45,25,.1);
}
.channel-rail strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.12rem;
}
.channel-rail span {
  color: var(--muted);
  font-size: .86rem;
}
.channel-rail img {
  width: 62px;
  height: 86px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(23,19,15,.18);
}

.paper-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 16px;
}
.section {
  padding: clamp(16px, 2vw, 24px);
}
.section-head {
  margin-bottom: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}
.section-head a {
  color: var(--red);
  font-weight: 950;
}
.poster-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.mixed-grid {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}
.poster-card,
.strip-card {
  background: #fff;
  border: 1px solid rgba(23,19,15,.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(69,45,25,.1);
  transition: transform .18s ease, box-shadow .18s ease;
}
.poster-card:hover,
.strip-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(69,45,25,.18);
}
.poster-card a { display: grid; }
.poster-card figure,
.strip-card figure {
  position: relative;
  margin: 0;
  background: #e7dcc8;
}
.poster-card img {
  aspect-ratio: 3 / 4.18;
  object-fit: cover;
}
.poster-card figcaption,
.strip-card figcaption {
  position: absolute;
  top: 9px;
  right: 9px;
  padding: 5px 8px;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 950;
}
.poster-card div {
  min-height: 110px;
  padding: 11px;
}
.poster-card span,
.strip-card span {
  color: var(--green);
  font-size: .76rem;
  font-weight: 950;
}
.poster-card h3,
.strip-card h3 {
  margin: 6px 0 5px;
  font-size: .98rem;
}
.poster-card p,
.strip-card p {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: .82rem;
}
.poster-card em,
.strip-card em {
  color: var(--gold);
  font-style: normal;
  font-size: .8rem;
  font-weight: 950;
}

.rank-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 44px;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--soft);
}
.rank-row b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 50%;
  font-size: .75rem;
}
.rank-row span {
  min-width: 0;
  display: grid;
  gap: 2px;
  font-weight: 950;
}
.rank-row small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-row i {
  justify-self: end;
  color: var(--red);
  font-style: normal;
  font-weight: 950;
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.strip-card a {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
}
.strip-card img {
  height: 126px;
  object-fit: cover;
}
.strip-card div { padding: 11px; }

.library-cover {
  min-height: 320px;
  padding: clamp(26px, 5vw, 66px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 24px;
  align-items: end;
  background:
    linear-gradient(135deg, rgba(255,250,241,.92), rgba(249,240,223,.95)),
    var(--paper);
}
.library-cover h1 {
  font-size: clamp(2.35rem, 5vw, 5.2rem);
}
.library-cover strong {
  padding: 18px;
  color: #fff;
  background: var(--red);
  border-radius: 18px;
  font-size: 1.58rem;
}
.filter-strip {
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 12px;
  align-items: center;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filters button,
.filter-strip select {
  min-height: 38px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 950;
}
.filters button.active {
  color: #fff;
  background: var(--red);
}
.filter-strip label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-weight: 950;
}
.library-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.library-grid .strip-card {
  grid-column: span 2;
}

.detail-stage {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(300px, .46fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 44px);
  padding: clamp(16px, 2vw, 24px);
}
.detail-poster {
  margin: 0;
  background: #e7dcc8;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(69,45,25,.18);
}
.detail-poster img {
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}
.detail-copy {
  padding: clamp(24px, 5vw, 64px);
  display: grid;
  align-content: center;
}
.detail-copy h1 {
  font-size: clamp(2.35rem, 4.8vw, 5rem);
}
.sub {
  color: var(--red) !important;
  font-size: 1.08rem;
  font-weight: 950;
}
.facts {
  margin: 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.facts span {
  padding: 8px 11px;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  font-weight: 950;
}
.related-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.footer {
  width: min(1480px, calc(100% - 28px));
  margin: 0 auto 28px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 18px;
}
.footer strong { font-size: 1.4rem; }
.footer h3 {
  margin-bottom: 8px;
  color: var(--red);
}
.footer a {
  display: block;
  margin: 5px 0;
  color: var(--muted);
  font-weight: 900;
}

@media (max-width: 1280px) {
  .cover,
  .paper-layout,
  .library-cover,
  .detail-stage {
    grid-template-columns: 1fr;
  }
  .cover {
    min-height: auto;
  }
  .poster-grid,
  .mixed-grid,
  .library-grid,
  .related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .channel-rail,
  .strip-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .masthead {
    grid-template-columns: 1fr;
    border-radius: 22px;
  }
  .masthead nav {
    justify-content: flex-start;
  }
  .cover-label {
    border-radius: 18px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-block: 14px;
  }
  .filter-strip,
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .poster-grid,
  .mixed-grid,
  .library-grid,
  .related-grid,
  .channel-rail,
  .strip-grid,
  .footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  h1 { font-size: 2.55rem; }
}

@media (max-width: 520px) {
  .magazine { padding-inline: 10px; }
  .poster-grid,
  .mixed-grid,
  .library-grid,
  .related-grid,
  .channel-rail,
  .strip-grid,
  .footer {
    grid-template-columns: 1fr;
  }
  .cover-copy,
  .library-cover,
  .detail-copy {
    padding: 22px;
  }
  .cover-poster a,
  .detail-poster img {
    min-height: 420px;
  }
}
