/* ==========================================================================
   毒舌影视 · dsyingshi.cn
   Visual system: deep forest green + acid lime on warm paper white.
   Layout rhythm intentionally mirrors a clean editorial streaming portal.
   ========================================================================== */

:root {
  --brand: #0b6b53;
  --brand-2: #0e8064;
  --deep: #074b3a;
  --acid: #d8f36b;
  --acid-deep: #bfe249;
  --ink: #14201b;
  --muted: #6b7770;
  --line: #e1ebe5;
  --wash: #eef8f2;
  --paper: #ffffff;
  --night: #0b1a14;
  --night-2: #10251d;
  --danger: #b44832;
  --radius: 8px;
  --shadow: 0 20px 55px rgba(8, 55, 41, 0.10);
  --shadow-soft: 0 10px 30px rgba(8, 55, 41, 0.07);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 22px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #eaf7ef 0, #f8fcf9 210px, #fff 470px);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", sans-serif;
  font-size: 14px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { display: block; width: 100%; height: auto; object-fit: cover; }
svg { width: 18px; height: 18px; vertical-align: middle; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #9ad7bd;
  outline-offset: 3px;
}

a:hover { color: var(--brand); }

h1, h2, h3, p { margin-top: 0; }

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--acid);
  color: var(--night);
  font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--night); }

/* —— Masthead ——————————————————————————————————————————————————— */
.mast {
  border-bottom: 1px solid #e3eee8;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(130%) blur(10px);
}

.navline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 82px;
}

.navgroup {
  display: flex;
  justify-content: center;
  gap: 26px;
}
.navgroup:first-child { justify-content: flex-start; }
.navgroup:last-child { justify-content: flex-end; }
.navgroup a {
  position: relative;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  color: #31423a;
}
.navgroup a:hover { color: var(--brand); }
.navgroup a.active { color: var(--brand); }
.navgroup a.active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -9px;
  width: 18px; height: 3px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: var(--acid-deep);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--brand);
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 1.5px;
  line-height: 1;
  white-space: nowrap;
}
.brand:hover { color: var(--deep); }
.brandmark {
  display: block;
  width: 38px;
  height: 38px;
  flex: none;
  object-fit: contain;
}

/* —— Utility / search ————————————————————————————————————————————— */
.utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
}
.utility p,
.utility-title {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .02em;
  line-height: 1.65;
}
.utility p strong,
.utility-title strong { color: var(--brand); font-weight: 700; }

.search {
  display: flex;
  width: 340px;
  background: #fff;
  border: 1px solid #dbe8e1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(10, 66, 49, .04);
}
.search:focus-within { border-color: #9acbb9; box-shadow: 0 0 0 4px rgba(11, 107, 83, .07); }
.search input {
  width: 100%;
  min-width: 0;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 13px;
}
.search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  border: 0;
  background: var(--brand);
  color: #fff;
  padding: 0;
}
.search button:hover { background: var(--deep); }

/* —— Buttons —————————————————————————————————————————————————— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 15px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn:hover { background: var(--deep); color: #fff; }
.btn svg { width: 16px; height: 16px; }

.btn-acid {
  background: var(--acid);
  color: var(--night);
  border-color: var(--acid);
}
.btn-acid:hover { background: #e6ffa1; color: var(--night); border-color: #e6ffa1; }

.btn-ghost {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .42);
}
.btn-ghost:hover { background: #fff; color: var(--night); border-color: #fff; }

.btn-outline {
  background: #fff;
  color: var(--brand);
  border-color: #cfe4da;
}
.btn-outline:hover { color: var(--deep); border-color: var(--brand); background: var(--wash); }

.btn-lg { min-height: 44px; padding: 11px 20px; font-size: 14px; border-radius: 6px; }
.btn-lg svg { width: 19px; height: 19px; }

/* —— Hero ————————————————————————————————————————————————————— */
.spotlight {
  position: relative;
  min-height: 300px;
  border-radius: 10px;
  overflow: hidden;
  background: #15231d;
  color: #fff;
  box-shadow: var(--shadow);
}
.heroimage {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: .64;
  filter: saturate(.92);
  transition: opacity .35s ease;
}
.spotlight.is-switching .heroimage { opacity: .38; }
.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 24, 17, .97) 0, rgba(5, 24, 17, .78) 44%, rgba(5, 24, 17, .12) 100%),
    linear-gradient(0deg, rgba(5, 24, 17, .40), transparent 55%);
}
.featurecopy {
  position: relative;
  z-index: 1;
  max-width: 690px;
  padding: 31px 36px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--acid);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
}
.eyebrow svg { width: 15px; height: 15px; }
.featurecopy h2 {
  margin: 10px 0 8px;
  font-size: 34px;
  line-height: 1.22;
  letter-spacing: .04em;
  color: #fff;
}
.filmmeta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 9px;
  color: #dbe7e0;
  font-size: 12px;
}
.score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--brand);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.filmmeta .score { color: var(--acid); }
.score svg { width: 15px; height: 15px; }
.featurecopy p {
  max-width: 610px;
  margin: 0 0 17px;
  color: #d7e3dc;
  font-size: 13px;
  line-height: 1.8;
}
.hero-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 3px;
  color: #b9cbc1;
  font-size: 11px;
}
.hero-note .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--acid); }
.herocontrol {
  position: absolute;
  right: 20px; bottom: 17px;
  z-index: 2;
  display: flex;
  gap: 7px;
}
.herocontrol button {
  width: 28px; height: 26px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 4px;
  background: rgba(255, 255, 255, .09);
  color: #fff;
  font-size: 12px;
  line-height: 1;
}
.herocontrol button[aria-pressed="true"] {
  background: var(--acid);
  border-color: var(--acid);
  color: var(--night);
  font-weight: 800;
}

