@property --h {
  syntax: "<number>";
  inherits: true;
  initial-value: 266;
}

:root {
  --h: 266;
  --bg: #08080d;
  --fg: #f5f3fa;
  --muted: rgba(245, 243, 250, 0.62);
  --faint: rgba(245, 243, 250, 0.38);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --accent: hsl(var(--h) 92% 70%);
  --accent-2: hsl(calc(var(--h) + 48) 96% 66%);
  --accent-soft: hsl(var(--h) 92% 70% / 0.14);
  --accent-ink: hsl(var(--h) 55% 11%);
  --radius: 28px;
  --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Unbounded", var(--font-body);
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
  transition: --h 1.1s ease;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: 120px;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- background ---------- */

.aura { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aura span {
  position: absolute;
  border-radius: 50%;
  animation: drift 24s ease-in-out infinite alternate;
  will-change: transform;
}
.aura span:nth-child(1) {
  width: 70vmax; height: 70vmax; left: -22vmax; top: -34vmax;
  background: radial-gradient(circle, hsl(var(--h) 90% 56% / 0.42), transparent 62%);
}
.aura span:nth-child(2) {
  width: 60vmax; height: 60vmax; right: -26vmax; top: 4vh;
  background: radial-gradient(circle, hsl(calc(var(--h) + 48) 95% 56% / 0.28), transparent 62%);
  animation-duration: 30s;
}
.aura span:nth-child(3) {
  width: 55vmax; height: 55vmax; left: 18vw; bottom: -36vmax;
  background: radial-gradient(circle, hsl(calc(var(--h) - 36) 90% 52% / 0.22), transparent 62%);
  animation-duration: 36s;
}
@keyframes drift { to { transform: translate3d(5vmax, 4vmax, 0) scale(1.1); } }

.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.09;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.022));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 40px 80px -48px rgba(0, 0, 0, 0.75);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
}

/* ---------- header ---------- */

.top { display: flex; align-items: center; justify-content: space-between; padding: 26px 0 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; padding: 9px 8px; border-radius: 11px;
  display: inline-flex; align-items: flex-end; justify-content: center; gap: 3px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 26px -10px hsl(var(--h) 90% 62% / 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.brand-mark i {
  width: 3px; height: 45%; border-radius: 2px; background: rgba(12, 8, 24, 0.82);
  animation: eq 0.9s ease-in-out infinite; animation-play-state: paused;
}
.brand-mark i:nth-child(2) { height: 85%; animation-delay: -0.3s; }
.brand-mark i:nth-child(3) { height: 60%; animation-delay: -0.6s; }
.brand-mark i:nth-child(4) { height: 35%; animation-delay: -0.15s; }
.is-playing .brand-mark i { animation-play-state: running; }
@keyframes eq { 0%, 100% { height: 28%; } 50% { height: 100%; } }

.brand-name { font: 700 19px/1 var(--font-display); letter-spacing: -0.03em; }
.brand-name b { margin-left: 7px; font-weight: 500; color: var(--muted); }

.top-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.top-link svg { width: 17px; height: 17px; }
.top-link:hover { color: var(--fg); background: rgba(255, 255, 255, 0.07); border-color: var(--line-strong); }
.top-link { white-space: nowrap; }
.top-link .short { display: none; }

/* ---------- player ---------- */

.player {
  display: grid;
  grid-template-columns: minmax(240px, 370px) 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 68px);
  padding: clamp(22px, 4vw, 46px);
  overflow: hidden;
}

.deck { position: relative; aspect-ratio: 1; }

.disc {
  position: absolute; inset: 4%; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 32.6%, rgba(0, 0, 0, 0.7) 33%, transparent 34.2%),
    radial-gradient(circle, transparent 0 62%, rgba(255, 255, 255, 0.035) 62.4%, transparent 63.4%),
    repeating-radial-gradient(circle, #0c0c11 0 1.6px, #17161e 1.6px 3.2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.07),
    0 34px 70px -26px hsl(var(--h) 90% 40% / 0.7),
    0 0 140px -36px hsl(var(--h) 90% 62% / 0.65);
  animation: spin 3.8s linear infinite;
  animation-play-state: paused;
}
.is-playing .disc { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }

.label {
  position: absolute; inset: 31%; border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.4), transparent 42%),
    linear-gradient(140deg, var(--accent), var(--accent-2));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), inset 0 -10px 24px rgba(0, 0, 0, 0.18);
}
.label::after {
  content: ""; position: absolute; width: 8%; aspect-ratio: 1; border-radius: 50%;
  background: #0a0a0f; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.9), 0 0 0 3px rgba(255, 255, 255, 0.18);
}
.label-num, .label-sub { position: absolute; left: 0; right: 0; text-align: center; color: var(--accent-ink); }
.label-num { top: 17%; font: 700 clamp(18px, 2.5vw, 28px)/1 var(--font-display); letter-spacing: -0.04em; }
.label-sub { bottom: 19%; font: 600 clamp(8px, 0.85vw, 10px)/1 var(--font-body); letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.75; }

