/* Music Visualizer — one stylesheet.
   The stage is always night: the visual fills the screen and the controls float on it as dark
   glass (they fade away while watching). The sheets (visuals, settings, help) follow the
   system's light or dark look. */

:root {
  color-scheme: light dark;
  --night: #07060d;
  --glass: rgba(14, 11, 26, 0.56);
  --glass-strong: rgba(14, 11, 26, 0.74);
  --glass-line: rgba(255, 255, 255, 0.14);
  --glass-hi: rgba(255, 255, 255, 0.09);
  --hud-text: #f6f4ff;
  --hud-muted: rgba(240, 236, 255, 0.8);
  --sheet: #fbfaff;
  --sheet-2: #f1eef9;
  --text: #17141f;
  --muted: #57526a;
  --line: rgba(40, 30, 70, 0.12);
  --accent: #7c3aed;
  --accent-ink: #6d28d9;
  --accent-soft: rgba(124, 58, 237, 0.12);
  --on-accent: #ffffff;
  --ca-accent: #7c3aed; /* the accounts SDK's sheets and chip: white on it ≥ 4.5:1 */
  --radius: 22px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.3, 1.3, 0.5, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --top: max(10px, env(safe-area-inset-top));
  --bottom: max(12px, env(safe-area-inset-bottom));
}
@media (prefers-color-scheme: dark) {
  :root {
    --sheet: #16131f;
    --sheet-2: #211d2d;
    --text: #efedf7;
    --muted: #b0aac4;
    --line: rgba(255, 255, 255, 0.1);
    --accent-ink: #c4b5fd;
    --accent-soft: rgba(167, 139, 250, 0.16);
  }
}

* { box-sizing: border-box; }
/* no double-tap zoom on iOS: js/touch-guard.js adds the same rule plus a JS
   fallback; this copy covers Safari before 16.4 under the strict CSP */
:where(html, body, body *) { touch-action: manipulation; }
html { -webkit-text-size-adjust: 100%; height: 100%; background: var(--night); }
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--night);
  color: var(--hud-text);
  font: 16px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 3px; }
[hidden] { display: none !important; }

/* ---- the stage ---------------------------------------------------------------------------- */
.app { position: fixed; inset: 0; overflow: hidden; background: var(--night); }
.stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(4, 3, 10, 0.55), rgba(4, 3, 10, 0) 120px),
    linear-gradient(to top, rgba(4, 3, 10, 0.5), rgba(4, 3, 10, 0) 130px);
  transition: opacity 0.6s var(--ease);
}
.start { z-index: 2; }
.hud, .side { z-index: 3; }
.toast { z-index: 4; }
.hud, .side { transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.app[data-ui="off"] .hud, .app[data-ui="off"] .side, .app[data-ui="off"] .veil { opacity: 0; pointer-events: none; }
.app[data-ui="off"] .hud-top { transform: translateY(-8px); }
.app[data-ui="off"] .hud-bottom { transform: translateY(8px); }
.app[data-ui="off"] { cursor: none; }

.glass, .hb, .now, .bar, .side, .toast, .hud-top > .ca-start {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.7), inset 0 1px 0 var(--glass-hi);
}
html[data-ca-lite] .hb, html[data-ca-lite] .now, html[data-ca-lite] .bar, html[data-ca-lite] .side, html[data-ca-lite] .toast, html[data-ca-lite] .hud-top > .ca-start { background: var(--glass-strong); }
html[data-ca-lite] .hud-top { --ca-tool-bg: var(--glass-strong); }

