/* Mantis site: cover-adaptive colour + poster type. Colours come from the current song's palette
   (theme.js sets --bg, --acc, --acc2, --acc-soft, --on-acc on :root). */

@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url(../fonts/big-shoulders-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url(../fonts/big-shoulders-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

@property --bg { syntax: "<color>"; inherits: true; initial-value: #121410; }
@property --acc { syntax: "<color>"; inherits: true; initial-value: #9bd45a; }
@property --acc2 { syntax: "<color>"; inherits: true; initial-value: #6cbfa0; }

:root {
  --bg: #121410;
  --acc: #9bd45a;
  --acc2: #6cbfa0;
  --acc-soft: rgb(155 212 90 / .16);
  --on-acc: #121410;
  --ink: #f1ece6;
  --mu: rgb(241 236 230 / .62);
  --faint: rgb(241 236 230 / .38);
  --line: rgb(255 255 255 / .1);
  --panel: rgb(255 255 255 / .06);
  --panel-2: rgb(255 255 255 / .1);
  --wave-rest: rgb(255 255 255 / .24);
  --poster: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 8px;
  --pad: clamp(16px, 3vw, 32px);
  --minibar-h: 0px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
  transition: --bg .6s var(--ease), --acc .6s var(--ease), --acc2 .6s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  :root { transition-duration: .15s; }
  *, *::before, *::after { scroll-behavior: auto !important; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--ui);
  -webkit-font-smoothing: antialiased; min-height: 100vh; padding-bottom: calc(var(--minibar-h) + env(safe-area-inset-bottom));
}
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 4px; }
.icon { width: 1.1em; height: 1.1em; flex: none; }
.poster { font-family: var(--poster); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: .95; }
.eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--acc); font-weight: 600; }
.muted { color: var(--mu); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- top nav ---------- */
.topnav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 22px;
  padding: calc(14px + env(safe-area-inset-top)) var(--pad) 14px; font-size: 13px; color: var(--mu);
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.brand span { font-family: var(--poster); font-weight: 800; font-size: 20px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topnav nav { display: flex; align-items: center; gap: 20px; }
.topnav nav a { text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.topnav nav a:hover { color: var(--ink); }
.topnav nav a[aria-current="page"] { color: var(--ink); border-color: var(--acc); }
.topnav .rss { display: inline-flex; }
.topnav .back { display: none; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); }

/* ---------- stage ---------- */
.stage { position: relative; overflow: hidden; isolation: isolate; padding: calc(70px + env(safe-area-inset-top)) var(--pad) 40px; }
.stage-bg { position: absolute; inset: -60px; z-index: -2; background-size: cover; background-position: center; filter: blur(48px) saturate(1.6) brightness(.52); transform: scale(1.15); transition: opacity .6s var(--ease); }
.stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 90px; z-index: -1; background: linear-gradient(transparent, var(--bg)); }
.stage-inner { display: grid; grid-template-columns: auto minmax(260px, 340px) minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: stretch; max-width: 1280px; margin: 0 auto; }
.stage-cover { width: clamp(180px, 20vw, 240px); aspect-ratio: 1; object-fit: cover; border-radius: 10px; box-shadow: 0 18px 50px rgb(0 0 0 / .55); background: var(--panel); }
.stage-meta { display: flex; flex-direction: column; min-width: 0; }
.stage-title { font-size: clamp(26px, 2.9vw, 38px); margin: 6px 0 6px; overflow-wrap: anywhere; }
.stage-title a { text-decoration: none; }
.stage-title a:hover { color: var(--acc); }
.stage-sub { font-size: 13px; color: var(--mu); }
.stage-sub a { color: var(--mu); text-decoration: none; border-bottom: 1px solid var(--line); }
.stage-sub a:hover { color: var(--ink); }
.stage-spacer { flex: 1; min-height: 14px; }
.wave { position: relative; height: 34px; cursor: pointer; touch-action: none; --wave-played: var(--acc); }
.wave canvas { display: block; width: 100%; height: 100%; }
.times { display: flex; justify-content: space-between; font-size: 11px; color: var(--mu); margin-top: 4px; font-variant-numeric: tabular-nums; }
.transport { display: flex; align-items: center; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.tbtn { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgb(255 255 255 / .1); transition: background .2s, color .2s, transform .15s; }
.tbtn:hover { background: rgb(255 255 255 / .18); }
.tbtn:active { transform: scale(.94); }
.tbtn[aria-pressed="true"] { color: var(--acc); box-shadow: inset 0 0 0 1.5px var(--acc); }
.tbtn .icon { width: 18px; height: 18px; }
.tbtn.play { width: 52px; height: 52px; background: var(--acc); color: var(--on-acc); }
.tbtn.play .icon { width: 24px; height: 24px; }
.tbtn.play:hover { filter: brightness(1.08); background: var(--acc); }

.lyrics-pane { position: relative; min-height: 0; max-height: 300px; overflow-y: auto; overscroll-behavior: contain; padding: 40px 8px 60px 22px; border-left: 1px solid rgb(255 255 255 / .12);
  -webkit-mask: linear-gradient(transparent, #000 16%, #000 80%, transparent); mask: linear-gradient(transparent, #000 16%, #000 80%, transparent); scrollbar-width: none; }
.lyrics-pane::-webkit-scrollbar { display: none; }
.lyrics-pane ol { list-style: none; margin: 0; padding: 0; }
.lyr-line { font-family: var(--poster); font-weight: 600; font-size: clamp(16px, 1.45vw, 19px); line-height: 1.35; padding: 3px 0; color: rgb(241 236 230 / .72); transition: color .25s, opacity .25s, font-size .25s var(--ease); cursor: default; }
.synced .lyr-line { cursor: pointer; }
.synced .lyr-line:hover { color: var(--ink); }
.live .lyr-line { color: rgb(241 236 230 / .5); }
.live .lyr-line.past { opacity: .5; }
.live .lyr-line.now { color: var(--ink); font-weight: 800; font-size: clamp(19px, 1.8vw, 24px); text-transform: uppercase; }
.lyr-sec { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin: 14px 0 4px; }
.lyr-sec:first-child { margin-top: 0; }
.lyr-gap { height: 12px; }
.lyrics-wrap { position: relative; min-height: 0; min-width: 0; display: flex; flex-direction: column; }
.lyrics-wrap .lyrics-pane { flex: 1 1 auto; padding-right: 64px; }
.viz-fab { position: absolute; top: 6px; right: 0; z-index: 2; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  color: var(--ink); background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgb(0 0 0 / .25); cursor: pointer; transition: transform .15s var(--ease), background .15s, color .15s; }
.viz-fab .icon { width: 28px; height: 28px; }
.viz-fab:hover { background: rgb(255 255 255 / .18); color: var(--acc); transform: scale(1.06); }
.viz-fab:active { transform: scale(.95); }
.viz-fab:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
/* instrumentals: no lyrics, just the button where they'd be */
.lyrics-wrap.no-lyrics { align-items: center; justify-content: center; border-left: 1px solid rgb(255 255 255 / .12); min-height: 180px; }
.lyrics-wrap.no-lyrics .lyrics-pane { display: none; }
.lyrics-wrap.no-lyrics .viz-fab { position: static; width: 88px; height: 88px; border-radius: 24px; }
.lyrics-wrap.no-lyrics .viz-fab .icon { width: 46px; height: 46px; }
@media (prefers-reduced-motion: reduce) { .lyr-line { transition: none; } }

/* ---------- filters + wall ---------- */
.section { max-width: calc(1280px + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 0 8px; }
.search { display: flex; align-items: center; gap: 8px; background: var(--panel); border-radius: 99px; padding: 0 14px; height: 36px; min-width: 220px; flex: 0 1 280px; color: var(--mu); }
.search input { background: none; border: 0; color: var(--ink); font: inherit; font-size: 14px; outline: none; width: 100%; }
.search input::placeholder { color: var(--faint); }
.chips { display: contents; }
.chip { border: 1px solid rgb(255 255 255 / .16); border-radius: 99px; padding: 5px 12px; font-size: 12px; color: var(--mu); white-space: nowrap; transition: all .2s; }
.chip:hover { color: var(--ink); border-color: rgb(255 255 255 / .32); }
.chip[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
.wall-empty { color: var(--mu); padding: 40px 0; }
.year { font-family: var(--poster); font-weight: 800; font-size: 28px; color: rgb(255 255 255 / .2); margin: 18px 0 8px; }
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 16px; }
.card { position: relative; min-width: 0; }
.card-link { text-decoration: none; display: block; }
.card-art { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--panel); box-shadow: 0 6px 18px rgb(0 0 0 / .3); transition: transform .3s var(--ease), box-shadow .3s; }
.card-art img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .card-art { transform: translateY(-3px); box-shadow: 0 12px 28px rgb(0 0 0 / .45); }
.card-title { margin-top: 8px; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-date { font-size: 12px; color: var(--mu); }
.card-actions { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s; }
.card:hover .card-actions, .card:focus-within .card-actions { opacity: 1; transform: none; }
@media (hover: none) { .card-actions { opacity: 1; transform: none; } }
.card-actions button { width: 32px; height: 32px; border-radius: 50%; background: rgb(0 0 0 / .62); backdrop-filter: blur(6px); display: inline-flex; align-items: center; justify-content: center; }
.card-actions button:first-child { background: var(--acc); color: var(--on-acc); }
.card-actions .icon { width: 16px; height: 16px; }
.card.now .card-art { outline: 2px solid var(--acc); outline-offset: 3px; }
.card.now .card-title { color: var(--acc); }
.card.now .card-title::before { content: "▶ "; font-size: 10px; }

/* ---------- song page ---------- */
.song-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; padding-top: 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--panel); border-radius: 99px; padding: 8px 16px; font-size: 13px; text-decoration: none; transition: background .2s; }
.btn:hover { background: var(--panel-2); }
.btn.primary { background: var(--acc); color: var(--on-acc); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); }
.btn .icon { width: 16px; height: 16px; }
.h-sec { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mu); margin: 26px 0 10px; font-weight: 600; }
.prose { line-height: 1.7; color: rgb(241 236 230 / .88); max-width: 62ch; }
.prose p { margin: 0 0 1em; }
.prose a { color: var(--acc); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pill { border: 1px solid rgb(255 255 255 / .16); border-radius: 99px; padding: 3px 11px; font-size: 12px; color: var(--mu); text-decoration: none; }
a.pill:hover { color: var(--ink); border-color: var(--acc); }
.from-link { display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 6px; margin: 0 -6px; border-radius: var(--radius); }
.from-link:hover { background: var(--panel); }
.from-link img { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; }
.credits { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 13px; }
.credits dt { color: var(--mu); }
.credits dd { margin: 0; }
.song-tabs { display: none; }

/* ---------- album ---------- */
.album-head { display: flex; gap: clamp(18px, 3vw, 36px); align-items: flex-end; }
.album-head img { width: clamp(150px, 18vw, 220px); aspect-ratio: 1; border-radius: 10px; object-fit: cover; box-shadow: 0 18px 50px rgb(0 0 0 / .5); }
.album-title { font-size: clamp(32px, 4vw, 52px); margin: 6px 0 10px; }
.album-desc { max-width: 60ch; color: var(--mu); margin: 0 0 14px; }
.tracklist { list-style: none; margin: 24px 0 0; padding: 0; }
.trow { display: grid; grid-template-columns: 32px 44px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 8px 10px; border-radius: var(--radius); }
.trow:hover, .trow:focus-within { background: var(--panel); }
.trow .num { color: var(--mu); text-align: right; font-variant-numeric: tabular-nums; }
.trow img { width: 44px; height: 44px; border-radius: 5px; object-fit: cover; }
.trow a { text-decoration: none; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow .dur { color: var(--mu); font-size: 13px; font-variant-numeric: tabular-nums; }
.trow .row-actions { display: flex; gap: 4px; }
.trow .row-actions button { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--mu); }
.trow .row-actions button:hover { color: var(--ink); background: var(--panel-2); }
.trow.now a { color: var(--acc); }

/* ---------- about ---------- */
.about-banner { position: relative; height: clamp(180px, 30vw, 340px); overflow: hidden; }
.about-banner img { width: 100%; height: 100%; object-fit: cover; }
.about-banner::after { content: ""; position: absolute; inset: 40% 0 0 0; background: linear-gradient(transparent, var(--bg)); }
.about-head { display: flex; gap: 28px; align-items: flex-end; margin-top: -70px; position: relative; }
.about-head img { width: clamp(110px, 14vw, 150px); aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 4px solid var(--bg); }
.about-name { font-size: clamp(34px, 4.5vw, 56px); margin: 0 0 8px; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* ---------- mini bar ---------- */
.minibar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: auto minmax(120px, 280px) auto minmax(0, 1fr) auto auto; gap: 14px; align-items: center;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .35s var(--ease); }
.minibar.shown { transform: none; }
.mb-cover { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; cursor: pointer; }
.mb-text { min-width: 0; cursor: pointer; }
.mb-title { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-lyric { font-family: var(--poster); font-weight: 800; font-size: 14px; text-transform: uppercase; color: var(--acc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.2em; }
.mb-controls { display: flex; gap: 6px; align-items: center; }
.mb-controls .tbtn { width: 32px; height: 32px; }
.mb-controls .tbtn.play { width: 40px; height: 40px; }
.mb-wave { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mb-wave .wave { flex: 1; height: 26px; }
.mb-time { font-size: 11px; color: var(--mu); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mb-extra { display: flex; gap: 6px; }
.mb-extra .tbtn { width: 32px; height: 32px; }

/* ---------- queue drawer / sheet ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgb(0 0 0 / .5); opacity: 0; transition: opacity .25s; }
.scrim.open { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 41; width: min(360px, 92vw); display: flex; flex-direction: column;
  background: color-mix(in srgb, var(--bg) 92%, white 5%); border-left: 1px solid var(--line); box-shadow: -24px 0 50px rgb(0 0 0 / .5);
  transform: translateX(105%); transition: transform .3s var(--ease); padding: calc(16px + env(safe-area-inset-top)) 16px 16px; }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; gap: 8px; }
.drawer-head h2 { font-size: 26px; margin: 0; flex: 1; }
.drawer-body { overflow-y: auto; flex: 1; margin-top: 8px; overscroll-behavior: contain; }
.q-sec { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mu); margin: 16px 0 6px; }
.q-sec button { text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--mu); }
.q-sec button:hover { color: var(--ink); }
.qrow { display: grid; grid-template-columns: auto 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 4px; border-radius: 6px; background: transparent; }
.qrow.dragging { background: var(--panel-2); box-shadow: 0 8px 20px rgb(0 0 0 / .4); position: relative; z-index: 2; }
.qrow img { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; }
.qrow .q-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; cursor: pointer; }
.qrow .q-dur { font-size: 11px; color: var(--mu); }
.qrow .handle { color: var(--faint); cursor: grab; touch-action: none; padding: 6px 2px; display: inline-flex; }
.qrow .rm { color: var(--faint); width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.qrow .rm:hover { color: var(--ink); background: var(--panel-2); }
.qrow.current .q-title { color: var(--acc); font-weight: 600; }
.q-empty { color: var(--mu); font-size: 13px; padding: 8px 4px; }

/* ---------- comments (Mastodon) ---------- */
.comments-pill { align-self: flex-start; display: inline-flex; align-items: center; margin-top: 10px; padding: 5px 12px; border-radius: 99px; background: rgb(255 255 255 / .1); font-size: 12px; color: var(--ink); transition: background .2s; }
.comments-pill:hover { background: rgb(255 255 255 / .18); }
.comments-pill .icon { width: 14px; height: 14px; }
.pill-counts { display: inline-flex; align-items: center; gap: 4px; white-space: pre; }
.comments-drawer { width: min(420px, 94vw); }
.comments-summary { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 13px; }
.comments-summary .icon { width: 14px; height: 14px; }
.comments-summary a { color: var(--acc); }
.comments-empty { color: var(--mu); padding: 18px 0; }
.replies { display: flex; flex-direction: column; gap: 14px; margin: 14px 0 20px; }
.reply { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; margin-left: calc(var(--depth, 0) * 18px); }
.reply-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--panel); }
.reply-head { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; font-size: 12px; }
.reply-name { font-weight: 600; text-decoration: none; font-size: 13px; }
.reply-acct { overflow: hidden; text-overflow: ellipsis; max-width: 160px; white-space: nowrap; }
.reply-time { text-decoration: none; margin-left: auto; }
.reply-text { font-size: 14px; line-height: 1.5; margin-top: 2px; overflow-wrap: anywhere; }
.reply-text p { margin: 0 0 .5em; }
.reply-text a { color: var(--acc); }
.reply-likes { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.reply-likes .icon { width: 12px; height: 12px; }
.join { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.join .btn.primary { align-self: flex-start; }
.join-own { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.join-row { display: flex; gap: 6px; }
.join-row input { flex: 1; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 7px 12px; color: var(--ink); font: inherit; font-size: 13px; }
.join-row input:focus { outline: none; border-color: var(--acc); }
@media (max-width: 640px) { .comments-pill { align-self: center; } }

/* ---------- toasts ---------- */
.toasts { position: fixed; left: 50%; bottom: calc(var(--minibar-h) + 20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #111; padding: 9px 16px; border-radius: 99px; font-size: 13px; font-weight: 500; box-shadow: 0 10px 30px rgb(0 0 0 / .4); animation: toast-in .25s var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- visualiser overlay ---------- */
.vz { position: fixed; inset: 0; z-index: 100; background: var(--bg); color: var(--ink); overflow: hidden; }
.vz .viz { position: absolute; inset: 0; }
.vz .viz canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.vz-top { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; padding: calc(24px + env(safe-area-inset-top)) clamp(20px, 4vw, 48px) 0; pointer-events: none; }
.vz-title { font-size: clamp(30px, 4vw, 56px); text-shadow: 0 2px 20px rgb(0 0 0 / .5); }
.vz-artist { color: var(--mu); margin-top: 6px; }
.vz-clock { font-size: 18px; color: var(--mu); font-variant-numeric: tabular-nums; }
.vz-kara { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; padding: 0 6vw; pointer-events: none; font-family: var(--poster); text-transform: uppercase; }
.vz-kara .k-prev { font-weight: 600; font-size: clamp(15px, 1.6vw, 22px); opacity: .32; min-height: 1.3em; }
.vz-kara .k-now { font-weight: 800; font-size: clamp(30px, 4.6vw, 70px); line-height: 1.02; margin: 10px 0; text-shadow: 0 2px 24px rgb(0 0 0 / .55); min-height: 1.05em; transition: opacity .3s; }
.vz-kara .k-now.waiting { opacity: .55; }
.vz-kara .k-next { font-weight: 600; font-size: clamp(17px, 1.9vw, 26px); opacity: .5; min-height: 1.3em; }
.vz-bottom { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 0 clamp(20px, 4vw, 48px) calc(24px + env(safe-area-inset-bottom)); transition: opacity .5s; }
.vz-bottom .tbtn { background: rgb(255 255 255 / .16); }
.vz-bottom .tbtn.play { background: var(--ink); color: #111; }
.vz-progress { flex: 1; height: 18px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.vz-progress div { position: relative; width: 100%; height: 3px; border-radius: 2px; background: rgb(255 255 255 / .25); }
.vz-progress i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: var(--acc); }
.vz-time { font-size: 12px; color: var(--mu); font-variant-numeric: tabular-nums; }
.vz.idle .vz-bottom, .vz.idle .vz-clock { opacity: 0; }
.vz.idle { cursor: none; }

/* ---------- visualiser panel (🎛) ---------- */
.vz-kara.canvas-words .k-prev, .vz-kara.canvas-words .k-now { visibility: hidden; }
.vz-kara.canvas-words .k-next { transform: translateY(clamp(70px, 10vw, 150px)); }
.vz-kara.no-words { display: none; }
.vz.hideui .vz-top, .vz.hideui .vz-bottom, .vz.hideui .vz-panel, .vz.hideui .vz-kara { display: none !important; }
.vz.idle .vz-panel { opacity: 0; pointer-events: none; }
@media (min-width: 641px) {
  .vz.panel-open .vz-kara, .vz.panel-open .vz-bottom, .vz.panel-open .vz-top { right: min(340px, 92vw); }
  .vz.panel-open .vz-kara { left: 0; }
}
.vz-bottom .tbtn[aria-pressed="true"] { color: var(--acc); box-shadow: inset 0 0 0 1.5px var(--acc); }
.vz-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 92vw); z-index: 3; display: flex; flex-direction: column;
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-left: 1px solid rgb(255 255 255 / .1); transform: translateX(104%); transition: transform .28s var(--ease), opacity .4s; font-size: 12px; }
.vz-panel.open { transform: none; }
.vz-panel-head { display: flex; align-items: center; gap: 8px; padding: calc(14px + env(safe-area-inset-top)) 16px 8px; }
.vz-panel-head h2 { margin: 0; font-size: 22px; flex: 1; }
.vz-panel-body { overflow-y: auto; padding: 0 16px calc(16px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.vz-lbl { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--mu); margin: 14px 0 7px; }
.vz-looks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.vz-look { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 1.5px solid transparent; background-size: cover; }
.vz-look.on { border-color: var(--acc); }
.vz-look span { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 4px; font-size: 9px; font-weight: 600; text-align: left; background: linear-gradient(transparent, rgb(0 0 0 / .8)); }
.vz-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.vz-btn { background: rgb(255 255 255 / .1); border-radius: 99px; padding: 6px 11px; font-size: 11px; white-space: nowrap; }
.vz-btn:hover { background: rgb(255 255 255 / .18); }
.vz-btn.primary { background: var(--acc); color: var(--on-acc); font-weight: 600; }
.vz-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.vz-chip { border: 1px solid rgb(255 255 255 / .2); border-radius: 99px; padding: 4px 10px; font-size: 11px; color: rgb(241 236 230 / .85); }
.vz-chip[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: var(--on-acc); font-weight: 600; }
.vz-slider { display: grid; grid-template-columns: 92px 1fr 30px; gap: 8px; align-items: center; margin: 6px 0; color: rgb(241 236 230 / .85); }
.vz-slider.off { opacity: .4; }
.vz-slider input { width: 100%; accent-color: var(--acc); }
.vz-val { color: var(--mu); text-align: right; font-variant-numeric: tabular-nums; font-size: 11px; }
.vz-xy { position: relative; height: 100px; border-radius: 10px; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); touch-action: none; cursor: crosshair; }
.vz-xy { margin: 0 2px; }
.vz-xy b { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--acc); transform: translate(-50%, -50%); box-shadow: 0 0 0 5px color-mix(in srgb, var(--acc) 25%, transparent); pointer-events: none; left: 0; top: 100%; }
.vz-xy .ax { position: absolute; font-size: 9px; color: var(--mu); pointer-events: none; }
.vz-xy .ax.l { left: 6px; bottom: 4px; } .vz-xy .ax.r { right: 6px; bottom: 4px; } .vz-xy .ax.t { left: 6px; top: 4px; }
.vz-group { width: 100%; display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid rgb(255 255 255 / .08); font-size: 12px; color: rgb(241 236 230 / .9); }
.vz-group-body { padding: 2px 0 8px; }
.vz-group-body .vz-chips { margin: 6px 0; }
.vz-remember { margin-top: 6px; border-top: 1px solid rgb(255 255 255 / .08); }
.vz-artist { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.vz-note { color: var(--mu); font-size: 11px; line-height: 1.5; margin: 6px 0 0; }
.vz .toasts { z-index: 5; }
.toasts { z-index: 130; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .stage-inner { grid-template-columns: auto minmax(0, 1fr); }
  .lyrics-wrap { grid-column: 1 / -1; }
  .lyrics-wrap.no-lyrics { border-left: 0; border-top: 1px solid rgb(255 255 255 / .12); min-height: 130px; }
  .lyrics-pane { border-left: 0; padding-left: 0; max-height: 220px; border-top: 1px solid rgb(255 255 255 / .12); padding-top: 30px; }
  .viz-fab { top: 12px; }
  .song-body { grid-template-columns: 1fr; gap: 0; }
  .minibar { grid-template-columns: auto minmax(0, 1fr) auto auto; }
  .mb-wave { grid-column: 1 / -1; order: -1; margin: -4px 0 0; }
  .mb-wave .mb-time { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .topnav { gap: 14px; }
  .topnav nav { gap: 14px; }
  .brand span { font-size: 17px; }
  .stage { padding-top: calc(62px + env(safe-area-inset-top)); padding-bottom: 28px; }
  .stage-inner { grid-template-columns: 1fr; text-align: center; gap: 14px; }
  .stage-cover { width: min(62vw, 240px); margin: 0 auto; }
  .stage-meta { align-items: stretch; }
  .transport { justify-content: center; }
  .lyrics-pane { text-align: center; max-height: 150px; padding: 26px 0 40px; }
  .viz-fab { width: 46px; height: 46px; border-radius: 14px; }
  .viz-fab .icon { width: 24px; height: 24px; }
  .song-page .lyrics-pane { max-height: 46vh; }
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .search { flex: 1 1 100%; min-width: 0; }
  .chips { display: flex; gap: 8px; overflow-x: auto; flex: 1 1 100%; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); }
  .chips::-webkit-scrollbar { display: none; }
  .album-head { flex-direction: column; align-items: flex-start; }
  .trow { grid-template-columns: 24px 40px minmax(0, 1fr) auto; }
  .trow .dur { display: none; }
  .song-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin: 6px 0 4px; }
  .song-tabs button { padding: 10px 0; color: var(--mu); border-bottom: 2px solid transparent; font-size: 13px; }
  .song-tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--acc); }
  .song-body [data-tab][hidden-tab] { display: none; }
  .minibar { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; }
  .mb-controls .tbtn:not(.play):not(.mb-next) { display: none; }
  .mb-extra { display: none; }
  .drawer { top: auto; left: 0; width: auto; height: 78vh; border-left: 0; border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; transform: translateY(105%); padding-top: 10px; }
  .drawer::before { content: ""; width: 38px; height: 4px; border-radius: 2px; background: rgb(255 255 255 / .3); align-self: center; margin-bottom: 8px; }
  .vz-kara { padding: 0 20px; }
  .vz-panel { top: auto; left: 0; right: 0; width: auto; height: 58vh; border-left: 0; border-top: 1px solid rgb(255 255 255 / .12); border-radius: 18px 18px 0 0; transform: translateY(104%); }
  .vz-panel-head { padding-top: 12px; }
  .vz-bottom { flex-wrap: wrap; justify-content: center; }
  .vz-progress { flex-basis: 100%; order: -1; }
}
