/* ============================================================
   Sonic Canvas — main.css
   Dark, restrained, VJ-software aesthetic.
   ============================================================ */

:root {
  --bg-0: #04060b;
  --bg-1: #0a101d;
  --ink: #e9edf6;
  --ink-dim: #96a0b6;
  --ink-faint: #5d6880;
  --line: rgba(148, 163, 196, 0.14);
  --line-strong: rgba(148, 163, 196, 0.26);
  --glass: rgba(10, 14, 24, 0.58);
  --glass-2: rgba(16, 21, 34, 0.72);
  --accent: #22d3ee;
  --accent-2: #818cf8;
  --accent-3: #e879f9;
  --ok: #34d399;
  --err: #f87171;
  --font-ui: "Space Grotesk", "SF Pro Display", -apple-system, "Segoe UI", "PingFang SC", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 12px;
  --topbar-h: 58px;
  --playerbar-h: 86px;
  --ease: cubic-bezier(0.22, 0.7, 0.3, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

button:focus-visible, [tabindex]:focus-visible, input:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.55);
  outline-offset: 2px;
  border-radius: 8px;
}

svg { display: block; }

#app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  min-height: 480px;
}

/* ---------------- Top bar ---------------- */

.topbar {
  flex: none;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
  position: relative;
  z-index: 5;
  background: linear-gradient(to bottom, rgba(4, 6, 11, 0.9), rgba(4, 6, 11, 0.55) 70%, transparent);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.brand-sub {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}

.modes {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}

.mode-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
  white-space: nowrap;
}

.mode-btn .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), background 0.18s var(--ease);
}

.mode-btn:hover { color: var(--ink); }

.mode-btn.is-active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.mode-btn.is-active .dot { opacity: 1; transform: scale(1); }
.mode-btn[data-mode="spectrum"].is-active .dot { background: var(--accent); }
.mode-btn[data-mode="circle"].is-active .dot { background: var(--accent-2); }
.mode-btn[data-mode="wave"].is-active .dot { background: #38bdf8; }
.mode-btn[data-mode="particles"].is-active .dot { background: var(--accent-3); }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: var(--ink-dim);
  transition: color 0.16s var(--ease), background 0.16s var(--ease), transform 0.16s var(--ease);
}

.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.icon-btn:active { transform: scale(0.94); }

/* ---------------- Stage ---------------- */

.stage {
  flex: 1;
  position: relative;
  min-height: 0;
  overflow: hidden;
}

#stage-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.fps-chip {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.mode-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-dim);
  opacity: 0;
  pointer-events: none;
}

.mode-hint.is-shown { animation: modeHint 1.15s var(--ease) forwards; }

@keyframes modeHint {
  0% { opacity: 0; transform: translate(-50%, 8px); }
  18% { opacity: 1; transform: translate(-50%, 0); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -4px); }
}

/* ---------------- Welcome ---------------- */

.welcome {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120% 90% at 50% 40%, rgba(6, 9, 17, 0.30), rgba(4, 6, 11, 0.78)),
    rgba(4, 6, 11, 0.30);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  transition: opacity 0.55s var(--ease), visibility 0.55s;
}

.welcome.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.welcome-inner {
  text-align: center;
  padding: 0 24px;
  max-width: 640px;
  animation: welcomeIn 0.9s var(--ease) both;
}

@keyframes welcomeIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.welcome-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 22px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.welcome-badge span {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--line-strong));
}

.welcome-badge span:last-child { transform: scaleX(-1); }

.welcome-logo {
  margin: 0 0 14px;
  font-size: clamp(44px, 8vw, 78px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--ink);
  animation: breathe 6s ease-in-out infinite alternate;
}

.welcome-logo span {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(148, 163, 196, 0.85);
}

@keyframes breathe {
  from { transform: translateY(0); }
  to { transform: translateY(-5px); }
}

.welcome-tag {
  margin: 0 0 34px;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink-dim);
  letter-spacing: 0.01em;
}

.welcome-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 26px;
}

.welcome-hint {
  margin: 0;
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.015em;
  color: var(--ink);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
              transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.btn svg { width: 17px; height: 17px; }

.btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(129, 140, 248, 0.16));
  border-color: rgba(34, 211, 238, 0.38);
  color: #d9fbff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.24), rgba(129, 140, 248, 0.24));
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 0 4px 24px -6px rgba(34, 211, 238, 0.35);
}

.btn-ghost { background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); }