.hud-top {
  /* (4 px inside each end: room for the chip's 44 px target, or the bar measures too narrow for its tools) */
  position: absolute; top: var(--top); left: calc(max(12px, env(safe-area-inset-left)) - 4px); right: calc(max(12px, env(safe-area-inset-right)) - 4px);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-inline: 4px; pointer-events: none;
  /* the bar's round tools (the SDK's and the app's own) in the HUD's glass */
  --ca-tool-bg: var(--glass); --ca-tool-line: var(--glass-line); --ca-tool-ink: var(--hud-text); --ca-tool-hover: rgba(40, 32, 70, 0.66);
}
.hud-top > * { pointer-events: auto; }
/* the brand floats on the visuals in a glass pill as tall as the current visual's beside it */
.hud-top > .ca-start { padding: 3px 2px 3px 11px; border-radius: 24px; color: var(--hud-text); }
.hud-top > .now { margin-right: auto; }
.hud-top .ca-tool { -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%); box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.7), inset 0 1px 0 var(--glass-hi); }
.now {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; max-width: min(calc(46vw / var(--ca-zoom, 1)), 340px);
  min-height: 48px; padding: 6px 18px; border-radius: 24px; color: var(--hud-text); text-align: left;
}
.now-name { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.now-sub { font-size: 12.5px; color: var(--hud-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.now-sub:empty { display: none; }
.tools { display: flex; align-items: center; gap: 6px; }
.hb {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; padding: 0; color: var(--hud-text);
  transition: transform 0.2s var(--spring), background-color 0.2s;
}
.hb:hover { background: rgba(40, 32, 70, 0.66); }
.hb:active { transform: scale(0.92); }
.hb.sm { width: 40px; height: 40px; box-shadow: none; }
.hb.sm svg { width: 20px; height: 20px; }
.app[data-fs="on"] .ico-enter, .app:not([data-fs="on"]) .ico-exit { display: none !important; }
.app[data-fs="none"] #btn-full { display: none !important; }
/* where the bar's tools go into the menu, the visuals' grid does too: the current visual's pill opens it */
@media (max-width: 599.98px), (max-height: 499.98px) { #btn-visuals { display: none !important; } }
/* a phone upright: the brand is its icon alone (the name does not fit beside the current visual), and
   the pill hugs it */
@media (max-width: 599.98px) { .hud-top > .ca-start { flex: none; width: calc(var(--ca-brand-icon-w) + 15px); } }
/* the narrowest phones: full screen is in the menu, the current visual keeps its room */
@media (max-width: 360px) { #btn-full { display: none !important; } }

.side {
  position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%;
  display: grid; place-items: center; color: var(--hud-text); padding: 0;
}
.side-l { left: max(14px, env(safe-area-inset-left)); }
.side-r { right: max(14px, env(safe-area-inset-right)); }
.side:active { transform: scale(0.9); }
.side svg { width: 26px; height: 26px; }

.hud-bottom {
  position: absolute; left: 0; right: 0; bottom: var(--bottom); display: flex; justify-content: center;
  padding: 0 max(12px, env(safe-area-inset-left)); pointer-events: none;
}
.bar {
  pointer-events: auto; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 8px 6px 6px;
  border-radius: 30px; max-width: min(100%, 820px); min-width: 0;
}
.bar-src {
  display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 22px;
  background: rgba(255, 255, 255, 0.08); color: var(--hud-text); min-width: 0; max-width: 220px;
}
.bar-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.22); flex: none; }
.meter { position: relative; width: 70px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); overflow: hidden; flex: none; }
.meter i { position: absolute; inset: 0; transform-origin: left center; transform: scaleX(var(--lvl, 0)); background: linear-gradient(90deg, #34d399, #a78bfa 60%, #f472b6); border-radius: inherit; }
.bpm { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--hud-muted); min-width: 64px; text-align: center; }
.player { display: flex; align-items: center; gap: 4px; min-width: 0; flex: 1 1 auto; }
.player .play .ico-play { display: none; }
.player .play[data-paused] .ico-play { display: block; }
.player .play[data-paused] .ico-pause { display: none; }
.track { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 90px; flex: 1 1 200px; padding: 0 6px; }
.pl-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-time { font-size: 12.5px; color: var(--hud-muted); font-variant-numeric: tabular-nums; min-width: 40px; text-align: right; }
.seek, .range { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; margin: 0; touch-action: pan-x pan-y; }
.seek::-webkit-slider-runnable-track, .range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--fill-c, #c4b5fd) var(--fill, 0%), rgba(255, 255, 255, 0.2) var(--fill, 0%)); }
.seek::-moz-range-track, .range::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.2); }
.seek::-moz-range-progress, .range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--fill-c, #c4b5fd); }
.seek::-webkit-slider-thumb, .range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4); }
.seek::-moz-range-thumb, .range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }

.toast {
  position: absolute; left: 50%; bottom: calc(var(--bottom) + 72px); max-width: min(calc(92vw / var(--ca-zoom, 1)), 520px); padding: 12px 18px; border-radius: 18px;
  font-size: 14.5px; line-height: 1.4; color: var(--hud-text); transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease); text-align: center;
}
.toast[data-on] { opacity: 1; transform: translate(-50%, 0); }

