/* ============================================================
   糖果直播 · Editorial Design System
   Magazine-inspired responsive stylesheet
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --paper: #f6f2ea;
  --paper-2: #ece5d8;
  --paper-3: #e2d9c8;
  --ink: #1d1a17;
  --ink-2: #4c453e;
  --ink-3: #7d746a;
  --line: #d3cab9;
  --line-strong: #b8ab96;
  --accent: #c8402f;
  --accent-dark: #9e2e21;
  --deep: #211e1b;
  --white: #fffdf8;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, "Times New Roman", serif;
  --sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --wrap: 1240px;
  --gut: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--white); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- 3. Utilities ---------- */
.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.container-wide { width: 100%; max-width: 1480px; margin-inline: auto; padding-inline: var(--gut); }
.sr-only { position: absolute; 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; top: -100px; left: 16px; z-index: 999; background: var(--ink); color: var(--white); padding: 10px 18px; transition: top .2s; }
.skip-link:focus { top: 12px; }
.serif { font-family: var(--serif); }
.accent { color: var(--accent); }
.muted { color: var(--ink-3); }
.text-center { text-align: center; }
.hairline { height: 1px; background: var(--line); border: 0; }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section-tight { padding-block: clamp(44px, 6vw, 80px); }
.bg-paper-2 { background: var(--paper-2); }
.bg-deep { background: var(--deep); color: var(--paper); }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 4. Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--ink-3); }
.display-xl {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.9rem, 5.6vw, 4.9rem); line-height: 1.06;
  letter-spacing: -.035em;
}
.display-l {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1.14; letter-spacing: -.025em;
}
.display-m {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.65rem, 3vw, 2.6rem); line-height: 1.28; letter-spacing: -.015em;
}
.lede { font-family: var(--serif); font-size: clamp(1.05rem, 1.7vw, 1.35rem); line-height: 1.85; color: var(--ink-2); }
.body-copy { font-size: 16px; line-height: 2; color: var(--ink-2); }
.body-copy p + p { margin-top: 1.15em; }
.dropcap::first-letter {
  float: left; font-family: var(--serif); font-size: 4.2em; line-height: .82;
  padding: .06em .12em 0 0; color: var(--accent); font-weight: 600;
}
.pullquote {
  position: relative; padding: 18px 0 18px 56px;
  font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.5; font-style: italic; color: var(--ink);
}
.pullquote::before {
  content: "\201C"; position: absolute; left: 0; top: -10px;
  font-family: Georgia, serif; font-size: 5rem; line-height: 1; color: var(--accent);
}
.pullquote cite { display: block; margin-top: 18px; font: 600 12px/1.5 var(--sans); letter-spacing: .16em; color: var(--ink-3); font-style: normal; }

/* ---------- 5. Section heading ---------- */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding-bottom: 18px; margin-bottom: clamp(28px, 4vw, 52px);
  border-bottom: 1px solid var(--ink);
}
.section-head__left { min-width: 0; }
.section-index {
  display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .18em;
  color: var(--accent); margin-bottom: 10px;
}
.section-head h2 { font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.section-head__note { max-width: 280px; font-size: 13px; line-height: 1.7; color: var(--ink-3); text-align: right; }

/* ---------- 6. Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(246, 242, 234, .95);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topline {
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 10px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-3);
}
.topline .container { display: flex; justify-content: space-between; align-items: center; height: 30px; }
.topline a:hover { color: var(--accent); }
.topline__right { display: flex; gap: 22px; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.brand { display: inline-flex; align-items: baseline; gap: 8px; font-family: var(--serif); font-weight: 700; font-size: 26px; letter-spacing: -.04em; line-height: 1; }
.brand__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); align-self: center; }
.brand small { display: block; font: 600 9px/1.4 var(--sans); letter-spacing: .28em; color: var(--ink-3); margin-top: 5px; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.8vw, 38px); }
.nav a { position: relative; font-size: 13px; font-weight: 600; letter-spacing: .02em; padding-block: 8px; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 2px; width: 100%; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line-strong);
  background: transparent; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border: 1px solid var(--ink);
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  background: transparent; color: var(--ink);
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn--outline { border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--ink); background: var(--paper-2); }
.btn--light { border-color: rgba(255,255,255,.45); color: var(--paper); }
.btn--light:hover { background: var(--paper); color: var(--ink); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 12px; }
.btn.is-on { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn--block { width: 100%; }
.btn__arrow { font-size: 17px; line-height: 1; transition: transform .25s; }
.btn:hover .btn__arrow { transform: translateX(4px); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; border-bottom: 1px solid var(--accent); padding-bottom: 4px; }
.text-link:hover { color: var(--accent); }

/* ---------- 8. Figures / images ---------- */
.figure { margin: 0; }
.figure img { width: 100%; object-fit: cover; }
.figure figcaption {
  display: flex; gap: 10px; margin-top: 12px; padding-top: 10px;
  border-top: 1px solid var(--line); font-family: var(--mono); font-size: 10px;
  letter-spacing: .1em; color: var(--ink-3); text-transform: uppercase;
}
.figure figcaption span:first-child { color: var(--accent); }
.image-frame { position: relative; overflow: hidden; background: var(--paper-3); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.image-frame:hover img { transform: scale(1.035); }
.image-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.10));
}
.ratio-wide { aspect-ratio: 16 / 10; }
.ratio-portrait { aspect-ratio: 3 / 4; }
.ratio-square { aspect-ratio: 1 / 1; }
.ratio-cinema { aspect-ratio: 21 / 9; }