.sheen {
  position: absolute; inset: 4%; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 210deg, transparent 0 7%, rgba(255, 255, 255, 0.11) 12%, transparent 19% 51%, rgba(255, 255, 255, 0.07) 57%, transparent 64%);
}

.arm {
  position: absolute; top: -5%; right: -7%; width: 34%; height: auto;
  overflow: visible; stroke: none;
  transform-origin: 75% 10%;
  transform: rotate(-17deg);
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.5));
}
.is-playing .arm { transform: rotate(0deg); }

.info { min-width: 0; }

.eyebrow {
  margin: 0; display: inline-flex; align-items: center; gap: 9px;
  color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.is-playing .live-dot { background: var(--accent); animation: pulse 1.8s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 hsl(var(--h) 92% 70% / 0.6); }
  100% { box-shadow: 0 0 0 12px hsl(var(--h) 92% 70% / 0); }
}

.title {
  margin: 14px 0 12px;
  font: 700 clamp(28px, 4.3vw, 54px)/1.1 var(--font-display);
  letter-spacing: -0.035em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 0; color: var(--muted); font-size: 15px; }
.meta span + span::before { content: "·"; margin: 0 10px; color: var(--faint); }

.viz { display: block; width: 100%; height: 68px; margin: 24px 0 12px; }

.scrub { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; }
.time { min-width: 6ch; color: var(--muted); font: 500 13px/1 var(--font-mono); font-variant-numeric: tabular-nums; text-align: center; }

.seek-wrap { position: relative; display: flex; align-items: center; height: 22px; }
.seek-wrap::before, .buffered {
  content: ""; position: absolute; left: 0; height: 6px; border-radius: 99px; pointer-events: none;
}
.seek-wrap::before { right: 0; background: rgba(255, 255, 255, 0.09); }
.buffered { width: 0; background: rgba(255, 255, 255, 0.14); transition: width 0.4s; }

input[type="range"] {
  -webkit-appearance: none; appearance: none;
  position: relative; width: 100%; height: 22px; margin: 0;
  background: transparent; cursor: pointer;
  --p: 0%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)) 0 0 / var(--p) 100% no-repeat;
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: transparent; }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; margin-top: -5px; border: 0; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 5px hsl(var(--h) 92% 70% / 0.25), 0 2px 8px rgba(0, 0, 0, 0.45);
  transform: scale(0.7); transition: transform 0.15s;
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border: 0; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 5px hsl(var(--h) 92% 70% / 0.25), 0 2px 8px rgba(0, 0, 0, 0.45);
}
input[type="range"]:hover::-webkit-slider-thumb,
input[type="range"]:focus-visible::-webkit-slider-thumb,
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1); }

.controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.spacer { flex: 1; }

.icon-btn {
  width: 46px; height: 46px; display: grid; place-items: center; flex: none;
  border: 1px solid var(--line); border-radius: 50%;
  background: rgba(255, 255, 255, 0.04); color: var(--fg); text-decoration: none; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.09); border-color: var(--line-strong); }