/* the landing page's live demo (signed out), in the SDK's stage */
.demo-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: var(--night); }

/* ---- the source card ---------------------------------------------------------------------- */
.start {
  position: absolute; inset: 0; display: grid; place-items: center; overflow: auto; overscroll-behavior: contain;
  padding: calc(var(--top) + 64px) 16px calc(var(--bottom) + 16px);
  background: radial-gradient(ellipse at center, rgba(5, 4, 12, 0.25), rgba(5, 4, 12, 0.62));
}
.app[data-start] .side, .app[data-start] .hud-bottom { display: none; }
.start-card {
  width: min(100%, 620px); padding: 26px 24px 20px; border-radius: 30px; color: var(--hud-text);
  background: rgba(14, 11, 26, 0.62); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 var(--glass-hi);
}
html[data-ca-lite] .start-card { background: rgba(14, 11, 26, 0.86); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--hud-muted); letter-spacing: 0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.start-title { margin: 14px 0 18px; font-size: clamp(22px, calc(4.6vw / var(--ca-zoom, 1)), 30px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.sources { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.src {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 12px 14px; text-align: left;
  border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.06); color: var(--hud-text);
  transition: transform 0.2s var(--spring), background-color 0.2s, border-color 0.2s;
}
.src:hover { background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.2); }
.src:active { transform: scale(0.97); }
.src-ico {
  width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; flex: none; color: #fff;
  background: linear-gradient(135deg, var(--c1, #8b5cf6), var(--c2, #ec4899));
  box-shadow: 0 8px 22px -10px var(--c1, #8b5cf6);
}
.src[data-src="mic"] { --c1: #8b5cf6; --c2: #ec4899; }
.src[data-src="display"] { --c1: #0ea5e9; --c2: #6366f1; }
.src[data-src="file"] { --c1: #f59e0b; --c2: #ef4444; }
.src[data-src="demo"] { --c1: #10b981; --c2: #0ea5e9; }
.src-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.src-text b { font-size: 16px; font-weight: 650; }
.src-text small { font-size: 13px; line-height: 1.35; color: var(--hud-muted); }
.last {
  display: none; position: absolute; top: -8px; right: 12px; padding: 2px 9px; border-radius: 10px; font-size: 11.5px; font-weight: 650;
  background: #a78bfa; color: #1a0f33;
}
.src[data-last] .last { display: block; }
.src[data-last] { border-color: rgba(196, 181, 253, 0.5); }
.privacy { margin: 16px 2px 0; font-size: 13px; color: var(--hud-muted); line-height: 1.45; }
.no-gl { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(239, 68, 68, 0.18); font-size: 14px; }
.link { margin: 10px auto 0; display: block; min-height: 44px; padding: 0 16px; border: 0; border-radius: 22px; background: transparent; color: #ddd6fe; font-weight: 600; }
.link:hover { background: rgba(255, 255, 255, 0.08); }

/* ---- sheets -------------------------------------------------------------------------------- */
.sheet {
  border: 0; padding: 0; width: min(calc(92vw / var(--ca-zoom, 1)), 520px); max-height: calc(100dvh / var(--ca-zoom, 1) - 32px);
  border-radius: 26px; background: var(--sheet); color: var(--text); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
.sheet[open] { display: flex; flex-direction: column; }
.sheet.wide { width: min(calc(96vw / var(--ca-zoom, 1)), 1120px); }
.sheet.tall { width: min(calc(92vw / var(--ca-zoom, 1)), 600px); }
.sheet::backdrop { background: rgba(5, 4, 12, 0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html[data-ca-lite] .sheet::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(5, 4, 12, 0.7); }
.sheet[open] { animation: sheet-in 0.32s var(--ease); }
@keyframes sheet-in { from { transform: translateY(14px) scale(0.985); opacity: 0.4; } }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 16px 14px 10px 22px; flex: none; }
.sheet-head h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
.count { color: var(--muted); font-size: 14px; }
.x { margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--sheet-2); color: var(--text); display: grid; place-items: center; }
.x svg { width: 20px; height: 20px; }
.sheet-body { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 4px 22px 22px; }
.block { margin: 6px 0 14px; }
.label { margin: 0 0 8px; font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.cycle-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.cycle-row .label { flex: 0 0 100%; margin: 0; }

.palettes { display: flex; flex-wrap: wrap; gap: 8px; }
.pal {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 14px 4px 5px; border-radius: 20px;
  border: 1px solid var(--line); background: var(--sheet-2); color: var(--text); font-size: 14px; font-weight: 550;
}
.pal i { width: 30px; height: 30px; border-radius: 50%; background: conic-gradient(from 200deg, var(--s0), var(--s1), var(--s2), var(--s3), var(--s0)); flex: none; }
.pal[aria-checked="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.seg { display: inline-flex; padding: 3px; border-radius: 14px; background: var(--sheet-2); gap: 2px; }
.seg button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; }
.seg button[aria-checked="true"] { background: var(--sheet); color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15); }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 14.5px; color: var(--text); }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 14px; margin-top: 4px; }
.card { position: relative; }
.card-btn {
  display: flex; flex-direction: column; width: 100%; padding: 0; border: 0; border-radius: 18px; overflow: hidden; text-align: left;
  background: var(--sheet-2); color: var(--text); transition: transform 0.22s var(--spring), box-shadow 0.22s;
}
.card-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -18px rgba(20, 10, 50, 0.6); }
.card-btn:active { transform: scale(0.98); }
.thumb { position: relative; aspect-ratio: 16 / 10; background: radial-gradient(circle at 50% 55%, var(--t1, #3b2a6b), var(--t2, #0b0814) 75%); overflow: hidden; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s var(--ease); }
.thumb img[data-ready] { opacity: 1; }
.num { position: absolute; left: 10px; top: 8px; font-size: 12px; font-weight: 700; color: #fff; padding: 1px 7px; border-radius: 8px; background: rgba(0, 0, 0, 0.42); }
.playing { position: absolute; left: 10px; bottom: 8px; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 9px; background: #a78bfa; color: #1a0f33; display: none; }
.card[aria-current="true"] .card-btn { box-shadow: 0 0 0 2px var(--accent); }
.card[aria-current="true"] .playing { display: block; }
.card-text { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px 13px; min-width: 0; }
.card-text b { font-size: 15.5px; font-weight: 650; }
.card-text small { font-size: 13px; color: var(--muted); line-height: 1.35; }
.fav {
  position: absolute; top: 6px; right: 6px; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(10, 8, 20, 0.45); color: #fff;
}
.fav svg { width: 20px; height: 20px; }
.fav[aria-pressed="true"] { color: #fb7185; }
.fav[aria-pressed="true"] svg { fill: currentColor; }

.row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.row.col { flex-direction: column; align-items: stretch; gap: 4px; }
.row-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.row-top select { min-height: 40px; max-width: 58%; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--sheet-2); color: var(--text); }
.row output { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
.row select {
  min-height: 40px; max-width: 58%; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--sheet-2); color: var(--text);
}
.range { --fill-c: var(--accent); }
.range::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--accent) var(--fill, 0%), var(--line) var(--fill, 0%)); }
.range::-moz-range-track { background: var(--line); }
.hint { color: var(--muted); font-size: 13px; }
.toggle {
  -webkit-appearance: none; appearance: none; width: 50px; height: 30px; border-radius: 15px; background: var(--line); position: relative; flex: none;
  transition: background-color 0.2s; cursor: pointer; margin: 0;
}
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transition: transform 0.25s var(--spring); }
.toggle:checked { background: var(--accent); }
.toggle:checked::after { transform: translateX(20px); }
.btn { min-height: 44px; padding: 0 18px; border-radius: 13px; border: 0; background: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn.ghost { background: var(--sheet-2); color: var(--text); }
#pad-row:empty, #app-data:empty { display: none; }
#app-data { margin-top: 14px; }

.prose p, .prose li, .prose dd { -webkit-user-select: text; user-select: text; }
.prose h3 { margin: 18px 0 6px; font-size: 16px; }
.prose p, .prose li { font-size: 15px; line-height: 1.55; }
.prose ul { padding-left: 20px; margin: 6px 0; }
.prose li { margin: 4px 0; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 8px 0; align-items: center; }
.keys dt { white-space: nowrap; }
.keys dd { margin: 0; font-size: 14.5px; }
kbd { display: inline-block; min-width: 26px; padding: 2px 7px; border-radius: 7px; background: var(--sheet-2); border: 1px solid var(--line); font: 600 13px/1.4 var(--font); text-align: center; }
.muted { color: var(--muted); }
.version { color: var(--muted); font-size: 13px; }

/* ---- small and short screens -------------------------------------------------------------- */
@media (max-width: 640px) {
  .sources { grid-template-columns: 1fr; gap: 8px; }
  .src { min-height: 64px; padding: 10px 12px; }
  .src-ico { width: 40px; height: 40px; border-radius: 13px; }
  .src-text small { font-size: 12.5px; }
  .start-card { padding: 20px 16px 14px; border-radius: 26px; }
  .start-title { margin: 10px 0 14px; }
  .side { width: 44px; height: 44px; margin-top: -22px; }
  .side svg { width: 22px; height: 22px; }
  .hb { width: 42px; height: 42px; }
  .now { padding: 5px 14px; min-height: 44px; }
  .hud-top > .ca-start { padding-block: 1px; }
  .now-name { font-size: 15.5px; }
  .meter, .bpm { display: none; }
  .bar { gap: 6px; width: 100%; }
  .bar-src { padding: 0 12px; max-width: calc(46vw / var(--ca-zoom, 1)); }
  .player .bar-src { display: none; }
  .bar:has(.player:not([hidden])) .bar-src { display: none; }
  .sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 24px 24px 0 0; max-height: calc(92dvh / var(--ca-zoom, 1)); }
  .sheet.wide, .sheet.tall { width: 100%; }
  .sheet-body { padding: 4px 16px calc(16px + env(safe-area-inset-bottom)); }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card-text { padding: 8px 10px 10px; }
  .card-text small { display: none; }
}
@media (max-width: 400px) {
  .now { max-width: calc(40vw / var(--ca-zoom, 1)); }
  .pl-time { display: none; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .start { place-items: start center; padding-top: calc(var(--top) + 60px); }
  .sources { grid-template-columns: 1fr 1fr; }
  .src { min-height: 58px; }
  .src-text small { display: none; }
  .start-title { margin: 6px 0 10px; font-size: 20px; }
  .privacy { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* cloud-apps bar 1.30.0 */
:root { --ca-brand-icon-w: 89px; } /* the brand's width with the icon alone (the mark, the divider, the app's icon) */
.ca-start { display: flex; align-items: center; flex: 0 100 auto; min-width: min(var(--ca-brand-icon-w), 100%); }
.ca-brand { display: flex; align-items: center; min-width: 0; height: 40px; color: inherit; font-family: inherit; }
.ca-brand a { display: flex !important; align-items: center !important; box-sizing: border-box !important; color: inherit !important; text-decoration: none !important; border-radius: 12px !important; -webkit-tap-highlight-color: transparent; transition: background-color .15s ease; }
.ca-brand-home { flex: none !important; justify-content: center !important; width: 40px !important; height: 40px !important; padding: 0 !important; margin: 0 0 0 -5px !important; }
.ca-brand-home img { display: block !important; width: 30px !important; height: 30px !important; margin: 0 !important; transition: transform .38s cubic-bezier(.34, 1.56, .64, 1); }
.ca-brand-sep { flex: none; display: block; width: 1.5px; height: 18px; margin: 0 4px; border-radius: 1px; background: currentColor; opacity: .22; transform: rotate(18deg); }
.ca-brand-app { flex: 0 1 auto !important; min-width: 44px !important; height: 40px !important; padding: 0 9px 0 5px !important; margin: 0 !important; }
.ca-brand-in { display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start; column-gap: 9px; min-width: 0; height: 40px; overflow: hidden; }
.ca-brand-in img { flex: none; display: block !important; width: 30px !important; height: 30px !important; margin: 5px 0 !important; border-radius: 8px; }
.ca-brand[data-ca-icon] .ca-brand-name { display: none !important; }
.ca-brand[data-ca-icon] .ca-brand-app { padding-right: 5px !important; }
.ca-brand-name { display: block; height: 40px; margin: 0 !important; padding: 0 !important; line-height: 40px !important; white-space: nowrap; font-family: var(--ca-brand-font, inherit); font-size: 17px !important; font-weight: 700; letter-spacing: -.015em; color: inherit; text-shadow: var(--ca-brand-shadow, none); }
@media (hover: hover) { .ca-brand a:hover { background-color: color-mix(in srgb, currentColor 7%, transparent); } .ca-brand-home:hover img { transform: rotate(-6deg) scale(1.06); } }
.ca-brand a:focus-visible { outline: 3px solid var(--ca-accent, #4f6bff); outline-offset: -3px; }
.ca-end { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex: none; min-width: 0; }
.ca-tools { display: flex; align-items: center; gap: 6px; }
.ca-tools[hidden] { display: none !important; }
.ca-tool { position: relative; flex: none; display: inline-grid; place-items: center !important; box-sizing: border-box !important; width: 36px !important; height: 36px !important; min-width: 0 !important; min-height: 0 !important; max-width: none !important; padding: 0 !important; margin: 0; border-radius: 50% !important;
  border: 1px solid var(--ca-tool-line, color-mix(in srgb, currentColor 16%, transparent)) !important; background: var(--ca-tool-bg, color-mix(in srgb, currentColor 6%, transparent)) !important; color: var(--ca-tool-ink, inherit) !important;
  font: inherit; line-height: 0 !important; letter-spacing: 0; text-decoration: none !important; box-shadow: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .15s ease, transform .12s ease; }
.ca-tool[hidden] { display: none !important; }
.ca-tool::before { content: ""; position: absolute; inset: -4px; }
.ca-tool svg { display: block; width: 20px !important; height: 20px !important; margin: 0 !important; pointer-events: none; }
.ca-tool svg[hidden] { display: none !important; }
@media (hover: hover) { .ca-tool:hover { background: var(--ca-tool-hover, color-mix(in srgb, currentColor 13%, transparent)) !important; } }
.ca-tool:active { transform: scale(.94); }
.ca-tool:focus-visible { outline: 3px solid var(--ca-accent, #4f6bff); outline-offset: 2px; }
.ca-tool-talk { color: var(--ca-accent, #4f6bff) !important; border-color: color-mix(in srgb, var(--ca-accent, #4f6bff) 50%, transparent) !important; background: color-mix(in srgb, var(--ca-accent, #4f6bff) 13%, transparent) !important; }
.ca-tool .ca-tlive { position: absolute; top: 1px; right: 1px; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 2px color-mix(in srgb, #22c55e 30%, transparent); }
.ca-tool-talk.ca-new::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; pointer-events: none; animation: ca-bar-ring 1.2s ease-out 2; }
@keyframes ca-bar-ring { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ca-accent, #4f6bff) 55%, transparent); } to { box-shadow: 0 0 0 11px transparent; } }
.ca-tool .ca-tcount, .ca-tool .ca-tunread { position: absolute; right: -5px; display: grid; place-items: center; box-sizing: border-box; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; color: #fff; font: 700 10.5px/1 -apple-system, BlinkMacSystemFont, Inter, "Segoe UI", Roboto, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: 0; pointer-events: none; }
.ca-tool .ca-tcount { bottom: -5px; background: #1f9d55; }
.ca-tool .ca-tunread { top: -5px; background: #e5484d; }
@media (max-width: 599.98px), (max-height: 499.98px) { .ca-tools-app { display: none !important; } }
.ca-end[data-ca-cramped] .ca-tools-app { display: none !important; }
.ca-end[data-ca-tight] .ca-tool-friends { display: none !important; }
@media (prefers-reduced-motion: reduce) { .ca-tool, .ca-brand a, .ca-brand-home img { transition: none; } .ca-tool-talk.ca-new::after { animation: none; } }
/* end of the cloud-apps bar */
/* ---- cloud-apps: big screens (App Standard §6.5) — written by `cloud-apps vendor-sdk`; do not edit ---- */
/* Past 1584 × 990 the page is laid out at about 1440 × 900 and zoomed to fill the screen; viewport
   units in this file are divided by --ca-zoom. cloud-kit.js turns it off where the engine has no
   standard zoom (html[data-ca-zoom="off"]). */
@media (min-width: 1585px) and (min-height: 991px) { :root { --ca-zoom: 1.1; } }
@media (min-width: 1656px) and (min-height: 1035px) { :root { --ca-zoom: 1.15; } }
@media (min-width: 1728px) and (min-height: 1080px) { :root { --ca-zoom: 1.2; } }
@media (min-width: 1800px) and (min-height: 1125px) { :root { --ca-zoom: 1.25; } }
@media (min-width: 1872px) and (min-height: 1170px) { :root { --ca-zoom: 1.3; } }
@media (min-width: 1945px) and (min-height: 1215px) { :root { --ca-zoom: 1.35; } }
@media (min-width: 2016px) and (min-height: 1260px) { :root { --ca-zoom: 1.4; } }
@media (min-width: 2088px) and (min-height: 1305px) { :root { --ca-zoom: 1.45; } }
@media (min-width: 2160px) and (min-height: 1350px) { :root { --ca-zoom: 1.5; } }
@media (min-width: 2232px) and (min-height: 1395px) { :root { --ca-zoom: 1.55; } }
@media (min-width: 2304px) and (min-height: 1440px) { :root { --ca-zoom: 1.6; } }
@media (min-width: 2376px) and (min-height: 1485px) { :root { --ca-zoom: 1.65; } }
@media (min-width: 2448px) and (min-height: 1530px) { :root { --ca-zoom: 1.7; } }
@media (min-width: 2520px) and (min-height: 1575px) { :root { --ca-zoom: 1.75; } }
@media (min-width: 2592px) and (min-height: 1620px) { :root { --ca-zoom: 1.8; } }
@media (min-width: 2664px) and (min-height: 1665px) { :root { --ca-zoom: 1.85; } }
@media (min-width: 2736px) and (min-height: 1710px) { :root { --ca-zoom: 1.9; } }
@media (min-width: 2808px) and (min-height: 1755px) { :root { --ca-zoom: 1.95; } }
@media (min-width: 2880px) and (min-height: 1800px) { :root { --ca-zoom: 2; } }
@media (min-width: 2952px) and (min-height: 1845px) { :root { --ca-zoom: 2.05; } }
@media (min-width: 3024px) and (min-height: 1890px) { :root { --ca-zoom: 2.1; } }
@media (min-width: 3096px) and (min-height: 1935px) { :root { --ca-zoom: 2.15; } }
@media (min-width: 3169px) and (min-height: 1981px) { :root { --ca-zoom: 2.2; } }
@media (min-width: 3240px) and (min-height: 2025px) { :root { --ca-zoom: 2.25; } }
@media (min-width: 3312px) and (min-height: 2070px) { :root { --ca-zoom: 2.3; } }
@media (min-width: 3384px) and (min-height: 2115px) { :root { --ca-zoom: 2.35; } }
@media (min-width: 3456px) and (min-height: 2160px) { :root { --ca-zoom: 2.4; } }
@media (min-width: 3529px) and (min-height: 2205px) { :root { --ca-zoom: 2.45; } }
@media (min-width: 3600px) and (min-height: 2250px) { :root { --ca-zoom: 2.5; } }
@media (min-width: 3672px) and (min-height: 2295px) { :root { --ca-zoom: 2.55; } }
@media (min-width: 3744px) and (min-height: 2340px) { :root { --ca-zoom: 2.6; } }
@media (min-width: 3816px) and (min-height: 2385px) { :root { --ca-zoom: 2.65; } }
@media (min-width: 3889px) and (min-height: 2430px) { :root { --ca-zoom: 2.7; } }
@media (min-width: 3960px) and (min-height: 2475px) { :root { --ca-zoom: 2.75; } }
@media (min-width: 4032px) and (min-height: 2520px) { :root { --ca-zoom: 2.8; } }
@media (min-width: 4104px) and (min-height: 2565px) { :root { --ca-zoom: 2.85; } }
@media (min-width: 4176px) and (min-height: 2610px) { :root { --ca-zoom: 2.9; } }
@media (min-width: 4248px) and (min-height: 2655px) { :root { --ca-zoom: 2.95; } }
@media (min-width: 4320px) and (min-height: 2700px) { :root { --ca-zoom: 3; } }
@media (min-width: 4392px) and (min-height: 2745px) { :root { --ca-zoom: 3.05; } }
@media (min-width: 4464px) and (min-height: 2790px) { :root { --ca-zoom: 3.1; } }
@media (min-width: 4536px) and (min-height: 2835px) { :root { --ca-zoom: 3.15; } }
@media (min-width: 4608px) and (min-height: 2880px) { :root { --ca-zoom: 3.2; } }
@media (min-width: 4680px) and (min-height: 2925px) { :root { --ca-zoom: 3.25; } }
@media (min-width: 4752px) and (min-height: 2970px) { :root { --ca-zoom: 3.3; } }
@media (min-width: 4824px) and (min-height: 3015px) { :root { --ca-zoom: 3.35; } }
@media (min-width: 4896px) and (min-height: 3060px) { :root { --ca-zoom: 3.4; } }
@media (min-width: 4968px) and (min-height: 3105px) { :root { --ca-zoom: 3.45; } }
@media (min-width: 5040px) and (min-height: 3150px) { :root { --ca-zoom: 3.5; } }
@media (min-width: 5112px) and (min-height: 3195px) { :root { --ca-zoom: 3.55; } }
@media (min-width: 5184px) and (min-height: 3240px) { :root { --ca-zoom: 3.6; } }
@media (min-width: 5256px) and (min-height: 3285px) { :root { --ca-zoom: 3.65; } }
@media (min-width: 5328px) and (min-height: 3330px) { :root { --ca-zoom: 3.7; } }
@media (min-width: 5400px) and (min-height: 3375px) { :root { --ca-zoom: 3.75; } }
@media (min-width: 5472px) and (min-height: 3420px) { :root { --ca-zoom: 3.8; } }
@media (min-width: 5544px) and (min-height: 3465px) { :root { --ca-zoom: 3.85; } }
@media (min-width: 5616px) and (min-height: 3510px) { :root { --ca-zoom: 3.9; } }
@media (min-width: 5688px) and (min-height: 3555px) { :root { --ca-zoom: 3.95; } }
@media (min-width: 5760px) and (min-height: 3600px) { :root { --ca-zoom: 4; } }
@media (min-width: 5832px) and (min-height: 3645px) { :root { --ca-zoom: 4.05; } }
@media (min-width: 5904px) and (min-height: 3690px) { :root { --ca-zoom: 4.1; } }
@media (min-width: 5977px) and (min-height: 3736px) { :root { --ca-zoom: 4.15; } }
@media (min-width: 6048px) and (min-height: 3780px) { :root { --ca-zoom: 4.2; } }
@media (min-width: 6120px) and (min-height: 3825px) { :root { --ca-zoom: 4.25; } }
@media (min-width: 6192px) and (min-height: 3870px) { :root { --ca-zoom: 4.3; } }
@media (min-width: 6264px) and (min-height: 3915px) { :root { --ca-zoom: 4.35; } }
@media (min-width: 6337px) and (min-height: 3961px) { :root { --ca-zoom: 4.4; } }
@media (min-width: 6408px) and (min-height: 4005px) { :root { --ca-zoom: 4.45; } }
@media (min-width: 6480px) and (min-height: 4050px) { :root { --ca-zoom: 4.5; } }
@media (min-width: 6552px) and (min-height: 4095px) { :root { --ca-zoom: 4.55; } }
@media (min-width: 6624px) and (min-height: 4140px) { :root { --ca-zoom: 4.6; } }
@media (min-width: 6697px) and (min-height: 4185px) { :root { --ca-zoom: 4.65; } }
@media (min-width: 6768px) and (min-height: 4230px) { :root { --ca-zoom: 4.7; } }
@media (min-width: 6840px) and (min-height: 4275px) { :root { --ca-zoom: 4.75; } }
@media (min-width: 6912px) and (min-height: 4320px) { :root { --ca-zoom: 4.8; } }
@media (min-width: 6984px) and (min-height: 4365px) { :root { --ca-zoom: 4.85; } }
@media (min-width: 7057px) and (min-height: 4410px) { :root { --ca-zoom: 4.9; } }
@media (min-width: 7128px) and (min-height: 4455px) { :root { --ca-zoom: 4.95; } }
@media (min-width: 7200px) and (min-height: 4500px) { :root { --ca-zoom: 5; } }
@media (min-width: 1585px) and (min-height: 991px) {
  html { zoom: var(--ca-zoom, 1); }
  html[data-ca-zoom='off'] { --ca-zoom: 1 !important; }
}
/* ---- end of big screens ---- */