/* ---------- 9. Editorial art panels (CSS/SVG fallback imagery) ---------- */
.art {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--deep); color: var(--paper);
}
.art--sand { background: #dfd5c3; color: var(--ink); }
.art--red { background: var(--accent); color: var(--white); }
.art--ink { background: var(--ink); color: var(--paper); }
.art__grain {
  position: absolute; inset: 0; z-index: -1; opacity: .45;
  background-image: radial-gradient(currentColor .6px, transparent .6px);
  background-size: 5px 5px; mix-blend-mode: overlay;
}
.art__lines {
  position: absolute; inset: 0; z-index: -1; opacity: .3;
  background-image: repeating-linear-gradient(90deg, transparent 0 39px, currentColor 39px 40px);
}
.art__orb {
  position: absolute; width: 58%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid currentColor; opacity: .5;
}
.art__orb--a { top: -18%; right: -12%; }
.art__orb--b { bottom: -28%; left: -16%; width: 42%; }
.art__word {
  position: absolute; left: -2%; bottom: -12%; width: 104%;
  font-family: var(--serif); font-weight: 700; font-size: clamp(4rem, 12vw, 10rem);
  line-height: 1; letter-spacing: -.06em; opacity: .1; white-space: nowrap;
}
.art__label {
  position: absolute; top: 22px; left: 24px; right: 24px;
  display: flex; justify-content: space-between;
  font: 600 10px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; opacity: .75;
}
.art__center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 30px;
}
.art__center strong { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 600; line-height: 1.1; }

/* ---------- 10. Marquee ---------- */
.marquee { overflow: hidden; background: var(--ink); color: var(--paper); border-block: 1px solid var(--ink); }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee__group { display: flex; align-items: center; padding-right: 42px; }
.marquee__item { display: inline-flex; align-items: center; gap: 14px; padding: 13px 0; font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; }
.marquee__item::after { content: "✦"; color: var(--accent); font-size: 10px; margin-left: 28px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(200,64,47,.6); animation: pulse 2s infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(200,64,47,0); } 100% { box-shadow: 0 0 0 0 rgba(200,64,47,0); } }

