:root {
  --bg: #06111f;
  --panel: rgba(8, 19, 43, 0.76);
  --panel-2: rgba(21, 26, 65, 0.72);
  --line: rgba(160, 198, 255, 0.14);
  --text: #eef4ff;
  --muted: #9ab0d7;
  --cyan: #32d9ff;
  --green: #64ffad;
  --purple: #8f69ff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(50, 217, 255, 0.25), transparent 25%),
    radial-gradient(circle at 80% 100%, rgba(143, 105, 255, 0.24), transparent 28%),
    linear-gradient(135deg, #05101b 0%, #06162d 40%, #0b0b2e 100%);
}
.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 18px;
  padding: 18px;
  min-height: 100vh;
}
.glass {
  background: linear-gradient(180deg, rgba(8, 23, 47, 0.9), rgba(10, 15, 46, 0.75));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 16px 50px rgba(0,0,0,0.3);
  backdrop-filter: blur(18px);
  border-radius: 28px;
}
.glass-inner {
  background: linear-gradient(180deg, rgba(23, 44, 78, 0.3), rgba(12, 21, 48, 0.25));
  border: 1px solid rgba(180, 212, 255, 0.08);
  border-radius: 22px;
}
.stage {
  padding: 14px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
}
.stage-topbar, .sidebar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pills { display:flex; gap:10px; }
.pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pill.live { color: var(--green); }
.pill.subtle { color: #b6c4ea; }
.brand, .eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
}
.player-panel {
  min-height: 560px;
  position: relative;
  overflow: hidden;
}
.player-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease;
}
.player-wrap.active,
body.has-current .player-wrap {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
#player {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 560px;
}
#player iframe,
.player-wrap > iframe,
iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 560px;
  border: 0;
}
.hidden { display:none !important; }
.hero {
  z-index: 2;
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  text-align:center;
  padding: 40px;
  background:
    radial-gradient(circle at 50% 50%, rgba(84, 160, 255, 0.18), transparent 23%),
    linear-gradient(90deg, rgba(21,49,73,0.4), rgba(7,15,46,0.3));
}
.hero h1 {
  margin:0 0 12px;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 0.95;
}
.hero p, #nowMeta { color: var(--muted); font-size: 20px; }
.now-playing {
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 16px;
  padding: 14px 16px;
}
.now-playing h2, .sidebar h3 { margin: 6px 0; }
.controls { display:flex; gap:10px; flex-wrap: wrap; }
button, .debug input {
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 12px 16px;
  font: inherit;
}
button { cursor:pointer; font-weight:700; }
button:hover { border-color: rgba(50,217,255,0.4); box-shadow: 0 0 0 4px rgba(50,217,255,0.08); }
.sidebar { display:grid; grid-template-rows: 1fr 1fr; gap:18px; }
.queue, .activity { padding: 16px; min-height: 0; overflow:hidden; }
.queue-list, .activity-list {
  margin-top: 12px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  max-height: calc(100vh - 180px);
  overflow:auto;
}
.queue-item, .activity-item, .empty {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  border-radius: 18px;
  padding: 14px;
}
.queue-item .title, .activity-item .title { font-weight:700; }
.meta, .time { color: var(--muted); font-size: 13px; }
.counter {
  min-width: 42px; height: 42px; display:grid; place-items:center; border-radius: 15px;
  background: rgba(91, 130, 255, 0.25); font-weight: 800;
}
.activity-item { display:grid; grid-template-columns: 10px 1fr; gap:12px; }
.dot { width:10px; height:10px; border-radius:999px; margin-top:8px; background: var(--cyan); box-shadow: 0 0 15px currentColor; }
.dot.queue { color: #b980ff; background: currentColor; }
.dot.play { color: #5eff9c; background: currentColor; }
.dot.error { color: #ff687d; background: currentColor; }
.dot.warn { color: #ffd166; background: currentColor; }
.debug {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 10;
  display:flex;
  gap:10px;
  padding: 12px;
}
.debug input { min-width: 180px; }
@media (max-width: 1200px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; grid-template-rows: auto auto; }
}

body.has-current .hero { display: none !important; }