.btn-block { width: 100%; justify-content: center; height: 38px; font-size: 13px; }

/* ---------------- Player bar ---------------- */

.playerbar {
  flex: none;
  height: var(--playerbar-h);
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(300px, 620px) minmax(160px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 0 22px;
  border-top: 1px solid var(--line);
  background: linear-gradient(to bottom, rgba(8, 11, 19, 0.72), rgba(5, 7, 13, 0.92));
  backdrop-filter: blur(16px) saturate(1.2);
  position: relative;
  z-index: 5;
  transition: opacity 0.35s var(--ease);
}

.playerbar.is-disabled { opacity: 0.45; pointer-events: none; }

.track {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.track-art {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(120% 120% at 20% 15%, rgba(34, 211, 238, 0.28), transparent 55%),
    radial-gradient(120% 120% at 85% 90%, rgba(232, 121, 249, 0.26), transparent 55%),
    #0b101d;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding-bottom: 11px;
  overflow: hidden;
}

.track-art i {
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(to top, var(--accent), var(--accent-3));
  height: 6px;
  opacity: 0.85;
}

.is-playing .track-art i { animation: eq 1.05s ease-in-out infinite alternate; }
.is-playing .track-art i:nth-child(2) { animation-delay: 0.22s; }
.is-playing .track-art i:nth-child(3) { animation-delay: 0.44s; }

@keyframes eq {
  from { height: 5px; }
  to { height: 21px; }
}

.track-meta { min-width: 0; }

.track-title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 12px;
  color: var(--ink-faint);
  white-space: nowrap;
  overflow: hidden;
}

.track-sub > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-demo {
  flex: none;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #a5f3fc;
  border: 1px solid rgba(34, 211, 238, 0.4);
  border-radius: 4px;
  padding: 1.5px 5px;
}

.transport {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.btn-play {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #06121a;
  background: linear-gradient(135deg, #67e8f9, #818cf8);
  box-shadow: 0 6px 22px -6px rgba(56, 189, 248, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease), filter 0.16s var(--ease);
}

.btn-play svg { width: 20px; height: 20px; }
.btn-play:hover { transform: scale(1.05); filter: brightness(1.06); }
.btn-play:active { transform: scale(0.97); }

.btn-play .ic-pause { display: none; }
.is-playing .btn-play .ic-play { display: none; }
.is-playing .btn-play .ic-pause { display: block; }

.timeline {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.time {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  min-width: 42px;
}

.time:last-child { text-align: right; }

.progress {
  position: relative;
  flex: 1;
  height: 22px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}

.progress-track,
.progress-fill {
  position: absolute;
  left: 0;
  height: 4px;
  border-radius: 999px;
  transition: height 0.15s var(--ease);
}

.progress-track { right: 0; background: rgba(255, 255, 255, 0.10); }
.progress-fill { width: 0%; background: linear-gradient(to right, var(--accent), var(--accent-2)); }

.progress:hover .progress-track,
.progress:hover .progress-fill,
.progress.is-scrubbing .progress-track,
.progress.is-scrubbing .progress-fill { height: 6px; }

.progress-thumb {
  position: absolute;
  left: 0%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f4f7ff;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.25), 0 2px 8px rgba(0, 0, 0, 0.5);
  transform: translateX(-50%) scale(0);
  transition: transform 0.15s var(--ease);
  pointer-events: none;
}

.progress:hover .progress-thumb,
.progress.is-scrubbing .progress-thumb { transform: translateX(-50%) scale(1); }

.progress-tip {
  position: absolute;
  bottom: 22px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink);
  background: var(--glass-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 7px;
  pointer-events: none;
  white-space: nowrap;
}

.side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
}

.pulse-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.beat-lamp {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(232, 121, 249, 0.25);
  transition: background 0.09s linear, box-shadow 0.09s linear;
}

.beat-lamp.on {
  background: var(--accent-3);
  box-shadow: 0 0 10px 1px rgba(232, 121, 249, 0.8);
}

.bpm {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
}

.volume {
  display: flex;
  align-items: center;
  gap: 4px;
}

#btn-mute .ic-volx { display: none; }
#btn-mute.is-muted .ic-vol { display: none; }
#btn-mute.is-muted .ic-volx { display: block; }

#vol-range {
  -webkit-appearance: none;
  appearance: none;
  width: 96px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent-2) 0%, var(--accent-2) var(--fill, 85%),
              rgba(255, 255, 255, 0.12) var(--fill, 85%));
  cursor: pointer;
}