/* ---------- 11. Hero ---------- */
.hero { padding-top: clamp(36px, 5vw, 72px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5.5fr) minmax(0, 6.5fr); gap: clamp(24px, 4vw, 60px); align-items: end; }
.hero__copy { padding-bottom: 18px; }
.hero__title { margin-top: 22px; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__lede { margin-top: 28px; max-width: 430px; }
.hero__meta { display: flex; gap: 24px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); }
.hero__meta div { min-width: 0; }
.hero__meta b { display: block; font-family: var(--serif); font-size: 25px; line-height: 1; }
.hero__meta span { display: block; margin-top: 6px; font: 600 9px/1.4 var(--sans); letter-spacing: .16em; color: var(--ink-3); text-transform: uppercase; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__media { position: relative; }
.hero__media .image-frame { aspect-ratio: 4 / 4.25; }
.hero__stamp {
  position: absolute; right: -14px; top: 26px; width: 104px; height: 104px; border-radius: 50%;
  background: var(--accent); color: var(--white); display: grid; place-items: center; text-align: center;
  font-family: var(--serif); font-size: 15px; line-height: 1.35; transform: rotate(12deg);
  box-shadow: 0 10px 30px rgba(29,26,23,.18);
}
.hero__vertical {
  position: absolute; left: -30px; bottom: 0; writing-mode: vertical-rl;
  font-family: var(--mono); font-size: 10px; letter-spacing: .3em; color: var(--ink-3); text-transform: uppercase;
}
.hero__caption { margin-top: 14px; }

/* ---------- 12. Generic grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(24px, 4vw, 56px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(20px, 3vw, 36px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(18px, 2.5vw, 30px); }
.align-center { align-items: center; }
.columns-2 { column-count: 2; column-gap: clamp(28px, 4vw, 56px); column-rule: 1px solid var(--line); }
.grid-player { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, .8fr); gap: clamp(24px, 3vw, 42px); align-items: start; }
.program-card__media .art { position: absolute; inset: 0; }
.empty-state { border: 1px dashed var(--line-strong); padding: 48px 20px; text-align: center; color: var(--ink-3); font-family: var(--serif); font-size: 18px; }
.columns-2 p + p { margin-top: 1em; }

/* ---------- 13. Feature cards ---------- */
.feature-card { border-top: 1px solid var(--ink); padding-top: 20px; }
.feature-card__num { font: 600 11px/1 var(--mono); letter-spacing: .18em; color: var(--accent); }
.feature-card h3 { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.65rem); margin: 14px 0 12px; font-weight: 600; }
.feature-card p { font-size: 14px; line-height: 1.9; color: var(--ink-2); }
.feature-card .text-link { margin-top: 18px; }

.program-card { display: block; cursor: pointer; border: 1px solid var(--line); background: var(--white); transition: border-color .25s, transform .25s, box-shadow .25s; }
.program-card:hover, .program-card.is-active { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(29,26,23,.08); }
.program-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.program-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.program-card:hover .program-card__media img { transform: scale(1.05); }
.program-card__tag {
  position: absolute; left: 12px; top: 12px; padding: 5px 9px;
  background: var(--paper); font: 700 10px/1 var(--mono); letter-spacing: .12em;
}
.program-card__body { padding: 16px 18px 18px; }
.program-card__body h3 { font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.35; }
.program-card__body p { margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.program-card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font: 600 11px/1 var(--mono); letter-spacing: .08em; color: var(--ink-2); }
.program-card__foot span:first-child { color: var(--accent); }

.creator-card { border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.creator-card__top { display: flex; align-items: center; gap: 14px; }
.creator-card__avatar { width: 62px; height: 62px; border-radius: 50%; overflow: hidden; background: var(--paper-3); flex: 0 0 auto; }
.creator-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.creator-card h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.2; }
.creator-card__meta { font: 600 10px/1.6 var(--mono); letter-spacing: .12em; color: var(--ink-3); text-transform: uppercase; }
.creator-card p { margin-top: 14px; font-size: 14px; line-height: 1.85; color: var(--ink-2); }
.creator-card__stats { display: flex; gap: 26px; margin-top: 16px; }
.creator-card__stats b { display: block; font-family: var(--serif); font-size: 20px; line-height: 1; }
.creator-card__stats span { font: 600 9px/2 var(--sans); letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; }

