/* Schedule page — builds on radio.css tokens and shell. */

.schedule-hero { margin: 8px 0 30px; }
.schedule-hero h1 { margin: 6px 0 0; font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: 0.01em; }
.schedule-lede {
  max-width: 62ch;
  margin: 14px 0 0;
  color: var(--sub);
  font-size: 0.95rem;
  line-height: 1.6;
}
.schedule-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.schedule-updated {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- On air now --------------------------------------------------------- */

.now-playing-card {
  display: grid;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 18%, transparent);
}
.now-playing-card.is-loading { gap: 12px; }
.now-playing-card .np-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.now-playing-card .np-title { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.15; }
.now-playing-card .np-artist { color: var(--sub); font-size: 0.95rem; }
.now-playing-card .np-meta { margin-top: 6px; font-family: var(--mono); font-size: 11px; color: var(--muted); }

.live-pip {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--accent-2);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-2) 70%, transparent);
  animation: schedule-pulse 2s ease-out infinite;
}
@keyframes schedule-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-2) 55%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* --- Coming-up timeline ------------------------------------------------- */

.schedule-list { list-style: none; margin: 0; padding: 0; }
.schedule-list li {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--rule-soft);
}
.schedule-list li:first-child { border-top: none; }
.schedule-time {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.schedule-body { min-width: 0; }
.schedule-title {
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.3;
  text-overflow: ellipsis;
}
.schedule-artist { margin-top: 2px; color: var(--sub); font-size: 0.85rem; }
.schedule-when {
  justify-self: end;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.schedule-list li.is-break .schedule-title { color: var(--muted); font-style: italic; }

.schedule-empty { margin: 16px 0 0; color: var(--muted); font-family: var(--mono); font-size: 12px; }

/* --- Scheduled blocks --------------------------------------------------- */

.scheduled-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.scheduled-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-sm);
}
.scheduled-time {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.scheduled-label { font-family: var(--serif); font-size: 1.25rem; }
.scheduled-desc { margin-top: 2px; color: var(--sub); font-size: 0.85rem; }
.scheduled-repeat {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- Daily programming timetable ---------------------------------------- */

.timetable-list { list-style: none; margin: 0; padding: 0; }
.timetable-item {
  display: grid;
  grid-template-columns: 66px 1fr auto;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--rule-soft);
}
.timetable-item:first-child { border-top: none; }
.timetable-time {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.timetable-body { min-width: 0; }
.timetable-label {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.2;
}
.timetable-desc { margin-top: 2px; color: var(--sub); font-size: 0.85rem; }
.timetable-badge {
  justify-self: end;
  align-self: center;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.timetable-item.is-getknown .timetable-label { color: var(--accent-2); }
.timetable-item.is-getknown .timetable-time { color: var(--accent-2); }
.timetable-item.is-now {
  margin: 0 -14px;
  padding: 14px;
  border-top-color: transparent;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.timetable-item.is-now + .timetable-item { border-top-color: transparent; }

.schedule-note { max-width: 60ch; margin: 16px 0 0; color: var(--muted); font-size: 0.85rem; line-height: 1.6; }

@media (max-width: 640px) {
  .timetable-item { grid-template-columns: 60px 1fr; }
  .timetable-badge { grid-column: 2; justify-self: start; margin-top: 4px; }
}

@media (max-width: 640px) {
  .schedule-list li { grid-template-columns: 66px 1fr; }
  .schedule-when { grid-column: 2; justify-self: start; margin-top: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .live-pip { animation: none; }
}