.icon-btn:active { transform: scale(0.93); }
.icon-btn.ghost { border-color: transparent; background: transparent; }

.play-btn {
  width: 66px; height: 66px; display: grid; place-items: center; flex: none;
  border: 0; border-radius: 50%; cursor: pointer;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  box-shadow: 0 16px 36px -12px hsl(var(--h) 90% 60% / 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.15s, box-shadow 0.2s;
}
.play-btn:hover { transform: scale(1.04); }
.play-btn:active { transform: scale(0.95); }
.play-btn svg { width: 28px; height: 28px; fill: currentColor; stroke: none; }
.play-btn .i-pause, .is-playing .play-btn .i-play { display: none; }
.is-playing .play-btn .i-pause { display: block; }

.vol { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
.vol .volume { width: 96px; }
.i-muted, .is-muted .i-vol { display: none; }
.is-muted .i-muted { display: block; }

.cta {
  height: 46px; padding: 0 18px 0 15px; display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid hsl(var(--h) 92% 72% / 0.38); border-radius: 999px;
  background: var(--accent-soft); color: var(--fg); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.cta svg { width: 18px; height: 18px; color: var(--accent); }
.cta:hover { background: hsl(var(--h) 92% 70% / 0.22); }
.cta:active { transform: scale(0.97); }
.cta.done, .copy-btn.done, .copy-mini.done { border-color: hsl(150 70% 55% / 0.5); background: hsl(150 70% 50% / 0.14); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pill {
  height: 46px; padding: 0 18px 0 15px; display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); color: var(--fg); font-size: 14px; font-weight: 600; text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.pill svg { width: 18px; height: 18px; color: var(--muted); }
.pill:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.22); }
.pill:active { transform: scale(0.97); }
.pill-meta { color: var(--faint); font-weight: 500; font-variant-numeric: tabular-nums; }

.resume { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.resume b { color: var(--fg); font-weight: 600; font-family: var(--font-mono); }

/* ---------- lower grid ---------- */

.lower { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 20px; margin-top: 20px; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 24px 26px 8px; }
.section-head.bare { display: block; padding: 0 4px; }
.section-title { margin: 0; font: 600 clamp(18px, 2vw, 22px)/1.25 var(--font-display); letter-spacing: -0.025em; }
.section-sub { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.count { color: var(--faint); font-size: 14px; font-weight: 500; }

.tracks { list-style: none; margin: 0; padding: 8px 10px 12px; display: grid; gap: 4px; }

.track {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px;
  padding-right: 10px; border-radius: 20px;
  transition: background 0.2s, box-shadow 0.2s;
}
.track:hover { background: rgba(255, 255, 255, 0.04); }
.track.active { background: hsl(var(--th) 92% 70% / 0.1); box-shadow: inset 0 0 0 1px hsl(var(--th) 92% 72% / 0.2); }

.row {
  min-width: 0; display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 14px;
  padding: 12px 6px 12px 12px; border: 0; background: none; text-align: left; cursor: pointer;
  border-radius: 20px;
}
.swatch {
  position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background:
    radial-gradient(circle, #0b0b10 0 9%, transparent 10%),
    radial-gradient(circle, transparent 0 32%, rgba(0, 0, 0, 0.45) 33%, transparent 36%),
    linear-gradient(140deg, hsl(var(--th) 92% 70%), hsl(calc(var(--th) + 48) 96% 64%));
  box-shadow: 0 8px 20px -10px hsl(var(--th) 90% 55% / 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.swatch .eq { display: none; height: 16px; align-items: flex-end; gap: 2px; }
.swatch .eq i { width: 3px; height: 40%; border-radius: 2px; background: #0b0b10; animation: eq 0.9s ease-in-out infinite; animation-play-state: paused; }
.swatch .eq i:nth-child(2) { animation-delay: -0.3s; }
.swatch .eq i:nth-child(3) { animation-delay: -0.6s; }
.track.active .swatch { background: linear-gradient(140deg, hsl(var(--th) 92% 70%), hsl(calc(var(--th) + 48) 96% 64%)); }
.track.active .swatch .eq { display: flex; }
.is-playing .track.active .swatch .eq i { animation-play-state: running; }

.t { min-width: 0; display: grid; gap: 2px; }
.t-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track.active .t-title { color: hsl(var(--th) 95% 82%); }
.t-sub { color: var(--faint); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d { color: var(--muted); font: 500 13px/1 var(--font-mono); font-variant-numeric: tabular-nums; }

.copy-mini, .copy-btn {
  height: 38px; padding: 0 13px; display: inline-flex; align-items: center; gap: 7px; flex: none;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, 0.03); color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer;
  text-decoration: none;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.copy-mini svg, .copy-btn svg { width: 16px; height: 16px; }
.copy-mini:hover, .copy-btn:hover { color: var(--fg); background: rgba(255, 255, 255, 0.08); border-color: var(--line-strong); }

.skeleton { height: 70px; padding: 12px; }
.skeleton span {
  display: block; height: 100%; border-radius: 16px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)) 0 0 / 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { padding: 18px 16px 22px; color: var(--muted); }

/* ---------- how-to ---------- */

.steps { list-style: none; margin: 0; padding: 10px 26px 0; display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: 34px 1fr; gap: 14px; }
.step-n {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  font: 600 14px/1 var(--font-display); color: var(--accent);
}
.step h3 { margin: 5px 0 2px; font-size: 15px; font-weight: 600; }
.step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.cmd-now {
  margin: 22px 14px 14px; padding: 14px 12px 14px 16px;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 12px;
  border: 1px solid var(--line); border-radius: 18px; background: rgba(0, 0, 0, 0.32);
}
.cmd-label { grid-column: 1 / -1; color: var(--faint); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.cmd-now code { min-width: 0; font: 500 13px/1.55 var(--font-mono); overflow-wrap: anywhere; }
.cmd-key { color: var(--accent); font-weight: 600; }
.cmd-url { color: rgba(245, 243, 250, 0.82); }

/* ---------- commands ---------- */

.commands { margin-top: 44px; }
.cmd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.cmd {
  min-height: 112px; padding: 20px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 14px;
  border-radius: 22px; text-align: left; cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.cmd::after {
  content: ""; position: absolute; top: 18px; right: 18px; width: 18px; height: 18px; opacity: 0.35;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><rect x='9' y='9' width='11' height='11' rx='2.5'/><path d='M15 9V6.5A2.5 2.5 0 0 0 12.5 4h-6A2.5 2.5 0 0 0 4 6.5v6A2.5 2.5 0 0 0 6.5 15H9'/></svg>") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'><rect x='9' y='9' width='11' height='11' rx='2.5'/><path d='M15 9V6.5A2.5 2.5 0 0 0 12.5 4h-6A2.5 2.5 0 0 0 4 6.5v6A2.5 2.5 0 0 0 6.5 15H9'/></svg>") center / contain no-repeat;
  transition: opacity 0.2s;
}
.cmd:hover { border-color: hsl(var(--h) 92% 72% / 0.35); transform: translateY(-2px); }
.cmd:hover::after { opacity: 0.8; }
.cmd.done { border-color: hsl(150 70% 55% / 0.5); }
.cmd code {
  padding: 7px 11px; border-radius: 11px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.34);
  color: hsl(var(--h) 95% 84%); font: 600 15px/1 var(--font-mono);
}
.cmd span { color: var(--muted); font-size: 14px; line-height: 1.45; }

.tip {
  margin: 18px 0 0; padding: 14px 18px; display: flex; align-items: flex-start; gap: 12px;
  border: 1px dashed var(--line-strong); border-radius: 18px;
  color: var(--muted); font-size: 14px; line-height: 1.55;
}
.tip svg { width: 18px; height: 18px; margin-top: 1px; color: var(--accent); }
.tip b { color: var(--fg); font-weight: 600; }

/* ---------- footer ---------- */

.foot {
  margin-top: 56px; padding: 22px 4px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  border-top: 1px solid var(--line); color: var(--faint); font-size: 13px;
}
kbd {
  padding: 2px 7px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px;
  color: var(--muted); font: 500 12px/1.4 var(--font-mono);
}

/* ---------- dock ---------- */

.dock {
  position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 20;
  width: min(560px, 100% - 24px);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 9px 9px 9px 10px; border: 1px solid var(--line-strong); border-radius: 24px;
  background: rgba(18, 17, 26, 0.72);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transform: translate(-50%, calc(100% + 40px));
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dock.show { transform: translate(-50%, 0); }
.dock-bar { position: absolute; left: 22px; right: 22px; top: -1px; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, 0.08); }
.dock-bar span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.dock-disc {
  width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: repeating-radial-gradient(circle, #0c0c11 0 1.4px, #18171f 1.4px 2.8px);
  display: grid; place-items: center;
  animation: spin 3.8s linear infinite; animation-play-state: paused;
}
.dock-disc span { width: 42%; height: 42%; border-radius: 50%; background: linear-gradient(140deg, var(--accent), var(--accent-2)); }
.is-playing .dock-disc { animation-play-state: running; }
.dock-info { min-width: 0; display: grid; gap: 1px; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.dock-title { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-time { color: var(--muted); font: 500 12px/1.3 var(--font-mono); font-variant-numeric: tabular-nums; }
.play-btn.small { width: 48px; height: 48px; }
.play-btn.small svg { width: 22px; height: 22px; }

/* ---------- toast ---------- */

.toast {
  position: fixed; left: 50%; bottom: 100px; z-index: 30;
  max-width: calc(100% - 32px); padding: 12px 18px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(24, 23, 33, 0.92); color: var(--fg); font-size: 14px; font-weight: 500;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8);
  opacity: 0; pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 0.25s, transform 0.25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .player { grid-template-columns: 1fr; text-align: center; }
  .deck { width: min(300px, 74vw); margin: 4px auto 0; }
  .eyebrow { justify-content: center; }
  .meta { justify-content: center; }
  .controls { justify-content: center; }
  .spacer { display: none; }
  .actions { justify-content: center; }
  .lower { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 24px); }
  .top { padding: 18px 2px 16px; }
  .top-link { padding: 9px 13px; font-size: 13px; }
  .top-link .long { display: none; }
  .top-link .short { display: inline; }
  .player { padding: 26px 18px 24px; border-radius: 24px; }
  .vol { display: none; }
  .controls { gap: 12px; }
  .actions { display: grid; grid-template-columns: 1fr auto; }
  .actions .cta { justify-content: center; }
  .pill-meta { display: none; }
  .section-head { padding: 20px 18px 6px; }
  .tracks { padding: 6px 6px 10px; }
  .row { grid-template-columns: 42px 1fr; gap: 12px; padding: 10px 4px 10px 8px; }
  .swatch { width: 42px; height: 42px; }
  .row .d { display: none; }
  .copy-mini span { display: none; }
  .copy-mini { width: 40px; padding: 0; justify-content: center; }
  .steps { padding: 8px 18px 0; }
  .cmd-now { margin: 20px 10px 10px; }
  .cmd-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cmd { min-height: 104px; padding: 16px; border-radius: 20px; }
  .cmd::after { top: 14px; right: 14px; }
  .cmd code { font-size: 14px; }
  .cmd span { font-size: 13px; }
  .foot { flex-direction: column; }
  .foot span:first-child { display: none; }
}

@media (hover: none) {
  .vol .volume { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  :root { transition: none; }
  .aura span, .disc, .dock-disc, .brand-mark i, .swatch .eq i, .live-dot, .skeleton span { animation: none !important; }
  .arm { transition: none; }
}
