:root {
  --bg: #0e0a18;
  --bg-2: #14101e;
  --fg: #efe5d8;
  --muted: #8a829a;
  --accent: #d6a178;
  --accent-2: #8a9cbc;
  --pill: rgba(255, 255, 255, 0.06);
  --ring: rgba(214, 161, 120, 0.45);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background:
    radial-gradient(1200px 600px at 20% -10%, #2a1c3a 0%, transparent 50%),
    radial-gradient(900px 500px at 110% 110%, #1a2a3a 0%, transparent 50%),
    var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.shell {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(20px, 6vw, 48px) clamp(16px, 5vw, 40px) 32px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 4vw, 28px);
}

header h1 {
  margin: 0;
  font-size: clamp(36px, 9vw, 56px);
  letter-spacing: -0.04em;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

header .tag {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.01em;
}

.now-playing {
  background: var(--pill);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(6px);
}

.now-playing .meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--fg);
  text-transform: lowercase;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4a4456;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  transition: background 0.2s;
}

.dot.live {
  background: #ef5d6f;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 93, 111, 0.55); }
  50% { box-shadow: 0 0 0 10px rgba(239, 93, 111, 0); }
}

.seed {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  font-size: 12px;
  color: var(--muted);
}

.play {
  appearance: none;
  border: none;
  background: linear-gradient(135deg, var(--accent), #b88560);
  color: #1a1020;
  font-weight: 700;
  font-size: 16px;
  padding: 18px 24px;
  border-radius: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  transition: transform 0.1s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 10px 30px -10px rgba(214, 161, 120, 0.6);
  width: 100%;
}

.play:hover { filter: brightness(1.05); }
.play:active { transform: scale(0.98); }
.play:disabled {
  background: #2a2530;
  color: #6b6377;
  cursor: progress;
  box-shadow: none;
}

.mix {
  background: var(--pill);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 6px 18px 16px;
}

.mix summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 0;
  font-weight: 600;
  font-size: 14px;
  color: var(--fg);
  user-select: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mix summary::-webkit-details-marker { display: none; }
.mix summary::before {
  content: "▸";
  color: var(--accent);
  transition: transform 0.2s;
  display: inline-block;
}
.mix[open] summary::before { transform: rotate(90deg); }

.mix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px 20px;
  padding-top: 8px;
}

.knob {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  text-transform: lowercase;
}

.knob input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.knob input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 0 var(--ring);
  transition: box-shadow 0.15s;
}
.knob input[type="range"]::-webkit-slider-thumb:hover { box-shadow: 0 0 0 6px var(--ring); }

.knob input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--bg);
}

.hint {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--muted);
}

footer {
  margin-top: auto;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* mobile tweaks */
@media (max-width: 480px) {
  .play { padding: 16px 20px; font-size: 15px; }
  .mix-grid { grid-template-columns: 1fr 1fr; }
}
