/* ─────────────────────────────────────────────────────────────
   sigzmusic.com — /music
   Editorial "liner notes" music page (lane E of the redesign fleet,
   wired to the real API + the real playback engine in /js/player.js).

   Unified token set bridging the landing (#0A0B0D) and the older
   shell (#0d0d10): --bg is the midpoint of the two.
   ───────────────────────────────────────────────────────────── */
:root{
  --bg:#0B0C0F;
  --bg-soft:#0E0F13;
  --bg-raise:#14151B;
  --bg-hover:#1C1D25;
  --line:#23242C;
  --line-soft:#1A1B22;
  --text:#F2F2F4;
  --text-2:#A5A8B0;
  --text-3:#7C7F8A;
  --lime:#C6F53C;          /* now-playing indicator ONLY */
  --nc:#35E0FF;            /* current accent; JS swaps it per release */
  --topbar:64px;
  --player:84px;
  --gutter:clamp(18px,4.5vw,56px);
  --ease:cubic-bezier(.22,.61,.21,1);
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:"Archivo",system-ui,-apple-system,sans-serif;
  background:var(--bg);color:var(--text);
  font-size:15px;line-height:1.55;
  -webkit-font-smoothing:antialiased;
  padding-bottom:var(--player);
}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
a{color:inherit;text-decoration:none}
img{display:block}
::selection{background:var(--nc);color:#0A0B0D}
.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{position:absolute;left:-9999px;top:0;z-index:200;background:var(--text);color:#0A0B0D;padding:10px 16px;font-weight:700}
.skip:focus{left:0}
:focus-visible{outline:2px solid var(--nc);outline-offset:3px;border-radius:2px}

/* ── masthead: one control bar ─────────────────────────────── */
.topbar{
  position:sticky;top:0;z-index:60;
  display:flex;align-items:center;gap:12px;flex-wrap:wrap;
  padding:13px var(--gutter);
  /* viewport-fit=cover: keep the bar clear of the status bar / notch.
     env() is 0px on desktop, so this is a no-op there. */
  padding-top:calc(13px + env(safe-area-inset-top,0px));
  padding-inline:max(var(--gutter),env(safe-area-inset-left,0px));
  background:rgba(11,12,15,.86);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line-soft);
}
.wm{font-weight:900;font-stretch:125%;font-size:22px;letter-spacing:.06em;flex:none;margin-right:4px}
.topsearch{
  display:flex;align-items:center;gap:9px;flex:0 1 300px;min-width:190px;
  background:var(--bg-raise);border:1px solid var(--line);border-radius:999px;
  padding:8px 14px;transition:border-color .15s var(--ease);
}
.topsearch:focus-within{border-color:var(--text-3)}
.topsearch svg{width:15px;height:15px;stroke:var(--text-3);fill:none;stroke-width:2;stroke-linecap:round;flex:none}
.topsearch input{flex:1;min-width:0;background:none;border:0;outline:none;color:var(--text);font:inherit;font-size:14px}
.topsearch input::placeholder{color:var(--text-3)}
.topsearch .clear-q{display:none;color:var(--text-3);font-size:16px;line-height:1;padding:2px 4px}
.topsearch .clear-q:hover{color:var(--text)}
body.searching .topsearch .clear-q{display:block}

.topctl{display:flex;align-items:center;gap:10px;min-width:0;overflow-x:auto;scrollbar-width:none}
.topctl::-webkit-scrollbar{display:none}
.chips{display:flex;gap:6px;flex:none}
.chip{
  flex:none;padding:7px 15px;border-radius:999px;font-size:13px;font-weight:650;
  color:var(--text-2);background:var(--bg-raise);border:1px solid var(--line);
  transition:color .13s var(--ease),background .13s var(--ease),border-color .13s var(--ease);
}
.chip:hover{color:var(--text);background:var(--bg-hover)}
.chip[aria-pressed="true"]{background:var(--text);color:#0A0B0D;border-color:var(--text)}
.sortseg{display:flex;flex:none;gap:2px;padding:3px;background:var(--bg-raise);border:1px solid var(--line);border-radius:999px}
.sortseg button{
  flex:none;padding:5px 13px;border-radius:999px;font-size:12.5px;font-weight:650;
  color:var(--text-3);transition:color .13s var(--ease),background .13s var(--ease);
}
.sortseg button:hover{color:var(--text)}
.sortseg button[aria-pressed="true"]{background:var(--bg-hover);color:var(--text)}
.top-actions{margin-left:auto;display:flex;align-items:center;gap:8px;flex:none}
.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 16px;border-radius:999px;font-size:13px;font-weight:700;
  background:var(--bg-raise);border:1px solid var(--line);color:var(--text);
  transition:background .13s var(--ease),border-color .13s var(--ease),transform .13s var(--ease);
}
.btn:hover{background:var(--bg-hover);border-color:var(--text-3);transform:translateY(-1px)}
.btn svg{width:15px;height:15px;fill:currentColor;flex:none}
.btn .stroke,.icon-btn .stroke{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#qCount{
  min-width:20px;height:20px;border-radius:10px;display:inline-grid;place-items:center;
  background:var(--bg-hover);font-size:11.5px;font-weight:800;padding:0 6px;font-variant-numeric:tabular-nums;
}

/* ── hero ─────────────────────────────────────────────────── */
.hero{
  position:relative;isolation:isolate;overflow:hidden;
  min-height:min(56vh,470px);display:flex;align-items:stretch;
  border-bottom:1px solid var(--line);
}
.hero-bg{position:absolute;inset:0;z-index:-2;
  background:
    radial-gradient(120% 160% at 85% 10%,color-mix(in srgb,var(--acc,#35E0FF) 20%,transparent),transparent 55%),
    radial-gradient(90% 120% at 10% 100%,color-mix(in srgb,var(--acc,#35E0FF) 8%,transparent),transparent 60%),
    linear-gradient(160deg,#0D1016 0%,#0B0C0F 70%);
}
.hero-bg img{width:100%;height:100%;object-fit:cover;opacity:.5;filter:saturate(.9)}
.hero-scrim{position:absolute;inset:0;z-index:-1;
  background:linear-gradient(100deg,rgba(11,12,15,.94) 0%,rgba(11,12,15,.72) 46%,rgba(11,12,15,.30) 100%)}
.hero-in{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:clamp(24px,4vw,64px);
  align-items:end;width:100%;padding:clamp(28px,5vh,52px) var(--gutter);
}
.kicker{
  font-size:11.5px;font-weight:750;letter-spacing:.24em;color:var(--text-3);
  text-transform:uppercase;display:flex;align-items:center;gap:12px;
}
.kicker::after{content:"";height:1px;width:44px;background:var(--line)}
.hero h1{
  font-weight:900;font-stretch:125%;letter-spacing:-.01em;line-height:.94;
  font-size:clamp(64px,11vw,148px);margin:14px 0 12px;color:var(--text);
  text-shadow:0 0 60px color-mix(in srgb,var(--acc,#35E0FF) 25%,transparent);
}
.hero-boot{opacity:.25}
.hero .dek{max-width:52ch;color:var(--text-2);font-size:clamp(14px,1.3vw,16.5px)}
.hero .dek b{color:var(--text);font-weight:650}
.hero-actions{display:flex;align-items:center;gap:16px;margin-top:24px;flex-wrap:wrap}
.play-big{
  display:inline-flex;align-items:center;gap:12px;
  background:var(--acc,var(--nc));color:#06090B;border-radius:999px;
  padding:14px 26px 14px 20px;font-weight:800;font-size:13px;letter-spacing:.14em;
  transition:transform .16s var(--ease),box-shadow .16s var(--ease);
  box-shadow:0 10px 34px color-mix(in srgb,var(--acc,var(--nc)) 22%,transparent);
}
.play-big:hover{transform:translateY(-2px) scale(1.02)}
.play-big svg{width:16px;height:16px;fill:currentColor}
.btn-ghost{
  display:inline-flex;align-items:center;gap:10px;
  border:1px solid var(--line);border-radius:999px;padding:13px 22px;
  color:var(--text-2);font-weight:700;font-size:12px;letter-spacing:.14em;
  transition:color .15s var(--ease),border-color .15s var(--ease),background .15s var(--ease);
}
.btn-ghost:hover{color:var(--text);border-color:var(--text-3);background:var(--bg-raise)}
.hero-cover{width:clamp(180px,22vw,300px);flex:none}
.cov{
  position:relative;display:block;aspect-ratio:1;border-radius:6px;overflow:hidden;
  background:linear-gradient(150deg,color-mix(in srgb,var(--acc,var(--nc)) 42%,#0B0C0F),#0B0C0F 78%);
  box-shadow:0 18px 50px rgba(0,0,0,.55);
}
.cov-fb{
  position:absolute;inset:0;display:grid;place-items:center;text-align:center;
  padding:12px;font-weight:850;font-stretch:118%;font-size:13px;letter-spacing:.12em;
  color:rgba(255,255,255,.85);text-transform:uppercase;line-height:1.3;
}
.cov img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero-meta{
  display:flex;gap:22px;margin-top:22px;color:var(--text-3);
  font-size:12px;font-weight:650;letter-spacing:.14em;flex-wrap:wrap;
}
.hero-meta span b{color:var(--text-2)}

/* ── shelf / catalogue index ──────────────────────────────── */
.shelf{padding:clamp(30px,5vh,52px) var(--gutter) clamp(40px,6vh,72px);border-bottom:1px solid var(--line)}
.shelf-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;flex-wrap:wrap;margin-bottom:26px}
.h-sec{font-weight:880;font-stretch:122%;font-size:clamp(30px,3.6vw,44px);letter-spacing:-.01em;line-height:1;margin-top:10px}
.jump{display:flex;align-items:baseline;gap:clamp(14px,2vw,28px);flex-wrap:wrap}
.jump a{
  font-size:11.5px;font-weight:750;letter-spacing:.18em;color:var(--text-3);
  padding-bottom:5px;border-bottom:1px solid transparent;
  transition:color .15s var(--ease),border-color .15s var(--ease);
}
.jump a:hover{color:var(--text);border-bottom-color:var(--nc)}

.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:clamp(14px,1.8vw,24px)}
.card{
  position:relative;text-align:left;border-radius:8px;padding:10px;display:block;width:100%;
  cursor:pointer;transition:background .15s var(--ease);
}
.card:hover{background:var(--bg-raise)}
.card .cov{border-radius:6px;margin-bottom:14px;transition:transform .2s var(--ease),box-shadow .2s var(--ease)}
.card:hover .cov{transform:translateY(-3px);box-shadow:0 22px 46px rgba(0,0,0,.6),0 0 0 1px color-mix(in srgb,var(--acc) 55%,transparent)}
.card .c-title{font-weight:750;font-size:16px;letter-spacing:.01em}
.card .c-meta{color:var(--text-3);font-size:12.5px;margin-top:3px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.card .c-play{
  position:absolute;bottom:64px;right:18px;
  width:44px;height:44px;border-radius:50%;display:grid;place-items:center;
  background:var(--text);color:#0A0B0D;box-shadow:0 10px 26px rgba(0,0,0,.55);
  opacity:0;transform:translateY(6px);transition:opacity .16s var(--ease),transform .16s var(--ease);
}
.card:hover .c-play,.card .c-play:focus-visible{opacity:1;transform:translateY(0)}
@media (hover:none){.card .c-play{opacity:1;transform:none}}
.card .c-play svg{width:17px;height:17px;fill:currentColor;margin-left:2px}
.card .c-add{
  position:absolute;top:16px;right:16px;width:32px;height:32px;border-radius:50%;
  background:rgba(10,11,13,.72);color:var(--text);font-size:18px;line-height:1;
  display:grid;place-items:center;opacity:0;transition:opacity .15s var(--ease),background .15s;
  backdrop-filter:blur(6px);
}
.card:hover .c-add,.card .c-add:focus-visible{opacity:1}
@media (hover:none){.card .c-add{opacity:1}}
.card .c-add:hover{background:var(--acc);color:#0A0B0D}
.tag-demo{
  display:inline-block;font-size:9.5px;font-weight:850;letter-spacing:.16em;
  border:1px dashed var(--text-3);color:var(--text-2);border-radius:4px;padding:2px 6px;
}
.nowtag{display:none;align-items:center;gap:6px;color:var(--lime);font-size:10px;font-weight:800;letter-spacing:.16em;margin-top:6px}
.card.now .nowtag{display:inline-flex}
.eq{display:inline-flex;align-items:flex-end;gap:2px;height:11px;width:14px}
.eq i{width:3px;height:4px;background:var(--lime);border-radius:1px}
body.playing .eq i{animation:eq 1s ease-out infinite}
body.playing .eq i:nth-child(2){animation-delay:.25s}
body.playing .eq i:nth-child(3){animation-delay:.5s}
@keyframes eq{0%,100%{height:4px}45%{height:11px}}

/* ── search results ───────────────────────────────────────── */
.results{display:none}
body.searching .results{display:block}
body.searching #shelfGrid{display:none}
body.searching #listening,body.searching #editorial,body.searching .colophon{display:none}
.res-h{
  font-size:11.5px;font-weight:780;letter-spacing:.22em;color:var(--text-3);
  margin:26px 0 12px;display:flex;align-items:center;gap:12px;
}
.res-h::after{content:"";flex:1;height:1px;background:var(--line-soft)}
.res-none{color:var(--text-3);padding:40px 0;font-size:15px}
.res-none b{color:var(--text)}
.res-grid{margin-bottom:8px}

/* ── track rows ───────────────────────────────────────────── */
.tr{
  display:grid;grid-template-columns:38px minmax(0,1fr) auto auto 34px;gap:14px;align-items:center;
  padding:9px 12px;border-radius:6px;color:var(--text-2);cursor:pointer;
  box-shadow:inset 0 -1px 0 rgba(255,255,255,.04);
  transition:background .12s var(--ease),color .12s var(--ease);
}
.tr:hover{background:var(--bg-raise);color:var(--text)}
.tr .tr-n{color:var(--text-3);font-variant-numeric:tabular-nums;font-size:13px;text-align:right}
.tr .tr-t{color:var(--text);font-weight:560;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tr .tr-alb{color:var(--text-3);font-weight:400}
.tr .tr-p,.tr .tr-d{font-variant-numeric:tabular-nums;font-size:12.5px;color:var(--text-3)}
.tr .tr-q{
  width:28px;height:28px;border-radius:50%;display:grid;place-items:center;
  color:var(--text-3);font-size:16px;opacity:0;transition:opacity .14s,background .14s,color .14s;
}
.tr:hover .tr-q,.tr .tr-q:focus-visible{opacity:1}
@media (hover:none){.tr .tr-q{opacity:1}}
.tr .tr-q:hover{background:var(--bg-hover);color:var(--text)}
.tr.now .tr-t,.tr.now .tr-d,.tr.now .tr-p,.tr.now .tr-n{color:var(--lime)}

/* ── listening rows ───────────────────────────────────────── */
.listening{
  padding:clamp(36px,6vh,64px) var(--gutter);border-bottom:1px solid var(--line);
  display:grid;grid-template-columns:1fr 1fr;gap:clamp(28px,4vw,64px);
}
.listen-col h3{
  font-size:11.5px;font-weight:780;letter-spacing:.22em;color:var(--text-3);
  text-transform:uppercase;margin-bottom:16px;display:flex;align-items:center;gap:12px;
}
.listen-col h3::after{content:"";flex:1;height:1px;background:var(--line-soft)}
.hrow{display:flex;gap:14px;overflow-x:auto;padding-bottom:8px;scrollbar-width:thin}
.hcard{
  flex:0 0 240px;display:grid;grid-template-columns:64px 1fr;gap:12px;align-items:center;
  text-align:left;padding:10px;border-radius:8px;border:1px solid var(--line-soft);cursor:pointer;
  transition:background .15s var(--ease),border-color .15s var(--ease);
}
.hcard:hover{background:var(--bg-raise);border-color:var(--line)}
.hcard .cov{width:64px;border-radius:4px;box-shadow:none}
.hcard .hc-txt{min-width:0}
.hcard .hc-t{display:block;font-weight:650;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hcard .hc-s{display:block;color:var(--text-3);font-size:12px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hcard .hc-prog{display:block;height:3px;border-radius:2px;background:var(--bg-hover);margin-top:8px;overflow:hidden}
.hcard .hc-prog i{display:block;height:100%;background:var(--acc,var(--nc));border-radius:2px}
.empty{border:1px dashed var(--line);border-radius:10px;padding:22px;color:var(--text-3);font-size:13.5px;line-height:1.6}
.empty b{color:var(--text-2)}
.empty .btn-ghost{margin-top:14px;padding:10px 18px;font-size:11px}

/* ── chapters ─────────────────────────────────────────────── */
.chapter{
  position:relative;padding:clamp(56px,10vh,110px) var(--gutter) clamp(40px,7vh,80px);
  border-bottom:1px solid var(--line);overflow:hidden;isolation:isolate;
}
.ghost{
  position:absolute;top:clamp(8px,2vh,24px);right:-.02em;z-index:-1;
  font-weight:900;font-stretch:125%;font-size:clamp(140px,24vw,320px);line-height:.8;
  color:transparent;-webkit-text-stroke:1px color-mix(in srgb,var(--acc) 26%,transparent);
  user-select:none;letter-spacing:-.02em;pointer-events:none;
}
.chap-head{display:flex;align-items:baseline;gap:20px;margin-bottom:clamp(30px,5vh,52px);flex-wrap:wrap}
.chap-no{font-size:12px;font-weight:800;letter-spacing:.26em;color:var(--acc)}
.chap-title{font-weight:900;font-stretch:125%;font-size:clamp(44px,7vw,92px);line-height:.95;letter-spacing:-.015em}
.chap-note{color:var(--text-3);font-size:13px;letter-spacing:.06em;margin-left:auto}
.rec{display:grid;grid-template-columns:clamp(150px,17vw,230px) minmax(0,1fr);gap:clamp(20px,3vw,44px);padding:clamp(22px,3.5vh,36px) 0}
.rec + .rec{border-top:1px solid var(--line-soft)}
.rec .cov{border-radius:6px}
.rec-meta{font-size:11px;font-weight:780;letter-spacing:.22em;color:var(--text-3);display:flex;gap:14px;flex-wrap:wrap}
.rec-meta em{font-style:normal;color:var(--acc)}
.rec h3{font-weight:880;font-stretch:122%;font-size:clamp(32px,4.6vw,60px);line-height:1;letter-spacing:-.01em;margin:10px 0 10px}
.rec-line{color:var(--text-2);font-size:14px;font-weight:550}
.rec-story{
  color:var(--text-3);font-size:14.5px;max-width:56ch;margin-top:10px;
  border-left:2px solid color-mix(in srgb,var(--acc) 55%,transparent);padding-left:16px;
}
.rec-actions{display:flex;align-items:center;gap:12px;margin-top:20px;flex-wrap:wrap}
.rec-play{
  display:inline-flex;align-items:center;gap:10px;
  background:var(--text);color:#0A0B0D;border-radius:999px;
  padding:11px 22px 11px 17px;font-weight:800;font-size:11.5px;letter-spacing:.14em;
  transition:transform .15s var(--ease),background .15s;
}
.rec-play:hover{transform:translateY(-1px) scale(1.02);background:var(--acc)}
.rec-play svg{width:13px;height:13px;fill:currentColor}
.tl-toggle{
  color:var(--text-3);font-size:11.5px;font-weight:750;letter-spacing:.16em;
  padding:11px 4px;border-bottom:1px solid transparent;transition:color .15s var(--ease);
}
.tl-toggle:hover{color:var(--text)}
.tl{margin-top:14px;max-width:760px}
.tl[hidden]{display:none}

/* ── mixes ────────────────────────────────────────────────── */
.mixes{position:relative;padding:clamp(56px,9vh,100px) var(--gutter);border-bottom:1px solid var(--line);isolation:isolate;overflow:hidden}
.mixes-bg{position:absolute;inset:0;z-index:-1;background:radial-gradient(100% 140% at 90% 0%,rgba(157,92,255,.10),transparent 55%),var(--bg)}
.mixgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:clamp(14px,1.8vw,24px);margin-top:34px}
.mixgrid .empty{grid-column:1/-1;max-width:620px}

/* ── artist story ─────────────────────────────────────────── */
.story{
  position:relative;padding:clamp(64px,11vh,130px) var(--gutter);
  border-bottom:1px solid var(--line);isolation:isolate;overflow:hidden;
  display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:clamp(28px,5vw,80px);align-items:center;
}
.story-glow{position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(60% 90% at 12% 50%,rgba(53,224,255,.07),transparent 60%)}
.pullquote{font-weight:800;font-stretch:120%;letter-spacing:-.01em;line-height:1.12;font-size:clamp(28px,3.8vw,52px)}
.pullquote::before{content:"“";display:block;font-size:1.6em;line-height:.4;color:var(--nc);margin-bottom:18px}
.story-copy{color:var(--text-2);font-size:15.5px;line-height:1.75;max-width:52ch}
.story-copy + .story-copy{margin-top:18px}
.story-copy b{color:var(--text);font-weight:650}
.story-facts{display:flex;gap:clamp(20px,3vw,44px);margin-top:30px;flex-wrap:wrap}
.fact b{display:block;font-weight:900;font-stretch:122%;font-size:clamp(26px,2.6vw,38px);letter-spacing:-.01em}
.fact span{color:var(--text-3);font-size:11.5px;letter-spacing:.16em;font-weight:700}
.socials{display:flex;gap:18px;margin-top:30px;flex-wrap:wrap}
.socials a{font-size:10.5px;font-weight:800;letter-spacing:.18em;color:var(--text-3);border-bottom:1px solid transparent;padding-bottom:3px;transition:color .15s,border-color .15s}
.socials a:hover{color:var(--text);border-bottom-color:var(--nc)}

/* ── start here ───────────────────────────────────────────── */
.start{padding:clamp(56px,9vh,100px) var(--gutter);border-bottom:1px solid var(--line)}
.start-list{margin-top:34px;border-top:1px solid var(--line)}
.start-row{
  display:grid;grid-template-columns:clamp(52px,6vw,90px) 72px minmax(0,1fr) auto;
  gap:clamp(14px,2.4vw,32px);align-items:center;
  padding:18px 8px;border-bottom:1px solid var(--line);text-align:left;width:100%;
  transition:background .14s var(--ease);
}
.start-row:hover{background:var(--bg-raise)}
.start-no{font-weight:900;font-stretch:125%;font-size:clamp(26px,3vw,42px);color:transparent;-webkit-text-stroke:1px var(--text-3);transition:-webkit-text-stroke-color .15s}
.start-row:hover .start-no{-webkit-text-stroke-color:var(--acc,var(--nc))}
.start-row .cov{width:72px;border-radius:5px;box-shadow:none}
.start-row .start-txt{display:block;min-width:0}
.start-t{display:block;font-weight:750;font-size:clamp(17px,1.8vw,22px);letter-spacing:.01em}
.start-why{display:block;color:var(--text-3);font-size:13.5px;margin-top:3px}
.start-go{
  width:46px;height:46px;border-radius:50%;border:1px solid var(--line);
  display:grid;place-items:center;color:var(--text-2);
  transition:background .15s,color .15s,border-color .15s,transform .15s;
}
.start-row:hover .start-go{background:var(--text);color:#0A0B0D;border-color:var(--text);transform:scale(1.05)}
.start-go svg{width:16px;height:16px;fill:currentColor;margin-left:2px}

/* ── colophon ─────────────────────────────────────────────── */
.colophon{
  padding:44px var(--gutter) 120px;color:var(--text-3);font-size:12.5px;
  display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;letter-spacing:.06em;
}

/* ── queue drawer ─────────────────────────────────────────── */
.queue{
  position:fixed;top:calc(var(--topbar) + 12px);bottom:calc(var(--player) + 12px);
  right:max(12px,env(safe-area-inset-right,0px));
  width:min(360px,calc(100vw - 24px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px)));z-index:70;
  background:#101116;border:1px solid var(--line);border-radius:14px;
  box-shadow:0 24px 70px rgba(0,0,0,.6);
  transform:translateX(calc(100% + 24px));transition:transform .28s var(--ease);
  display:flex;flex-direction:column;overflow:hidden;
}
.queue.open{transform:translateX(0)}
.q-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid var(--line-soft)}
.q-head h2{font-size:11px;font-weight:800;letter-spacing:.24em;color:var(--text-3)}
.q-head .q-clear{font-size:11px;font-weight:700;letter-spacing:.12em;color:var(--text-3)}
.q-head .q-clear:hover{color:var(--text)}
.q-list{flex:1;overflow-y:auto;padding:8px}
.q-row{
  display:grid;grid-template-columns:40px minmax(0,1fr) auto auto;gap:12px;align-items:center;
  width:100%;text-align:left;padding:8px;border-radius:8px;color:var(--text-2);cursor:pointer;
  transition:background .13s var(--ease);
}
.q-row:hover{background:var(--bg-raise);color:var(--text)}
.q-row .cov{width:40px;border-radius:4px;box-shadow:none}
.q-row .qt{display:block;font-size:13.5px;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.q-row .qs{display:block;font-size:11.5px;color:var(--text-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.q-row.now .qt{color:var(--lime)}
.q-row .qd{font-size:12px;font-variant-numeric:tabular-nums;color:var(--text-3)}
.q-row .qx{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;color:var(--text-3);font-size:14px;opacity:0;transition:opacity .14s,color .14s,background .14s}
.q-row:hover .qx,.qx:focus-visible{opacity:1}
@media (hover:none){.q-row .qx{opacity:1}}
.q-row .qx:hover{color:var(--text);background:var(--bg-hover)}
.q-empty{padding:30px 20px;color:var(--text-3);font-size:13px;line-height:1.7}
.q-empty b{color:var(--text-2)}

/* ── toast ────────────────────────────────────────────────── */
.toast{
  position:fixed;left:50%;bottom:calc(var(--player) + 18px);transform:translate(-50%,12px);
  background:#17181F;border:1px solid var(--line);color:var(--text);
  border-radius:999px;padding:11px 22px;font-size:13px;font-weight:600;
  opacity:0;pointer-events:none;transition:opacity .2s var(--ease),transform .2s var(--ease);
  z-index:90;box-shadow:0 14px 40px rgba(0,0,0,.5);max-width:86vw;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.toast.show{opacity:1;transform:translate(-50%,0)}

/* ── player bar ───────────────────────────────────────────── */
.player{
  position:fixed;left:0;right:0;bottom:0;height:var(--player);z-index:80;
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) minmax(0,1fr);
  align-items:center;gap:20px;
  /* the bottom inset keeps the controls off the home indicator; 0px on desktop */
  padding:0 max(clamp(14px,2.5vw,28px),env(safe-area-inset-left,0px)) env(safe-area-inset-bottom,0px);
  background:rgba(11,12,15,.92);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  border-top:1px solid var(--line);
}
.p-now{display:flex;align-items:center;gap:14px;min-width:0}
.p-now .cov{width:54px;height:54px;border-radius:5px;box-shadow:none;flex:none}
.p-now-txt{min-width:0}
.p-t{font-weight:650;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.p-s{color:var(--text-3);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.playing .p-t{color:var(--lime)}
body.player-empty .p-expand{display:none}
.p-expand svg{width:16px;height:16px}
.p-mid{display:flex;flex-direction:column;align-items:center;gap:7px;min-width:0}
.p-btns{display:flex;align-items:center;gap:16px}
.icon-btn{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;color:var(--text-2);transition:color .13s,background .13s;flex:none}
/* player.js hides unsupported controls via the hidden attribute; display:grid above would defeat it */
.icon-btn[hidden]{display:none}
.icon-btn:hover{color:var(--text);background:var(--bg-hover)}
.icon-btn svg{width:17px;height:17px;fill:currentColor}
.p-toggle{width:44px;height:44px;border-radius:50%;background:var(--text);color:#0A0B0D;display:grid;place-items:center;transition:transform .13s var(--ease)}
.p-toggle:hover{transform:scale(1.06)}
.p-toggle svg{width:17px;height:17px;fill:currentColor}
.p-toggle .ic-pause{display:none}
body.playing .p-toggle .ic-play{display:none}
body.playing .p-toggle .ic-pause{display:block}
.p-scrub{display:flex;align-items:center;gap:10px;width:100%;max-width:520px}
.p-scrub span,.p-scrub-m span{font-size:11px;color:var(--text-3);font-variant-numeric:tabular-nums;min-width:34px}
.p-scrub span:last-child,.p-scrub-m span:last-child{text-align:right}
.bar{flex:1;height:4px;border-radius:2px;background:#2A2B33;position:relative;cursor:pointer}
.bar .fill{position:absolute;left:0;top:0;bottom:0;width:0%;border-radius:2px;background:var(--lime);transition:width .18s linear}
/* the mobile scrubber row. Declared here, ABOVE the responsive block: as a
   later sibling rule its display:none used to win over the @media override,
   so the phone player shipped with no seek bar and no times at all. */
.p-scrub-m{display:none;align-items:center;gap:10px;padding:0 clamp(14px,2.5vw,28px) 4px}
.p-right{display:flex;align-items:center;justify-content:flex-end;gap:6px}
.vol{
  width:88px;height:4px;-webkit-appearance:none;appearance:none;border-radius:2px;
  background:linear-gradient(var(--lime),var(--lime)) no-repeat #2A2B33;background-size:72% 100%;cursor:pointer;
}
.vol::-webkit-slider-thumb{-webkit-appearance:none;width:12px;height:12px;border-radius:50%;background:var(--text)}
.vol::-moz-range-thumb{width:12px;height:12px;border:0;border-radius:50%;background:var(--text)}

/* player.js error banner (injected into #player) */
.player-error{
  position:absolute;left:50%;transform:translateX(-50%);bottom:calc(100% + 10px);
  display:flex;align-items:center;gap:12px;max-width:min(92vw,520px);
  background:#2A1417;border:1px solid #5B2630;color:#FFD9DE;
  border-radius:999px;padding:9px 14px 9px 18px;font-size:13px;
}
.player-error-close{color:inherit;opacity:.7}
.player-error-close:hover{opacity:1}

/* ── now-playing sheet ────────────────────────────────────── */
.sheet{
  position:fixed;inset:0;z-index:95;background:var(--bg);
  padding:clamp(20px,4vh,44px) var(--gutter) calc(var(--player) + 24px);
  display:flex;flex-direction:column;align-items:center;gap:14px;overflow-y:auto;
}
.sheet[hidden]{display:none}
.sheet-close{align-self:flex-start}
.sheet-close svg{width:20px;height:20px}
.sheet-art{width:min(300px,62vw);border-radius:10px;margin-top:6px}
.sheet-title{font-weight:880;font-stretch:122%;font-size:clamp(26px,4vw,44px);line-height:1.05;text-align:center;letter-spacing:-.01em}
.sheet-sub{color:var(--text-3);font-size:13px;letter-spacing:.16em;font-weight:700;text-transform:uppercase}
.sheet-times{display:flex;gap:14px;color:var(--text-3);font-size:12px;font-variant-numeric:tabular-nums}
.sheet-tl{width:min(720px,100%);margin-top:8px}
.sheet-tl .tl-row{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;
  width:100%;text-align:left;padding:9px 12px;border-radius:6px;color:var(--text-2);cursor:pointer;
  box-shadow:inset 0 -1px 0 rgba(255,255,255,.04);
}
.sheet-tl .tl-row:hover{background:var(--bg-raise);color:var(--text)}
.sheet-tl .tl-row.now{color:var(--lime)}
.sheet-skips{display:flex;gap:12px;margin-top:6px}
.skip-btn{
  border:1px solid var(--line);border-radius:999px;padding:10px 18px;
  color:var(--text-2);font-weight:700;font-size:12px;letter-spacing:.1em;
}
.skip-btn:hover{color:var(--text);border-color:var(--text-3);background:var(--bg-raise)}

/* ── boot / error ─────────────────────────────────────────── */
.boot,.fatal{padding:60px var(--gutter);color:var(--text-3);font-size:13px;letter-spacing:.18em;font-weight:700}
.fatal{color:#FFD9DE}
.fatal .btn-ghost{margin-top:16px;letter-spacing:.1em}

/* ── responsive ───────────────────────────────────────────── */
@media (max-width:1020px){
  .listening{grid-template-columns:1fr}
  .story{grid-template-columns:1fr}
  .topsearch{order:3;flex:1 1 100%}
  .topctl{order:4}
  /* display type is set in vw — a single long word outruns its column and gets
     clipped by the section's overflow:hidden. Let the big faces break instead. */
  .hero h1,.chap-title,.rec h3,.h-sec,.pullquote,.card .c-title,.start-t{overflow-wrap:break-word}
}
@media (max-width:700px){
  /* --player is the REAL bar height (2 rows + padding + home indicator): the
     drawer, the toast, the sheet and the body's bottom padding all read it. */
  :root{--player:calc(90px + env(safe-area-inset-bottom,0px));--topbar:117px}
  .hero{min-height:0}
  /* the hero has to fit above the fold with the topbar already spending height:
     smaller plate, tighter rhythm, PLAY still on the first screen. */
  .hero-in{grid-template-columns:1fr;align-items:start;gap:18px;padding-top:22px;padding-bottom:26px}
  .hero-cover{width:min(44vw,170px);order:-1}
  .hero h1{font-size:clamp(38px,12vw,72px);margin:10px 0 8px}
  .hero-actions{gap:10px;margin-top:16px}
  .hero-meta{gap:14px;margin-top:16px;font-size:11px}
  .grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
  .rec{grid-template-columns:1fr}
  .rec .cov{width:min(52vw,220px)}
  /* masthead: exactly two rows at every phone width — [wordmark · search ·
     actions] then the filter strip. The flex-basis values do the line
     breaking: the first three are basis-0/auto so they can never wrap, and
     .topctl's 100% basis always starts the second line. */
  .topbar{
    gap:8px 10px;padding:10px var(--gutter);
    padding-top:calc(10px + env(safe-area-inset-top,0px));
    padding-inline:max(var(--gutter),env(safe-area-inset-left,0px));
  }
  .wm{font-size:19px;margin-right:0}
  .topsearch{order:1;flex:1 1 0;min-width:0;min-height:44px;padding:0 14px}
  /* 16px or iOS zooms the whole page on focus and the layout jumps */
  .topsearch input{font-size:16px}
  .topsearch .clear-q{padding:0 8px;min-height:44px;font-size:20px;line-height:44px}
  .top-actions{order:2;flex:none;margin-left:0}
  .topctl{order:3;flex:1 1 100%;overflow-x:auto;overscroll-behavior-x:contain}
  /* icon-only actions: font-size:0 hides the label glyphs but keeps the text
     in the accessibility tree, so both buttons keep their names. */
  .btn{min-height:44px;min-width:44px;padding:0 13px;gap:6px;font-size:0}
  .btn svg{width:18px;height:18px}
  #qCount{font-size:11.5px}
  .chip{padding:0 15px;min-height:44px}
  .sortseg{min-height:44px}
  /* the segment sits inside a 44px strip, so its buttons borrow the rest
     of the strip as tap area rather than growing the row */
  .sortseg button{padding:0 13px;position:relative}
  .sortseg button::after{content:"";position:absolute;inset:-4px 0}

  /* player: [artwork+title][transport][airplay] over a full-width scrubber.
     Areas are explicit — auto-placement was pushing .p-right onto a third
     row, which is what made the bar overrun --player and the drawer. */
  .player{
    grid-template-columns:minmax(0,1fr) auto auto;
    grid-template-rows:44px auto;
    grid-template-areas:"now transport aux" "scrub scrub scrub";
    gap:8px 10px;height:var(--player);
    padding-top:8px;padding-bottom:calc(8px + env(safe-area-inset-bottom,0px));
  }
  .p-now{grid-area:now;position:relative;gap:10px}
  .p-now .cov{width:44px;height:44px}
  .p-now-txt{padding-right:26px}
  /* the whole now-playing block opens the sheet; the chevron stays as the cue */
  .p-now .p-expand{position:absolute;inset:0;width:auto;height:auto;border-radius:6px;place-items:center end}
  .p-now .p-expand:hover{background:none}
  .p-mid{grid-area:transport;gap:0}
  .p-mid .p-scrub{display:none}
  .p-btns{gap:4px}
  .icon-btn{width:44px;height:44px}
  .p-right{grid-area:aux}
  /* iOS ignores element volume (hardware keys own it) and a 4px slider is not
     a touch target; the duplicate queue button lives in the masthead. */
  .vol,#queueBtn{display:none}
  .p-scrub-m{grid-area:scrub;display:flex;padding:0}
  /* 4px of ink, 26px of tap: the extra area stays inside the scrubber row */
  .p-scrub-m .bar::after{content:"";position:absolute;left:0;right:0;top:-10px;bottom:-12px}

  /* queue drawer: 44px rows, and its remove button needs a touch-visible state */
  .q-head .q-clear{min-height:44px;padding:0 4px}
  .q-row{grid-template-columns:40px minmax(0,1fr) auto 44px}
  .q-row .qx{width:44px;height:44px;font-size:16px}
  .tr{grid-template-columns:28px minmax(0,1fr) auto 44px;gap:10px}
  .tr .tr-p{display:none}
  .start-row{grid-template-columns:40px 56px minmax(0,1fr) auto;gap:12px}
  .start-row .cov{width:56px}
  .ghost{font-size:clamp(96px,26vw,150px)}

  /* section rhythm: 9–11vh of padding is a whole thumb-swipe of nothing */
  .shelf{padding:26px var(--gutter) 34px}
  .listening{padding:32px var(--gutter)}
  .chapter{padding:40px var(--gutter) 32px}
  .chap-head{gap:12px;margin-bottom:24px}
  .chap-note{margin-left:0}
  .rec{padding:24px 0}
  .mixes,.story,.start{padding:40px var(--gutter)}
  .mixgrid,.start-list{margin-top:22px}

  /* cards: the play button is anchored to the artwork, not to the card box —
     card height moves with the title, and bottom:64px landed on the words. */
  .card .c-play{top:12px;left:12px;right:auto;bottom:auto}
  .card .c-add{top:12px;right:12px;width:44px;height:44px;font-size:20px}
  .card .c-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  /* no max-height clip here: music-app.js appends the DEMO badge inside .c-meta */
  .card .c-meta{gap:6px}

  /* touch targets — 44px minimum, thumbs are blunt */
  .tr .tr-q{width:44px;height:44px}
  .tl-toggle{padding:14px 4px}
  .rec-play{padding:14px 22px 14px 17px}
  .jump a{display:inline-block;padding:14px 0 6px}
  .socials a{display:inline-block;padding:13px 0}
  .empty .btn-ghost{padding:14px 18px}
  .start-no{font-size:24px}
  .start-why{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

  /* listening shelves: horizontal scrollers that land on a card */
  .hrow{scroll-snap-type:x proximity}
  .hcard{scroll-snap-align:start}

  /* now playing: art must not eat a short viewport, close stays reachable */
  .sheet{gap:12px}
  .sheet-close{position:sticky;top:0;width:44px;height:44px;background:var(--bg)}
  .sheet-art{width:min(300px,62vw,42vh)}
  .sheet-tl .tl-row{padding:12px}
  .skip-btn{padding:13px 20px}
}
@media (prefers-reduced-motion:reduce){
  *{animation:none !important;transition:none !important;scroll-behavior:auto !important}
}
