/* The Listening Room — warm, Humboldt-rooted, mobile first */
:root {
  --bg: #16110d;          /* redwood-shade charcoal */
  --bg-2: #1e1712;
  --surface: #261d16;
  --surface-2: #30251c;
  --line: #3d3026;
  --ink: #f5ece0;         /* warm paper */
  --ink-soft: #d3c3ae;    /* ~10:1 on --bg */
  --ink-mute: #b3a18b;    /* ~7:1 on --bg */
  --amber: #f0b46a;       /* soft late light */
  --amber-deep: #e39b4a;
  --redwood: #b8573a;
  --moss: #8fa877;
  --fog: #9fb3b8;
  --on-amber: #1f140b;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --player-h: 132px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Charter, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
@media (min-width: 760px) { :root { --player-h: 92px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(240,180,106,.10), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(143,168,119,.08), transparent 60%),
    var(--bg);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  min-height: 100vh;
  padding-bottom: calc(var(--player-h) + env(safe-area-inset-bottom));
}
body.no-player { padding-bottom: 0; }
img { max-width: 100%; display: block; }
a { color: var(--amber); }
a:hover { color: #ffd29a; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; color: inherit; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--amber); color: var(--on-amber); padding: 10px 14px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.noscript { padding: 24px 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(22,17,13,.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(61,48,38,.7);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-mark { width: 30px; height: 30px; color: var(--moss); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.brand-name { font-family: var(--serif); font-size: 19px; font-weight: 600; }
.site-header nav { display: flex; gap: 4px; }
.site-header nav a { color: var(--ink-soft); text-decoration: none; padding: 8px 10px; border-radius: 999px; font-size: 15px; white-space: nowrap; }
.site-header nav a:hover { color: var(--ink); background: var(--surface); }
.site-header nav a[aria-current="page"] { color: var(--on-amber); background: var(--amber); font-weight: 600; }

main { display: block; outline: none; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 28px; } }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-scene { position: absolute; inset: 0; z-index: -1; }
.hero-scene svg { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; }
.hero-inner { padding: 44px 0 64px; max-width: 680px; }
@media (min-width: 760px) { .hero-inner { padding: 84px 0 110px; } }
.eyebrow { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--moss); font-weight: 600; margin: 0 0 10px; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 8vw, 62px); line-height: 1.05; margin: 0 0 16px; letter-spacing: -.01em; text-wrap: balance; }
.hero p.lede { font-size: clamp(17px, 2.4vw, 20px); color: var(--ink-soft); margin: 0 0 24px; max-width: 34em; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 650; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn-primary { background: var(--amber); color: var(--on-amber); }
.btn-primary:hover { background: #ffc683; color: var(--on-amber); }
.btn-ghost { background: rgba(38,29,22,.7); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--amber); color: var(--ink); }
.btn:active { transform: scale(.97); }

/* Sections and grid */
.section { padding: 8px 0 36px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 16px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(25px, 4vw, 32px); margin: 0; }
.section-head p { margin: 0; color: var(--ink-mute); font-size: 15px; }

.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 620px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 22px; } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.card { position: relative; }
.card-media { position: relative; }
.card-link { display: block; text-decoration: none; color: var(--ink); border-radius: var(--radius); }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--amber); }
.card-title a::after { content: ""; position: absolute; inset: 0 0 auto 0; aspect-ratio: 1; }
.card-art {
  position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card-art img { width: 100%; height: 100%; object-fit: cover; }
.card-art::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); pointer-events: none; }
@media (hover: hover) {
  .card:hover .card-art { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(0,0,0,.55); }
}
.card-title { font-family: var(--serif); font-weight: 600; font-size: 17px; line-height: 1.25; margin: 10px 2px 2px; text-wrap: balance; }
.card-sub { margin: 0 2px; color: var(--ink-mute); font-size: 14px; }
.card-play {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--amber); color: var(--on-amber); display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.5);
  transition: transform .15s ease, opacity .2s ease;
}
.card-play svg { width: 22px; height: 22px; fill: currentColor; }
.card-play:hover { transform: scale(1.06); }
@media (hover: hover) and (min-width: 760px) {
  .card .card-play { opacity: 0; }
  .card:hover .card-play, .card .card-play:focus-visible, .card.is-playing .card-play { opacity: 1; }
}
.card.is-playing .card-art { outline: 3px solid var(--amber); outline-offset: 3px; }