/* ---------- 14. Player ---------- */
.player-shell { border: 1px solid var(--ink); background: var(--white); }
.player-stage {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--deep); color: var(--paper);
}
.player-stage__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.72); }
.player-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,.55)); }
.player-stage__inner { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(16px, 3vw, 30px); }
.player-stage__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.player-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; background: var(--accent); font: 700 10px/1 var(--mono); letter-spacing: .16em; }
.player-viewers { font: 600 10px/1 var(--mono); letter-spacing: .12em; background: rgba(0,0,0,.4); padding: 7px 10px; }
.player-center { position: absolute; inset: 0; display: grid; place-items: center; z-index: 3; }
.play-btn {
  width: clamp(64px, 9vw, 92px); height: clamp(64px, 9vw, 92px); border-radius: 50%;
  border: 1px solid rgba(255,255,255,.75); background: rgba(255,255,255,.12);
  color: var(--white); display: grid; place-items: center; backdrop-filter: blur(6px);
  transition: transform .3s, background .3s;
}
.play-btn:hover { transform: scale(1.07); background: var(--accent); border-color: var(--accent); }
.play-btn svg { width: 26px; height: 26px; fill: currentColor; }
.player-stage.is-playing .play-btn { opacity: 0; pointer-events: none; transform: scale(.8); }
.player-stage__bottom { position: relative; z-index: 3; }
.player-title { font-family: var(--serif); font-size: clamp(1.2rem, 2.5vw, 2rem); font-weight: 600; line-height: 1.25; }
.player-sub { font-size: 12px; opacity: .78; margin-top: 6px; }
.player-controls { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.5); background: transparent; color: inherit; flex: 0 0 auto; }
.icon-btn svg { width: 15px; height: 15px; fill: currentColor; }
.icon-btn.is-on { background: var(--accent); border-color: var(--accent); }
.progress { position: relative; height: 3px; flex: 1; background: rgba(255,255,255,.3); cursor: pointer; }
.progress__bar { position: absolute; inset: 0 auto 0 0; width: 0%; background: var(--accent); }
.progress__bar::after { content: ""; position: absolute; right: -4px; top: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--white); }
.player-time { font: 600 10px/1 var(--mono); letter-spacing: .08em; min-width: 78px; text-align: right; }
.player-shell__foot { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 16px 18px; border-top: 1px solid var(--line); }
.player-host { display: flex; align-items: center; gap: 12px; }
.player-host img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.player-host b { display: block; font-family: var(--serif); font-size: 16px; line-height: 1.3; }
.player-host span { font: 600 10px/1.4 var(--sans); letter-spacing: .1em; color: var(--ink-3); }
.player-tools { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 15. Filters / tabs ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 26px; }
.filter-btn {
  padding: 8px 16px; border: 1px solid var(--line-strong); background: transparent;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; transition: all .2s;
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filters__count { margin-left: auto; font: 600 10px/1 var(--mono); letter-spacing: .12em; color: var(--ink-3); }
.searchbar { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--ink); padding-bottom: 8px; margin-bottom: 26px; }
.searchbar input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; font-family: var(--serif); font-size: 20px; }
.searchbar input::placeholder { color: var(--ink-3); }
.searchbar button { border: 0; background: transparent; color: var(--accent); font-size: 20px; }

/* ---------- 16. Steps ---------- */
.step { position: relative; padding: 26px 0 26px 62px; border-top: 1px solid var(--line); }
.step__num { position: absolute; left: 0; top: 24px; font-family: var(--serif); font-size: 36px; line-height: 1; color: var(--accent); }
.step h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.step p { margin-top: 8px; font-size: 14px; line-height: 1.85; color: var(--ink-2); }

/* ---------- 17. Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font: 700 11px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.field label span { color: var(--accent); }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line-strong); background: var(--white);
  padding: 13px 14px; font-size: 14px; outline: 0; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(200,64,47,.09); }
.field textarea { min-height: 128px; resize: vertical; line-height: 1.75; }
.field__hint { font-size: 11px; color: var(--ink-3); }
.field__error { font-size: 11px; color: var(--accent); min-height: 14px; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--accent); }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; line-height: 1.7; color: var(--ink-2); cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--accent); margin-top: 3px; flex: 0 0 auto; }
.form-note { font-size: 11px; color: var(--ink-3); line-height: 1.7; }
.upload-zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 168px; border: 1px dashed var(--line-strong); background: rgba(255,253,248,.6);
  text-align: center; padding: 20px; cursor: pointer; transition: border-color .2s, background .2s;
}
.upload-zone:hover, .upload-zone.is-drag { border-color: var(--accent); background: rgba(200,64,47,.05); }
.upload-zone strong { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.upload-zone span { font-size: 12px; color: var(--ink-3); }
.upload-zone__icon { font-size: 26px; color: var(--accent); line-height: 1; }
.upload-zone__file { font: 600 11px/1.5 var(--mono); color: var(--accent); word-break: break-all; }

/* ---------- 18. FAQ / details ---------- */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 20px 4px; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: clamp(1rem, 1.6vw, 1.25rem); font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 22px; color: var(--accent); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 4px 22px; font-size: 14px; line-height: 1.9; color: var(--ink-2); }

