:root {
  --red: #FC4A3E;
  --red-btn: #E5392D;
  --ink: #202326;
  --ink-2: #2a2e32;
  --ink-3: #3a3f45;
  --muted: #9aa0a8;
  --text: #f4f3f1;
  --radius: 18px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font: 400 16px/1.5 "Figtree", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, .show-name, .fw { font-family: "Lexend", system-ui, sans-serif; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.fw { font-weight: 600; }
.label { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
[hidden] { display: none !important; }

/* Blurred cover behind everything, plus the logo waves */
.backdrop {
  position: fixed; inset: -10%;
  background-size: cover; background-position: center;
  filter: blur(70px) saturate(1.2);
  opacity: 0; transition: opacity 1.2s ease, background-image .6s;
  z-index: -2;
}
.backdrop.on { opacity: .35; }
body::before {
  content: ""; position: fixed; z-index: -1;
  width: 620px; height: 620px; right: -220px; top: -260px;
  background: url("assets/waves.svg") no-repeat center / contain;
  opacity: .7; pointer-events: none;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(32,35,38,.2) 0%, rgba(32,35,38,.85) 60%, var(--ink) 100%);
}

.top {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1080px; margin: 0 auto; padding: 22px 16px 0;
}
.wordmark { height: 30px; }
.status { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.status.live .dot { background: #3ccf7a; box-shadow: 0 0 0 4px rgba(60,207,122,.15); }
.status.down .dot { background: var(--red); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 28px 16px 40px; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 44px; align-items: center; }
.cover-box { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--ink-2);
  box-shadow: 0 30px 80px rgba(0,0,0,.45); position: relative; }
.cover { width: 100%; height: 100%; object-fit: cover; display: block; animation: fade .6s ease; }
.cover-empty { position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 20%, var(--ink-3), var(--ink-2)); }
.cover-empty img { width: 34%; opacity: .9; }
@keyframes fade { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: none; } }

.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: rgba(252,74,62,.14); color: #ff8a80; font-weight: 600; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.pill.off { background: rgba(255,255,255,.07); color: var(--muted); }

/* The two logo waves as on-air signal */
.signal { position: relative; width: 16px; height: 16px; }
.signal i { position: absolute; left: 0; bottom: 0; border: 2.6px solid currentColor; border-left-color: transparent;
  border-bottom-color: transparent; border-radius: 0 100% 0 0; }
.signal i:nth-child(1) { width: 9px; height: 9px; animation: wave 1.6s ease-in-out infinite; }
.signal i:nth-child(2) { width: 16px; height: 16px; animation: wave 1.6s ease-in-out .25s infinite; }
.pill.off .signal i { animation: none; opacity: .5; }
@keyframes wave { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

.title { font-size: clamp(1.9rem, 4.6vw, 3.2rem); line-height: 1.08; margin: 18px 0 6px; font-weight: 700;
  letter-spacing: -.02em; overflow-wrap: anywhere; }
.artist { font-size: clamp(1.05rem, 2vw, 1.35rem); color: #d5d7da; margin: 0 0 22px; overflow-wrap: anywhere; }

.progress { max-width: 520px; margin-bottom: 26px; }
.bar, .show-bar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.bar span, .show-bar span { display: block; height: 100%; width: 0; background: var(--red); border-radius: 4px; transition: width 1s linear; }
.times { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }

.controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.play { width: 68px; height: 68px; border-radius: 50%; border: 0; background: var(--red-btn); color: #fff; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 12px 30px rgba(229,57,45,.4); transition: transform .15s, background .15s; flex: none; }
.play:hover { background: #f0443a; transform: scale(1.04); }
.play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.play svg { width: 28px; height: 28px; fill: currentColor; }
.play .i-stop, .play .i-wait { display: none; }
.play.playing .i-play { display: none; }
.play.playing .i-stop { display: block; }
.play.loading .i-play, .play.loading .i-stop { display: none; }
.play.loading .i-wait { display: block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.play-label { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.volume { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.volume svg { width: 20px; height: 20px; fill: currentColor; }
.volume input { width: 110px; accent-color: var(--red); }

.next { margin: 26px 0 0; color: #d5d7da; font-size: .95rem; }
.next .label { margin-right: 6px; }

/* Show strip */
.show { margin-top: 44px; display: flex; gap: 18px; align-items: center; padding: 18px; border-radius: var(--radius);
  background: rgba(42,46,50,.78); border: 1px solid rgba(255,255,255,.06); backdrop-filter: blur(8px); }
.show-cover { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; flex: none; }
.show-body { flex: 1; min-width: 0; }
.show-name { font-size: 1.25rem; font-weight: 600; margin: 2px 0; }
.show-bar { margin-top: 10px; max-width: 420px; }
.show-next { border-left: 1px solid var(--ink-3); padding-left: 18px; min-width: 0; max-width: 34%; }

/* Lists */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.panel { padding: 20px; border-radius: var(--radius); background: rgba(42,46,50,.6); border: 1px solid rgba(255,255,255,.05); min-width: 0; }
.panel h2 { font-size: .95rem; margin: 0 0 12px; font-weight: 600; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.06); min-width: 0; }
.list li:first-child { border-top: 0; }
.list .thumb { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; flex: none; background: var(--ink-3); }
.list .t { flex: 1; min-width: 0; }
.list .t div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list .when { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .8rem; flex: none; }
.list li.now { color: #fff; }
.list li.now .when { color: #ff8a80; font-weight: 600; }
.list li.past { opacity: .5; }

.foot { text-align: center; color: var(--muted); font-size: .78rem; padding: 0 16px 28px; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .cover-box { max-width: 300px; width: 100%; margin: 0 auto; }
  .progress { margin-left: auto; margin-right: auto; }
  .controls { justify-content: center; }
  .play-label { margin-right: 0; text-align: left; }
  .volume { display: none; }
  .show { flex-wrap: wrap; margin-top: 30px; }
  .show-next { border-left: 0; border-top: 1px solid var(--ink-3); padding: 12px 0 0; max-width: none; width: 100%; }
  .cols { grid-template-columns: 1fr; }
  body::before { width: 420px; height: 420px; right: -200px; top: -200px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
