:root {
  --text: #f2f2f7;
  --text-dim: rgba(242, 242, 247, 0.6);
  --text-faint: rgba(242, 242, 247, 0.38);
  --glass: rgba(12, 14, 20, 0.5);
  --glass-soft: rgba(255, 255, 255, 0.07);
  --glass-edge: rgba(255, 255, 255, 0.14);
  --row-hover: rgba(255, 255, 255, 0.07);
  --row-current: rgba(255, 255, 255, 0.14);
  --track-bg: rgba(255, 255, 255, 0.18);
  --fill: rgba(255, 255, 255, 0.92);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  --veil: transparent;
  /* liquid glass (adapted from Leon Lin's "glassy style nav", MIT) */
  --lg-bg: rgba(30, 30, 35, 0.45);
  --lg-border: rgba(255, 255, 255, 0.15);
  --lg-shadow: rgba(0, 0, 0, 0.8);
  --lg-highlight: rgba(255, 255, 255, 0.25);
  --lg-caustic: rgba(255, 255, 255, 0.05);
  --lg-reflect: rgba(255, 255, 255, 0.15);
  --lg-glare: rgba(255, 255, 255, 0.15);
  --pill-bg: rgba(60, 60, 65, 0.8);
  --pill-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  color-scheme: dark;
}
[data-theme="clear"] {
  --text: #17181c;
  --text-dim: rgba(23, 24, 28, 0.62);
  --text-faint: rgba(23, 24, 28, 0.4);
  --glass: rgba(255, 255, 255, 0.5);
  --glass-soft: rgba(255, 255, 255, 0.4);
  --glass-edge: rgba(255, 255, 255, 0.55);
  --row-hover: rgba(255, 255, 255, 0.35);
  --row-current: rgba(255, 255, 255, 0.6);
  --track-bg: rgba(23, 24, 28, 0.18);
  --fill: rgba(23, 24, 28, 0.85);
  --shadow: 0 30px 80px rgba(40, 60, 90, 0.25);
  --veil: rgba(255, 255, 255, 0.26);
  --lg-bg: rgba(255, 255, 255, 0.15);
  --lg-border: rgba(255, 255, 255, 0.4);
  --lg-shadow: rgba(0, 0, 0, 0.12);
  --lg-highlight: rgba(255, 255, 255, 0.8);
  --lg-caustic: rgba(255, 255, 255, 0.4);
  --lg-reflect: rgba(255, 255, 255, 0.38);
  --lg-glare: rgba(255, 255, 255, 0.5);
  --pill-bg: rgba(255, 255, 255, 0.7);
  --pill-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.8);
  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

