:root {
  --bg: #080c14; --card: #111827; --border: #263248; --cyan: #06b6d4; --purple: #a855f7; --red: #ef4444;
  --text: #f8fafc; --muted: #a3b1c6;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: max(20px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at top right, #1e1b4b 0%, var(--bg) 55%); color: var(--text);
}
h1, h2, p { margin: 0; overflow-wrap: break-word; }
.shell {
  width: 100%; max-width: 820px; padding: 28px; border: 1px solid var(--border); border-radius: 22px;
  background: rgba(17, 24, 39, 0.92); box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
}
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand h1 { font-size: 1.15rem; font-weight: 900; }
.muted { color: var(--muted); font-size: 0.8rem; }
.logo {
  display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--purple)); color: #04101a; font-weight: 900; font-size: 1.1rem;
}
.badge {
  padding: 6px 12px; border: 1px solid var(--red); border-radius: 99px; background: rgba(239, 68, 68, 0.18);
  color: #fca5a5; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
}
.badge.autodj { border-color: var(--cyan); background: rgba(6, 182, 212, 0.16); color: #67e8f9; }
.hero { margin-bottom: 20px; padding: 22px; border: 1px solid var(--border); border-radius: 16px; background: #0b111e; }
.now-label { color: #67e8f9; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.now-title { margin: 6px 0 4px; font-size: 1.5rem; font-weight: 900; }
.now-meta { margin-bottom: 18px; color: var(--muted); font-size: 0.9rem; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.play-btn {
  min-height: 48px; padding: 12px 24px; border: 0; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, #0e7490, #1d4ed8); color: #fff; font: inherit; font-size: 0.95rem; font-weight: 800;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.play-btn:active { transform: scale(0.97); }
.play-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.audio-status { color: var(--muted); font-size: 0.85rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat-card { padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: #0d1424; }
.stat-card span { display: block; color: var(--muted); font-size: 0.75rem; }
.stat-card strong { font-size: 1.05rem; }
.history h2 { margin-bottom: 10px; color: var(--muted); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.history-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.history-list li {
  display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--border);
  border-radius: 8px; background: #0d1424; font-size: 0.85rem;
}
.history-list time { flex: none; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .play-btn:active { transform: none; } }
