/* Layout: full-width feed bars up top (the radio), then a content column + schedule rail. Single dark look. */
:root {
  --bg: #0E0E0E;
  --surface: #191918;
  --line: #2A2A28;
  --fg: #F2F0EB;
  --muted: #BDBAB3;
  --dim: #9C9890;
  --accent: #FF6B57;
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  padding-left: max(32px, env(safe-area-inset-left, 0px));
  padding-right: max(32px, env(safe-area-inset-right, 0px));
}

/* Header */
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; padding-block: 18px; border-bottom: 1px solid var(--line);
}
.logo { font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: -0.02em; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.nav a { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; padding-block: 10px; }

/* Feed bars */
.feed {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  padding-block: 16px; border-bottom: 1px solid var(--line);
}
.feed.is-playing { background: var(--surface); }
.play {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--fg); background: transparent; color: var(--fg);
  transition: transform .15s ease, background .15s ease;
}
.play:hover { transform: scale(1.05); }
.feed[data-feed="1"] .play { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.play .icon-pause { display: none; }
.feed.is-playing .icon-play { display: none; }
.feed.is-playing .icon-pause { display: block; }
.feed-num { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1; width: 40px; }
.feed-meta { display: flex; flex-direction: column; gap: 2px; flex: 1 1 260px; min-width: 0; }
.status {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.feed.is-live .dot { background: var(--accent); }
.feed.is-playing .dot { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.title {
  font-family: var(--display); font-size: 22px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.notice { font-size: 13px; color: var(--muted); min-height: 1em; }

/* Main */
.main {
  max-width: 1280px; margin: 0 auto; padding-block: 40px 64px;
  display: flex; flex-wrap: wrap; gap: 48px;
}
.content { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.rail { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; }
.label {
  margin: 0 0 16px; font-family: var(--display); font-weight: 500;
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.mixes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mix { display: flex; flex-direction: column; gap: 8px; }
.art {
  aspect-ratio: 1; max-width: 100%; background: var(--surface);
  display: grid; place-items: center; overflow: hidden;
  font-family: var(--display); font-weight: 700; font-size: 28px; color: var(--line);
}
.art img { width: 100%; height: 100%; object-fit: cover; }
.mix-title { font-family: var(--display); font-size: 17px; }
.mix-sub { font-size: 13px; color: var(--dim); }
.empty { color: var(--muted); border: 1px dashed var(--line); padding: 24px; }

.sched-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding-block: 12px; border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.sched-row:last-child { border-bottom: 1px solid var(--line); }
.sched-row span:last-child { color: var(--dim); white-space: nowrap; }

.about p { margin: 0 0 12px; max-width: 62ch; color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line); padding-block: 24px;
  font-size: 13px; color: var(--dim);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
}

@media (max-width: 640px) {
  .wrap {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  .logo { font-size: 22px; }
  .nav { gap: 4px 18px; }
  .feed { gap: 10px 14px; }
  .play { width: 48px; height: 48px; }
  .feed-num { font-size: 32px; width: 26px; }
  .title { font-size: 17px; }
  .mixes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .main { padding-block: 28px 48px; gap: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