/* —— Quick links ————————————————————————————————————————————— */
.quickline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.quickline > span { color: #87948d; }
.quickline a {
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--wash);
  color: #2b6b55;
}
.quickline a:hover { background: #def1e6; color: var(--deep); }

/* —— Sections ——————————————————————————————————————————————— */
.section { margin-top: 30px; }
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.heading h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: .01em;
}
.heading h2::before {
  content: "";
  display: inline-block;
  width: 4px; height: 18px;
  margin-right: 9px;
  border-radius: 2px;
  background: var(--brand);
  vertical-align: -2px;
}
.heading > span,
.heading .more {
  color: var(--muted);
  font-size: 12px;
}
.heading .more:hover { color: var(--brand); }

/* —— Poster grid ————————————————————————————————————————————— */
.posters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 12px;
}
.poster { min-width: 0; }
.poster > a { display: block; }
.posterpic {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  background: #e8f0eb;
  box-shadow: 0 2px 10px rgba(8, 45, 32, .05);
}
.posterpic img {
  height: 100%;
  transition: transform .3s ease, filter .3s ease;
}
.poster:hover .posterpic img { transform: scale(1.045); filter: brightness(1.05); }
.posterpic::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(0deg, rgba(4, 22, 15, .32), transparent);
  pointer-events: none;
}
.state {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: calc(100% - 16px);
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .93);
  color: #295f4e;
  font-size: 10px;
  line-height: 1.6;
  white-space: nowrap;
}
.state svg { width: 12px; height: 12px; }
.posterscore {
  position: absolute;
  right: 7px; bottom: 7px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(7, 33, 23, .82);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(2px);
}
.posterscore svg { width: 12px; height: 12px; color: var(--acid); }
.poster h3 {
  margin: 8px 0 2px;
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.poster p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* —— Feature streams ———————————————————————————————————————— */
.flows {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
}
.stream {
  display: flex;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  background: var(--paper);
  transition: box-shadow .2s, transform .2s;
}
.stream:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.stream > img { width: 39%; min-height: 150px; max-height: 184px; }
.streambody {
  flex: 1;
  min-width: 0;
  padding: 13px;
}
.stream h3 { margin: 0 0 4px; font-size: 16px; }
.stream p { margin: 5px 0 10px; color: var(--muted); font-size: 12px; }
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: #39725e;
  font-size: 11px;
}
.tags span { padding: 1px 7px; border-radius: 3px; background: var(--wash); }