/* Album page */
.album-hero { position: relative; isolation: isolate; overflow: hidden; }
.album-backdrop { position: absolute; inset: -40px; z-index: -2; background-size: cover; background-position: center; filter: blur(40px) saturate(1.2) brightness(.55); transform: scale(1.1); }
.album-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(22,17,13,.35), rgba(22,17,13,.85) 70%, var(--bg)); }
.album-top { display: grid; gap: 20px; padding: 24px 0 28px; }
@media (min-width: 760px) { .album-top { grid-template-columns: 300px 1fr; gap: 36px; align-items: end; padding: 48px 0 40px; } }
@media (min-width: 1000px) { .album-top { grid-template-columns: 360px 1fr; } }
.album-cover { width: min(78vw, 360px); aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.6); background: var(--surface); justify-self: center; }
@media (min-width: 760px) { .album-cover { width: 100%; justify-self: stretch; } }
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); text-decoration: none; font-size: 15px; padding: 8px 0; }
.back:hover { color: var(--ink); }
.album-info h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 6vw, 52px); line-height: 1.08; margin: 4px 0 12px; text-wrap: balance; }
.album-meta { color: var(--ink-mute); font-size: 15px; margin: 0 0 12px; }
.album-desc { color: var(--ink-soft); margin: 0 0 20px; max-width: 40em; text-wrap: pretty; }
.album-note { color: var(--ink-mute); font-size: 14px; font-style: italic; margin: -8px 0 20px; max-width: 40em; }
.album-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.tracks { list-style: none; margin: 0; padding: 0 0 40px; counter-reset: none; }
.track { border-bottom: 1px solid rgba(61,48,38,.6); }
.track-row {
  width: 100%; display: grid; grid-template-columns: 28px 56px 1fr auto; align-items: center; gap: 12px;
  padding: 10px 8px; background: none; border: 0; border-radius: var(--radius-sm);
  text-align: left; cursor: pointer; color: var(--ink);
  transition: background-color .15s ease;
}
.track-row:hover { background: rgba(48,37,28,.7); }
.track-num { color: var(--ink-mute); font-variant-numeric: tabular-nums; text-align: right; font-size: 15px; }
.track-art { width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.track-art img { width: 100%; height: 100%; object-fit: cover; }
.track-text { min-width: 0; }
.track-title { display: block; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.track-sub { display: block; color: var(--ink-mute); font-size: 13.5px; }
.track-dur { color: var(--ink-mute); font-variant-numeric: tabular-nums; font-size: 15px; }
.track.is-current .track-title { color: var(--amber); }
.track.is-current .track-num { color: var(--amber); }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; background: var(--amber); border-radius: 1px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.4s; } .eq i:nth-child(3) { animation-delay: -.7s; }
.paused .eq i { animation-play-state: paused; }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 14px; } }
.lyrics { margin: 0 8px 12px 48px; }
.lyrics summary { cursor: pointer; color: var(--amber); font-size: 15px; padding: 4px 0; }
.lyrics pre { white-space: pre-wrap; font: 16px/1.6 var(--serif); color: var(--ink-soft); margin: 8px 0 0; }
@media (min-width: 760px) { .lyrics { margin-left: 104px; } }

.empty { color: var(--ink-mute); padding: 40px 0; }

/* Footer */
.site-footer { text-align: center; color: var(--ink-mute); font-size: 14px; padding: 28px 16px 36px; border-top: 1px solid rgba(61,48,38,.6); margin-top: 20px; }
.site-footer p { margin: 0; }