#vol-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #eef2fb;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s var(--ease);
}

#vol-range:hover::-webkit-slider-thumb { transform: scale(1.15); }
#vol-range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #eef2fb;
}

/* ---------------- Settings panel ---------------- */

.settings {
  position: fixed;
  top: 66px;
  right: 18px;
  width: 300px;
  z-index: 30;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--glass-2);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.99);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}

.settings.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
}

.settings-head h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.settings-body {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.settings-section {
  margin: 4px 0 -4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.ctl { display: flex; flex-direction: column; gap: 7px; }

.ctl-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.ctl-row label { font-size: 13px; color: var(--ink); }

.ctl-row output {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
}

.ctl input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent) 0%, var(--accent) var(--fill, 50%),
              rgba(255, 255, 255, 0.12) var(--fill, 50%));
  cursor: pointer;
}

.ctl input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #eef2fb;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s var(--ease);
}

.ctl input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.15); }
.ctl input[type="range"]::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 50%;
  background: #eef2fb;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}

.switch { position: relative; width: 36px; height: 20px; flex: none; }

.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }

.switch i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.18s var(--ease);
}

.switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #eef2fb;
  transition: transform 0.18s var(--ease);
}

.switch input:checked + i { background: rgba(34, 211, 238, 0.55); }
.switch input:checked + i::after { transform: translateX(16px); }

/* ---------------- Drop veil ---------------- */

.drop-veil {
  position: fixed;
  inset: 12px;
  z-index: 40;
  display: grid;
  place-items: center;
  border: 1.5px dashed rgba(34, 211, 238, 0.55);
  border-radius: 20px;
  background: rgba(8, 13, 24, 0.62);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s var(--ease), visibility 0.18s;
  pointer-events: none;
}

body.is-dragover .drop-veil { opacity: 1; visibility: visible; }

.drop-veil-inner {
  text-align: center;
  color: var(--accent);
}

.drop-veil-inner svg {
  width: 34px;
  height: 34px;
  margin: 0 auto 10px;
}

.drop-veil-inner p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* ---------------- Toasts ---------------- */

.toasts {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast {
  max-width: min(420px, 86vw);
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  background: var(--glass-2);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 40px -10px rgba(0, 0, 0, 0.6);
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  animation: toastIn 0.28s var(--ease);
}

.toast.is-leaving { animation: toastOut 0.25s var(--ease) forwards; }
.toast.success { border-left-color: var(--ok); }
.toast.error { border-left-color: var(--err); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateY(-6px) scale(0.98); }
}

/* ---------------- File protocol warning ---------------- */

.protocol-warn {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--bg-0);
  padding: 24px;
}

.protocol-warn > div {
  max-width: 460px;
  text-align: center;
  line-height: 1.7;
  font-size: 14.5px;
  color: var(--ink-dim);
}

.protocol-warn code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 6px;
  padding: 2px 8px;
}

/* ---------------- Fullscreen ---------------- */

#app:fullscreen { background: var(--bg-0); }

.ic-compress { display: none; }
.is-fullscreen .ic-expand { display: none; }
.is-fullscreen .ic-compress { display: block; }

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
  .brand-sub { display: none; }
  .playerbar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto;
    gap: 14px;
    padding: 0 14px;
  }
  .pulse-chip { display: none; }
}

@media (max-width: 680px) {
  :root { --playerbar-h: 76px; }
  .modes { max-width: 46vw; overflow-x: auto; scrollbar-width: none; }
  .modes::-webkit-scrollbar { display: none; }
  .mode-btn { padding: 6px 10px; font-size: 11.5px; }
  .track-sub { display: none; }
  .playerbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) auto; }
  #vol-range { width: 64px; }
  .icon-btn { width: 32px; }
  .settings {
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    width: auto;
    border-radius: 18px 18px 0 0;
    transform: translateY(8px);
  }
  .settings.is-open { transform: none; }
  .btn { height: 40px; padding: 0 18px; font-size: 13px; }
}

@media (max-width: 460px) {
  .brand-name { letter-spacing: 0.14em; font-size: 12.5px; }
  .time { min-width: 34px; font-size: 10.5px; }
}

/* ---------------- Reduced motion ---------------- */

@media (prefers-reduced-motion: reduce) {
  .welcome-logo, .track-art i { animation: none !important; }
  * { transition-duration: 0.01ms !important; }
}