body {
  font: 100%/1.5 system-ui, -apple-system, "Hiragino Sans", sans-serif;
  background: #000;
  color: var(--text);
  overflow: hidden;
  transition: color 600ms cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

#viz { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#veil {
  position: fixed; inset: 0;
  pointer-events: none;
  background: var(--veil);
  transition: background 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

button {
  font: inherit; color: inherit;
  background: none; border: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.ctrl, .tool, .tool-sample { transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), background-color 200ms; }
.ctrl:active, .tool:active { transform: scale(0.9); transition: transform 70ms ease-out; }
.tool-sample:active { transform: scale(0.95); transition: transform 70ms ease-out; }

/* ============ stage: centered column [panel/cover] + bar ============ */
.stage {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px;
  pointer-events: none; /* background clicks fall through to the canvas */
}
.stage > * { pointer-events: auto; }

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.panel, .cover { animation: pop-in 480ms cubic-bezier(0.22, 1, 0.36, 1); }
[data-mode="cover"] .panel,
[data-mode="zen"] .panel,
[data-mode="list"] .cover,
[data-mode="zen"] .cover { display: none; }
/* zen: just the visualizer + now-playing bottom-left; no player UI */
[data-mode="zen"] .bar { display: none; }

.zen-np {
  position: fixed;
  left: max(26px, env(safe-area-inset-left));
  bottom: max(26px, env(safe-area-inset-bottom));
  display: none;
  align-items: flex-end;
  gap: 16px;
  pointer-events: none;
  z-index: 5;
}
[data-mode="zen"] .zen-np { display: flex; animation: pop-in 480ms cubic-bezier(0.22, 1, 0.36, 1); }
.zen-np img, .zen-art-fallback {
  width: min(14vh, 96px);
  height: min(14vh, 96px);
  border-radius: 0;
  object-fit: cover;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
}
.zen-art-fallback {
  background: linear-gradient(135deg, hsl(var(--hue, 210) 60% 45%), hsl(calc(var(--hue, 210) + 60) 65% 30%));
}
.zen-np img:not([hidden]) + .zen-art-fallback { display: none; }
.zen-meta { padding-bottom: 4px; max-width: min(56vw, 480px); }
.zen-title {
  font-size: 1.125rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.zen-artist {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.68);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ============ center panel ============ */
.panel {
  position: relative;
  width: min(790px, calc(100vw - 32px));
  height: min(55vh, 470px);
  border-radius: 26px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  backdrop-filter: blur(30px) saturate(160%);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: background-color 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
/* ---- drop glow: aurora ring + breathing surface while dragging files ---- */
@property --ang {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
.panel::before { /* surface wash */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  transition: opacity 320ms ease;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(127, 216, 255, 0.20), transparent 55%),
    radial-gradient(120% 90% at 50% 100%, rgba(180, 140, 255, 0.20), transparent 55%);
}
.panel::after { /* rotating aurora edge ring, drawn just inside the border */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  border-radius: 26px;
  padding: 3px;
  background: conic-gradient(from var(--ang),
    #7fd8ff, #b48cff 25%, #7fd8ff 50%, #86ffd8 75%, #7fd8ff);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 320ms ease;
}
body.dropping .panel::before { opacity: 1; animation: drop-pulse 1.6s ease-in-out infinite; }
body.dropping .panel::after { opacity: 1; animation: ring-spin 2.2s linear infinite; }
body.dropping .panel {
  box-shadow:
    var(--shadow),
    0 0 46px 4px rgba(127, 180, 255, 0.5),
    0 0 110px 12px rgba(150, 130, 255, 0.28);
}
@keyframes ring-spin { to { --ang: 360deg; } }
@keyframes drop-pulse { 50% { opacity: 0.45; } }

/* ============ full-bleed jacket fills the whole panel ============ */
#sideArt, .side-art-fallback {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
#sideArt[hidden] { display: none; }
.side-art-fallback {
  background: linear-gradient(135deg, hsl(var(--hue, 210) 60% 45%), hsl(calc(var(--hue, 210) + 60) 65% 30%));
}
#sideArt:not([hidden]) ~ .side-art-fallback { display: none; }
.side-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(6, 8, 13, 0.82), rgba(6, 8, 13, 0.22) 38%, transparent 62%),
    linear-gradient(to left, rgba(6, 8, 13, 0.66), rgba(6, 8, 13, 0.18) 42%, transparent 62%);
}
.side-content {
  position: absolute;
  left: 20px; right: 48%; bottom: 18px;
  color: #fff;
  z-index: 2;
}
.side-title {
  font-size: 1.125rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.side-artist {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.68);
  margin-top: 2px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* button groups share one liquid-glass pill, like the player bar */
.glass-pill {
  position: relative;
  border-radius: 99px;
  background: var(--lg-bg);
  -webkit-backdrop-filter: blur(50px) saturate(200%);
  backdrop-filter: blur(50px) saturate(200%);
  box-shadow: 0 10px 30px -10px var(--lg-shadow);
}
.glass-pill::before { /* wet reflection, painted under the buttons */
  content: '';
  position: absolute;
  top: 1px; left: 1px; right: 1px;
  height: 46%;
  border-radius: 99px 99px 24px 24px / 99px 99px 12px 12px;
  background: linear-gradient(180deg, var(--lg-reflect) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.side-actions {
  display: inline-flex;
  gap: 2px;
  margin-top: 12px;
  padding: 4px;
}
.hero-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78125rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 99px;
  color: #fff;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), background-color 250ms;
}
.hero-btn:hover { background: rgba(255, 255, 255, 0.15); }
.hero-btn:active { transform: scale(0.95); transition: transform 70ms ease-out; }
.hero-btn.primary, .hero-btn.active {
  background: var(--pill-bg);
  color: var(--text);
  box-shadow: var(--pill-shadow);
}
.hero-btn svg { width: 14px; height: 14px; fill: currentColor; }

.side-tools {
  position: absolute;
  top: 12px; right: 12px;
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.tools-group {
  display: flex;
  gap: 2px;
  padding: 4px;
}
.tool-sample {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: #fff;
  border-radius: 99px;
}
.tool-sample > * { position: relative; z-index: 1; }
.tool-sample svg { width: 13px; height: 13px; fill: currentColor; }
.tool-sample:hover { filter: brightness(1.2); }
.tool-sample.active {
  background: var(--pill-bg);
  color: var(--text);
  box-shadow: var(--pill-shadow);
}
.tool {
  position: relative;
  z-index: 1;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
}
.tool:hover { background: rgba(255, 255, 255, 0.15); }
.tool.active { background: var(--pill-bg); box-shadow: var(--pill-shadow); color: var(--text); }
.tool svg { width: 16px; height: 16px; fill: currentColor; }
.tool .ic-clear { display: none; }
[data-theme="clear"] .tool .ic-dark { display: none; }
[data-theme="clear"] .tool .ic-clear { display: block; }

.sc-input {
  position: absolute;
  top: 56px; right: 12px;
  z-index: 3;
  width: min(360px, 70%);
  display: flex; gap: 8px;
}
.sc-input[hidden] { display: none; }
.sc-input input {
  flex: 1;
  min-width: 0;
  font: inherit; font-size: 0.875rem;
  color: #fff;
  background: rgba(10, 12, 18, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 9px 14px;
  outline: none;
}
.sc-input input::placeholder { color: rgba(255, 255, 255, 0.45); }
.sc-add {
  font-size: 0.875rem; font-weight: 600;
  padding: 0 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #14161e;
}

/* ============ playlist: queue overlaid on the jacket ============
   current track pinned 2nd from the bottom; previous slides down and out */
.playlist {
  position: absolute;
  top: 58px; right: 22px; bottom: 18px;
  left: 42%;
  z-index: 2;
  list-style: none;
  overflow: hidden;
  touch-action: none; /* we handle vertical drags ourselves */
}
.playlist li {
  position: absolute;
  right: 0; bottom: 0;
  max-width: 100%;
  transition: transform 540ms cubic-bezier(0.22, 1, 0.36, 1), opacity 440ms ease;
  will-change: transform, opacity;
}
.playlist.dragging li { transition: opacity 440ms ease; } /* 1:1 while dragging */
.playlist:empty + .drop-hint { display: grid; }
.drop-hint {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 60;
  place-items: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.875rem;
  pointer-events: none;
}
/* while dragging files, always show the hint as a floating glass chip */
body.dropping .drop-hint { display: grid; }
body.dropping .drop-hint span {
  padding: 10px 22px;
  border-radius: 99px;
  color: #fff;
  background: rgba(20, 24, 36, 0.55);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 24px rgba(127, 200, 255, 0.35);
}
.row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  max-width: 100%;
  text-align: right;
  padding: 3px 6px;
  border-radius: 10px;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.6);
  transition: color 280ms, transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.row:active { transform: scale(0.98); transition: transform 70ms ease-out; }
.row-name {
  min-width: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.45;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: font-size 460ms cubic-bezier(0.22, 1, 0.36, 1);
}
/* the playing track swells — スッと大きく */
.row.current .row-name {
  font-size: 1.3125rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}
/* small jacket icon at the right end of each row */
.row-thumb {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  transition: width 460ms cubic-bezier(0.22, 1, 0.36, 1), height 460ms cubic-bezier(0.22, 1, 0.36, 1);
}
.row.current .row-thumb { width: 36px; height: 36px; border-radius: 8px; }
.row-badge {
  flex: none;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.7);
}
.row-time {
  flex: none;
  font-size: 0.6875rem;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.45);
}

/* ============ coverflow ============ */
.cover {
  position: relative;
  width: min(790px, 100vw);
  height: min(44vh, 360px);
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cf-stage {
  position: absolute;
  inset: 0;
  perspective: 1100px;
  transform-style: preserve-3d;
}
.cf-item {
  position: absolute;
  left: 50%; top: 50%;
  width: min(34vh, 264px);
  height: min(34vh, 264px);
  margin: calc(min(34vh, 264px) / -2) 0 0 calc(min(34vh, 264px) / -2);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(135deg, hsl(var(--hue, 210) 60% 45%), hsl(calc(var(--hue, 210) + 60) 65% 30%));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
  transition: transform 560ms cubic-bezier(0.22, 1, 0.36, 1), filter 560ms, opacity 560ms;
  will-change: transform;
}
.cf-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.cf-item .cf-reflect {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.18), transparent 30%);
  pointer-events: none;
}
.cf-item:not(.is-center):hover { filter: brightness(0.8) !important; }
/* full-height side hit zones — the whole side stack is clickable */
.cf-hit {
  position: absolute;
  top: 0; bottom: 0;
  width: calc(50% - 138px);
  z-index: 40;
  cursor: pointer;
}
.cf-hit.left { left: 0; }
.cf-hit.right { right: 0; }
[data-mode="cover"] .stage { gap: 52px; }
.cf-caption {
  position: absolute;
  left: 0; right: 0;
  /* pinned ~18px below the jacket's bottom edge (x1.11 perspective scale) */
  top: calc(50% + min(18.9vh, 147px) + 18px);
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}
.cf-caption small {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
}

/* ============ soundcloud dock ============ */
.sc-dock {
  position: relative;
  width: min(640px, calc(100vw - 32px));
  border-radius: 20px;
  overflow: hidden;
  background: var(--glass);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  backdrop-filter: blur(30px) saturate(160%);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow);
}
.sc-dock iframe { display: block; width: 100%; height: 120px; }
.sc-close {
  position: absolute;
  top: 6px; right: 6px;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
}
.sc-close svg { width: 14px; height: 14px; fill: currentColor; }

/* ============ player bar: liquid glass ============ */
.bar {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--lg-bg);
  -webkit-backdrop-filter: blur(50px) saturate(200%);
  backdrop-filter: blur(50px) saturate(200%);
  box-shadow:
    0 40px 80px -20px var(--lg-shadow),
    0 10px 30px -10px var(--lg-shadow);
  transition: background-color 600ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 600ms;
}
/* wet reflection + mouse glare live in a non-interactive overlay */
.lg-layers {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 4;
}
.lg-reflect {
  position: absolute;
  top: 1px; left: 1px; right: 1px;
  height: 46%;
  border-radius: 99px 99px 24px 24px / 99px 99px 12px 12px;
  background: linear-gradient(180deg, var(--lg-reflect) 0%, rgba(255, 255, 255, 0) 100%);
  transition: background 500ms ease;
}
.lg-glare {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 300ms ease;
  background: radial-gradient(circle 90px at var(--gx, 50%) var(--gy, 50%), var(--lg-glare) 0%, transparent 100%);
  mix-blend-mode: overlay;
}
.bar:hover .lg-glare { opacity: 1; }
.bar-art, .bar-art-fallback {
  width: 30px; height: 30px;
  flex: none;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.bar-art-fallback {
  background: linear-gradient(135deg, hsl(var(--hue, 210) 60% 45%), hsl(calc(var(--hue, 210) + 60) 65% 30%));
}
.bar-art:not([hidden]) + .bar-art-fallback { display: none; }

.bar-meta { min-width: 0; width: 106px; flex: none; }
.bar-title {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bar-artist {
  font-size: 0.6875rem;
  color: var(--text-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.bar-ctrls { display: flex; align-items: center; gap: 1px; flex: none; }
.ctrl {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text);
}
.ctrl svg { width: 15px; height: 15px; fill: currentColor; }
.ctrl.play {
  width: 34px; height: 34px;
  background: var(--pill-bg);
  box-shadow: var(--pill-shadow);
  transition: transform 500ms cubic-bezier(0.34, 1.2, 0.64, 1), background-color 500ms ease;
}
.ctrl.play svg { width: 16px; height: 16px; }

.time {
  font-size: 0.625rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-faint);
  flex: none;
  min-width: 30px;
  text-align: center;
}

/* sliders */
.slider {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}
.seek { flex: 1; min-width: 60px; }
.s-track {
  position: relative;
  width: 100%; height: 5px;
  border-radius: 99px;
  background: var(--track-bg);
  overflow: hidden;
  transition: height 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
.slider.dragging .s-track { height: 11px; }
.s-fill {
  position: absolute; inset: 0;
  width: var(--p, 0%);
  border-radius: 99px;
  background: var(--fill);
}
.vol-group { display: flex; align-items: center; gap: 8px; flex: none; color: var(--text-faint); }
.vol-group > svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
.vol { width: 52px; }
.vol-num {
  font-size: 0.625rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-faint);
  min-width: 2.6ch;
  text-align: right;
}
.vol .s-fill { background: var(--text-dim); }

@media (max-width: 660px) {
  .panel { height: min(74vh, 640px); }
  /* now-playing info moves to the top-left, clear of the queue below */
  .side-content {
    top: 60px; left: 14px;
    right: auto; bottom: auto;
    max-width: 62%;
  }
  .side-title { font-size: 1.0625rem; -webkit-line-clamp: 2; }
  .side-artist { font-size: 0.8125rem; }
  .side-tools { top: 10px; right: 10px; }
  /* queue takes the lower half, full width */
  .playlist { left: 12px; right: 12px; top: 45%; bottom: 12px; }
  .row.current .row-name { font-size: 1.125rem; }
  .row-name { font-size: 0.875rem; }
  /* single-row compact bar */
  .bar { flex-wrap: nowrap; gap: 7px; padding: 6px 10px; }
  .bar-meta { flex: 1; width: auto; }
  .time { display: none; }
  .vol-group { display: none; }
  .sc-input { top: 52px; right: 10px; width: calc(100% - 20px); }
  .sc-dock { width: calc(100vw - 24px); }
  .zen-np img, .zen-art-fallback { width: 72px; height: 72px; }
  .zen-title { font-size: 1rem; }
  .zen-meta { max-width: calc(100vw - 130px); }
}

/* ============ gooey cursor ============ */
#gooCursor {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
  filter: blur(7px) contrast(18);
}
.goo-cursor, .goo-cursor * { cursor: none !important; }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 1ms !important; }
  .panel::before, .panel::after { animation: none !important; }
  .eq span { animation: none; height: 55%; }
}
@media (prefers-reduced-transparency: reduce) {
  .panel, .bar, .sc-dock { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(10, 12, 18, 0.92); }
  [data-theme="clear"] .panel, [data-theme="clear"] .bar, [data-theme="clear"] .sc-dock { background: rgba(255, 255, 255, 0.95); }
}