/* Player */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: rgba(30,23,18,.94);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(0,0,0,.35);
  padding: 6px 12px calc(8px + env(safe-area-inset-bottom));
  outline: none;
}
.player[hidden] { display: none; }
.player-progress { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.time { font-size: 12.5px; color: var(--ink-mute); font-variant-numeric: tabular-nums; min-width: 36px; text-align: center; }
.player-main { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 12px; margin-top: 4px; }
.player-art-link { display: block; border-radius: 8px; }
.player-art { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.player-meta { min-width: 0; }
.player-title { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-album { display: block; color: var(--ink-mute); font-size: 14px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-album:hover { color: var(--ink); text-decoration: underline; }
.player-controls { display: flex; align-items: center; gap: 4px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.icon-btn svg { width: 24px; height: 24px; fill: currentColor; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn.play { width: 52px; height: 52px; background: var(--amber); color: var(--on-amber); }
.icon-btn.play:hover { background: #ffc683; }
.icon-btn.play svg { width: 26px; height: 26px; }
.icon-btn.small { width: 40px; height: 40px; }
.icon-btn .i-pause, .icon-btn .i-muted { display: none; }
.player.is-playing .i-play { display: none; }
.player.is-playing .i-pause { display: block; }
.player.is-muted .i-vol { display: none; }
.player.is-muted .i-muted { display: block; }
.player-volume { display: none; align-items: center; gap: 6px; }
@media (min-width: 760px) {
  .player { padding: 10px 24px calc(10px + env(safe-area-inset-bottom)); }
  .player-main { grid-template-columns: 64px minmax(0, 1fr) auto minmax(0, 1fr); gap: 18px; margin-top: 0; }
  .player-art { width: 64px; height: 64px; }
  .player { display: grid; grid-template-columns: 1fr; }
  .player-progress { order: 2; max-width: 640px; width: 100%; margin: 4px auto 0; }
  .player-volume { display: flex; justify-self: end; }
  .player-volume input { width: 120px; }
}

/* Range inputs */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 5px; border-radius: 999px; background: linear-gradient(to right, var(--amber) var(--fill, 0%), #4a3b2f var(--fill, 0%)); }
input[type="range"]::-moz-range-track { height: 5px; border-radius: 999px; background: #4a3b2f; }
input[type="range"]::-moz-range-progress { height: 5px; border-radius: 999px; background: var(--amber); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); margin-top: -5.5px; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--ink); }
input[type="range"]:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

@media (forced-colors: active) {
  .btn, .icon-btn, .card-play { border: 1px solid ButtonText; }
}

/* ---------- Phones: header wraps, player shows the add button ---------- */
@media (max-width: 759px) {
  .site-header { flex-wrap: wrap; row-gap: 6px; }
  .site-header nav { width: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; }
  .site-header nav::-webkit-scrollbar { display: none; }
  .player-main { grid-template-columns: 56px minmax(0, 1fr) auto auto; gap: 8px; }
  .player-volume { display: flex; }
  .player-volume #p-vol, .player-volume #p-mute { display: none; }
}
@media (min-width: 760px) {
  .player-volume { gap: 4px; }
}

/* ---------- Track rows with actions ---------- */
.track { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.track .lyrics { grid-column: 1 / -1; }
.track-actions { display: flex; gap: 2px; padding-right: 4px; }
.track-actions .icon-btn { color: var(--ink-soft); }
.track-actions .icon-btn:hover { color: var(--ink); }
.track-actions .icon-btn:disabled { opacity: .35; cursor: default; background: transparent; }
.icon-btn.danger:hover, .btn.danger:hover { color: #ffb4a0; border-color: #c4664c; }
.track-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) {
  .track-row { grid-template-columns: 22px 48px minmax(0, 1fr) auto; gap: 10px; padding: 8px 4px; }
  .track-art { width: 48px; height: 48px; }
  .track-dur { font-size: 13px; }
}
.icon-btn:disabled { opacity: .35; cursor: default; }
.next-album { padding-bottom: 32px; }

/* ---------- Playlist pages ---------- */
.page { padding-top: 28px; padding-bottom: 40px; }
.page-title { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 6vw, 48px); line-height: 1.1; margin: 4px 0 10px; text-wrap: balance; outline: none; }
.lede.small { font-size: 17px; color: var(--ink-soft); max-width: 38em; margin: 0 0 22px; }
.notice { background: rgba(240,180,106,.10); border: 1px solid rgba(240,180,106,.35); border-radius: var(--radius-sm); padding: 12px 14px; color: var(--ink); margin: 0 0 20px; max-width: 46em; }
.inline-form { margin: 0 0 28px; max-width: 560px; }
.inline-form label { display: block; font-weight: 600; margin-bottom: 8px; }
.inline-row { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-row input { flex: 1 1 220px; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); font: inherit; }
.inline-row input::placeholder { color: #8f7f6c; }
.inline-row input:focus-visible { border-color: var(--amber); }
.rename { margin-top: 16px; margin-bottom: 0; }
.playlist-top { display: grid; gap: 20px; margin: 8px 0 24px; }
@media (min-width: 760px) { .playlist-top { grid-template-columns: 240px 1fr; align-items: end; gap: 32px; } }
.playlist-cover { width: min(60vw, 240px); aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.mosaic { width: 100%; height: 100%; display: grid; grid-template-columns: 1fr 1fr; }
.mosaic.one { display: block; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.empty-mosaic { display: grid; place-items: center; background: linear-gradient(140deg, #3a2a1f, #20352c); color: var(--amber); }
.empty-mosaic svg { width: 38%; height: 38%; fill: currentColor; }
.kbd-plus { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); color: var(--amber); font-weight: 700; }

/* ---------- Add-to-playlist dialog ---------- */
.dialog { width: min(92vw, 460px); max-height: min(80vh, 640px); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.dialog::backdrop { background: rgba(10,7,5,.65); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 16px 8px 20px; }
.dialog-head h2 { font-family: var(--serif); font-size: 21px; margin: 0; line-height: 1.25; }
#add-dialog-body { padding: 4px 20px 20px; overflow: auto; }
#add-dialog-body .inline-form { margin: 16px 0 0; }
.dlg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dlg-choice { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-2); cursor: pointer; }
.dlg-choice:hover { border-color: var(--amber); }
.dlg-name { font-weight: 650; }
.dlg-count, .dlg-empty { color: var(--ink-mute); font-size: 14px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--player-h) + 16px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 40;
  background: var(--ink); color: var(--on-amber); padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 15px;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.no-player .toast { bottom: 24px; }

/* ---------- Player modes (shuffle / repeat) and phone layout ---------- */
.icon-btn.mode { position: relative; color: var(--ink-mute); }
.icon-btn.mode.on { color: var(--amber); }
.icon-btn.mode.on::after { content: ""; position: absolute; bottom: 4px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--amber); }
.repeat-one { display: none; position: absolute; top: 6px; right: 6px; font-size: 10px; font-weight: 800; line-height: 1; color: var(--amber); }
#p-repeat[data-mode="one"] .repeat-one { display: block; }
@media (max-width: 759px) {
  :root { --player-h: 176px; }
  .player-main { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .player-volume { grid-column: 1 / -1; justify-content: space-around; margin-top: 2px; }
}

/* ---------- New tags ---------- */
.tag-new { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--moss); color: #12170e; font: 700 11px/1.6 var(--sans); letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }
.eyebrow .tag-new { margin-left: 10px; }
.card-new { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 3px 10px; border-radius: 999px; background: var(--moss); color: #12170e; font: 800 12px/1.5 var(--sans); letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 4px 12px rgba(0,0,0,.4); }

/* ---------- Stories ---------- */
.story-block { max-width: 46em; margin: 8px 0 28px; padding: 18px 20px; background: linear-gradient(160deg, rgba(48,37,28,.75), rgba(32,45,38,.45)); border: 1px solid var(--line); border-radius: var(--radius); }
.story-block h2 { font-family: var(--serif); font-weight: 600; font-size: 23px; margin: 0 0 8px; }
.story-block p { margin: 0 0 10px; color: var(--ink-soft); font-size: 17.5px; }
.story-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0 0; font-size: 15.5px; }
.story-facts dt { color: var(--ink-mute); }
.story-facts dd { margin: 0; color: var(--ink); }
@media (max-width: 480px) { .story-facts { grid-template-columns: 1fr; } .story-facts dd { margin-bottom: 6px; } }
.story-text p { margin: 6px 0; color: var(--ink-soft); }
.story-text.behind h4 { margin: 10px 0 0; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute); }

/* ---------- Shared-song link ---------- */
.shared-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 12px 0; }
.track.is-linked { background: rgba(240,180,106,.10); border-radius: var(--radius-sm); box-shadow: inset 3px 0 0 var(--amber); }

/* ---------- Now playing ---------- */
.now-top { display: grid; gap: 22px; margin: 4px 0 28px; }
@media (min-width: 760px) { .now-top { grid-template-columns: 340px 1fr; align-items: end; gap: 36px; } }
.now-art { width: min(82vw, 340px); aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.6); background: var(--surface); justify-self: center; }
@media (min-width: 760px) { .now-art { width: 100%; } }
.now-art img { width: 100%; height: 100%; object-fit: cover; }
.lyrics-plain { white-space: pre-wrap; font: 18px/1.7 var(--serif); color: var(--ink-soft); margin: 0; }
.lyrics-timed { position: relative; max-height: 60vh; overflow-y: auto; padding: 8px 0; scroll-padding: 40% 0; }
.lyric-line { font: 600 20px/1.5 var(--serif); color: #8f7f6c; margin: 0 0 10px; transition: color .25s ease; }
.lyric-line.on { color: var(--ink); }

/* ---------- Download progress ---------- */
.dl-status { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--player-h) + 64px + env(safe-area-inset-bottom)); z-index: 41;
  background: var(--surface-2); color: var(--ink); border: 1px solid var(--amber); padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 15px;
  box-shadow: var(--shadow); max-width: calc(100vw - 32px); text-align: center; }
.dl-status[hidden] { display: none; }
body.no-player .dl-status { bottom: 70px; }
