/* 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 / .58); /* ≥ 4.5:1 on the darkest-allowed theme background (web-tests checks) */
  --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; }
/* headings (and main) focused after a page change, for screen readers: never a ring. They aren't controls, and on a
   fresh load browsers count script focus as keyboard focus, so :focus-visible would ring the artist's name. */
[tabindex="-1"]:focus { outline: none; }
/* a cover that opens the cover viewer */
.cover-btn { display: block; padding: 0; overflow: hidden; cursor: zoom-in; }
.cover-btn picture { display: block; width: 100%; height: 100%; border-radius: inherit; }
.cover-btn img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.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: 12px; 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; align-self: start; /* never stretched to the row: square, uncropped */ 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-artist { display: block; font-size: 16px; font-weight: 600; color: var(--acc); text-decoration: none; }
.stage-artist:hover { text-decoration: underline; }
.stage-date { font-size: 12px; color: var(--faint); margin-top: 2px; }
.stage-sub { font-size: 13px; color: var(--mu); margin-top: 4px; }
.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: pan-y; --wave-played: var(--acc); }
.wave canvas { display: block; width: 100%; height: 100%; }
.times { display: flex; justify-content: space-between; font-size: 12px; 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); }
.transport { gap: 22px; }
.transport .tbtn:not(.play) { width: 44px; height: 44px; background: rgb(255 255 255 / .08); }
.transport .tbtn:not(.play) .icon { width: 20px; height: 20px; }
.transport .tbtn.play { width: 60px; height: 60px; }
.transport .tbtn.play .icon { width: 28px; height: 28px; }
.transport.not-live .tbtn:not(.play), .transport.solo .tbtn:not(.play) { display: none; }
.transport.not-live .tbtn.play { width: auto; padding: 0 28px 0 22px; border-radius: 999px; gap: 8px; font-size: 17px; font-weight: 600; }

/* this song's actions: Queue ▾ · Share · WAV */
.stage-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--ink); text-decoration: none;
  background: rgb(255 255 255 / .08); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); transition: background .2s; }
.chip:hover { background: rgb(255 255 255 / .16); }
.chip .icon { width: 16px; height: 16px; }
.queue-anchor { position: relative; }
.queue-menu { position: absolute; z-index: 25; left: 0; bottom: calc(100% + 6px); min-width: 200px; padding: 6px; border-radius: 12px; display: flex; flex-direction: column;
  background: color-mix(in srgb, var(--bg) 92%, white); box-shadow: 0 12px 40px rgb(0 0 0 / .5), inset 0 0 0 1px var(--line); }
.queue-menu button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; text-align: left; font-size: 14px; color: var(--ink); }
.queue-menu button:hover { background: var(--panel-2); }
/* support and buy links (MANTIS-42): the name, then where it goes */
.out-link { display: inline-flex; align-items: center; gap: 8px; }
.out-dom { color: var(--mu); font-size: 12px; }
/* a support link as a row (format 1.6): the kind's icon on a tile in the service's colour, title, note, site */
.sl-row { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px;
  background: rgb(255 255 255 / .05); color: var(--ink); text-decoration: none; transition: background .2s; }
.sl-row:hover { background: rgb(255 255 255 / .1); }
.sl-tile { grid-row: span 2; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; }
.sl-tile .icon { width: 20px; height: 20px; }
.sl-text { min-width: 0; align-self: end; }
.sl-title { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.sl-note { display: block; font-size: 13px; line-height: 1.35; color: var(--mu); margin-top: 1px; }
.sl-dom { grid-column: 2; align-self: start; font-size: 12px; color: var(--faint); margin-top: 1px; overflow-wrap: anywhere; }

/* the floating Support button, every page: bottom right, above the mini bar; its card opens in its place */
.support-fab { position: fixed; right: var(--pad); bottom: calc(var(--minibar-h) + 16px + env(safe-area-inset-bottom)); z-index: 29;
  display: flex; flex-direction: column; align-items: flex-end; transition: bottom .35s var(--ease); }
.sp-pill-wrap { display: flex; align-items: center; gap: 6px; }
.support-fab.open .sp-pill-wrap { display: none; }
.support-fab.covered:not(.open) { opacity: 0; visibility: hidden; transition: opacity .2s, visibility 0s .2s; }
.sp-pill { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px 11px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: var(--acc); color: var(--on-acc); box-shadow: 0 12px 30px rgb(0 0 0 / .5); transition: filter .2s, transform .15s; }
.sp-pill:hover { filter: brightness(1.08); }
.sp-pill:active { transform: scale(.97); }
.sp-pill .icon { width: 17px; height: 17px; }
.sp-pill-wrap:not(:hover):not(:focus-within) .sp-hide { opacity: 0; }
.sp-hide { order: -1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--mu);
  background: color-mix(in srgb, var(--bg) 80%, black); box-shadow: inset 0 0 0 1px var(--line); transition: opacity .2s, color .2s; }
