/* Radio (T3, module radio): live stations with an on-air hero and schedule, clips with transcripts, podcasts. */
/* P9 scheme tokens: light = the colours these rules always used, dark = the radio app in its own dark theme. */
:root {
  --radio-surface: #fff;
  --radio-text: #111;
}
[data-scheme="dark"] {
  --radio-surface: #16181c;
  --radio-text: #ececec;
}
.rd-app { --rd-bg: #121417; --rd-card: #1c1f24; --rd-line: #2c3038; --rd-muted: #9aa3ad; --rd-acc: #ff3d57; background: var(--rd-bg); color: #f2f4f6; border-radius: 14px; overflow: hidden; min-height: calc(100dvh - 150px); display: flex; flex-direction: column; font-family: "Segoe UI", Roboto, Arial, sans-serif; position: relative; }
.rd-top { display: flex; align-items: center; gap: 20px; padding: 14px 22px; border-bottom: 1px solid var(--rd-line); }
.rd-brand { display: flex; align-items: center; gap: 8px; font-size: 19px; }
.rd-tabs { display: flex; gap: 6px; }
.rd-tabs button { display: flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--rd-muted); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.rd-tabs button.is-active { background: var(--radio-surface); color: var(--radio-text); }
.rd-body { display: grid; grid-template-columns: 300px minmax(0, 1fr); flex: 1; min-height: 0; }
.rd-body.is-pod { grid-template-columns: minmax(0, 1fr); }
.rd-stations { border-right: 1px solid var(--rd-line); padding: 10px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; }
.rd-station { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; border: 0; background: none; color: inherit; text-align: left; }
.rd-station:hover { background: #1a1d22; }
.rd-station.is-active { background: var(--rd-card); box-shadow: inset 3px 0 0 var(--rd-c); }
.rd-freq { width: 56px; height: 56px; border-radius: 10px; background: var(--rd-c); display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex: none; color: #fff; }
.rd-freq small { font-size: 9.5px; font-weight: 700; opacity: .8; }
.rd-st-copy { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.rd-st-copy b { font-size: 14.5px; } .rd-st-copy small { font-size: 12px; color: var(--rd-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-live { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .08em; background: var(--rd-acc); color: #fff; border-radius: 3px; padding: 1px 5px; margin-right: 4px; animation: rd-pulse 2s ease-in-out infinite; }
@keyframes rd-pulse { 50% { opacity: .65; } }
.rd-main { overflow-y: auto; padding: 22px 26px 90px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.rd-main h2 { font-size: 17px; margin: 0 0 10px; }
.rd-hero { display: flex; gap: 24px; align-items: center; padding: 22px; border-radius: 16px; background: linear-gradient(120deg, color-mix(in srgb, var(--rd-c) 55%, #000), #16181c 80%); }
.rd-hero-art { width: 170px; height: 170px; border-radius: 14px; background: var(--rd-c); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.rd-hero-art span { font-size: 40px; font-weight: 800; } .rd-hero-art small { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; opacity: .85; text-align: center; padding: 0 8px; }
.rd-hero-copy { min-width: 0; }
.rd-kicker { font-size: 12.5px; color: #dfe3e8; margin: 0 0 6px; display: flex; align-items: center; gap: 6px; }
.rd-hero h1 { font-size: 30px; line-height: 1.15; margin: 0 0 4px; } .rd-hero-copy > p { margin: 0 0 14px; color: #d0d5db; }
.rd-hero-row { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: #e6e9ec; }
.rd-play { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--radio-surface); color: var(--radio-text); display: grid; place-items: center; flex: none; }
.rd-play.big { width: 56px; height: 56px; background: var(--rd-acc); color: #fff; }
.rd-play.is-playing { box-shadow: 0 0 0 4px rgba(255,61,87,.35); }
.rd-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.rd-eq i { width: 3px; height: 4px; background: var(--rd-acc); border-radius: 1px; }
.rd-eq.is-on i { animation: rd-eq .9s ease-in-out infinite alternate; }
.rd-eq.is-on i:nth-child(2) { animation-delay: .2s; } .rd-eq.is-on i:nth-child(3) { animation-delay: .45s; } .rd-eq.is-on i:nth-child(4) { animation-delay: .1s; }
@keyframes rd-eq { to { height: 14px; } }
.rd-sched ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.rd-sched li { background: var(--rd-card); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; position: relative; border: 1px solid transparent; }
.rd-sched li.is-on { border-color: var(--rd-acc); }
.rd-sched li.is-past { opacity: .5; }
.rd-sched time { font-size: 12px; color: var(--rd-muted); font-variant-numeric: tabular-nums; } .rd-sched b { font-size: 14px; } .rd-sched span { font-size: 12px; color: var(--rd-muted); }
.rd-sched li .rd-live { position: absolute; top: 10px; right: 10px; }
.rd-next { font-size: 12.5px; color: var(--rd-muted); margin: 8px 0 0; }
.rd-clips { display: flex; flex-direction: column; gap: 8px; }
.rd-clip, .rd-ep { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: start; background: var(--rd-card); border-radius: 12px; padding: 14px; }
.rd-clip h3, .rd-ep h3 { font-size: 15.5px; margin: 2px 0 4px; line-height: 1.3; }
.rd-clip-meta { font-size: 12px; color: var(--rd-muted); margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rd-type { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 6px; border-radius: 4px; background: #2e333b; color: #dfe3e8; }
.rd-type-bulletin { background: #2a78d6; color: #fff; } .rd-type-phone-in { background: #eb6834; color: #fff; } .rd-type-correction { background: #0ca30c; color: #fff; } .rd-type-interview { background: #6b4fd6; color: #fff; }
.rd-progress { height: 3px; background: #2e333b; border-radius: 2px; overflow: hidden; margin: 6px 0; }
.rd-progress i { display: block; height: 100%; width: 40%; background: var(--rd-acc); animation: rd-prog 30s linear infinite; }
@keyframes rd-prog { from { width: 0; } to { width: 100%; } }
.rd-tlink { border: 0; background: none; color: #8ab4ff; font-size: 12.5px; padding: 0; display: inline-flex; align-items: center; gap: 4px; }
.rd-transcript { list-style: none; margin: 10px 0 0; padding: 10px 12px; background: #14161a; border-radius: 8px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; line-height: 1.45; }
.rd-transcript li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; }
.rd-transcript b { color: #ffd5db; font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; padding-top: 1px; }
.rd-listen { font-size: 12px; color: var(--rd-muted); display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.rd-call { background: var(--rd-card); border-radius: 12px; padding: 16px; }
.rd-call h2 { display: flex; align-items: center; gap: 6px; } .rd-call > p { color: var(--rd-muted); font-size: 13px; margin: -4px 0 10px; }
.rd-call > div { display: flex; gap: 8px; }
.rd-call input { flex: 1; background: #14161a; border: 1px solid var(--rd-line); color: #fff; border-radius: 999px; padding: 10px 14px; font: inherit; outline: none; }
.rd-btn { border: 0; background: var(--rd-acc); color: #fff; border-radius: 999px; padding: 9px 18px; font-weight: 700; }
.rd-callrow { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #cfd4da; margin: 10px 0 0; }
.rd-showgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.rd-showcard { border: 0; background: none; color: inherit; text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 0; }
.rd-cover { aspect-ratio: 1; border-radius: 12px; background: var(--rd-c); background-image: radial-gradient(circle at 75% 25%, rgba(255,255,255,.25), transparent 50%), linear-gradient(160deg, transparent 50%, rgba(0,0,0,.35)); display: flex; align-items: flex-end; padding: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.35); margin-bottom: 6px; }
.rd-cover b { font-size: 20px; line-height: 1.1; font-weight: 800; }
.rd-showcard > b { font-size: 14.5px; } .rd-showcard small { font-size: 12.5px; color: var(--rd-muted); }
.rd-showcard:hover .rd-cover { transform: translateY(-2px); }
.rd-eps { display: flex; flex-direction: column; gap: 8px; }
.rd-notes { font-size: 13.5px; color: #cfd4da; line-height: 1.5; margin: 0; }
.rd-back { border: 0; background: none; color: var(--rd-muted); font-weight: 600; display: flex; align-items: center; gap: 4px; padding: 0; align-self: flex-start; }
.rd-back svg { transform: rotate(180deg); }
.rd-showhead { display: flex; gap: 24px; align-items: flex-end; }
.rd-showhead .rd-cover { width: 200px; flex: none; margin: 0; }
.rd-showhead h1 { font-size: 34px; margin: 0 0 8px; } .rd-showhead p { color: #cfd4da; margin: 0; line-height: 1.5; }
.rd-none { color: var(--rd-muted); }
.rd-mini { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 12px; background: #2a2e35; border-radius: 12px; padding: 8px 10px 8px 16px; box-shadow: 0 8px 24px rgba(0,0,0,.5); z-index: 3; }
.rd-mini b { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .rd-mini span { font-size: 12px; color: var(--rd-muted); }
@media (max-width: 900px) {
  .rd-app { border-radius: 0; }
  .rd-top { padding: 10px 12px; gap: 10px; flex-wrap: wrap; }
  .rd-body { grid-template-columns: minmax(0, 1fr); }
  .rd-stations { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--rd-line); scrollbar-width: none; }
  .rd-station { flex: none; width: 220px; }
  .rd-main { padding: 14px 12px 90px; }
  .rd-hero { flex-direction: column; align-items: flex-start; gap: 14px; padding: 16px; }
  .rd-hero-art { width: 100%; height: 90px; flex-direction: row; gap: 12px; }
  .rd-hero-art span { font-size: 30px; }
  .rd-hero h1 { font-size: 23px; }
  .rd-clip, .rd-ep { grid-template-columns: 40px minmax(0, 1fr); }
  .rd-clip > .rd-listen, .rd-ep > .rd-listen { display: none; }
  .rd-transcript li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .rd-showgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .rd-showhead { flex-direction: column; align-items: flex-start; } .rd-showhead .rd-cover { width: 140px; } .rd-showhead h1 { font-size: 26px; }
}
@media (max-width: 720px) { .rd-app { margin: 0 -14px; } }
