:root {
  --bg: #000000;
  --card: #0e0e10;
  --line: rgba(255, 255, 255, 0.14);
  --ink: #f4f4f5;
  --muted: #8b8b93;
  --accent: #c9f27a;
  --knob: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter Variable", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
}

.player {
  width: min(380px, 88vw);
  padding: clamp(16px, 4.6vmin, 22px) clamp(16px, 4.6vmin, 22px) clamp(14px, 4vmin, 20px);
  border-radius: 22px;
  background: linear-gradient(180deg, #141417 0%, var(--card) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 0 1px rgba(255, 255, 255, 0.05), 0 24px 60px -24px rgba(201, 242, 122, 0.10);
}

.track-info { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(14px, 4vmin, 20px); }
.cover {
  position: relative; flex: none;
  width: 44px; height: 44px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(180deg, #2b3a2a 0%, #6d7f3e 58%, #1d2a2e 58%, #10191c 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.cover__sun { position: absolute; left: 50%; top: 34%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--accent); opacity: 0.9; }
.cover__sea { position: absolute; left: 0; right: 0; top: 58%; height: 1px; background: rgba(201, 242, 122, 0.5); }
.meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.meta__title { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.meta__artist { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

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

.speaker {
  flex: none; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: transparent; color: var(--ink); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.speaker svg { width: 22px; height: 22px; overflow: visible; }
.speaker__body { fill: currentColor; }
.speaker__arc, .speaker__x path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.speaker__x { opacity: 0; }
.speaker:focus-visible, .rail:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.rail {
  position: relative; flex: 1; height: 36px;
  cursor: pointer; touch-action: none; outline: none; border-radius: 8px;
}
.rail__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rail__rest { fill: none; stroke: var(--line); stroke-width: 2; stroke-linecap: round; }
.rail__wave { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rail__glow { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; opacity: 0.0; filter: blur(4px); }

.knob {
  position: absolute; left: 0; top: 50%;
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  pointer-events: none;
}
.knob__dot {
  display: block; width: 100%; height: 100%; border-radius: 999px;
  background: var(--knob);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(0, 0, 0, 0.55), 0 0 14px rgba(201, 242, 122, 0.18);
}

.bubble {
  position: absolute; left: 0; bottom: calc(50% + 14px);
  min-width: 34px; padding: 4px 8px; margin-left: -17px;
  border-radius: 8px; background: var(--ink); color: #0b0b0c;
  font-size: 12px; font-weight: 650; text-align: center; font-variant-numeric: tabular-nums;
  opacity: 0; pointer-events: none;
  transform-origin: 50% 120%;
}
.bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; margin-left: -4px;
  background: var(--ink); transform: rotate(45deg); border-radius: 1px;
}
.bubble span { position: relative; z-index: 1; }

.ghost {
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px;
  pointer-events: none; z-index: 5;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}
.ghost path { fill: #ffffff; stroke: #111113; stroke-width: 1.4; stroke-linejoin: round; }

@media (hover: hover) {
  .speaker:hover { background: rgba(255, 255, 255, 0.06); }
}