.sp-hide:hover { color: var(--ink); }
.sp-hide .icon { width: 14px; height: 14px; }
@media (hover: none) { .sp-pill-wrap:not(:hover):not(:focus-within) .sp-hide { opacity: 1; } }
.sp-card { width: min(380px, calc(100vw - 2 * var(--pad))); max-height: calc(100vh - var(--minibar-h) - 120px); overflow-y: auto; padding: 18px;
  display: flex; flex-direction: column; gap: 14px; border-radius: 18px; background: color-mix(in srgb, var(--bg) 88%, white);
  box-shadow: 0 24px 60px rgb(0 0 0 / .6), inset 0 0 0 1px var(--line); animation: sp-in .2s var(--ease); }
@keyframes sp-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .sp-card { animation: none; } }
.sp-head { display: flex; align-items: flex-start; gap: 12px; }
.sp-head h2 { flex: 1; margin: 6px 0 0; font-size: 18px; font-weight: 600; line-height: 1.25; }
.sp-list { display: flex; flex-direction: column; gap: 8px; }
.sp-more { align-self: flex-start; font-size: 13px; color: var(--acc); text-decoration: none; }
.sp-more:hover { text-decoration: underline; }
/* room at the end of every page so the button never sits on the last thing there */
html.has-support body { padding-bottom: calc(var(--minibar-h) + 76px + env(safe-area-inset-bottom)); }

/* the About page's Support card: highlighted, big rows, the site under each title */
.support-card { padding: 20px 18px; border-radius: 20px; display: flex; flex-direction: column; gap: 12px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--acc) 16%, transparent), color-mix(in srgb, var(--acc) 3%, transparent) 60%), var(--panel);
  border: 1px solid color-mix(in srgb, var(--acc) 26%, transparent); scroll-margin-top: 130px; }