/* —— Genre tabs / channels ————————————————————————————————— */
.tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.tabs button {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: #67766e;
  padding: 5px 15px;
  font-size: 12px;
}
.tabs button:hover { border-color: #b9d8ca; color: var(--brand); }
.tabs button[aria-selected="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 700;
}
.channelintro { margin: -2px 0 12px; color: var(--muted); font-size: 12px; }
.channels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.channelcard {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-left: 3px solid #83b89f;
  border-radius: var(--radius);
  background: #fff;
}
.channelcard img { width: 104px; height: 78px; border-radius: 4px; }
.channelcard h3 { margin: 0 0 3px; font-size: 14px; }
.channelcard p { margin: 0; color: var(--muted); font-size: 12px; }
.channelcard p + p { margin-top: 1px; }
[hidden] { display: none !important; }

/* —— Rankings ——————————————————————————————————————————————— */
.rankgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.rankbox {
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  background: #fff;
}
.rankbox:nth-child(2) { border-left-color: #9ab86b; }
.rankbox:nth-child(3) { border-left-color: #d0b36a; }
.rankbox h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  font-size: 15px;
}
.rankbox h3 svg { color: var(--brand); }
.rankbox ol { list-style: none; padding: 0; margin: 0; }
.rankbox li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  border-top: 1px solid #eef4f0;
  font-size: 12px;
}
.ranknum {
  width: 24px;
  color: #86a294;
  font-size: 16px;
  font-style: italic;
  font-weight: 800;
}
.rankbox li:first-child .ranknum { color: var(--brand); }
.rankbox li a { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rankvalue { color: var(--muted); font-size: 11px; white-space: nowrap; }

.ranklist {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.rankrow {
  display: grid;
  grid-template-columns: 28px 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 9px 13px;
  border-top: 1px solid #eef4f0;
}
.rankrow:first-child { border-top: 0; }
.rankrow .ranknum { width: auto; font-size: 18px; }
.rankposter img { width: 48px; height: 64px; border-radius: 4px; }
.rankcopy { min-width: 0; }
.rankcopy h3 { margin: 0 0 2px; font-size: 14px; }
.rankcopy p { margin: 0; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rankscore { display: inline-flex; align-items: center; gap: 3px; margin-top: 3px; color: var(--brand); font-size: 12px; font-weight: 700; }
.rankscore svg { width: 13px; height: 13px; }
.rankstatus { color: var(--muted); font-size: 11px; white-space: nowrap; }

.searchstatus { margin: 9px 0 0; color: var(--brand); font-size: 12px; }

/* —— Upcoming ——————————————————————————————————————————————— */
.soon {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 3px solid #7dad96;
  border-radius: var(--radius);
  background: #fff;
}
.preview img { height: 104px; }
.previewbody { padding: 10px; }
.preview h3 { margin: 0 0 4px; font-size: 14px; }
.preview p { margin: 3px 0; color: var(--muted); font-size: 11px; }
.countdown {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  color: var(--brand);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.countdown svg { width: 14px; height: 14px; }

/* —— News —————————————————————————————————————————————————— */
.newsgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.news {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 3px solid #92bca8;
  border-radius: var(--radius);
  background: #fff;
  transition: box-shadow .2s;
}
.news:hover { box-shadow: var(--shadow-soft); }
.news img { width: 96px; height: 82px; border-radius: 4px; flex: none; }
.news h3 { margin: 0 0 4px; font-size: 13px; line-height: 1.6; }
.news p { margin: 0; color: var(--muted); font-size: 12px; }
.news time { color: #92a099; font-size: 10px; }

/* —— App download panel ————————————————————————————————————— */
.download-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 34px;
  padding: 30px;
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(circle at 82% 18%, rgba(216, 243, 107, .18), transparent 30%),
    linear-gradient(120deg, #081711 0, #0d2a20 56%, #103b2b 100%);
  color: #fff;
  box-shadow: var(--shadow);
}
.download-panel::before {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  right: -120px; bottom: -190px;
  border: 1px solid rgba(216, 243, 107, .23);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(216, 243, 107, .035), 0 0 0 84px rgba(216, 243, 107, .025);
  pointer-events: none;
}
.download-copy { position: relative; z-index: 1; }
.download-copy .eyebrow { font-size: 11px; }
.download-copy h2 {
  margin: 8px 0 7px;
  color: #fff;
  font-size: 28px;
  line-height: 1.3;
}
.download-copy p { max-width: 560px; margin: 0 0 14px; color: #bfd1c7; font-size: 13px; }
.dl-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.dl-badges span {
  padding: 3px 9px;
  border: 1px solid rgba(216, 243, 107, .24);
  border-radius: 20px;
  color: #dceccb;
  font-size: 11px;
}
.dl-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.qrbox {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  background: rgba(255, 255, 255, .94);
  color: var(--night);
}
.qrbox img { width: 126px; height: 126px; border-radius: 4px; }
.qrbox strong { display: block; margin-bottom: 4px; font-size: 14px; }
.qrbox p { margin: 0; color: #5a6d63; font-size: 11px; line-height: 1.7; }

/* —— SEO intro / about app ————————————————————————————————— */
.aboutapp {
  margin-top: 30px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f7fcf9, #eef8f2);
}
.aboutapp h2 { margin: 0 0 10px; font-size: 20px; }
.aboutapp h2::before {
  content: "";
  display: inline-block;
  width: 4px; height: 18px;
  margin-right: 9px;
  border-radius: 2px;
  background: var(--brand);
  vertical-align: -2px;
}
.aboutapp p { margin: 0 0 8px; color: #5f6f67; font-size: 13px; line-height: 1.9; }
.aboutapp p:last-child { margin-bottom: 0; }
.aboutapp a { color: var(--brand); font-weight: 700; }

/* —— FAQ ——————————————————————————————————————————————————— */
.faq {
  padding: 0 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  background: #fff;
}
.faq details + details { border-top: 1px solid var(--line); }
.faq summary {
  padding: 13px 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.faq summary:hover { color: var(--brand); }
.faq details p { margin: 0 0 15px; color: var(--muted); font-size: 12px; line-height: 1.85; }
.notice { margin-top: 13px; color: #8a978f; font-size: 11px; }

/* —— Footer ——————————————————————————————————————————————— */
.footer {
  margin-top: 38px;
  padding: 28px 0 24px;
  border-top: 1px solid var(--line);
  background: #f7fbf8;
  color: var(--muted);
  font-size: 12px;
}
.footgrid { display: grid; gap: 20px; }
.footgrid h3 { margin: 0 0 7px; color: var(--ink); font-size: 14px; }
.footgrid p { margin: 0; line-height: 1.85; }
.footlinks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footlinks a:hover { color: var(--brand); }
.copyright {
  margin-top: 19px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.9;
}
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
.legal-links a { color: #7d8b83; }
.legal-links a:hover { color: var(--brand); }

/* —— Interior page header ————————————————————————————————— */
.pagehead {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: #fff;
}
.pagehead img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: .38;
  filter: saturate(.85);
}
.pagehead::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 24, 17, .95), rgba(5, 24, 17, .63) 60%, rgba(5, 24, 17, .35));
}
.pagehead .wrap {
  position: relative;
  z-index: 1;
  padding: 46px 0 42px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
  color: #adc3b6;
  font-size: 12px;
}
.breadcrumb a:hover { color: var(--acid); }
.breadcrumb span { color: #6f8c7d; }
.pagehead .kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  color: var(--acid);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
}
.pagehead h1 {
  max-width: 800px;
  margin: 0 0 9px;
  font-size: 35px;
  line-height: 1.25;
  letter-spacing: .03em;
}
.pagehead .lede {
  max-width: 720px;
  margin: 0 0 16px;
  color: #c8d8ce;
  font-size: 13px;
  line-height: 1.85;
}
.pagehead .hero-actions { gap: 8px; }
.pagehead .meta-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.pagehead .meta-chips span {
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 20px;
  color: #c5d7cc;
  font-size: 11px;
}
.pagehead.compact .wrap { padding: 38px 0 34px; }
.pagehead.compact h1 { font-size: 30px; }

/* —— Category pages ————————————————————————————————————————— */
.filterbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button {
  padding: 4px 12px;
  border: 1px solid #dde9e2;
  border-radius: 20px;
  background: #fff;
  color: #63746a;
  font-size: 12px;
}
.filters button:hover { border-color: #a9cdbd; color: var(--brand); }
.filters button.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.resultcount { color: var(--muted); font-size: 11px; white-space: nowrap; }
.posters-page { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.empty-state {
  margin: 20px 0;
  padding: 26px;
  border: 1px dashed #c9ded3;
  border-radius: var(--radius);
  background: #fbfdfb;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}
.section-tight { margin-top: 22px; }

/* —— Detail page ————————————————————————————————————————————— */
.detailhead { position: relative; background: var(--night); color: #fff; overflow: hidden; }
.detailhead > img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .30; filter: blur(1px) saturate(.8); }
.detailhead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,24,17,.96), rgba(5,24,17,.75)); }
.detailhead .wrap { position: relative; z-index: 1; padding: 34px 0 30px; }
.detailgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
}
.detailposter {
  width: min(250px, 64vw);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .35);
}
.detailposter img { aspect-ratio: 2 / 3; }
.detailcopy h1 { margin: 8px 0 7px; font-size: 36px; line-height: 1.2; }
.detailmeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  color: #c3d6ca;
  font-size: 12px;
}
.detailmeta .score { color: var(--acid); font-size: 15px; }
.detailmeta .score svg { width: 17px; height: 17px; }
.detailtags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 14px; }
.detailtags span {
  padding: 2px 9px;
  border: 1px solid rgba(216, 243, 107, .25);
  border-radius: 20px;
  color: #d6e8dc;
  font-size: 11px;
}
.detailcopy .lede { max-width: 680px; margin: 0 0 17px; color: #c5d6cc; font-size: 13px; line-height: 1.9; }
.detailbody { padding: 28px 0 0; }
.detailbody .article-body { max-width: 860px; }
.detail-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin: 6px 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}
.detail-facts div { padding: 12px 14px; background: #fff; font-size: 12px; }
.detail-facts dt { color: var(--muted); font-size: 11px; }
.detail-facts dd { margin: 2px 0 0; font-weight: 600; }

/* —— Editorial article ————————————————————————————————————— */
.articlehead { background: var(--night); color: #fff; }
.articlehead .wrap { padding: 42px 0 36px; }
.articlehead h1 { max-width: 900px; margin: 8px 0 11px; font-size: 34px; line-height: 1.35; }
.articlehead .lede { max-width: 780px; margin: 0; color: #c2d3c9; font-size: 13px; line-height: 1.9; }
.articlebyline { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 15px; color: #9eb5a8; font-size: 11px; }
.article-wrap { max-width: 860px; margin-inline: auto; }
.article-cover { margin: 24px 0 0; border-radius: 10px; overflow: hidden; }
.article-cover img { aspect-ratio: 16 / 8; }
.article-cover figcaption { padding: 7px 10px; background: #f5faf7; color: #85948b; font-size: 11px; }
.article-body { padding: 22px 0 0; font-size: 15px; line-height: 1.95; color: #33473d; }
.article-body h2 { margin: 28px 0 9px; font-size: 21px; line-height: 1.45; }
.article-body h3 { margin: 21px 0 8px; font-size: 17px; }
.article-body p { margin: 0 0 13px; }
.article-body ul, .article-body ol { margin: 0 0 14px; padding-left: 21px; }
.article-body li { margin-bottom: 5px; }
.article-body a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote {
  margin: 20px 0;
  padding: 12px 17px;
  border-left: 3px solid var(--acid-deep);
  border-radius: 0 6px 6px 0;
  background: var(--wash);
  color: #365a4b;
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-note {
  margin: 24px 0 0;
  padding: 14px 16px;
  border: 1px solid #dbe9e1;
  border-radius: 6px;
  background: #f8fcf9;
  color: #6d7e74;
  font-size: 12px;
  line-height: 1.85;
}
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

/* —— Download page ————————————————————————————————————————— */
.devicegrid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 18px; }
.device {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.device .devicon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: var(--wash);
  color: var(--brand);
}
.device .devicon svg { width: 25px; height: 25px; }
.device h2 { margin: 0 0 5px; font-size: 18px; }
.device p { margin: 0 0 13px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.device small { display: block; margin-top: 8px; color: #8a988f; font-size: 10px; }
.steps { counter-reset: step; display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
.step {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  color: var(--brand);
  font-size: 18px;
  font-weight: 800;
  font-style: italic;
  line-height: 1.3;
}
.step h3 { margin: 0 0 3px; font-size: 14px; }
.step p { margin: 0; color: var(--muted); font-size: 12px; }

/* —— Search page ————————————————————————————————————————— */
.searchpage-form {
  display: flex;
  max-width: 640px;
  margin-top: 18px;
  border: 1px solid #d9e7df;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.searchpage-form input { flex: 1; min-width: 0; padding: 12px 14px; border: 0; outline: none; font-size: 14px; }
.searchpage-form button { border: 0; padding: 0 20px; background: var(--brand); color: #fff; font-weight: 700; }
.searchpage-form button:hover { background: var(--deep); }
.search-summary { margin: 12px 0 0; color: var(--muted); font-size: 12px; }

/* —— Prose pages ————————————————————————————————————————— */
.prose { max-width: 860px; margin: 28px auto 0; color: #34483e; font-size: 14px; line-height: 1.95; }
.prose h2 { margin: 26px 0 8px; font-size: 20px; }
.prose h3 { margin: 19px 0 6px; font-size: 16px; }
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { margin: 0 0 13px; padding-left: 21px; }
.prose li { margin-bottom: 5px; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose .updated { color: var(--muted); font-size: 12px; }
.prose table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 12px; }
.prose th, .prose td { padding: 9px 10px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--wash); }

/* —— 404 —————————————————————————————————————————————————— */
.notfound { padding: 70px 0 40px; text-align: center; }
.notfound .code {
  margin: 0;
  color: var(--brand);
  font-size: clamp(76px, 14vw, 150px);
  font-weight: 800;
  font-style: italic;
  line-height: .9;
  letter-spacing: -.06em;
}
.notfound h1 { margin: 18px 0 7px; font-size: 28px; }
.notfound p { margin: 0 auto 18px; max-width: 560px; color: var(--muted); font-size: 13px; }
.notfound .hero-actions { justify-content: center; }
.notfound .btn-ghost { background: #fff; color: var(--brand); border-color: #cfe4da; }
.notfound .btn-ghost:hover { background: var(--wash); color: var(--deep); }

/* —— Motion ——————————————————————————————————————————————— */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* —— Responsive ——————————————————————————————————————————— */
@media (min-width: 600px) {
  .posters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .flows, .channels, .newsgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rankgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .soon { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footgrid { grid-template-columns: 1.4fr 1fr 1.5fr; }
  .download-panel { grid-template-columns: 1.15fr auto; align-items: center; padding: 34px; }
  .detail-facts { grid-template-columns: repeat(3, 1fr); }
  .devicegrid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .filters button { padding: 4px 14px; }
}

@media (min-width: 900px) {
  .posters-page { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .detailgrid { grid-template-columns: 250px 1fr; gap: 28px; }
  .detailposter { width: 100%; }
  .pagehead .wrap { padding: 58px 0 52px; }
  .pagehead h1 { font-size: 40px; }
  .detailcopy h1 { font-size: 42px; }
}

@media (min-width: 1000px) {
  .posters { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .posterpic { aspect-ratio: 2 / 3; }
  .navgroup { gap: 44px; }
  .spotlight { min-height: 318px; }
  .featurecopy { padding: 34px 38px; }
  .featurecopy h2 { font-size: 38px; }
  .newsgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .posters-page { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 599px) {
  .wrap { width: calc(100% - 24px); }
  .navline {
    min-height: 104px;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    padding: 12px 0;
  }
  .brand {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    font-size: 23px;
  }
  .brandmark { width: 34px; height: 34px; }
  .navgroup, .navgroup:first-child, .navgroup:last-child {
    justify-content: center;
    gap: 15px;
    grid-row: 2;
  }
  .navgroup a { font-size: 12px; }
  .navgroup a.active::after { bottom: -5px; width: 14px; height: 2px; }
  .utility { display: block; padding: 12px 0; }
  .utility p, .utility-title { margin-bottom: 8px; }
  .search { width: 100%; }
  .spotlight { min-height: 330px; }
  .featurecopy { max-width: 95%; padding: 24px 20px 27px; }
  .featurecopy h2 { font-size: 27px; }
  .featurecopy p { font-size: 12px; }
  .hero-note { width: 100%; margin-left: 0; }
  .hero-actions .btn { flex: 1 1 auto; }
  .filmmeta { gap: 9px; }
  .heading { align-items: flex-start; }
  .heading h2 { font-size: 18px; }
  .heading > span { max-width: 46%; text-align: right; }
  .section { margin-top: 24px; }
  .channelheading { flex-direction: column; align-items: flex-start; }
  .news img { width: 86px; }
  .stream > img { width: 36%; min-height: 142px; }
  .stream h3 { font-size: 15px; }
  .download-panel { padding: 24px 18px; }
  .download-copy h2 { font-size: 24px; }
  .qrbox { width: 100%; }
  .pagehead .wrap { padding: 34px 0 30px; }
  .pagehead h1 { font-size: 28px; }
  .pagehead .lede { font-size: 12px; }
  .filterbar { align-items: flex-start; flex-direction: column; gap: 8px; }
  .articlehead h1 { font-size: 27px; }
  .article-body { font-size: 14px; }
  .detailcopy h1 { font-size: 30px; }
  .detailposter { justify-self: center; }
  .rankrow { grid-template-columns: 24px 42px minmax(0, 1fr); gap: 8px; padding: 8px 10px; }
  .rankposter img { width: 42px; height: 56px; }
  .rankstatus { display: none; }
  .notfound { padding-top: 50px; }
}

