/* =========================================================
   LIFTED DESIGN SYSTEM
   Finimize x SoundCloud: one hot accent (Ember), an electric brand blue,
   heavy display type with small monospace labels. Light is the default;
   dark (a pure-black stage) is one tap away. See /design for the reference.

   Colour roles
     canvas/surfaces  --bg < --surface < --surface-2 < --surface-3 (each step lifts)
     text             --text > --text-2 > --muted > --faint
     ink              primary buttons & selected states (--on-ink is their text)
     accent (Ember)   the music: waveform, progress, now playing, streaks, live
     signal (blue)    links, info, "new"
     success/danger   status only
   ========================================================= */
:root {
  /* brand (theme-independent) */
  --ember: #ff5a1f;
  --ember-2: #ff8a3d;
  --ember-3: #ffc24b;
  --ember-deep: #e2400b;
  --grad-ember: linear-gradient(135deg, var(--ember-3) 0%, var(--ember-2) 38%, var(--ember) 70%, var(--ember-deep) 100%);

  /* light theme */
  --bg: #f6f6f4;
  --surface: #ffffff;
  --surface-2: #f2f2ef;
  --surface-3: #e9e9e5;
  --line: #e4e4e0;
  --line-strong: #d3d3ce;
  --text: #0e0e0f;
  --text-2: #36363a;
  --muted: #6a6a6e;
  --faint: #9a9a97;
  --ink: #0e0e0f;
  --ink-hover: #2a2a2d;
  --on-ink: #ffffff;
  --glass: rgba(255, 255, 255, 0.86);
  --accent: var(--ember);
  --accent-text: #d9420a;
  --accent-soft: rgba(255, 90, 31, 0.1);
  --on-accent: #ffffff;
  --signal: #2443e8;
  --brand: var(--signal);
  --success: #1f9d63;
  --success-bg: #e8f6ee;
  --success-line: #c8ead6;
  --danger: #d93a3f;
  --danger-bg: #fff0f0;
  --danger-line: #fbd2d3;
  --live: var(--danger);
  --green: var(--success);
  --wave-rest: #cfcfca;
  --lyric-dim: rgba(14, 14, 15, 0.24);
  --lyric-past: rgba(14, 14, 15, 0.3);
  --lyric-hover: rgba(14, 14, 15, 0.42);
  --focus: rgba(255, 90, 31, 0.35);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-pop: 0 1px 2px rgba(0, 0, 0, 0.06), 0 24px 48px -16px rgba(0, 0, 0, 0.24);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --player-h: 72px;
  --dock-gap: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --h: 24; /* current track hue, set from JS */
  color-scheme: light;
}
/* dark theme (the listener's choice, set by the inline script in index.html) */
:root[data-theme="dark"] {
  --bg: #000000;
  --surface: #111214;
  --surface-2: #18191c;
  --surface-3: #222327;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);
  --text: #f4f4f1;
  --text-2: #cfcfca;
  --muted: #8f8f8a;
  --faint: #5f5f5b;
  --ink: #f4f4f1;
  --ink-hover: #ffffff;
  --on-ink: #000000;
  --glass: rgba(17, 18, 20, 0.8);
  --accent-text: #ff7a45;
  --accent-soft: rgba(255, 90, 31, 0.14);
  --signal: #4d6bff;
  --brand: var(--signal);
  --success: #3ccf8e;
  --success-bg: rgba(60, 207, 142, 0.12);
  --success-line: rgba(60, 207, 142, 0.25);
  --danger: #ff6b6b;
  --danger-bg: rgba(255, 107, 107, 0.12);
  --danger-line: rgba(255, 107, 107, 0.26);
  --wave-rest: #3a3a3f;
  --lyric-dim: rgba(244, 244, 241, 0.22);
  --lyric-past: rgba(244, 244, 241, 0.3);
  --lyric-hover: rgba(244, 244, 241, 0.45);
  --focus: rgba(255, 122, 69, 0.45);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-pop: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 14.5px; line-height: 1.55;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--player-h) + var(--dock-gap) * 2 + 16px);
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--text); }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
.mono { font-variant-numeric: tabular-nums; font-size: 0.86em; }
.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; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--ink); color: var(--on-ink); }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: var(--on-ink); padding: 8px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

[data-icon] { display: inline-flex; width: 18px; height: 18px; flex: none; }
[data-icon] svg { width: 100%; height: 100%; }

.eyebrow { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--glass); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1280px; margin: 0 auto; padding: 10px var(--gutter); display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 16px 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 26px; height: 26px; }
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.brand-name em { font-style: normal; font-weight: 500; color: var(--muted); margin-left: 4px; }
.brand-name.small { font-size: 15px; }

.tabs { display: flex; justify-content: center; gap: 2px; justify-self: center; }
.tab { position: relative; border: 0; background: none; color: var(--muted); padding: 9px 14px; border-radius: 8px; font-weight: 500; font-size: 14px; white-space: nowrap; transition: color .15s, background .15s; }
.tab:hover { color: var(--text); background: var(--surface-2); }
.tab[aria-selected="true"] { color: var(--text); font-weight: 600; }
.tab[aria-selected="true"]::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -11px; height: 2px; background: var(--ink); border-radius: 2px; }

.onair { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.onair > span:nth-child(2) { color: var(--text); font-weight: 600; }
.onair-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: ping 2s infinite; }
.onair-sep { color: var(--faint); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(229,72,77,.45); } 70% { box-shadow: 0 0 0 7px rgba(229,72,77,0); } 100% { box-shadow: 0 0 0 0 rgba(229,72,77,0); } }

/* ---------- Layout ---------- */
main { max-width: 1280px; margin: 0 auto; padding: 28px var(--gutter) 40px; }
.panel { animation: fadeUp .3s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); min-width: 0; }
.card-title { font-size: 16px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 4px; }
.card-sub { color: var(--muted); font-size: 13.5px; }

.section-head { max-width: 720px; margin: 12px 0 28px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; }
.section-lede { color: var(--muted); font-size: 16px; margin-top: 12px; }
.grid { display: grid; gap: 16px; }

/* ---------- Buttons & controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--radius-sm); padding: 9px 16px; font-weight: 600; font-size: 14px; line-height: 1.2; white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s, color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { background: var(--ink-hover); }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--text); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-small { padding: 7px 12px; font-size: 13px; }
.btn-block { width: 100%; padding: 11px 16px; }
.btn-icon { display: inline-flex; width: 16px; height: 16px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--text-2); transition: background .15s, color .15s; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn-amber { background: var(--ink); color: var(--on-ink); border-color: transparent; }
.icon-btn-amber:hover { background: var(--ink-hover); color: var(--on-ink); }

.seg { border: 0; background: transparent; color: var(--muted); padding: 5px 11px; border-radius: 7px; font-size: 12.5px; font-weight: 600; transition: background .15s, color .15s; }
.seg[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.04); }
.seg:not([aria-pressed="true"]):hover { color: var(--text); }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.badge-live { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-line); }
.badge-archive { background: var(--surface-2); color: var(--text-2); }
.badge.small { font-size: 11px; padding: 2px 7px; }
.pulse { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: ping 2s infinite; }
.badge-archive .pulse { animation: none; }

input, textarea, select { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 9px 12px; width: 100%; outline: none; box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus, select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--focus); }
textarea { resize: vertical; min-height: 44px; }
input[type="radio"] { width: auto; box-shadow: none; }
input[type="range"] { padding: 0; border: 0; background: transparent; accent-color: var(--ink); box-shadow: none; }

/* ---------- Live: stage ---------- */
.live-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: stretch; }
.stage { --pad: 28px; padding: var(--pad); display: flex; flex-direction: column; gap: 24px; overflow: hidden; }
.stage-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.show-chip { font-size: 13px; color: var(--muted); }
.show-chip strong { color: var(--text); font-weight: 600; }
.stage-body { display: grid; grid-template-columns: minmax(240px, 360px) 1fr; gap: 40px; align-items: center; }