.sc-head { display: flex; align-items: center; gap: 10px; color: var(--acc); margin-bottom: 2px; }
.sc-head .icon { width: 22px; height: 22px; }
.sc-head h2 { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.sc-list { display: flex; flex-direction: column; gap: 10px; }
.support-card .sl-row { padding: 14px; border-radius: 14px; background: rgb(255 255 255 / .06); }
.support-card .sl-row:hover { background: rgb(255 255 255 / .11); }
.support-card .sl-tile { width: 44px; height: 44px; border-radius: 12px; }
.support-card .sl-tile .icon { width: 22px; height: 22px; }
.support-card .sl-title { font-size: 16px; }
.support-card .sl-dom { margin-top: 2px; }

/* phones: subtitle lyrics and lyrics mode (hidden elsewhere) */
.subs { display: none; }
.stage-more { display: none; }
.lyrics-mode { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: var(--bg);
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.lm-head { display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.lm-title { flex: 1; text-align: center; font-size: 13px; font-weight: 600; color: var(--mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lm-body { flex: 1; min-height: 0; display: flex; }
.lyrics-mode .lyrics-pane { flex: 1; max-height: none; border: 0; padding: 30vh 28px 40vh; text-align: center; font-size: 1.2em;
  -webkit-mask-image: linear-gradient(transparent, #000 8%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 8%, #000 88%, transparent); }
html.lyrics-mode-open { overflow: hidden; }

/* the cover viewer: zoom and pan a cover full screen */
.stage-cover { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 70; background: #000; display: grid; place-items: center; overflow: hidden; touch-action: none; user-select: none; }
.lb-img { max-width: 100vw; max-height: 100vh; object-fit: contain; transform-origin: center; will-change: transform; -webkit-user-drag: none; }
.lb-close { position: fixed; top: calc(12px + env(safe-area-inset-top)); right: calc(14px + env(safe-area-inset-right)); width: 40px; height: 40px; background: rgb(0 0 0 / .5); color: #fff; }
html.lightbox-open { overflow: hidden; }

.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; }
/* a timed line's text is a button (keyboard: MANTIS-70) that looks like the text around it */
.lyr-play { display: block; width: 100%; appearance: none; text-align: inherit; text-transform: inherit; letter-spacing: inherit; word-spacing: inherit; line-height: inherit; text-indent: 0; }
.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: 12px; 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: fixed; top: calc(58px + env(safe-area-inset-top)); right: var(--pad); z-index: 25; 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; }
@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; }
/* search results: a release's cover is a little stack; a lyric match shows its words */
.card-art.stacked { overflow: visible; box-shadow: 5px -5px 0 -1px rgb(255 255 255 / .12), 0 6px 18px rgb(0 0 0 / .3); }
.card-art.stacked img { border-radius: var(--radius); }
.card-lyric { font-size: 12px; color: var(--mu); font-style: italic; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.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: 12px; }

/* ---------- 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: 12px; 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; }
.prose + .pills, .prose + .muted { margin-top: 18px; }  /* breathing room after a song's description */
.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 .album-cover { 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 4px; }
.album-artist { margin-bottom: 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(200px, 32vw, 380px); overflow: hidden; }
.about-banner.none { height: 140px; background: radial-gradient(120% 140% at 20% 0%, color-mix(in srgb, var(--acc) 22%, transparent), transparent 60%); }
.about-banner picture { display: block; height: 100%; }
.about-banner img { width: 100%; height: 100%; object-fit: cover; }
.about-banner::after { content: ""; position: absolute; inset: 35% 0 0 0; background: linear-gradient(transparent, var(--bg)); }
.about-head { display: flex; gap: 28px; align-items: flex-end; margin-top: -84px; position: relative; }
.about-head img { width: clamp(116px, 15vw, 168px); aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 4px solid var(--bg);
  box-shadow: 0 18px 50px rgb(0 0 0 / .45); flex: none; }
.about-id { min-width: 0; padding-bottom: 6px; }
.about-name { font-size: clamp(38px, 5.5vw, 72px); margin: 6px 0 14px; line-height: .95; }
.about-id .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 18px 56px; margin-top: 34px;
  grid-template-areas: "bio links" "bio made" "songs songs"; grid-template-rows: auto 1fr auto; align-items: start; }
.about-bio { grid-area: bio; font-size: 16px; }
.about-bio > :first-child { margin-top: 0; }
.about-links { grid-area: links; display: grid; gap: 14px; }
.about-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 4px 18px 18px; }
.about-card .h-sec { margin-top: 14px; }
.about-card .links { margin-top: 0; }
.keys-card summary { cursor: pointer; margin-bottom: 0; }
.keys-card[open] summary { margin-bottom: 8px; }
.keys { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--mu); }
.keys kbd { font: 600 12px var(--ui); color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.keys-switch { display: flex; gap: 8px; align-items: center; font-size: 13px; cursor: pointer; }
.keys-switch input { accent-color: var(--acc); width: 16px; height: 16px; margin: 0; }
.about-songs { grid-area: songs; }
/* one row that scrolls sideways: latest songs, releases */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(132px, 15vw, 168px); gap: 16px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none; margin: -6px calc(-1 * var(--pad)) 0; padding: 8px var(--pad) 8px; scroll-padding: 0 var(--pad); }
/* the rail scrolls, so it clips: 8px above the cards for the playing outline (5px) and the hover lift (3px) */
.rail::-webkit-scrollbar { display: none; }
.rail > .card { scroll-snap-align: start; }
.about-made { grid-area: made; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* "This site was made with Mantis Music": the same card on every Mantis site, in Mantis's own colours */
.made-with { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 18px;
  border-radius: 18px; text-decoration: none; color: #f1f4ef; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #19313c, #11222b 70%); border: 1px solid rgb(166 240 63 / .28);
  box-shadow: 0 10px 30px rgb(0 0 0 / .3); transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.made-with::before { content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgb(166 240 63 / .16), transparent 70%); pointer-events: none; }
.made-with:hover, .made-with:focus-visible { transform: translateY(-2px); border-color: rgb(166 240 63 / .7); box-shadow: 0 16px 40px rgb(0 0 0 / .4); }
.made-with img { width: 56px; height: 56px; border-radius: 13px; box-shadow: 0 6px 16px rgb(0 0 0 / .35); }
.mw-text { display: grid; gap: 2px; min-width: 0; }
.mw-eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #a9b8b4; }
.mw-name { font-family: var(--poster, inherit); font-weight: 800; font-size: 26px; line-height: 1; text-transform: uppercase; color: #a6f03f; }
.mw-line { font-size: 13px; color: #c9d4d0; line-height: 1.4; margin-top: 3px; }
.mw-go { font-size: 20px; color: #a6f03f; align-self: start; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "bio" "links" "songs" "made"; grid-template-rows: none; gap: 22px; }
  .about-made { margin-top: 18px; }
}
@media (max-width: 560px) {
  .about-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-top: -70px; }
  .about-name { font-size: clamp(36px, 11vw, 52px); }
}

/* ---------- 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; display: block; text-align: left; cursor: pointer; }
.mb-title { display: block; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-artist { display: block; font-size: 12px; color: var(--mu); 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: 12px; color: var(--mu); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mb-extra { display: flex; gap: 6px; }
.mb-side { display: none; }
.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: 12px; 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 { display: block; max-width: 100%; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; cursor: pointer; }
.qrow .q-dur { font-size: 12px; 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-pills { align-self: flex-start; display: flex; gap: 10px; margin-top: 10px; }
.comments-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 99px; background: rgb(255 255 255 / .1);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); font-size: 15px; font-weight: 600; color: var(--ink); transition: background .2s; }
.comments-pill:hover { background: rgb(255 255 255 / .18); }
.comments-pill .icon { width: 18px; height: 18px; }
.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-pills { 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-kara { transition: opacity .45s var(--ease); }
.vz-kara.gap { opacity: 0; }
.vz.hideui .vz-top, .vz.hideui .vz-bottom, .vz.hideui .vz-panel, .vz.hideui .vz-kara { display: none !important; }
/* the settings panel never fades: it stays until closed (its ✕, V/Esc, or a tap outside it) */
/* shuffle and repeat live in the player bar and queue, not the visualiser; the panel has its own ✕ */
.vz-bottom .tbtn[aria-label="Shuffle"], .vz-bottom .tbtn[aria-label^="Repeat"] { display: none; }
.vz.panel-open .vz-bottom .tbtn[aria-label^="Close"] { display: none; }
@media (min-width: 641px) {
  .vz.panel-open .vz-kara, .vz.panel-open .vz-bottom, .vz.panel-open .vz-top { right: min(360px, 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); }
/* ---------- the visualiser's settings (view-viz-panel.js): header, five tabs, each a question ---------- */
.vz-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 92vw); z-index: 3; display: flex; flex-direction: column;
  background: color-mix(in srgb, var(--bg) 82%, 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: 13px; color: rgb(241 236 230 / .92); }
.vz-panel.open { transform: none; }
.vz-panel * { box-sizing: border-box; }
.vz-panel-head { padding: calc(12px + env(safe-area-inset-top)) calc(14px + env(safe-area-inset-right)) 6px 14px; display: flex; flex-direction: column; gap: 6px; }
.vz-head-top { display: flex; align-items: center; justify-content: space-between; }
.vz-panel-head h2 { margin: 0; font-size: 24px; }
.vz-panel-head .vz-close { flex: none; width: 44px; height: 44px; }
.vz-head-btns { display: flex; gap: 4px; }
.vz-hbtn { flex: 1 1 0; min-width: 0; min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border-radius: 10px; background: rgb(255 255 255 / .07); font-size: 12px; line-height: 1.2; padding: 4px 2px; white-space: nowrap; }
.vz-hbtn .vz-ico { font-size: 16px; line-height: 1; }
.vz-hbtn:hover:not(:disabled) { background: rgb(255 255 255 / .14); }
.vz-hbtn:disabled { opacity: .4; cursor: default; }
.vz-hbtn[hidden] { display: none; }
/* the parts strip above the tabs: the song's parts coloured by look (striped: Mantis picks), where it is; a locked
   part (the apps) is ringed and loops */
.vz-partsbar { margin: 2px 14px 4px; display: flex; flex-direction: column; gap: 6px; }
.vz-partsbar[hidden], .vz-lockrow[hidden], .vz-choices[hidden], .vz-partsbar .vz-desc[hidden] { display: none; }
.vz-pstrip { position: relative; height: 36px; border-radius: 8px; overflow: hidden; background: rgb(255 255 255 / .06); }
.vz-psegs { position: absolute; inset: 0; }
.vz-pseg { position: absolute; top: 0; bottom: 0; padding: 0; border-radius: 0; box-shadow: inset -2px 0 0 rgb(0 0 0 / .55); }
.vz-pseg.mantis { background: repeating-linear-gradient(45deg, rgb(255 255 255 / .16) 0 6px, rgb(255 255 255 / .07) 6px 12px); }
button.vz-pseg:hover { filter: brightness(1.15); }
.vz-pseg.same { box-shadow: inset 0 0 0 2px rgb(255 255 255 / .6), inset -2px 0 0 rgb(0 0 0 / .55); }
.vz-pseg.on { box-shadow: inset 0 0 0 3px #fff; }
.vz-pseg:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.vz-loopmark { position: absolute; top: 0; bottom: 0; border: 2px solid var(--acc); border-radius: 6px; pointer-events: none; }
.vz-loopmark[hidden] { display: none; }
.vz-lockrow { align-items: center; flex-wrap: wrap; gap: 6px; }
.vz-locked { flex: 1 1 100%; font-size: 13px; font-weight: 700; color: var(--acc); }
.vz-lockrow .vz-btn { flex: 1 1 0; }
.vz-tabs { display: flex; gap: 3px; margin: 4px 14px 2px; padding: 3px; border-radius: 12px; background: rgb(255 255 255 / .07); }
.vz-tabs [role="tab"] { flex: 1 1 0; min-width: 0; min-height: 44px; border-radius: 9px; font-size: 13px; color: rgb(241 236 230 / .75); position: relative; }
.vz-tabs [role="tab"][aria-selected="true"] { background: var(--acc); color: var(--on-acc); font-weight: 700; }
.vz-tabs [role="tab"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.vz-dot { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 2px color-mix(in srgb, var(--bg) 80%, transparent); }
.vz-tabs [aria-selected="true"] .vz-dot { background: var(--on-acc); }
.vz-panel-body { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 0 calc(14px + env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) 14px; overscroll-behavior: contain; }
.vz-panel-body [role="tabpanel"] { display: flex; flex-direction: column; gap: 12px; }
.vz-panel-body [role="tabpanel"][hidden] { display: none; }
.vz-q { margin: 12px 0 0; font-size: 16px; font-weight: 700; color: var(--ink); }
.vz-sub { margin: 6px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--mu); }
.vz-desc { margin: 0; font-size: 12px; line-height: 1.4; color: var(--mu); }
.vz-note { margin: 0; color: var(--mu); font-size: 12px; line-height: 1.5; }
.vz-name { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; color: var(--ink); }
.vz-field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vz-field.off { opacity: .45; }
/* sliders: the two ends in words, the track between */
.vz-range { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.vz-range.bare { grid-template-columns: minmax(0, 1fr); }
.vz-range input { width: 100%; height: 44px; margin: 0; accent-color: var(--acc); }
.vz-end { font-size: 12px; color: var(--mu); white-space: nowrap; }
.vz-val { color: var(--mu); font-weight: 400; font-variant-numeric: tabular-nums; font-size: 12px; }
/* on/off switches */
.vz-switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; padding: 6px 10px; border-radius: 12px; background: rgb(255 255 255 / .06); text-align: left; }
.vz-switch .vz-name { flex: 1; justify-content: flex-start; }
.vz-knob { flex: none; width: 40px; height: 24px; border-radius: 12px; background: rgb(255 255 255 / .2); position: relative; transition: background .2s; }
.vz-knob::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.vz-switch[aria-pressed="true"] .vz-knob { background: var(--acc); }
.vz-switch[aria-pressed="true"] .vz-knob::after { transform: translateX(16px); }
.vz-toggle-field .vz-desc { padding: 0 10px; }
/* buttons and chips */
.vz-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.vz-btn { min-height: 44px; background: rgb(255 255 255 / .1); border-radius: 12px; padding: 6px 14px; font-size: 13px; }
.vz-btn:hover { background: rgb(255 255 255 / .18); }
.vz-btn.primary { background: var(--acc); color: var(--on-acc); font-weight: 700; }
.vz-big { width: 100%; font-size: 15px; min-height: 48px; }
.vz-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vz-chip { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgb(255 255 255 / .2); border-radius: 12px; padding: 4px 12px; font-size: 13px; color: rgb(241 236 230 / .88); }
.vz-chip[aria-pressed="true"] { background: var(--acc); border-color: var(--acc); color: var(--on-acc); font-weight: 600; }
.vz-strip { width: 22px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .25); }
/* Look: the looks as pictures */
.vz-looks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.vz-look { position: relative; aspect-ratio: 4 / 3; min-height: 44px; border-radius: 10px; overflow: hidden; background-size: cover; outline: 2px solid transparent; outline-offset: 1px; }
.vz-look img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.vz-look img[hidden] { display: none; }
.vz-look.on { outline-color: var(--acc); }
.vz-look span { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 6px 3px; font-size: 12px; font-weight: 700; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: linear-gradient(transparent, rgb(0 0 0 / .8)); text-shadow: 0 1px 3px #000; }
/* Words: each style with a sample word in it */
.vz-words { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.vz-word { min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 12px; background: rgb(255 255 255 / .06); border: 1px solid transparent; overflow: hidden; }
.vz-word[aria-pressed="true"] { border-color: var(--acc); background: var(--acc-soft); }
.vz-word-name { font-size: 12px; color: var(--mu); }
.vz-word[aria-pressed="true"] .vz-word-name { color: var(--acc); font-weight: 700; }
.vz-sample { font-family: var(--poster); font-weight: 800; font-size: 20px; text-transform: uppercase; line-height: 1.1; min-height: 22px; color: var(--ink); }
.vz-sample.w-carved { color: transparent; -webkit-text-stroke: 1px var(--ink); }
.vz-sample.w-bent { transform: skewX(-14deg) rotate(-6deg); }
.vz-sample.w-melt { background: linear-gradient(var(--ink) 45%, transparent); -webkit-background-clip: text; background-clip: text; color: transparent; transform: scaleY(1.25); }
.vz-sample.w-orbit { letter-spacing: .14em; transform: rotate(-10deg); }
.vz-sample.w-dust { color: transparent; text-shadow: 0 0 2px var(--ink), 1px -1px 1px rgb(255 255 255 / .6); letter-spacing: .08em; }
.vz-sample.w-glitch { text-shadow: 2px 0 #ff3d6e, -2px 0 #3df0ff; }
.vz-sample.w-off::before { content: "—"; color: var(--mu); }
/* More: every setting as a card with a little picture */
.vz-group { display: flex; flex-direction: column; gap: 8px; }
.vz-card { padding: 8px 10px 2px; border-radius: 12px; background: rgb(255 255 255 / .05); }
.vz-card .vz-field { gap: 2px; }
.vz-card .vz-name { align-items: center; justify-content: flex-start; }
.vz-card .vz-label { flex: 1; min-width: 0; }
.vz-card .vz-switch { background: none; padding: 0; min-height: 44px; }
.vz-card .vz-toggle-field .vz-desc { padding: 0; margin-top: -6px; }
.vz-card .vz-chips { gap: 5px; margin-top: 4px; }
.vz-card .vz-chip { padding: 4px 10px; }
.vz-pv { flex: none; width: 30px; height: 30px; border-radius: 8px; background: rgb(255 255 255 / .08); display: grid; place-items: center; font-size: 16px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px #000; overflow: hidden; }
.vz-pv.icon { text-shadow: none; }
/* Music and Song meanwhile: a move, its sound and how much */
.vz-select { width: 100%; min-height: 44px; background: rgb(255 255 255 / .08); color: inherit; border: 0; border-radius: 10px; padding: 4px 6px; font: inherit; font-size: 13px; }
.vz-select:disabled { opacity: .4; }
.vz-select option { background: #18161e; color: #f1efe9; }
.vz-select option:disabled { color: rgb(241 239 233 / .4); }
.vz-select.vz-inline { width: auto; color: var(--acc); font-weight: 600; }
/* Music and Song: a move as a sentence (sound · what it does + strength dots · a little picture of the move) */
.vz-moves { display: flex; flex-direction: column; gap: 6px; }
.vz-move { display: grid; grid-template-columns: 78px minmax(0, 1fr) 38px; gap: 8px; align-items: center; padding: 6px; border-radius: 12px; background: rgb(255 255 255 / .04); }
.vz-move[hidden] { display: none; }
.vz-who { min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px 2px; border-radius: 10px; background: rgb(255 255 255 / .08); font-size: 12px; line-height: 1.2; color: var(--ink); text-align: center; }
.vz-who:hover:not(:disabled) { background: rgb(255 255 255 / .14); }
.vz-who[aria-expanded="true"] { box-shadow: inset 0 0 0 1.5px var(--acc); }
.vz-who:disabled { opacity: .45; cursor: default; }
.vz-who-name::after { content: " ▾"; color: var(--mu); }
.vz-who .vz-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 18px; line-height: 1; transition: transform .08s, background .08s; }
.vz-who .vz-ico.hit { background: var(--acc); transform: scale(1.18); }
.vz-panel.reduce .vz-who .vz-ico.hit { transform: none; }
@media (prefers-reduced-motion: reduce) { .vz-who .vz-ico.hit { transform: none; } }
.vz-move.zero .vz-verb { color: var(--mu); }
.vz-mid { display: flex; flex-direction: column; min-width: 0; }
.vz-verb { font-size: 14px; color: var(--ink); line-height: 1.3; display: flex; align-items: center; flex-wrap: wrap; gap: 0 6px; }
.vz-dots { position: relative; display: block; height: 44px; border-radius: 8px; }
.vz-dots::before { content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 16px; pointer-events: none;
  background: linear-gradient(90deg, var(--acc) var(--f, 0%), rgb(255 255 255 / .22) var(--f, 0%));
  -webkit-mask: radial-gradient(circle closest-side, #000 72%, transparent 78%) 0 0 / 20% 100% repeat-x;
  mask: radial-gradient(circle closest-side, #000 72%, transparent 78%) 0 0 / 20% 100% repeat-x; }
.vz-dots input { position: relative; z-index: 1; display: block; width: 100%; height: 44px; margin: 0; opacity: 0; cursor: pointer; }
.vz-dots:focus-within { outline: 2px solid var(--ink); outline-offset: 1px; }
.vz-move .vz-chip { justify-self: start; }
.vz-fx { width: 36px; height: 36px; border-radius: 9px; background: #2a2533; display: grid; place-items: center; overflow: hidden; justify-self: end; position: relative; }
.vz-fx i { display: block; width: 12px; height: 12px; border-radius: 3px; background: #ff9a6b; }
.fx-wobble i { border-radius: 40%; background: #7aa8ff; }
.fx-spin i { background: #b58cff; }
.fx-jolt i { background: #ffe08a; box-shadow: 3px 0 0 #ff3d6e, -3px 0 0 #3df0ff; }
.fx-twinkle i, .fx-gather i, .fx-scatter i { width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 9px 6px 0 #fff, -8px -6px 0 #9fd8ff, 6px -9px 0 #fff, -7px 8px 0 #9fd8ff; }
.fx-flip i { background: #e85; border-radius: 2px; width: 14px; height: 14px; }
.fx-flash i { width: 100%; height: 100%; border-radius: 0; background: #fff; opacity: .12; }
.fx-colour i { width: 100%; height: 100%; border-radius: 0; background: linear-gradient(135deg, #ff7a59, #b58cff); }
.fx-layer i { width: 100%; height: 100%; border-radius: 0; background: radial-gradient(circle, #fff 0 1px, transparent 2px) 0 0 / 8px 8px; opacity: .25; }
.fx-scene i { width: 100%; height: 100%; border-radius: 0; background: radial-gradient(circle at 35% 50%, #ff9a6b 0 30%, transparent 31%), radial-gradient(circle at 65% 50%, #7aa8ffaa 0 30%, transparent 31%); background-size: 100% 100%, 0 0; background-repeat: no-repeat; }
/* the move happens while its sound plays (`hit`), and loops gently while the song is paused (`idle`) */
.vz-fx.hit i { animation: var(--fx) var(--fx-t, .5s) infinite; }
.vz-panel.idle .vz-fx i { animation: var(--fx) calc(var(--fx-t, .5s) * 3) infinite; }
.fx-bounce { --fx: vz-bounce; } .fx-wobble { --fx: vz-wobble; --fx-t: .8s; } .fx-spin { --fx: vz-spin; --fx-t: 1.2s; }
.fx-jolt { --fx: vz-jolt; } .fx-twinkle { --fx: vz-twinkle; --fx-t: .4s; } .fx-gather { --fx: vz-gather; --fx-t: .7s; }
.fx-scatter { --fx: vz-scatter; --fx-t: .7s; } .fx-flip { --fx: vz-flip; --fx-t: .7s; } .fx-flash { --fx: vz-flash; --fx-t: .6s; }
.fx-colour { --fx: vz-colour; --fx-t: 1.6s; } .fx-layer { --fx: vz-layer; --fx-t: 1s; } .fx-scene { --fx: vz-scene; --fx-t: 1.4s; }
@keyframes vz-bounce { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.7); } }
@keyframes vz-wobble { 0%, 100% { transform: scale(1.25, .8); } 50% { transform: scale(.8, 1.25); } }
@keyframes vz-spin { to { transform: rotate(360deg); } }
@keyframes vz-jolt { 0%, 60% { transform: none; } 70% { transform: translate(4px, -2px) skewX(20deg); } 85% { transform: translate(-3px, 1px); } }
@keyframes vz-twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes vz-gather { 0% { transform: scale(1.4); } 60%, 100% { transform: scale(.45); } }
@keyframes vz-scatter { 0% { transform: scale(.45); } 60%, 100% { transform: scale(1.5); opacity: .4; } }
@keyframes vz-flip { 0%, 100% { transform: none; } 50% { transform: rotateY(180deg); background: #fc8; } }
@keyframes vz-flash { 0%, 100% { opacity: .12; } 10% { opacity: 1; } }
@keyframes vz-colour { to { filter: hue-rotate(360deg); } }
@keyframes vz-layer { 0%, 100% { opacity: .1; } 50% { opacity: 1; } }
@keyframes vz-scene { 0%, 100% { background-size: 100% 100%, 0 0; } 50% { background-size: 100% 100%, 100% 100%; } }
/* the sound grid: big tiles */
.vz-tiles { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; padding-top: 2px; }
.vz-tiles[hidden] { display: none; }
.vz-tile { min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px 2px; border-radius: 10px; background: rgb(255 255 255 / .07); font-size: 12px; line-height: 1.2; color: var(--ink); text-align: center; }
.vz-tile-ico { font-size: 20px; line-height: 1; }
.vz-tile:hover:not(:disabled) { background: rgb(255 255 255 / .14); }
.vz-tile[aria-pressed="true"] { background: var(--acc-soft); box-shadow: inset 0 0 0 1.5px var(--acc); }
.vz-tile:disabled { opacity: .35; cursor: default; }
.vz-pair .vz-btn { flex: 1 1 0; }
.vz-moments { display: flex; flex-direction: column; gap: 8px; }
.vz-moments[hidden], .vz-row[hidden], .vz-under[hidden], .vz-btn[hidden], .vz-note[hidden] { display: none; }
/* Song: the choices as radios, each with a strip of this song (its parts) and a "now" marker */
.vz-choices { display: flex; flex-direction: column; gap: 6px; }
.vz-choice { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start; min-height: 44px; padding: 8px 10px; border-radius: 12px; background: rgb(255 255 255 / .05); text-align: left; }
.vz-choice[aria-checked="true"] { background: var(--acc-soft); box-shadow: inset 0 0 0 1.5px var(--acc); }
.vz-radio { width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; border: 2px solid rgb(255 255 255 / .45); }
.vz-choice[aria-checked="true"] .vz-radio { border-color: var(--acc); background: radial-gradient(var(--acc) 42%, transparent 48%); }
.vz-choice-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vz-songstrip { position: relative; display: block; height: 12px; margin-top: 4px; border-radius: 3px; overflow: hidden; background: rgb(255 255 255 / .08); }
.vz-segs { position: absolute; inset: 0; }
.vz-seg { position: absolute; top: 0; bottom: 0; box-shadow: inset -1px 0 0 rgb(0 0 0 / .45); }
.vz-nowmark { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgb(0 0 0 / .55); }
.vz-nowmark[hidden] { display: none; }
.vz-under { display: flex; flex-direction: column; gap: 4px; padding: 0 4px 4px 30px; }
.vz-parts { margin: 0; font-size: 12px; color: var(--mu); line-height: 1.5; }
.vz-parts .now { color: var(--ink); font-weight: 700; }
.vz-panel.reduce, .vz-panel.reduce * { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { .vz-panel, .vz-panel * { animation: none !important; transition: none !important; } }
.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; }
  .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; top: calc(52px + env(safe-area-inset-top)); }
  .lyrics-wrap.no-lyrics { display: none; }
  .viz-fab .icon { width: 24px; height: 24px; }
  .song-page .lyrics-pane { max-height: 46vh; }
  .stage-actions { justify-content: center; }
  .queue-menu { left: 50%; transform: translateX(-50%); }
  /* lyrics as subtitles: the sung line always in the middle; the full pane lives in lyrics mode */
  .lyrics-wrap:not(.no-lyrics) > .lyrics-pane { display: none; }
  .lyrics-wrap.no-lyrics .subs { display: none; }
  .subs { display: flex; align-items: center; justify-content: center; height: 160px; width: 100%; padding: 0 56px; overflow: hidden; cursor: pointer; color: var(--ink); }
  .subs-inner { display: flex; flex-direction: column; gap: 8px; }
  .subs.moved .subs-inner { animation: subs-up .3s var(--ease); }
  @keyframes subs-up { from { transform: translateY(22px); opacity: .3; } to { transform: none; opacity: 1; } }
  .sub-line { font-family: var(--poster); font-weight: 600; font-size: 16px; line-height: 1.15; overflow-wrap: anywhere; min-height: 1.15em;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .sub-prev { opacity: .32; }
  .sub-next { opacity: .45; }
  .sub-now { font-size: 20px; opacity: .6; }
  .sub-now.lit { font-size: 24px; font-weight: 800; text-transform: uppercase; opacity: 1; }
  .song-page .stage-more { display: block; width: 12px; height: 12px; margin: -6px auto 4px; border: solid var(--faint); border-width: 0 3px 3px 0; border-radius: 2px;
    transform: rotate(45deg); }
  .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; }
  .sp-name { display: none; }
  .sp-pill { padding: 10px 15px 10px 12px; }
  .mb-controls .tbtn:not(.play):not(.mb-next):not(.mb-prev) { display: none; }
  .mb-extra { display: none; }
  .mb-side { display: inline-flex; width: 30px; height: 30px; background: transparent; color: var(--mu); }
  .mb-side[aria-pressed="true"] { color: var(--acc); background: var(--acc-soft); box-shadow: none; }
  .mb-side .icon { width: 16px; height: 16px; }
  .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: 66vh; border-left: 0; border-top: 1px solid rgb(255 255 255 / .12); border-radius: 18px 18px 0 0; transform: translateY(104%); }
  /* one header row on a phone: the actions and ✕ (the heading stays for screen readers) */
  .vz-panel-head { padding-top: 10px; flex-direction: row; align-items: center; }
  .vz-head-top { display: contents; }
  .vz-panel-head h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .vz-head-btns { flex: 1; min-width: 0; }
  .vz-panel-head .vz-close { order: 2; }
  .vz-bottom { flex-wrap: wrap; justify-content: center; }
  .vz-progress { flex-basis: 100%; order: -1; }
}

/* ---------- readable content for crawlers and no-JS readers (the player replaces it) ---------- */
.js .prerender { display: none; }
.prerender { max-width: 720px; margin: 90px auto 40px; padding: 0 var(--pad, 16px); line-height: 1.6; }
.prerender img { max-width: 300px; height: auto; border-radius: 8px; }
.prerender pre { white-space: pre-wrap; font: inherit; }