/* ---------- 19. Stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.stat { background: var(--paper); padding: 28px 22px; }
.stat b { display: block; font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 2.9rem); font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.stat span { display: block; margin-top: 10px; font: 600 10px/1.5 var(--sans); letter-spacing: .16em; color: var(--ink-3); text-transform: uppercase; }

/* ---------- 20. CTA ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--accent); color: var(--white); padding-block: clamp(56px, 8vw, 100px); }
.cta-band__grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.cta-band h2 { font-family: var(--serif); font-size: clamp(2rem, 4.6vw, 4rem); font-weight: 600; line-height: 1.16; letter-spacing: -.03em; }
.cta-band p { margin-top: 18px; max-width: 520px; font-size: 15px; line-height: 1.9; opacity: .9; }
.cta-band__actions { display: flex; flex-direction: column; gap: 10px; }
.cta-band__side { border-left: 1px solid rgba(255,255,255,.35); padding-left: 34px; }
.cta-band__side .kicker { color: rgba(255,255,255,.8); }

/* ---------- 21. Footer ---------- */
.site-footer { background: var(--deep); color: var(--paper); padding-top: clamp(56px, 7vw, 88px); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(28px, 4vw, 54px); padding-bottom: 54px; }
.footer-brand .brand { color: var(--paper); }
.footer-brand p { margin-top: 18px; max-width: 300px; font-size: 13px; line-height: 1.9; color: rgba(246,242,234,.65); }
.footer-col h3 { font: 700 10px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.footer-col a { display: block; padding: 5px 0; font-size: 13px; color: rgba(246,242,234,.78); }
.footer-col a:hover { color: var(--white); }
.footer-sub { display: flex; gap: 8px; margin-top: 18px; }
.footer-sub input { flex: 1; min-width: 0; border: 1px solid rgba(246,242,234,.3); background: transparent; color: var(--paper); padding: 10px 12px; font-size: 12px; outline: 0; }
.footer-sub input::placeholder { color: rgba(246,242,234,.45); }
.footer-sub button { border: 1px solid var(--accent); background: var(--accent); color: var(--white); padding: 0 14px; font-size: 12px; font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(246,242,234,.16); padding-block: 20px 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font: 600 10px/1.6 var(--mono); letter-spacing: .1em; color: rgba(246,242,234,.5); }
.footer-bottom a:hover { color: var(--paper); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- 22. Breadcrumb ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-block: 22px; font: 600 10px/1.4 var(--mono); letter-spacing: .12em; color: var(--ink-3); text-transform: uppercase; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[aria-current] { color: var(--accent); }

/* ---------- 23. Page hero ---------- */
.page-hero { padding-block: clamp(30px, 5vw, 70px) clamp(42px, 6vw, 78px); }
.page-hero__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(28px, 5vw, 70px); align-items: end; }
.page-hero h1 { margin-top: 16px; }
.page-hero__aside { border-left: 1px solid var(--line); padding-left: 28px; }
.page-hero__aside p { font-family: var(--serif); font-size: 17px; line-height: 1.85; color: var(--ink-2); }
.page-hero__index { margin-bottom: 18px; font-family: var(--serif); font-size: 64px; line-height: .8; color: var(--accent); opacity: .55; }

/* ---------- 24. Toast / modal / back-to-top ---------- */
.toast {
  position: fixed; z-index: 500; right: 22px; bottom: 22px; max-width: min(360px, calc(100vw - 44px));
  background: var(--ink); color: var(--paper); padding: 14px 18px; font-size: 13px; line-height: 1.6;
  border-left: 3px solid var(--accent); box-shadow: 0 18px 40px rgba(0,0,0,.25);
  transform: translateY(20px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
}
.toast.is-show { opacity: 1; transform: none; }
.modal { position: fixed; inset: 0; z-index: 600; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(29,26,23,.72); backdrop-filter: blur(4px); }
.modal__panel { position: relative; width: min(520px, 100%); background: var(--paper); border: 1px solid var(--ink); padding: clamp(26px, 5vw, 42px); box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.modal__close { position: absolute; right: 16px; top: 14px; border: 0; background: transparent; font-size: 26px; line-height: 1; color: var(--ink-3); }
.modal__close:hover { color: var(--accent); }
.modal__panel h2 { font-family: var(--serif); font-size: 30px; font-weight: 600; margin-bottom: 12px; }
.modal__panel p { font-size: 14px; line-height: 1.85; color: var(--ink-2); }
.modal__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.qr-grid { display: grid; grid-template-columns: 132px 1fr; gap: 22px; align-items: center; margin-top: 22px; }
.qr-code { width: 132px; height: 132px; background: var(--white); border: 1px solid var(--line); padding: 8px; display: grid; place-items: center; }
.qr-code svg, .qr-code img { width: 100%; height: 100%; object-fit: contain; }
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 150; width: 44px; height: 44px;
  border: 1px solid var(--ink); background: var(--paper); color: var(--ink);
  opacity: 0; pointer-events: none; transform: translateY(12px); transition: all .3s;
  display: grid; place-items: center; font-size: 18px;
}
.to-top.is-show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* ---------- 25. Responsive ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr 1fr; }
  .hero__title { font-size: clamp(2.8rem, 6.2vw, 4.8rem); }
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-top .footer-col:last-child { grid-column: 1 / -1; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px var(--gut) 20px;
    background: var(--paper); border-bottom: 1px solid var(--ink);
    box-shadow: 0 18px 30px rgba(29,26,23,.08);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
  .nav a::after { display: none; }
  .header-actions .btn--sm { display: none; }
  .hero__grid, .page-hero__grid, .cta-band__grid, .grid-player { grid-template-columns: 1fr; }
  .hero__media .image-frame { aspect-ratio: 16 / 11; }
  .hero__stamp { right: 14px; top: 14px; width: 84px; height: 84px; font-size: 12px; }
  .hero__vertical { display: none; }
  .page-hero__aside { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; }
  .cta-band__side { border-left: 0; border-top: 1px solid rgba(255,255,255,.35); padding: 24px 0 0; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .columns-2 { column-count: 1; }
  .section-head__note { display: none; }
}

@media (max-width: 680px) {
  body { font-size: 15px; }
  .topline { display: none; }
  .masthead { min-height: 64px; }
  .brand { font-size: 22px; }
  .hero { padding-top: 22px; }
  .hero__title { font-size: clamp(2.6rem, 11vw, 4rem); }
  .hero__meta { gap: 16px; }
  .hero__meta b { font-size: 21px; }
  .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 20px 16px; }
  .stat b { font-size: 26px; }
  .player-controls { gap: 9px; }
  .player-time { min-width: 62px; font-size: 9px; }
  .player-shell__foot { align-items: flex-start; flex-direction: column; }
  .player-tools { width: 100%; }
  .player-tools .btn { flex: 1; }
  .filters__count { display: none; }
  .pullquote { padding-left: 38px; }
  .pullquote::before { font-size: 4rem; }
  .qr-grid { grid-template-columns: 1fr; justify-items: start; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-top .footer-col:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .to-top { bottom: 14px; right: 14px; }
}

@media (max-width: 420px) {
  .container, .container-wide { padding-inline: 18px; }
  .hero__actions .btn, .cta-band .btn { width: 100%; }
  .hero__stamp { display: none; }
  .section-head h2 { font-size: 27px; }
  .stat b { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 26. Print ---------- */
@media print {
  .site-header, .marquee, .to-top, .toast, .modal, .cta-band { display: none !important; }
  body { background: #fff; color: #000; }
}