/* Sleeve + record */
.deck { position: relative; width: 100%; aspect-ratio: 1.3 / 1; }
.sleeve { position: absolute; left: 0; top: 0; z-index: 2; width: 76%; aspect-ratio: 1; border-radius: 10px; overflow: hidden; padding: 8%; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 24px 40px -18px rgba(0,0,0,.35); }
.sleeve::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.3), transparent 40%); pointer-events: none; }
.sleeve-brand { font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(17,17,17,.6); }
.sleeve-title { font-weight: 800; font-size: clamp(18px, 2.1vw, 27px); line-height: 1.05; letter-spacing: -0.035em; color: rgba(17,17,17,.88); }
.platter { position: absolute; top: 3%; left: 27%; width: 70%; aspect-ratio: 1; z-index: 1; transform: translateX(-12%); transition: transform 1s cubic-bezier(.2,.8,.2,1); }
body.is-playing .platter { transform: translateX(6%); }
.vinyl { width: 100%; height: 100%; border-radius: 50%; position: relative;
  background: radial-gradient(circle, transparent 0 32%, #0c0c0d 32.5% 34%, transparent 34.5%), repeating-radial-gradient(circle, #1a1a1c 0 1.2px, #0b0b0c 1.6px 3px), #0d0d0e;
  box-shadow: 0 18px 36px -16px rgba(0,0,0,.5), inset 0 0 0 2px #050505;
  animation: spin 1.8s linear infinite; animation-play-state: paused; }
body.is-playing .vinyl { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }
.platter::after { content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; background: conic-gradient(from 210deg, transparent 0 8%, rgba(255,255,255,.1) 12%, transparent 18% 58%, rgba(255,255,255,.07) 62%, transparent 68%); }
.vinyl-label { position: absolute; inset: 33%; border-radius: 50%; display: grid; place-items: center; overflow: hidden; }
.vinyl-label span { font-weight: 800; font-size: clamp(10px, 1.3vw, 14px); color: rgba(17,17,17,.8); transform: translateY(-16%); }
.vinyl-label::after { content: ''; position: absolute; width: 7%; height: 7%; border-radius: 50%; background: #0b0b0c; }

.stage-info { min-width: 0; }
.stage-title { font-size: clamp(30px, 4vw, 46px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 800; overflow-wrap: anywhere; }
.stage-artist { font-size: 17px; color: var(--text-2); margin-top: 6px; font-weight: 500; }
.stage-album { color: var(--faint); margin-top: 2px; font-size: 13px; }
.progress { height: 4px; background: var(--surface-3); border-radius: 4px; margin-top: 22px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; background: var(--ink); border-radius: 4px; transition: width 1s linear; }
.progress-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--faint); margin-top: 8px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.progress-meta span:first-child { white-space: nowrap; flex: none; }
.progress-meta span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }


/* ---------- Side panel ---------- */
.side { padding: 0; display: flex; flex-direction: column; overflow: hidden; contain: size; min-height: 560px; }
.side-tabs { display: flex; gap: 2px; padding: 6px 10px 0; border-bottom: 1px solid var(--line); }
.side-tab { position: relative; border: 0; background: none; color: var(--muted); padding: 11px 10px 12px; font-weight: 500; font-size: 13.5px; display: inline-flex; align-items: center; gap: 7px; }
.side-tab:hover { color: var(--text); }
.side-tab[aria-selected="true"] { color: var(--text); font-weight: 600; }
.side-tab[aria-selected="true"]::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ink); }
.side-tab.has-unread::before { content: ''; position: absolute; top: 9px; right: 1px; width: 6px; height: 6px; border-radius: 50%; background: var(--live); }
.side-count { display: inline-flex; align-items: center; gap: 5px; padding: 1px 7px; border-radius: 999px; background: var(--success-bg); color: var(--green); font-size: 11.5px; font-weight: 600; }
.dot-green { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.side-pane { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.side-pane.chat { overflow: hidden; }
.side-label { color: var(--faint); padding: 14px 18px 6px; font-size: 12px; font-weight: 500; }

/* Chat */
.chat-log { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.msg { display: grid; grid-template-columns: 28px 1fr; gap: 10px; animation: fadeUp .2s ease both; }
.msg-avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: #fff; }
.msg-head { display: flex; gap: 8px; align-items: baseline; }
.msg-name { font-weight: 600; font-size: 13px; }
.msg-time { color: var(--faint); font-size: 11.5px; }
.msg-text { font-size: 14px; color: var(--text-2); overflow-wrap: anywhere; margin-top: 1px; }
.msg.is-me .msg-name::after { content: ' (you)'; color: var(--faint); font-weight: 500; }
.msg.is-host .msg-name::after { content: 'Host'; margin-left: 6px; font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 5px; background: var(--ink); color: var(--on-ink); vertical-align: 1px; }
.msg-system { align-self: center; text-align: center; font-size: 12px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.msg-system strong { color: var(--text); font-weight: 600; }
.chat-form { padding: 12px 14px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-name { display: flex; flex-direction: column; gap: 8px; }
.chat-hint { font-size: 12.5px; color: var(--muted); }
.chat-row, .chat-compose { display: flex; gap: 8px; align-items: center; }
.chat-me { color: var(--muted); font-weight: 600; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: none; font-size: 12.5px; }
.chat-form input { flex: 1; min-width: 0; }

/* Queue + schedule */
.upnext, .schedule { display: flex; flex-direction: column; gap: 2px; padding: 4px 8px 14px; }
.upnext li { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 10px; }
.upnext li:hover { background: var(--surface-2); }
.upnext li:first-child { background: var(--surface-2); }
.upnext li:first-child .when::before { content: 'Next · '; color: var(--accent-text); font-weight: 700; }
.upnext .art { width: 42px; height: 42px; border-radius: 8px; font-size: 13px; }
.upnext .t { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upnext .a { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upnext .when { color: var(--faint); font-size: 12px; }
.schedule li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px; border-radius: 10px; align-items: baseline; }
.schedule .time { color: var(--faint); font-size: 12.5px; }
.schedule .name { font-weight: 600; font-size: 14px; }
.schedule .host { color: var(--muted); font-size: 13px; }
.schedule li.is-now { background: var(--surface-2); box-shadow: inset 2px 0 0 var(--ink); }
.schedule li.is-now .time { color: var(--text); }

/* Spotlight + newsletter */
.live-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.spotlight { display: grid; grid-template-columns: 132px 1fr; gap: 22px; align-items: center; }
.spot-art { aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; overflow: hidden; }
.spot-art span { font-weight: 800; font-size: 30px; color: rgba(17,17,17,.75); letter-spacing: -0.03em; }
.spot-body { min-width: 0; }
.spot-title { font-size: 22px; line-height: 1.2; letter-spacing: -0.03em; font-weight: 700; }
.spot-teaser { color: var(--muted); margin-top: 6px; font-size: 14.5px; }
.spot-meta { display: flex; align-items: center; gap: 14px; margin-top: 16px; flex-wrap: wrap; color: var(--faint); font-size: 12.5px; }
.newsletter { display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 180px; }
.form-note { font-size: 13px; color: var(--green); min-height: 1em; width: 100%; }
.form-note.is-error { color: var(--danger); }

/* Artwork tiles */
.art { width: 48px; height: 48px; border-radius: 9px; flex: none; position: relative; overflow: hidden; display: grid; place-items: center; font-weight: 800; color: rgba(17,17,17,.72); letter-spacing: -0.02em; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }

/* ---------- Lessons ---------- */
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2); padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 500; transition: all .15s; }
.chip:hover { background: var(--surface-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.lesson-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.lesson-card { text-align: left; padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s, transform .2s; }
.lesson-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-pop); transform: translateY(-2px); }
.lesson-cover { height: 140px; position: relative; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; }
.lesson-cover .cat { align-self: flex-start; background: rgba(255,255,255,.85); border-color: transparent; color: #111; }
.lesson-cover .big { font-size: 48px; line-height: .9; font-weight: 800; color: rgba(17,17,17,.7); letter-spacing: -0.04em; }
.lesson-content { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.lesson-content h3 { font-size: 17px; line-height: 1.3; letter-spacing: -0.02em; }
.lesson-content .sub { color: var(--muted); font-size: 13.5px; }
.lesson-meta { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; color: var(--faint); font-size: 12.5px; border-top: 1px solid var(--line); }
.lesson-meta .go { color: var(--text); font-weight: 600; font-size: 13px; }
.lesson-card.is-now { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.now-flag { position: absolute; right: 12px; top: 12px; }

/* ---------- Archives ---------- */
.tracklist { counter-reset: t; margin-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.tracklist li { counter-increment: t; display: grid; grid-template-columns: 26px 1fr; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 13.5px; }
.tracklist li::before { content: counter(t, decimal-leading-zero); font-size: 12px; color: var(--faint); padding-top: 1px; font-variant-numeric: tabular-nums; }
.tracklist li span { color: var(--muted); }
.tracklist li.is-current { background: var(--surface-2); }
.tracklist li.is-current::before { content: '▶'; color: var(--text); }
.takeaways { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.takeaways li, .lm-bullets li { position: relative; padding-left: 18px; font-size: 14px; color: var(--text-2); }
.takeaways li::before, .lm-bullets li::before { content: ''; position: absolute; left: 3px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }

/* ---------- Support / pricing ---------- */
.billing { display: flex; gap: 2px; width: max-content; margin: -6px auto 28px; padding: 3px; border-radius: 10px; background: var(--surface-3); }
.billing .seg { padding: 7px 14px; font-size: 13px; }
.save-tag { margin-left: 6px; font-size: 11px; padding: 1px 6px; border-radius: 5px; background: var(--success-bg); color: var(--green); }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1080px; margin: 0 auto; align-items: stretch; }
.tier { display: flex; flex-direction: column; gap: 16px; padding: 26px; position: relative; }
.tier.is-featured { background: var(--ink); color: var(--on-ink); border-color: var(--ink); box-shadow: var(--shadow-pop); }
.tier-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--text-2); }
.tier-badge [data-icon] { width: 13px; height: 13px; }
.tier.is-featured .tier-badge { background: color-mix(in srgb, var(--on-ink) 12%, transparent); border-color: color-mix(in srgb, var(--on-ink) 16%, transparent); color: var(--on-ink); }
.tier-name { font-size: 20px; letter-spacing: -0.02em; }
.tier-tag { color: var(--muted); font-size: 14px; margin-top: 2px; }
.tier-price { display: flex; align-items: baseline; gap: 4px; }
.tier-price strong { font-size: 44px; line-height: 1; letter-spacing: -0.045em; font-weight: 700; }
.tier-price span, .tier-note { color: var(--muted); }
.tier-note { font-size: 12.5px; margin-top: -10px; }
.tier.is-featured .tier-tag, .tier.is-featured .tier-price span, .tier.is-featured .tier-note, .tier.is-featured .perks li.inherit { color: rgba(255,255,255,.62); }
.perks { display: flex; flex-direction: column; gap: 10px; flex: 1; padding-top: 16px; border-top: 1px solid var(--line); }
.tier.is-featured .perks { border-top-color: rgba(255,255,255,.14); }
.perks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 14px; }
.perks li [data-icon] { width: 16px; height: 16px; margin-top: 2px; }
.perks li.inherit { color: var(--muted); }
.tier .btn-primary { margin-top: 4px; }
.tier.is-featured .btn-primary { background: var(--on-ink); color: var(--ink); }
.tier.is-featured .btn-primary:hover { background: color-mix(in srgb, var(--on-ink) 88%, var(--ink)); }

.faq { max-width: 720px; margin: 48px auto 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq .card-title { padding: 18px 20px; margin: 0; border-bottom: 1px solid var(--line); }
.faq details { padding: 14px 20px; border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.faq details p { color: var(--muted); margin-top: 8px; }

/* ---------- Player dock ---------- */
.player { position: fixed; z-index: 50; left: 50%; bottom: var(--dock-gap); transform: translateX(-50%); width: min(1240px, calc(100% - var(--dock-gap) * 2)); height: var(--player-h); border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border: 1px solid var(--line); box-shadow: var(--shadow-pop); }
.player-progress { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--surface-3); }
.player-progress div { height: 100%; width: 0; background: var(--ink); transition: width 1s linear; }
.player-inner { height: 100%; padding: 0 16px 0 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 20px; }
.player-track { display: flex; align-items: center; gap: 12px; min-width: 0; }
.player .art { width: 48px; height: 48px; border-radius: 9px; font-size: 14px; }
.player-meta { min-width: 0; }
.player-badges { display: flex; align-items: center; gap: 8px; min-width: 0; }
.player-show { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-title { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.player-artist { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-center { display: flex; align-items: center; gap: 14px; }
.play-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--ink); color: var(--on-ink); transition: transform .15s, background .15s; }
.play-btn:hover { background: var(--ink-hover); }
.play-btn [data-icon] { width: 20px; height: 20px; }
.player-right { display: flex; align-items: center; gap: 10px; justify-self: end; }
.player-right input[type="range"] { width: 104px; }
.quality { display: inline-flex; align-items: center; gap: 7px; margin-left: 4px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; transition: all .15s; }
.quality:hover { background: var(--surface-2); color: var(--text); }
.q-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.q-hd { font-size: 10px; letter-spacing: .04em; padding: 1px 5px; border-radius: 4px; background: var(--surface-3); color: var(--text-2); }
.quality.is-hd { color: var(--text); }
.quality.is-hd .q-dot { background: var(--green); }
.quality.is-hd .q-hd { background: var(--ink); color: var(--on-ink); }

/* ---------- Modals ---------- */
.modal { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-pop); overflow: auto; overscroll-behavior: contain; }
.modal-wide { width: min(760px, calc(100vw - 32px)); }
.modal::backdrop { background: rgba(17, 17, 17, 0.32); }
.modal[open] { animation: pop .2s ease both; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--glass); }
.modal-form { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.modal-title { font-size: 22px; letter-spacing: -0.03em; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text); }
.opt { color: var(--faint); font-weight: 400; }
.form-error { color: var(--danger); font-size: 13px; min-height: 1em; }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--surface-3); padding: 3px; border-radius: 10px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { display: block; text-align: center; padding: 7px 6px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); transition: all .15s; }
.segmented input:checked + span { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.segmented input:focus-visible + span { outline: 2px solid var(--ink); }

/* Lesson modal */
.lm-cover { padding: 40px 28px 24px; position: relative; min-height: 170px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.lm-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0) 20%, var(--surface)); }
.lm-cover > * { position: relative; z-index: 1; }
.lm-cover .badge { align-self: flex-start; background: rgba(255,255,255,.85); border-color: transparent; color: #111; }
.lm-title { font-size: clamp(26px, 3.6vw, 34px); line-height: 1.1; letter-spacing: -0.04em; font-weight: 800; }
.lm-sub { color: var(--muted); font-weight: 500; }
.lm-body { padding: 4px 28px 28px; display: flex; flex-direction: column; gap: 22px; }
.lm-track { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.lm-track .art { width: 42px; height: 42px; font-size: 13px; }
.lm-track .label { font-size: 11.5px; color: var(--faint); font-weight: 600; }
.lm-track .name { font-weight: 600; }
.lm-section h3 { font-size: 17px; margin-bottom: 6px; letter-spacing: -0.02em; }
.lm-section p { color: var(--text-2); font-size: 15px; line-height: 1.7; }
.lm-section p + p { margin-top: 10px; }
.lm-section p.lm-ref { color: var(--muted); font-size: 12.5px; margin: -2px 0 10px; font-weight: 500; }
.lm-quote { margin: 4px 0 12px; padding: 4px 0 4px 16px; border-left: 2px solid var(--ink); }
.lm-quote p { color: var(--text); font-style: italic; }
.lm-quote p + p { margin-top: 8px; }
.lm-bullets { display: flex; flex-direction: column; gap: 10px; margin: 10px 0; }
.lm-bullets li { font-size: 15px; line-height: 1.65; }
.lm-section p.lm-ask { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
.lm-label { display: block; font-style: normal; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.anatomy { display: flex; height: 40px; border-radius: 9px; overflow: hidden; margin: 10px 0 12px; gap: 2px; }
.anatomy div { display: grid; place-items: center; font-size: 11.5px; font-weight: 600; color: rgba(17,17,17,.8); padding: 0 6px; text-align: center; line-height: 1.15; min-width: 0; overflow: hidden; }
.anatomy-key { display: flex; flex-direction: column; gap: 8px; }
.anatomy-key li { display: grid; grid-template-columns: 12px 1fr; gap: 10px; font-size: 14px; color: var(--text-2); }
.anatomy-key li i { width: 10px; height: 10px; border-radius: 3px; margin-top: 6px; }
.anatomy-key strong { color: var(--text); }
.listen-for li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 15px; color: var(--text-2); padding: 5px 0; }
.listen-for li [data-icon] { width: 17px; height: 17px; margin-top: 3px; color: var(--text); }
.takeaway { margin: 0; padding: 16px 18px; border-radius: 12px; background: var(--ink); color: var(--on-ink); font-size: 17px; line-height: 1.5; font-weight: 500; letter-spacing: -0.01em; }
.takeaway .lm-label { color: rgba(255,255,255,.6); }
.lm-lead { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.lm-lead .lm-label { color: var(--muted); }
.lm-nav { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; flex-wrap: wrap; }

/* Pledge modal */
.pledge { padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.tier-pick { display: flex; flex-direction: column; gap: 8px; }
.tier-pick label { display: grid; grid-template-columns: 18px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.tier-pick label:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.tier-pick input { accent-color: var(--ink); width: 16px; height: 16px; }
.tier-pick .n { font-weight: 600; }
.tier-pick .d { font-size: 12.5px; color: var(--muted); }
.tier-pick .p { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.tier-pick .p small { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 2px; }
.demo-note { font-size: 12px; color: var(--faint); text-align: center; }
.pledge-success { text-align: center; align-items: center; padding: 36px 26px 28px; }
.success-ring { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
.success-ring [data-icon] { width: 30px; height: 30px; }
.member-card { width: 100%; margin-top: 8px; padding: 18px; border-radius: 14px; text-align: left; background: var(--ink); color: var(--on-ink); display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.member-card .brand-name { color: var(--on-ink); font-size: 15px; }
.member-card .brand-name em { color: rgba(255,255,255,.6); }
.member-card .who { font-size: 18px; font-weight: 700; margin-top: 18px; }
.member-card .mono { color: rgba(255,255,255,.6) !important; }
.member-card .badge { background: color-mix(in srgb, var(--on-ink) 12%, transparent); border-color: color-mix(in srgb, var(--on-ink) 18%, transparent); color: var(--on-ink); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--player-h) + var(--dock-gap) + 14px); z-index: 60; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--on-ink); padding: 10px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow-pop); transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Footer */
.footer { border-top: 1px solid var(--line); margin-top: 24px; background: var(--surface); }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 26px var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-copy { color: var(--muted); font-size: 13px; margin-top: 4px; }
.footer .inline-form { max-width: 440px; flex: 1 1 320px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .topbar-inner { grid-template-columns: auto 1fr; }
  .onair { display: none; }
  .tabs { justify-self: end; }
  .live-grid, .live-row { grid-template-columns: 1fr; }
  .side { contain: none; height: 540px; min-height: 0; }
  .tiers { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 820px) {
  :root { --dock-gap: 8px; }
  .topbar-inner { grid-template-columns: 1fr; gap: 6px; padding-top: 10px; padding-bottom: 0; }
  .tabs { justify-self: stretch; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; padding-bottom: 8px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { padding: 8px 12px; font-size: 13.5px; }
  .tab[aria-selected="true"]::after { bottom: -8px; }
  .stage { --pad: 20px; }
  .stage-body { grid-template-columns: 1fr; gap: 22px; }
  .deck { max-width: 320px; margin: 0 auto; }
  .stage-info { text-align: center; }
  .stage-actions { justify-content: center; }
  .spotlight { grid-template-columns: 92px 1fr; gap: 16px; align-items: start; }
  .spot-art span { font-size: 20px; }
  .player-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .player-right { display: none; }
}
@media (max-width: 480px) {
  .card { padding: 18px; }
  .stage { --pad: 16px; }
  .spotlight { grid-template-columns: 1fr; }
  .spot-art { aspect-ratio: auto; height: 100px; }
  .lm-cover { padding: 36px 20px 20px; }
  .lm-body { padding: 4px 20px 22px; }
  .modal-form, .pledge { padding: 22px 18px; }
  .player-track .icon-btn { display: none; }
  .segmented span { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* =========================================================
   Mobile-first layer (phones are the primary audience)
   Patterns: bottom tab bar + mini player (Poolsuite, Bloomberg),
   centred artwork + big play button (Finimize, Life Reset).
   ========================================================= */
:root {
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 58px;
  --mini-h: 64px;
}
html { -webkit-tap-highlight-color: transparent; }
.tabbar, .stage-quality, .lbl-short { display: none; }

@media (max-width: 820px) {
  body { font-size: 15px; padding-bottom: calc(var(--tabbar-h) + var(--mini-h) + var(--safe-b) + 28px); }
  input, textarea, select { font-size: 16px; } /* stops iOS zooming into fields */

  /* Top bar: brand + live listeners only; sections move to the tab bar */
  .topbar-inner { grid-template-columns: 1fr auto; padding: 10px 16px; gap: 12px; }
  .topbar .tabs { display: none; }
  .onair { display: inline-flex; font-size: 12.5px; }
  .onair > span:nth-child(2), .onair-sep { display: none; }

  /* Bottom tab bar */
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
    background: var(--glass); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-top: 1px solid var(--line);
  }
  .tabbar-btn { border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--faint); font-size: 11px; font-weight: 600; letter-spacing: .01em; }
  .tabbar-btn [data-icon] { width: 22px; height: 22px; }
  .tabbar-btn.is-active { color: var(--text); }
  .tabbar-btn:active { transform: scale(.94); }

  /* Mini player sits just above the tab bar */
  :root { --dock-gap: 8px; }
  .player { bottom: calc(var(--tabbar-h) + var(--safe-b) + 8px); height: var(--mini-h); border-radius: 14px; width: calc(100% - 16px); }
  .player-inner { grid-template-columns: minmax(0, 1fr) auto; padding: 0 10px 0 8px; gap: 10px; }
  .player .art { width: 44px; height: 44px; border-radius: 8px; font-size: 13px; }
  .player-meta, #playerArt { cursor: pointer; }
  .player-badges { display: none; }
  .player-title { margin-top: 1px; }
  .player-right { display: none; }
  .player-track .icon-btn { display: none; }
  .play-btn { width: 46px; height: 46px; }
  .toast { bottom: calc(var(--tabbar-h) + var(--mini-h) + var(--safe-b) + 22px); }

  main { padding: 12px 12px 24px; }
  .card { padding: 18px; border-radius: 18px; }

  /* Live: a phone "now playing" screen */
  .live-grid, .live-row { grid-template-columns: 1fr; gap: 12px; }
  .live-row { margin-top: 12px; }
  .stage { --pad: 18px; gap: 18px; }
  .stage-head { justify-content: space-between; }
  .stage-head .show-chip { order: 2; flex: 1 0 100%; text-align: center; font-size: 13px; }
  .stage-quality { display: inline-flex; margin-left: 0; padding: 6px 9px; }
  .stage-body { grid-template-columns: 1fr; gap: 20px; }
  .deck { width: min(100%, 360px); margin: 0 auto; }
  .stage-info { text-align: center; }
  .stage-info .eyebrow { display: none; }
  .stage-title { font-size: clamp(24px, 7vw, 32px); }
  .stage-artist { font-size: 16px; margin-top: 4px; }
  .progress { margin-top: 18px; height: 5px; }
  .progress-meta { font-size: 12px; }

  .stage-actions { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; justify-items: center; gap: 8px; margin-top: 18px; }
  #bigPlay { width: 72px; height: 72px; padding: 0; border-radius: 50%; box-shadow: 0 10px 24px -10px rgba(0,0,0,.45); }
  #bigPlay .btn-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  #bigPlay .btn-icon { width: 28px; height: 28px; }
  #stageStory, #stageRequest { flex-direction: column; gap: 6px; padding: 4px; border: 0; background: none; box-shadow: none; font-size: 12px; font-weight: 600; color: var(--text-2); min-width: 72px; }
  #stageStory .btn-icon, #stageRequest .btn-icon { width: 46px; height: 46px; padding: 13px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); }
  .lbl-long { display: none; }
  .lbl-short { display: inline; }


  /* Chat / Up next / Schedule */
  .side { contain: none; height: min(68vh, 560px); min-height: 0; }
  .side-tabs { padding: 4px 8px 0; }
  .side-tab { flex: 1; justify-content: center; padding: 13px 6px 14px; font-size: 14px; }
  .chat-log { padding: 14px; }
  .chat-form { padding: 10px 12px 12px; }
  .chat-form input { padding: 11px 14px; border-radius: 999px; }
  .icon-btn { width: 44px; height: 44px; }

  .spotlight { grid-template-columns: 84px 1fr; gap: 14px; align-items: start; }
  .spot-art span { font-size: 18px; }
  .spot-title { font-size: 18px; }
  .spot-teaser { font-size: 14px; }

  /* Section pages */
  .section-head { margin: 8px 4px 18px; }
  .section-title { font-size: 28px; }
  .section-lede { font-size: 15px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px 16px; padding: 0 12px 2px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; padding: 8px 14px; }
  .lesson-grid { grid-template-columns: 1fr; gap: 12px; }
  .lesson-cover { height: 112px; }
  .lesson-cover .big { font-size: 38px; }

  .billing { margin-bottom: 18px; }
  .billing .seg { padding: 9px 14px; }
  .tiers { grid-template-columns: 1fr; gap: 12px; }
  .tier.is-featured { order: -1; }
  .tier-price strong { font-size: 40px; }
  .faq { margin-top: 28px; }
  .faq summary { padding: 4px 0; }

  .footer-inner { flex-direction: column; align-items: stretch; padding: 22px 16px; }

  /* Modals become bottom sheets */
  .modal, .modal-wide {
    width: 100%; max-width: 100%; margin: auto 0 0; max-height: 92dvh;
    border-radius: 22px 22px 0 0; border-bottom: 0; padding-bottom: var(--safe-b);
  }
  .modal::before { content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 38px; height: 5px; border-radius: 3px; background: rgba(17,17,17,.22); z-index: 3; }
  .modal[open] { animation: sheetUp .28s cubic-bezier(.2,.8,.2,1) both; }
  .modal-close { top: 14px; right: 12px; }
  .lm-cover { padding: 28px 20px 18px; min-height: 140px; }
  .lm-body { padding: 4px 20px 24px; }
  .modal-form, .pledge { padding: 18px 20px 24px; }
}
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }

@media (hover: none) {
  .lesson-card:hover { transform: none; box-shadow: var(--shadow-sm); }
  .play-btn:hover { transform: none; }
}

/* =========================================================
   Lyrics — the centre of the Live screen
   (Life Reset: current line bright, sung words fill in, the rest recede)
   ========================================================= */
.view-switch { display: none; }
.stage-body { grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); align-items: stretch; }
.deck { align-self: center; }
.stage-info { min-width: 0; }

.lyrics { position: relative; min-width: 0; height: 380px; }
.lyrics-scroll {
  height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 80%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 80%, transparent 100%);
}
.lyrics-scroll::-webkit-scrollbar { display: none; }
.lyrics-lines { padding: 34% 4px 46%; display: flex; flex-direction: column; gap: 14px; }
.ly-line {
  font-size: 26px; line-height: 1.28; font-weight: 700; letter-spacing: -0.025em;
  color: var(--lyric-dim); cursor: pointer; transition: color .4s ease, opacity .4s ease;
  overflow-wrap: anywhere;
}
.ly-line:hover { color: var(--lyric-hover); }
.ly-line.is-past { color: var(--lyric-past); }
.ly-line.is-current { color: var(--lyric-dim); }
.ly-line.is-current .ly-w { transition: color .25s ease; }
.ly-line.is-current .ly-w.is-sung { color: var(--text); }
.ly-section { margin-top: 14px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.ly-section:first-child { margin-top: 0; }
.ly-empty { color: var(--muted); font-size: 16px; text-align: center; padding-top: 30%; }
.lyrics-follow {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  border: 0; border-radius: 999px; padding: 8px 14px; background: var(--ink); color: var(--on-ink);
  font-size: 12.5px; font-weight: 600; box-shadow: var(--shadow-pop);
}

@media (max-width: 820px) {
  .view-switch { display: flex; align-self: center; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface-3); }
  .view-switch .seg { padding: 7px 18px; font-size: 13px; }
  .stage-body { grid-template-columns: 1fr; }
  body:not(.view-art) .deck { display: none; }
  body.view-art .lyrics { display: none; }
  .lyrics { height: min(40vh, 400px); }
  .stage-album { display: none; }
  .lyrics-lines { padding: 30% 2px 44%; gap: 12px; text-align: center; }
  .ly-line { font-size: 23px; }
}

/* =========================================================
   Chat on/off switch
   ========================================================= */
.chat-toggle { margin-left: auto; align-self: center; display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; padding: 6px 4px 6px 8px; color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.switch { position: relative; width: 30px; height: 18px; border-radius: 999px; background: var(--line-strong); transition: background .2s; flex: none; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s; }
.chat-toggle[aria-pressed="true"] { color: var(--text); }
.chat-toggle[aria-pressed="true"] .switch { background: var(--ink); }
.chat-toggle[aria-pressed="true"] .switch::after { transform: translateX(12px); }

/* =========================================================
   Song story sheet
   ========================================================= */
.story-empty { padding: 18px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.story-empty p + p { margin-top: 4px; }
.story-empty strong { color: var(--text); }
.story-lesson { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.story-lesson-title { font-weight: 700; letter-spacing: -0.02em; }

/* =========================================================
   Prayer — line + wall
   ========================================================= */
.prayer-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 16px; align-items: start; }
.prayer-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 76px; }
.prayer-line { background: var(--ink); color: var(--on-ink); border-color: var(--ink); display: flex; flex-direction: column; gap: 8px; }
.prayer-line .eyebrow { color: rgba(255,255,255,.6); margin: 4px 0 0; }
.prayer-line-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--on-ink) 10%, transparent); }
.prayer-line-icon [data-icon] { width: 22px; height: 22px; }
.prayer-line-title { font-size: 20px; line-height: 1.25; letter-spacing: -0.025em; }
.prayer-line-sub { color: rgba(255,255,255,.66); font-size: 14px; }
.prayer-call { margin-top: 8px; background: var(--on-ink); color: var(--ink); padding: 13px 16px; font-size: 15px; }
.prayer-call:hover { background: color-mix(in srgb, var(--on-ink) 88%, var(--ink)); }
.prayer-call[disabled] { background: color-mix(in srgb, var(--on-ink) 12%, transparent); color: color-mix(in srgb, var(--on-ink) 70%, transparent); opacity: 1; }
.prayer-form { display: flex; flex-direction: column; gap: 10px; }
.prayer-form-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.prayer-form-row input { flex: 1 1 160px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; flex: none; padding: 0; border: 0; box-shadow: none; accent-color: var(--ink); }

.prayer-wall-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.prayer-sort { margin: 0; }
.prayer-list { display: flex; flex-direction: column; gap: 12px; }
.prayer { display: flex; flex-direction: column; gap: 10px; }
.prayer-head { display: flex; align-items: center; gap: 10px; }
.prayer-name { font-weight: 600; font-size: 14px; }
.prayer-time { color: var(--faint); font-size: 12.5px; }
.prayer-text { font-size: 15.5px; line-height: 1.6; color: var(--text); overflow-wrap: anywhere; }
.pray-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2); font-size: 13.5px; font-weight: 600; transition: all .15s; }
.pray-btn [data-icon] { width: 16px; height: 16px; }
.pray-btn:hover { background: var(--surface-2); }
.pray-btn.is-on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.pray-count { padding-left: 8px; margin-left: 2px; border-left: 1px solid currentColor; font-variant-numeric: tabular-nums; opacity: .8; }

@media (max-width: 1100px) {
  .prayer-layout { grid-template-columns: 1fr; }
  .prayer-side { position: static; }
}
@media (max-width: 820px) {
  .tabbar { grid-template-columns: repeat(5, 1fr); }
  .tabbar-btn { font-size: 10.5px; }
  .side-tabs { overflow-x: auto; scrollbar-width: none; }
  .side-tab { flex: none; padding-left: 9px; padding-right: 9px; }
  .side-count { display: none; }
  .chat-toggle .chat-toggle-label { font-size: 12px; }
  .pray-btn { padding: 10px 14px; }
}

/* =========================================================
   Reactions — emoji / stickers pinned to lyrics and moments
   ========================================================= */
.ly-react {
  display: inline-flex; align-items: center; gap: 2px; vertical-align: 0.2em; margin-left: 4px;
  padding: 2px 7px 2px 5px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-size: 12px; line-height: 1.4; letter-spacing: 0; color: var(--text-2); box-shadow: var(--shadow-sm);
}
.ly-react b { font-weight: 600; margin-left: 3px; font-variant-numeric: tabular-nums; }
.dot-sticker { display: inline-block; width: 11px; height: 11px; border-radius: 3px; background: hsl(var(--sh) 85% 72%); transform: rotate(-8deg); margin: 0 1px; }

.sticker {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 8px; transform: rotate(-3deg);
  background: hsl(var(--sh) 92% 84%); color: hsl(var(--sh) 65% 22%);
  font-weight: 800; font-size: 13px; letter-spacing: -0.01em; white-space: nowrap;
  box-shadow: inset 0 0 0 2px var(--surface), 0 1px 3px rgba(0,0,0,.14);
}
.sticker.is-small { font-size: 12px; padding: 3px 8px; }
.emoji { font-size: 22px; line-height: 1; }
.emoji.is-small { font-size: 26px; }

.moment-btn {
  position: absolute; right: 4px; bottom: 8px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--glass); color: var(--text);
  font-size: 13px; font-weight: 600; box-shadow: var(--shadow-sm);
}
.moment-btn [data-icon] { width: 16px; height: 16px; }
.lyrics-follow { z-index: 2; }

.float-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.float { position: absolute; bottom: 14%; transform: translateX(-50%); animation: floatUp 2.8s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes floatUp {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(.7); }
  15% { opacity: 1; transform: translate(-50%, -10px) scale(1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), -200px) scale(1); }
}

.progress-wrap { position: relative; margin-top: 22px; }
.progress-wrap .progress { margin-top: 0; }
.moment-marks { position: absolute; left: 0; right: 0; top: 50%; height: 0; pointer-events: none; }
.mark { position: absolute; top: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink); transform: translate(-50%, -50%); }

/* The line / moment sheet */
.moment { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.moment .eyebrow { margin: 0; }
.moment-quote { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 700; letter-spacing: -0.03em; }
.moment > .btn { align-self: flex-start; }
.moment-h { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.moment-thread { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.thread { display: flex; flex-direction: column; gap: 12px; max-height: 260px; overflow-y: auto; }
.thread-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; }
.thread-react { min-width: 34px; display: grid; place-items: center; padding-top: 2px; }
.thread-meta { font-size: 13px; color: var(--muted); }
.thread-meta strong { color: var(--text); font-weight: 600; }
.thread-text { font-size: 14.5px; color: var(--text-2); margin-top: 1px; overflow-wrap: anywhere; }
.thread-remove { border: 0; background: none; color: var(--faint); font-size: 12px; font-weight: 600; padding: 4px; }
.thread-remove:hover { color: var(--text); }
.moment-form { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.pick-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.pick { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 8px 0; font-size: 22px; line-height: 1; transition: transform .1s, border-color .15s, box-shadow .15s; }
.pick:active { transform: scale(.92); }
.pick[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pick-stickers { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-sticker { padding: 8px 8px; font-size: inherit; }

@media (max-width: 820px) {
  .ly-react { font-size: 11.5px; }
  .moment { padding: 22px 18px 24px; }
  .moment-quote { font-size: 20px; }
  .pick-grid { grid-template-columns: repeat(4, 1fr); }
  .pick { padding: 11px 0; font-size: 24px; }
  .progress-wrap { margin-top: 18px; }
}

/* =========================================================
   Journeys — a song family, step by step
   ========================================================= */
.role { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.role-arrow { color: var(--faint); margin: 0 4px; font-size: 13px; }
.roles { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }

.journey-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.journey-card { text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; transition: box-shadow .2s, transform .2s; }
.journey-card:hover { box-shadow: var(--shadow-pop); transform: translateY(-2px); }
.journey-stack { display: grid; grid-template-columns: repeat(2, 38px); gap: 4px; }
.journey-stack .art { width: 38px; height: 38px; border-radius: 8px; font-size: 13px; }
.journey-card-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; align-items: flex-start; }
.journey-title { font-size: 18px; line-height: 1.25; letter-spacing: -0.025em; }
.journey-meta { color: var(--muted); font-size: 13px; font-weight: 600; }

.back-link { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--muted); font-weight: 600; font-size: 14px; padding: 6px 0; margin: 4px 0 8px; }
.back-link:hover { color: var(--text); }
.journey-hero { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 26px; max-width: 720px; }
.journey-hero .section-lede { margin-top: 0; }

.timeline { position: relative; max-width: 720px; display: flex; flex-direction: column; }
.timeline::before { content: ''; position: absolute; left: 15px; top: 18px; bottom: 18px; width: 2px; background: var(--line-strong); }
.tl-step { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; }
.tl-num { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--on-ink); font-weight: 700; font-size: 14px; margin-top: 16px; box-shadow: 0 0 0 4px var(--bg); }
.tl-step.is-now .tl-num { background: var(--live); }
.tl-step.is-now .tl-card { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.tl-card { display: flex; flex-direction: column; gap: 12px; }
.tl-head { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; }
.tl-head .art { width: 52px; height: 52px; border-radius: 10px; font-size: 15px; }
.tl-titles { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.tl-title { font-size: 17px; line-height: 1.25; letter-spacing: -0.02em; }
.tl-artist { color: var(--muted); font-size: 13px; }
.tl-soon { font-size: 12px; font-weight: 600; color: var(--faint); white-space: nowrap; }
.tl-changed { color: var(--text-2); font-size: 14.5px; }
.tl-carried { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.tl-carried .lm-label { margin: 0; }
.tl-carried-label { font-weight: 700; letter-spacing: -0.01em; }
.tl-hear { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tl-link { position: relative; padding: 10px 0 10px 46px; }
.tl-how { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.tl-how [data-icon] { width: 15px; height: 15px; }

.journey-chip {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 13px; font-weight: 600; color: var(--text); box-shadow: var(--shadow-sm);
}
.journey-chip [data-icon] { width: 15px; height: 15px; }

@media (max-width: 820px) {
  .journey-list { grid-template-columns: 1fr; }
  .journey-card { gap: 14px; }
  .journey-stack { grid-template-columns: repeat(2, 32px); }
  .journey-stack .art { width: 32px; height: 32px; font-size: 12px; }
  .tl-head { grid-template-columns: 44px 1fr auto; gap: 12px; }
  .tl-head .art { width: 44px; height: 44px; }
  .journey-chip { margin-left: auto; margin-right: auto; }
}

/* =========================================================
   Mix picker
   ========================================================= */
.mix-bar { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: -4px 0 -2px; }
.mix-bar::-webkit-scrollbar { display: none; }
.mix-chip { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2); font-size: 13.5px; font-weight: 600; transition: all .15s; }
.mix-chip span { font-size: 11.5px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.mix-chip:hover { background: var(--surface-2); }
.mix-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.mix-chip[aria-pressed="true"] span { color: rgba(255,255,255,.6); }
@media (max-width: 820px) {
  .mix-bar { margin: -2px calc(var(--pad) * -1) 0; padding: 0 var(--pad); }
  .mix-chip { padding: 9px 14px; }
}

/* =========================================================
   Top bar: streak + get app
   ========================================================= */
.top-actions { display: flex; align-items: center; gap: 8px; }
.streak-pill { display: inline-flex; align-items: center; gap: 4px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--text); box-shadow: var(--shadow-sm); }
.streak-pill .streak-flame { filter: grayscale(1); opacity: .55; transition: filter .3s, opacity .3s; }
.streak-pill.is-done .streak-flame { filter: none; opacity: 1; }
.get-app { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 0; background: var(--ink); color: var(--on-ink); font-size: 13px; font-weight: 600; }
.get-app [data-icon] { width: 15px; height: 15px; }

/* =========================================================
   Daily Lift
   ========================================================= */
.daily { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.daily .eyebrow { margin: 0; }
.streak-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.streak-big { display: flex; align-items: baseline; gap: 8px; }
.streak-big .streak-flame { font-size: 30px; }
.streak-big strong { font-size: 44px; line-height: 1; letter-spacing: -0.04em; }
.streak-big span:last-child { color: var(--muted); font-weight: 600; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week li { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.week i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 14px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--on-accent); }
.week li.is-done i { background: var(--grad-ember); border-color: transparent; }
.week li.is-today span { color: var(--text); }
.week li.is-today:not(.is-done) i { border: 2px dashed var(--accent); }
.week li.is-future i { opacity: .45; }
.streak-best { font-size: 12.5px; color: var(--muted); }
.lotd { position: relative; border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.lotd .lm-label { color: rgba(17,17,17,.6); margin: 0; }
.lotd blockquote { margin: 0; font-size: 23px; line-height: 1.25; font-weight: 800; letter-spacing: -0.03em; color: #111; }
.lotd-song { font-size: 13px; font-weight: 600; color: rgba(17,17,17,.7); }
.lotd-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.lotd .btn-ghost { background: rgba(255,255,255,.85); border-color: transparent; color: #111; }
.reflect { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.reflect .lm-label { margin: 0; }
.reflect-q { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.daily-cta { padding: 14px 16px; font-size: 15.5px; }
.daily-done { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); opacity: 1 !important; cursor: default; }
.celebrate { position: fixed; bottom: 30%; z-index: 100; font-size: 34px; pointer-events: none; animation: floatUp 1.8s cubic-bezier(.2,.7,.3,1) forwards; }

/* =========================================================
   Share card sheet
   ========================================================= */
.share { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.share .eyebrow { margin: 0; }
.share-preview-wrap { display: grid; place-items: center; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.share-preview { width: min(220px, 56vw); aspect-ratio: 9 / 16; border-radius: 12px; box-shadow: var(--shadow-pop); background: #fff; }
.share-row { display: flex; align-items: center; gap: 12px; }
.share-label { font-size: 13px; font-weight: 600; color: var(--muted); width: 38px; flex: none; }
.share-styles { margin: 0; }
.share-sticks { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.share-sticks::-webkit-scrollbar { display: none; }
.share-stick { flex: none; min-width: 44px; padding: 8px 10px; font-size: 20px; }
.share-stick .none { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.moment-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* =========================================================
   Install sheet
   ========================================================= */
.install { padding: 30px 26px 26px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.install-icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: var(--shadow-pop); margin-bottom: 6px; }
.install-steps { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; text-align: left; width: 100%; }
.install-steps li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14.5px; }
.step-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--on-ink); font-weight: 700; font-size: 13px; }
.inline-icon { display: inline-flex; width: 16px; height: 16px; vertical-align: -3px; }

@media (min-width: 821px) { .get-app { display: none; } }
@media (max-width: 1100px) { .topbar-inner { grid-template-columns: auto 1fr auto; } }
@media (max-width: 820px) {
  .topbar-inner { grid-template-columns: 1fr auto; }
  .top-actions { gap: 6px; }
  .onair { display: none; }
  .daily, .share { padding: 22px 18px 24px; }
  .lotd blockquote { font-size: 21px; }
}

/* =========================================================
   Sound playback UI: now-playing, buffering, skip, scrubbing
   ========================================================= */
.badge-now { background: var(--surface-2); color: var(--text); }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.eq i { width: 2px; height: 3px; border-radius: 1px; background: currentColor; }
body.is-playing .eq i { animation: eq 0.9s ease-in-out infinite; }
body.is-playing .eq i:nth-child(2) { animation-delay: -0.3s; }
body.is-playing .eq i:nth-child(3) { animation-delay: -0.6s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 10px; } }

.skip-btn { width: 44px; height: 44px; border-radius: 50%; }
.skip-btn [data-icon] { width: 18px; height: 18px; }

/* Play buttons: a soft press, a quick icon crossfade, and a calm dim (no spinner) while the stream loads */
#bigPlay, .play-btn { transition: transform .22s cubic-bezier(.2,.8,.2,1), background .15s, box-shadow .22s ease; -webkit-tap-highlight-color: transparent; }
#bigPlay:active, .play-btn:active { transform: scale(.94); transition-duration: .08s; }
#bigPlay .btn-icon.icon-swap, .play-btn .icon-swap { animation: iconSwap .2s cubic-bezier(.2,.8,.2,1) both; }
@keyframes iconSwap { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
body.is-buffering #bigPlay .btn-icon, body.is-buffering .play-btn > * { animation: loadDim 1.6s ease-in-out .45s infinite; }
@keyframes loadDim { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) {
  #bigPlay .btn-icon.icon-swap, .play-btn .icon-swap { animation: none; }
  body.is-buffering #bigPlay .btn-icon, body.is-buffering .play-btn > * { animation: none; opacity: .6; }
}

.progress-wrap { cursor: pointer; touch-action: none; padding: 8px 0; margin-top: 14px; }
.progress-wrap:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.progress-wrap .progress { position: relative; overflow: visible; }
.progress-fill { position: relative; }
.progress-fill::after { content: ''; position: absolute; right: -7px; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); transform: translateY(-50%) scale(0); transition: transform .15s; }
.progress-wrap:hover .progress-fill::after, .progress-wrap:active .progress-fill::after, .progress-wrap:focus-visible .progress-fill::after { transform: translateY(-50%) scale(1); }

/* =========================================================
   Honest "coming soon" states, journal, samples
   ========================================================= */
.soon { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 28px 22px; margin: auto 0; }
.soon-card { border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.soon-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.soon-icon svg { width: 22px; height: 22px; }
.soon-title { font-size: 16px; letter-spacing: -0.02em; }
.soon-text { font-size: 14px; color: var(--muted); max-width: 320px; }
.soon .btn { margin-top: 6px; }
.privacy-note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.privacy-note [data-icon] { width: 14px; height: 14px; }
.prayer-empty { padding: 34px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.prayer.is-answered { border-color: var(--line-strong); }
.answered-badge { background: var(--success-bg); color: var(--success); border-color: var(--success-line); }
.prayer-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sample-tag { font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 5px; background: var(--surface-3); color: var(--muted); vertical-align: 1px; }
body.no-email [data-needs-email] { display: none !important; }
body.no-email .live-row { grid-template-columns: 1fr; }

@media (max-width: 820px) {
  .stage-actions { grid-template-columns: 1fr auto auto auto 1fr; gap: 6px; }
  #stageStory { grid-column: 1; grid-row: 1; }
  #prevBtn { grid-column: 2; grid-row: 1; }
  #bigPlay { grid-column: 3; grid-row: 1; }
  #nextBtn { grid-column: 4; grid-row: 1; }
  #stageRequest { grid-column: 5; grid-row: 1; }
  .skip-btn { border: 0; background: none; color: var(--text); }
  .skip-btn [data-icon] { width: 22px; height: 22px; }
}
.ly-instrumental { display: block; font-size: 40px; margin-bottom: 6px; color: var(--faint); }
.lyrics-lines.is-plain .ly-line { color: var(--text); font-size: 21px; cursor: pointer; }
.lyrics-lines.is-plain .ly-line:hover { color: var(--text-2); }
.ly-note { font-size: 12px; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
/* Instrumentals and beats: show the artwork instead of an empty lyrics panel */
body.no-lyrics .view-switch { display: none; }
body.no-lyrics .lyrics { display: none; }
body.no-lyrics .deck { display: block !important; }
@media (min-width: 821px) { body.no-lyrics .stage-body { grid-template-columns: minmax(220px, 300px) 1fr; } }

/* =========================================================
   Waveform seek bar
   ========================================================= */
.progress-wrap.has-wave { padding: 0; margin-top: 16px; }
.progress-wrap.has-wave .progress { display: none; }
.progress-wrap:not(.has-wave) .wave, .progress-wrap:not(.has-wave) .wave-sections { display: none; }
.wave { display: block; width: 100%; height: 64px; }
.wave-sections { position: relative; height: 16px; }
.wave-sections span {
  position: absolute; top: 0; padding-left: 4px; border-left: 1px solid var(--line-strong);
  font-size: 10.5px; font-weight: 600; line-height: 13px; color: var(--muted); white-space: nowrap;
}
.progress-wrap.has-wave .moment-marks { top: calc(16px + 45px); pointer-events: none; }
.pin {
  position: absolute; top: 0; transform: translate(-50%, -50%); pointer-events: auto;
  display: inline-flex; align-items: center; gap: 2px; height: 22px; min-width: 22px; padding: 0 5px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm);
  font-size: 12px; line-height: 1; cursor: pointer; transition: transform .15s;
}
.pin:hover { transform: translate(-50%, -50%) scale(1.12); }
.pin b { font-size: 10px; font-weight: 700; color: var(--muted); }
.pin .dot-sticker { margin: 0; }
.scrub-tip {
  position: absolute; bottom: calc(100% + 4px); transform: translateX(-50%); z-index: 3; pointer-events: none;
  background: var(--ink); color: var(--on-ink); padding: 6px 10px; border-radius: 10px; box-shadow: var(--shadow-pop);
  font-size: 12px; max-width: 240px; text-align: center;
}
.scrub-tip b { display: block; font-variant-numeric: tabular-nums; }
.scrub-tip span { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; opacity: .85; }

/* Download CTA ($2 per song) */
.buy-cta { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 16px; padding: 10px 12px 10px 10px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); text-align: left; cursor: pointer; transition: background .15s, border-color .15s, transform .1s; }
.buy-cta:hover { background: var(--surface-3); }
.buy-cta:active { transform: scale(.99); }
.buy-cta .btn-icon { flex: none; width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--ink); color: var(--on-ink); }
.buy-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.buy-text b { font-size: 15px; font-weight: 650; }
.buy-text span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buy-price { flex: none; font-weight: 700; font-size: 15px; padding: 7px 14px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
.buy { padding: 30px 26px 26px; }
.buy .modal-title { margin-top: 4px; padding-right: 40px; }
.buy-list { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; font-size: 15px; }
.buy-list li { display: flex; gap: 10px; align-items: flex-start; }
.buy-list [data-icon] { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--green, #1f8a4c); }
.buy-go { width: 100%; justify-content: center; }
.buy-go:disabled { opacity: .55; cursor: not-allowed; }
.buy-note { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }
@media (min-width: 821px) { .buy-cta { max-width: 420px; } }

/* =========================================================
   FUN LAYER: sing mode, hold-to-hype, title reveal, streak moment, weekly recap
   ========================================================= */
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; }

/* title arrives word by word */
.stage-title .tw { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; margin-bottom: -.06em; }
.stage-title .tw > span { display: inline-block; animation: wordUp .7s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 55ms); }
@keyframes wordUp { from { transform: translateY(105%); opacity: 0; } to { transform: none; opacity: 1; } }

/* lyric tools: Sing · Hold to hype · React */
.lyric-tools { position: absolute; right: 4px; bottom: 8px; z-index: 2; display: flex; gap: 6px; align-items: center; }
.lyric-tools .moment-btn { position: static; }
.tool-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--glass); color: var(--text); font-size: 13px; font-weight: 600; box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.tool-btn [data-icon] { width: 16px; height: 16px; }
.hype-btn.is-holding { transform: scale(1.12); box-shadow: 0 0 0 6px hsla(var(--h, 24), 90%, 60%, .22), 0 8px 22px -6px hsla(var(--h, 24), 90%, 45%, .6); }
.hype-float { position: absolute; bottom: 10%; font-size: calc(30px * var(--s, 1)); line-height: 1; pointer-events: none;
  animation: hypeUp 1.5s cubic-bezier(.15,.75,.3,1) forwards; }
@keyframes hypeUp {
  0% { opacity: 0; transform: translate(-50%, 20px) scale(.4) rotate(0); }
  12% { opacity: 1; transform: translate(-50%, -20px) scale(1.15) rotate(calc(var(--rot) / 2)); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), -260px) scale(.9) rotate(var(--rot)); }
}
.hype-combo { position: absolute; right: 18px; bottom: 58px; z-index: 3; font-weight: 800; font-size: 30px; letter-spacing: -.02em; pointer-events: none;
  color: hsl(var(--h, 24) 80% 45%); text-shadow: 0 2px 0 var(--bg), 0 6px 18px rgba(0,0,0,.12); }
.hype-combo.pop { animation: comboPop .28s cubic-bezier(.2,1.6,.4,1); }
@keyframes comboPop { from { transform: scale(1.5) rotate(-6deg); } to { transform: none; } }

/* Sing mode */
.sing { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; color: #fff; overflow: hidden;
  background: radial-gradient(110% 70% at 15% 0%, hsl(var(--sh, 24) 85% 58% / .85), transparent 62%), linear-gradient(165deg, hsl(calc(var(--sh, 24) - 12) 72% 42%), hsl(calc(var(--sh, 24) - 30) 70% 24%));
  opacity: 0; transform: translateY(24px); transition: opacity .26s ease, transform .32s cubic-bezier(.2,.8,.2,1); }
.sing.is-open { opacity: 1; transform: none; }
body.is-singing { overflow: hidden; }
.sing-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: max(18px, env(safe-area-inset-top)) 20px 8px; }
.sing-title { font-weight: 700; font-size: 16px; margin: 0; }
.sing-artist { margin: 0; opacity: .75; font-size: 14px; }
.sing-x, .sing-play { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255,255,255,.18); color: #fff; cursor: pointer; }
.sing-x [data-icon], .sing-play [data-icon] { width: 20px; height: 20px; }
.sing-stage { position: relative; flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 70%, transparent); }
.sing-lines { padding: 0 24px; transition: transform .55s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.sl { margin: 0 0 22px; font-size: clamp(30px, 8.4vw, 54px); line-height: 1.12; font-weight: 800; letter-spacing: -.025em; cursor: pointer;
  opacity: .32; transform: scale(.94); transform-origin: left center; transition: opacity .4s ease, transform .5s cubic-bezier(.2,.8,.2,1), filter .4s; filter: blur(.6px); }
.sl.is-past { opacity: .2; }
.sl.is-now { opacity: 1; transform: none; filter: none; }
.sw { color: rgba(255,255,255,.42); transition: color .15s; }
.sl.is-now .sw.is-on { background: linear-gradient(90deg, #fff var(--p, 0%), rgba(255,255,255,.42) var(--p, 0%)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sl.is-now .sw.is-sung { color: #fff; background: none; text-shadow: 0 0 22px rgba(255,255,255,.35); }
.sing-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px max(20px, env(safe-area-inset-bottom)); }
.sing-mic { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; opacity: .85; }
.sing-mic [data-icon] { width: 18px; height: 18px; }
.sing-play { width: 64px; height: 64px; background: #fff; color: hsl(var(--sh, 24) 62% 30%); }
.sing-play [data-icon] { width: 26px; height: 26px; }
.sing-hype { width: 52px; height: 52px; border-radius: 50%; border: 0; font-size: 24px; background: rgba(255,255,255,.18); cursor: pointer;
  transition: transform .18s cubic-bezier(.2,.8,.2,1); user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.sing-hype.is-holding { transform: scale(1.18); background: rgba(255,255,255,.3); }
.sing-float { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.sing-combo { right: 22px; bottom: 96px; color: #fff; text-shadow: 0 4px 20px rgba(0,0,0,.25); font-size: 40px; }

/* Streak moment: flame mark, heavy gradient number, mono labels, ember sparks */
.streak-modal { text-align: center; overflow: hidden; }
.sm { position: relative; padding: 30px 24px 24px; display: flex; flex-direction: column; align-items: center; }
.sm-kicker { margin: 0 0 14px; font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; color: var(--accent-text); }
.sm-mark { position: relative; display: flex; align-items: center; gap: 6px; height: 132px; }
.sm-flame { width: 84px; height: 104px; filter: drop-shadow(0 0 28px rgba(255, 90, 31, .55)); transform-origin: 50% 90%;
  animation: flameIn .6s cubic-bezier(.2,.9,.25,1) both, burn 2.2s ease-in-out .6s infinite; }
@keyframes flameIn { from { transform: scale(.5) translateY(18px); opacity: 0; filter: drop-shadow(0 0 0 rgba(255,90,31,0)); } }
@keyframes burn { 0%, 100% { transform: scaleY(1) skewX(0); } 35% { transform: scaleY(1.04) skewX(-1.5deg); } 70% { transform: scaleY(.98) skewX(1.5deg); } }
.sm-num { height: 120px; overflow: hidden; }
.sm-roll { display: flex; flex-direction: column; animation: roll .75s cubic-bezier(.2,.9,.2,1) .35s both; }
.sm-roll b { font-size: 120px; line-height: 120px; font-weight: 900; letter-spacing: -.06em; font-variant-numeric: tabular-nums;
  background: var(--grad-ember); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes roll { from { transform: none; } to { transform: translateY(-120px); } }
.sparks { position: absolute; left: -60px; right: -60px; top: -40px; bottom: 0; width: calc(100% + 120px); height: calc(100% + 40px); pointer-events: none; }
.sm-label { margin: 2px 0 0; font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .22em; color: var(--text); }
.sm-sub { margin: 10px 0 22px; color: var(--muted); max-width: 300px; }
.sm-week { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 0; margin: 0 0 24px; width: 100%; max-width: 330px; }
.sm-week li { display: flex; flex-direction: column; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--faint); }
.sm-week i { width: 100%; height: 34px; border-radius: 8px; background: var(--surface-3); animation: tileIn .35s ease both; animation-delay: calc(.45s + var(--i) * 45ms); }
.sm-week li.is-done i { background: var(--grad-ember); box-shadow: 0 6px 18px -8px rgba(255, 90, 31, .8); }
.sm-week li.is-done span { color: var(--accent-text); }
.sm-week li.is-today i { outline: 2px solid var(--text); outline-offset: 2px; }
@keyframes tileIn { from { opacity: 0; transform: translateY(6px); } }
.sm-actions { display: grid; gap: 8px; width: 100%; }

/* Your week (story recap) */
.recap { position: fixed; inset: 0; z-index: 210; color: #fff; overflow: hidden; user-select: none; -webkit-user-select: none;
  background: radial-gradient(90% 60% at 80% 10%, hsl(var(--rh, 24) 80% 55% / .9), transparent 60%), radial-gradient(80% 60% at 0% 100%, hsl(calc(var(--rh, 24) - 35) 75% 42% / .75), transparent 60%), #111;
  opacity: 0; transform: scale(.98); transition: opacity .26s ease, transform .3s cubic-bezier(.2,.8,.2,1); }
.recap.is-open { opacity: 1; transform: none; }
body.is-recap { overflow: hidden; }
.recap-bars { position: absolute; top: max(12px, env(safe-area-inset-top)); left: 14px; right: 14px; display: flex; gap: 4px; z-index: 3; }
.recap-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
.recap-bars i b { display: block; height: 100%; width: 0; background: #fff; }
.recap-bars i.done b { width: 100%; }
.recap-bars i.now b { animation: storyBar 5.2s linear forwards; }
@keyframes storyBar { to { width: 100%; } }
.recap-x { position: absolute; top: calc(max(12px, env(safe-area-inset-top)) + 14px); right: 12px; z-index: 4; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255,255,255,.14); color: #fff; }
.recap-x [data-icon] { width: 18px; height: 18px; }
.recap-slides { position: absolute; inset: 0; }
.rs { position: absolute; inset: 0; padding: 90px 26px 40px; display: flex; flex-direction: column; justify-content: center; max-width: 560px; margin: 0 auto;
  opacity: 0; transform: translateY(16px); transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.rs.is-on { opacity: 1; transform: none; pointer-events: auto; }
.rs-kicker { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.rs-mega { font-size: clamp(110px, 34vw, 190px); line-height: .9; font-weight: 900; letter-spacing: -.06em; color: hsl(var(--rh, 24) 95% 78%);
  -webkit-text-stroke: 2px rgba(255,255,255,.9); text-shadow: 6px 6px 0 rgba(0,0,0,.25); }
.rs-big { font-size: clamp(38px, 10vw, 60px); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; margin: 0 0 12px; }
.rs-title { font-size: clamp(30px, 8vw, 46px); line-height: 1.05; font-weight: 800; letter-spacing: -.03em; margin: 22px 0 8px; }
.rs-sub { font-size: 17px; opacity: .85; margin: 10px 0 0; }
.rs-bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; margin-top: 34px; }
.rs-bars div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.rs-bars i { width: 100%; border-radius: 8px; background: #fff; height: calc(6px + var(--v) * 100%); max-height: calc(100% - 22px); transform-origin: bottom; }
.rs.is-on .rs-bars i { animation: barGrow .8s cubic-bezier(.2,.8,.2,1) both; }
.rs-bars div:nth-child(n) i { animation-delay: calc(var(--v) * 0s); }
@keyframes barGrow { from { transform: scaleY(0); } }
.rs-bars span { font-size: 12px; font-weight: 700; opacity: .75; }
.rs-art { width: min(64vw, 280px); aspect-ratio: 1; border-radius: 28px; display: grid; place-items: center; font-size: 64px; font-weight: 800; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.rs.is-on .rs-art { animation: artIn .8s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes artIn { from { transform: rotate(-8deg) scale(.7); opacity: 0; } }
.rs-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.rs-stats div { background: rgba(255,255,255,.12); border-radius: 20px; padding: 18px; }
.rs-stats b { display: block; font-size: 56px; line-height: 1; font-weight: 900; letter-spacing: -.04em; }
.rs-stats span { font-size: 14px; opacity: .8; }
.rs-top { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.rs-top li { display: grid; grid-template-columns: 26px 40px 1fr auto; gap: 12px; align-items: center; font-weight: 700; font-size: 17px; }
.rs-top em { font-style: normal; font-size: 22px; font-weight: 900; opacity: .7; }
.rs-dot { width: 40px; height: 40px; border-radius: 10px; }
.rs-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-top small { opacity: .7; }
.rs-4 blockquote { margin: 0; font-size: clamp(32px, 8.6vw, 52px); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; }
.rs-btn { margin-top: 28px; background: #fff; color: #111; padding: 14px 22px; border-radius: 999px; font-size: 16px; align-self: flex-start; }
.rs-ghost { margin-top: 8px; background: none; color: #fff; opacity: .8; align-self: flex-start; padding: 10px 4px; }
.rs-empty .rs-btn { align-self: flex-start; }

@media (prefers-reduced-motion: reduce) {
  .stage-title .tw > span, .sm-flame, .sm-roll, .sm-week i, .sm-flame, .rs.is-on .rs-bars i, .rs.is-on .rs-art, .hype-float, .hype-combo.pop { animation: none !important; }
  .sm-roll { transform: translateY(-120px); }
  .sing-lines, .sl, .rs { transition: none; }
}

/* =========================================================
   SYSTEM LAYER: Finimize-led type & chrome, SoundCloud music accents
   ========================================================= */
body { background: var(--bg); color: var(--text); }
/* Labels: small uppercase monospace in the brand blue (Finimize) */
.eyebrow, .lm-label, .rs-kicker, .side-label, .sm-kicker {
  font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand);
}
.mono, .progress-meta, .player-show, .fmt-time { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.progress-meta { font-size: 11.5px; }
/* Headlines: heavy and tight */
h1, h2, .modal-title, .card-title { letter-spacing: -0.03em; }
.stage-title { font-weight: 900; letter-spacing: -0.045em; }

/* Tabs & tab bar: brand blue marks where you are */
.tab[aria-selected="true"]::after { background: var(--brand); height: 3px; border-radius: 3px; }
.tabbar-btn.is-active { color: var(--brand); }

/* Music accents (SoundCloud): ember progress, now-playing, live */
.progress-fill, .player-progress div { background: var(--grad-ember); }
.progress-fill::after { background: var(--ember); box-shadow: 0 0 0 4px var(--accent-soft); }
.badge-now { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.pulse { background: var(--ember); }
::selection { background: var(--ember); color: #fff; }
:focus-visible { outline-color: var(--accent); }

/* Floating pill player (SoundCloud) */
.player { border-radius: 999px; background: var(--glass); border: 1px solid var(--line-strong);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: var(--shadow-pop); }
.player .art { border-radius: 50%; }
.player-progress { left: 28px; right: 28px; top: auto; bottom: 0; height: 2px; background: transparent; }
.play-btn { background: var(--ink); color: var(--on-ink); }

/* Theme switch */
.theme-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  display: grid; place-items: center; cursor: pointer; transition: background .15s, transform .2s cubic-bezier(.2,.8,.2,1); }
.theme-btn:hover { background: var(--surface-2); }
.theme-btn:active { transform: rotate(-20deg) scale(.92); }
.theme-btn [data-icon] { width: 17px; height: 17px; }
.top-actions { display: flex; align-items: center; gap: 8px; }

/* Streak pill: flame mark, mono count */
.streak-pill { gap: 5px; font-family: var(--mono); font-weight: 700; background: var(--surface); color: var(--text); }
.flame { width: 14px; height: 18px; flex: none; }
.streak-pill .flame { filter: grayscale(1) brightness(.9); opacity: .55; transition: filter .3s, opacity .3s; }
.streak-pill.is-done .flame { filter: drop-shadow(0 0 6px rgba(255, 90, 31, .6)); opacity: 1; }
.streak-pill.is-done { border-color: rgba(255, 90, 31, .45); }
.streak-big .flame { width: 30px; height: 38px; filter: drop-shadow(0 0 10px rgba(255, 90, 31, .45)); }
.streak-big strong { background: var(--grad-ember); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 900; }

/* Generated covers (Finimize "brief" style) */
.sleeve.has-cover { padding: 0; }
.sleeve.has-cover > span { display: none; }
.sleeve.has-cover::after { background: linear-gradient(135deg, rgba(255,255,255,.12), transparent 35%); }
.vinyl-label.has-cover span { display: none; }

/* Cards & surfaces in dark: borders do the lifting, not shadows */
:root[data-theme="dark"] .card { box-shadow: none; }
:root[data-theme="dark"] .modal { background: var(--surface); }
:root[data-theme="dark"] .modal::backdrop { background: rgba(0, 0, 0, .7); }
:root[data-theme="dark"] img.install-icon { box-shadow: 0 0 0 1px var(--line-strong); }
:root[data-theme="dark"] .hype-combo { text-shadow: 0 2px 0 var(--bg), 0 6px 18px rgba(0,0,0,.6); }
:root[data-theme="dark"] .vinyl { box-shadow: 0 0 0 1px var(--line), 0 30px 60px -20px rgba(0,0,0,.9); }

/* Song actions: one control row. Web: transport left, labelled actions right.
   Phones (and the home-screen app): transport centred, an icon bar with short labels below. */
.stage { position: relative; }
.stage .stage-actions { position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.transport { display: flex; align-items: center; gap: 8px; }
.actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.act { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background .15s, border-color .15s, transform .18s cubic-bezier(.2,.8,.2,1); user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.act:hover { background: var(--surface-2); }
.act b { font-size: 13px; font-weight: 600; }
.act [data-icon] { width: 16px; height: 16px; }
.act .flame { width: 14px; height: 18px; }
.act-buy { background: var(--accent-soft); border-color: transparent; color: var(--accent-text); }
.act-buy:hover { background: var(--accent-soft); filter: brightness(.97); }
.hype-btn.is-holding { transform: scale(1.1); border-color: rgba(255, 90, 31, .5); box-shadow: 0 0 0 6px var(--accent-soft); }
.more { position: relative; }
.more-menu { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 30; min-width: 240px; padding: 6px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-pop); display: grid; gap: 2px; }
.more-menu[hidden] { display: none; }
.stage .more-menu #stageStory, .stage .more-menu #stageRequest { display: flex; flex-direction: row; align-items: center; gap: 10px; width: 100%; min-width: 0;
  padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--text); font: inherit; font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; grid-column: auto; grid-row: auto; }
.stage .more-menu button:hover { background: var(--surface-2); }
.more-menu [data-icon] { width: 18px; height: 18px; color: var(--muted); }
.hype-layer { position: absolute; inset: -260px 0 0 0; pointer-events: none; overflow: visible; z-index: 5; }
.hype-layer .hype-float { bottom: auto; }
.stage .hype-combo { position: absolute; right: auto; bottom: auto; transform: translateX(-50%); z-index: 6; }

@media (max-width: 820px) {
  .stage .stage-actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .transport { justify-content: center; gap: 22px; }
  .actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 4px;
    padding-top: 12px; border-top: 1px solid var(--line); }
  .act { flex-direction: column; gap: 5px; padding: 2px 0; border: 0; background: none; border-radius: 12px; }
  .act:hover { background: none; }
  .act > [data-icon], .act > .flame { box-sizing: content-box; width: 20px; height: 20px; padding: 11px; border-radius: 50%; background: var(--surface-2); }
  .act > .flame { width: 17px; height: 21px; padding: 10.5px 12px; }
  .act b { font-size: 11px; font-weight: 600; color: var(--text-2); }
  .act-buy { background: none; color: var(--text); }
  .act-buy > [data-icon] { background: var(--accent-soft); color: var(--accent-text); }
  .act-buy b { color: var(--accent-text); }
  .more { display: flex; justify-content: center; }
  .more-menu { right: 0; }
  .hype-btn.is-holding { transform: scale(1.12); box-shadow: none; }
}

/* Transport lives in the floating player (prev · play · next) */
.player-center { display: flex; align-items: center; gap: 10px; }
.player .skip-btn { width: 40px; height: 40px; border: 0; background: none; color: var(--text); display: grid; place-items: center; border-radius: 50%; }
.player .skip-btn:hover { background: var(--surface-2); }
.player .skip-btn [data-icon] { width: 18px; height: 18px; }
.player .skip-btn:active { transform: scale(.92); }
.stage .stage-actions { justify-content: flex-end; }
@media (max-width: 820px) {
  .player-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding-right: 8px; }
  .player-center { gap: 2px; }
  .player .skip-btn { width: 36px; height: 36px; }
  .player .play-btn { width: 44px; height: 44px; }
  .stage .stage-actions { margin-top: 10px; }
  .actions { border-top: 0; padding-top: 4px; }
}

/* "Playing from …" opens the mix picker */
.mix-open { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted);
  padding: 5px 10px 5px 12px; border-radius: 999px; font: inherit; font-size: 13px; cursor: pointer; transition: background .15s, border-color .15s; }
.mix-open:hover { background: var(--surface-2); border-color: var(--text); }
.mix-open .chev { font-size: 10px; color: var(--muted); margin-left: 2px; }
.stage-head .mix-open { flex: 0 0 auto; align-self: center; }
.mixes { padding: 30px 22px 22px; }
.mix-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.mix-row { width: 100%; display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 10px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); text-align: left; font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.mix-row:hover { background: var(--surface-2); }
.mix-row[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.mix-art { width: 56px; height: 56px; border-radius: 12px; }
.mix-meta { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.mix-meta b { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.mix-meta span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mix-meta small { font-size: 11px; color: var(--faint); margin-top: 2px; }
.mix-check { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--on-ink); background: var(--brand); }
.mix-row[aria-pressed="false"] .mix-check { background: none; }

/* Floating player: just the song (title + artist); the stage already says what's playing and from where */
.player-badges { display: none !important; }
.player-title { font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; margin-top: 0; }
.player-artist { font-size: 12.5px; }

/* Mix icons: one colour per mix, white glyph */
.mix-art { display: grid; place-items: center; color: #fff; }
.mix-art [data-icon] { width: 26px; height: 26px; }
.mix-all { background: var(--brand); }
.mix-worship { background: linear-gradient(160deg, #ffb547, #f07a12); }
.mix-hype { background: var(--grad-ember); }
.mix-chill { background: linear-gradient(160deg, #8a7dff, #4b3fd6); }
.mix-beats { background: linear-gradient(160deg, #2b2d33, #0e0f12); }
.mix-rnb { background: linear-gradient(160deg, #ff6fa3, #c2185b); }
:root[data-theme="dark"] .mix-beats { background: linear-gradient(160deg, #3a3d45, #1d1f24); }

/* Listening mode: when music plays, the room dims a little and the player cards lift toward you */
body { transition: background-color .7s ease; }
.card.stage, .card.side { transition: transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .6s ease, background-color .6s ease, border-color .6s ease; }
body.is-playing { background-color: #e7e7e3; }
body.is-playing .card.stage, body.is-playing .card.side {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 18px 40px -14px rgba(0,0,0,.22), 0 40px 80px -40px rgba(0,0,0,.18);
}
:root[data-theme="dark"] body.is-playing { background-color: #000; }
:root[data-theme="dark"] body.is-playing .card.stage, :root[data-theme="dark"] body.is-playing .card.side {
  background-color: var(--surface-2); border-color: rgba(255,255,255,.1);
  box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 30px 70px -20px rgba(0,0,0,.9);
}
:root[data-theme="dark"] body:not(.is-playing) .card.stage, :root[data-theme="dark"] body:not(.is-playing) .card.side { opacity: .92; }
@media (prefers-reduced-motion: reduce) {
  body, .card.stage, .card.side { transition: none; }
  body.is-playing .card.stage, body.is-playing .card.side { transform: none; }
}

/* =========================================================
   Floating player, tuned to how the best players do it
   Web (Apple Music / TIDAL / Suno): song left · controls centred with time + progress under them · volume right
   Phones (SoundCloud / Deezer / Calm): cover · title & artist · play (progress ring) · next — 64 px tall
   ========================================================= */
.player { --player-h: 76px; height: var(--player-h); }
.player-inner { grid-template-columns: minmax(0, 1fr) minmax(280px, 420px) minmax(0, 1fr); gap: 24px; padding: 0 18px 0 12px; }
.player-track { cursor: pointer; gap: 12px; }
.player .art { width: 52px; height: 52px; border-radius: 10px; flex: none; }
.player-center { flex-direction: column; gap: 4px; justify-content: center; }
.player-controls { display: flex; align-items: center; justify-content: center; gap: 14px; }
.player .play-btn { position: relative; width: 40px; height: 40px; }
.player .play-btn [data-icon] { width: 18px; height: 18px; }
.player-time { display: flex; align-items: center; gap: 10px; width: 100%; font-size: 11px; color: var(--muted); }
.player-time .mono { min-width: 32px; text-align: center; font-size: 11px; }
.player-bar { flex: 1; height: 3px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.player-bar div { height: 100%; width: 0; background: var(--grad-ember); border-radius: 3px; transition: width 1s linear; }
.player-progress { display: none; }
.ring { display: none; }

@media (max-width: 820px) {
  .player { --player-h: 64px; border-radius: 20px; }
  .player-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 6px; padding: 0 8px 0 8px; }
  .player .art { width: 46px; height: 46px; border-radius: 10px; }
  .player-meta { min-width: 0; }
  .player-title { font-size: 15px; }
  .player-artist { font-size: 13px; }
  #playerLesson { display: none; }
  .player-center { flex-direction: row; }
  .player-time, #prevBtn { display: none; }
  .player-controls { gap: 2px; }
  /* play first, then next (thumb-friendly, matches Deezer / Edits) */
  .player-controls #playBtn { order: 1; }
  .player-controls #nextBtn { order: 2; }
  .player .play-btn { width: 44px; height: 44px; background: transparent; color: var(--text); }
  .player .play-btn [data-icon] { width: 20px; height: 20px; }
  .ring { display: block; position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
  .ring circle { fill: none; stroke-width: 3; }
  .ring-track { stroke: var(--surface-3); }
  .ring-fill { stroke: var(--ember); stroke-linecap: round; stroke-dasharray: 141.37; stroke-dashoffset: 141.37; transition: stroke-dashoffset 1s linear; }
  .player .skip-btn { width: 44px; height: 44px; }
  .player .skip-btn [data-icon] { width: 20px; height: 20px; }
}

/* No vinyl: the cover stands on its own */
.platter { display: none !important; }
.deck { aspect-ratio: 1 / 1; }
.sleeve { position: relative; width: 100%; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 24px 48px -18px rgba(0,0,0,.35); }

/* =========================================================
   The stage card wears the album cover: full-bleed, blurred and darkened,
   with the content in white on top (Apple Music / SoundCloud now-playing)
   ========================================================= */
.card.stage.has-cover {
  position: relative; isolation: isolate; overflow: hidden; border-color: transparent; background: #0d0d10; color: #fff;
  /* a dark island of tokens so everything inside reads on the art, in both themes */
  --text: #ffffff; --text-2: rgba(255,255,255,.86); --muted: rgba(255,255,255,.7); --faint: rgba(255,255,255,.5);
  --line: rgba(255,255,255,.14); --line-strong: rgba(255,255,255,.22);
  --surface: rgba(255,255,255,.1); --surface-2: rgba(255,255,255,.14); --surface-3: rgba(255,255,255,.2);
  --ink: #ffffff; --ink-hover: #ffffff; --on-ink: #0a0a0b; --glass: rgba(20,20,24,.55);
  --lyric-dim: rgba(255,255,255,.38); --lyric-past: rgba(255,255,255,.45); --lyric-hover: rgba(255,255,255,.6);
  --wave-rest: rgba(255,255,255,.3); --accent-text: #ff9a66; --brand: #a9b8ff; --accent-soft: rgba(255,90,31,.22);
}
.card.stage.has-cover::before {
  content: ''; position: absolute; inset: -60px; z-index: -2;
  background: var(--cover) center / cover no-repeat;
  filter: blur(46px) saturate(1.35) brightness(.9); transform: scale(1.1);
  transition: background-image .8s ease;
}
.card.stage.has-cover::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.38) 45%, rgba(0,0,0,.62) 100%);
}
.card.stage.has-cover .sleeve { box-shadow: 0 30px 60px -20px rgba(0,0,0,.65); }
.card.stage.has-cover .more-menu { background: #1c1c20; border-color: rgba(255,255,255,.12); }
.card.stage.has-cover .view-switch { background: rgba(255,255,255,.12); }
.card.stage.has-cover .seg[aria-pressed="true"] { background: rgba(255,255,255,.92); color: #0a0a0b; box-shadow: none; }
.card.stage.has-cover .badge-now { background: rgba(255,90,31,.25); color: #ffb08a; }
.card.stage.has-cover .act-buy { color: #ffb08a; }
body.is-playing .card.stage.has-cover, :root[data-theme="dark"] body.is-playing .card.stage.has-cover { background-color: #0d0d10; border-color: transparent; }
:root[data-theme="dark"] body:not(.is-playing) .card.stage.has-cover { opacity: 1; }

/* =========================================================
   Up next, done properly (Spotify / TIDAL / Apple Music queue)
   A plain heading, roomy rows, the song's length, a soft hover, tap to play
   ========================================================= */
.card.side { height: auto !important; min-height: 0; padding: 22px 14px 14px; }
.side-tabs, .side-label, #side-chat { display: none !important; }
.queue-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 8px 10px; }
.queue-title { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -.025em; }
.queue-from { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; }
.queue-from:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.upnext { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.upnext li, .upnext li:first-child { display: block; padding: 0; background: none; border-radius: 0; }
.qrow { width: 100%; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 8px; border: 0; border-radius: 12px;
  background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: background .15s; }
.qrow:hover, .qrow:focus-visible { background: var(--surface-2); }
.upnext .art { position: relative; width: 48px; height: 48px; border-radius: 8px; overflow: hidden; }
.qplay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; opacity: 0; transition: opacity .15s; }
.qplay svg { width: 18px; height: 18px; }
.qrow:hover .qplay, .qrow:focus-visible .qplay { opacity: 1; }
.qmeta { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.upnext .t { font-weight: 600; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upnext .a { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upnext .a em { font-style: normal; font-weight: 700; color: var(--accent-text); }
.qdur { color: var(--faint); font-size: 12px; padding-right: 4px; }

/* Stage: say each thing once */
.stage-album, .progress-meta #stageNext { display: none; }
.card.side .side-pane { flex: none; height: auto; overflow: visible; }

/* Phone mini player, option P1 ("line"): cover · title & artist · play/pause, progress hairline on the bottom edge */
@media (max-width: 820px) {
  .player-controls #nextBtn, .ring { display: none !important; }
  .player .play-btn { width: 44px; height: 44px; background: var(--ink); color: var(--on-ink); border-radius: 50%; margin-right: 2px; }
  .player .play-btn [data-icon] { width: 18px; height: 18px; }
  .player-progress { display: block; position: absolute; left: 14px; right: 14px; bottom: 0; top: auto; height: 2px; background: var(--surface-3); border-radius: 2px; overflow: hidden; }
  .player-progress div { height: 100%; background: var(--grad-ember); border-radius: 2px; }
}
