/* Access Voice Radio catch-up (since 0.12.0): the show pages' episode lists ([avr_catchup]) and the Catch-Up page
   ([avr_catchup_episode]): an episode's player in the same deep navy panel and light blue Play button as the live
   player (#9DB4FF on #0B1F4D 8.24 to 1, white 16.4, #C9D3DE 12.48; on the dark site's #16306E at least 6.19), then the
   transcript in the page's own colors, the words being said lit in pale blue (#0E1B2C on #DCE6FF, 14.6 to 1) or, on
   the dark site, deep blue (#FFFFFF on #22386B, 11.2 to 1). */
.avr-catchup [hidden], .avr-catchup-recent [hidden] { display: none !important; }

/* The lists */
.avr-catchup-intro { color: var(--wp--preset--color--accent-4); max-width: 60ch; }
ul.avr-catchup-list { list-style: none; margin: 16px 0 0; padding: 0; }
ul.avr-catchup-list li { padding: 14px 0; border-top: 1px solid var(--wp--preset--color--accent-6); }
ul.avr-catchup-list li:last-child { border-bottom: 1px solid var(--wp--preset--color--accent-6); }
.avr-catchup-item-title { font-size: 1.125rem; line-height: 1.35; margin: 0; }
.avr-catchup-item-meta { color: var(--wp--preset--color--accent-4); font-size: .95rem; margin: 4px 0 0; }
.avr-catchup-notice { background: var(--wp--preset--color--accent-5); border: 1px solid var(--wp--preset--color--accent-6); border-radius: 12px; padding: 12px 16px; }

/* One episode. Since 0.12.1 the episode's artwork sits to the left of its show, title and length (it comes after them
   in the page, so a screen reader reaches the title first), 128 pixels square, 96 on phones, 72 at the narrowest.
   Since 0.12.3 its top lines up with the top of the heading at every width, instead of sitting centered beside it. */
.avr-catchup-head { margin: 0 0 18px; }
.avr-catchup-head.avr-has-art { display: grid; grid-template-columns: 128px minmax(0, 1fr); column-gap: 22px; align-items: start; }
.avr-catchup-head.avr-has-art .avr-catchup-headtext { grid-column: 2; grid-row: 1; min-width: 0; }
.avr-catchup-art { grid-column: 1; grid-row: 1; display: block; width: 128px; height: 128px; object-fit: cover; border-radius: 16px;
  margin-top: 3px; box-shadow: 0 0 0 1px var(--wp--preset--color--accent-6), 0 8px 22px rgba(11,31,77,.18); }
@media (max-width: 600px) {
  .avr-catchup-head.avr-has-art { grid-template-columns: 96px minmax(0, 1fr); column-gap: 16px; }
  .avr-catchup-art { width: 96px; height: 96px; border-radius: 12px; }
}
@media (max-width: 400px) {
  .avr-catchup-head.avr-has-art { grid-template-columns: 72px minmax(0, 1fr); column-gap: 12px; align-items: start; }
  .avr-catchup-art { width: 72px; height: 72px; border-radius: 10px; margin-top: 4px; }
}
.avr-catchup-show { margin: 0; font-weight: 700; }
.avr-catchup-title { margin: 6px 0 4px; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.2; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.avr-catchup-meta { color: var(--wp--preset--color--accent-4); margin: 0; }

.avr-cu { --cu-text: #FFFFFF; --cu-muted: #C9D3DE; --cu-accent: #9DB4FF; background: var(--avr-console, #0B1F4D); color: var(--cu-text);
  border-radius: 22px; padding: clamp(18px, 2.6vw, 28px); margin: 0 0 28px; max-width: 46rem;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 18px 44px rgba(0,0,0,.28); container-type: inline-size; }
.avr-cu-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.avr-cu-play { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 8.6em; min-height: 52px;
  padding: 12px 26px 12px 20px; border: 0; border-radius: 999px; cursor: pointer; background: var(--cu-accent); color: #0E1B2C;
  font-family: inherit; font-size: 1.0625rem; font-weight: 800; line-height: 1;
  box-shadow: 0 8px 20px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 0 rgba(14,27,44,.18);
  transition: background .3s ease, color .3s ease, box-shadow .3s ease, transform .15s ease; }
.avr-cu-play:hover, .avr-cu-play:focus-visible { background: #C3D2FF; transform: translateY(-2px);
  box-shadow: 0 0 0 3px rgba(222,232,255,.95), 0 0 24px rgba(124,157,255,.8), 0 12px 26px rgba(0,0,0,.42); }
.avr-cu-play:focus-visible, .avr-cu-skip:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 5px; }
.avr-cu-play .avr-ico { flex: none; width: 22px; height: 22px; fill: currentColor; }
.avr-cu-play .ico-pause { display: none; }
.avr-cu-play[data-state="playing"], .avr-cu-play[data-state="loading"] { background: linear-gradient(135deg, #3A62F0 0%, #2341B0 100%); color: #FFFFFF; }
.avr-cu-play[data-state="playing"] .ico-play, .avr-cu-play[data-state="loading"] .ico-play { display: none; }
.avr-cu-play[data-state="playing"] .ico-pause, .avr-cu-play[data-state="loading"] .ico-pause { display: inline; }
.avr-cu-play[data-state="loading"] .avr-ico { animation: avr-cu-turn 1.2s linear infinite; }
@keyframes avr-cu-turn { to { transform: rotate(360deg); } }
.avr-cu-skip { min-height: 44px; padding: 8px 16px; border-radius: 999px; cursor: pointer; background: transparent; color: var(--cu-text);
  border: 2px solid var(--cu-muted); font-family: inherit; font-size: 1rem; font-weight: 700; line-height: 1.1; }
.avr-cu-skip:hover { border-color: var(--cu-accent); background: rgba(157,180,255,.14); }
.avr-cu-seek { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin: 18px 0 14px; }
.avr-cu-seek label { color: var(--cu-text); font-weight: 700; }
.avr-cu-seek input[type="range"] { width: 100%; min-width: 0; accent-color: var(--cu-accent); height: 28px; margin: 0; }
.avr-cu-time { color: var(--cu-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.avr-cu-more label, .avr-cu-speed label { color: var(--cu-text); }
.avr-cu-speed { display: inline-flex; align-items: center; gap: 8px; }
.avr-cu select { min-height: 40px; padding: 6px 10px; border-radius: 8px; border: 2px solid var(--cu-muted); background: #0E1B2C;
  color: var(--cu-text); font-family: inherit; font-size: 1rem; }
.avr-cu-follow { display: inline-flex; align-items: center; gap: 8px; }
.avr-cu-follow input { width: 20px; height: 20px; margin: 0; accent-color: var(--cu-accent); }
/* Volume (since 0.12.1): the Home player's LED meter, 20 bars over the real range input, which stays on top with opacity 0
   so the keyboard, touch and screen readers use it as before (it says its level in words). The level is the one the
   station's player keeps in this browser, so both start where the listener left them. */
.avr-cu-vol { display: flex; align-items: center; gap: 12px; flex: 1 1 15rem; min-width: 0; max-width: 21rem; }
.avr-cu-vol label { flex: none; color: var(--cu-text); }
.avr-cu-vol-meter { position: relative; flex: 1 1 8rem; min-width: 5.5rem; max-width: 12rem; height: 32px; display: flex; align-items: center; border-radius: 8px; }
.avr-cu-vol-segs { display: flex; align-items: flex-end; gap: 3px; width: 100%; height: 26px; pointer-events: none; }
.avr-cu-vol-segs i { flex: 1; height: calc(30% + var(--h, 0) * 70%); border-radius: 2.5px; background: rgba(157,180,255,.2);
  box-shadow: inset 0 0 0 1px rgba(157,180,255,.12); transition: background .12s ease, box-shadow .12s ease; }
.avr-cu-vol-segs i.on { background: linear-gradient(180deg, #EAF1FF, #7C9DFF); box-shadow: 0 0 8px rgba(124,157,255,.6); }
.avr-cu-vol-meter input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.avr-cu-vol-meter:focus-within { outline: 3px solid #FFFFFF; outline-offset: 4px; }
.avr-cu-vol-pct { flex: none; min-width: 3.2em; color: var(--cu-muted); font-size: .95rem; font-variant-numeric: tabular-nums; }
/* The status line takes no room until it has something to say (an empty one left a band under Follow Along) */
.avr-cu-status { margin: 12px 0 0; color: var(--cu-muted); }
.avr-cu-status:empty { margin: 0; }
.avr-cu-noscript { background: var(--wp--preset--color--accent-5); border-radius: 12px; padding: 12px 16px; }
@container (max-width: 420px) {
  .avr-cu-seek { grid-template-columns: 1fr auto; }
  .avr-cu-seek label { grid-column: 1 / -1; }
  .avr-cu-play { flex: 1 1 100%; }
}
/* The narrowest players: the word Volume goes above its meter, so the row never runs past the panel's edge */
@container (max-width: 250px) {
  .avr-cu-vol { flex-wrap: wrap; row-gap: 6px; }
  .avr-cu-vol label { flex-basis: 100%; }
}
@supports not (container-type: inline-size) {
  @media (max-width: 480px) {
    .avr-cu-seek { grid-template-columns: 1fr auto; }
    .avr-cu-seek label { grid-column: 1 / -1; }
  }
  @media (max-width: 360px) {
    .avr-cu-vol { flex-wrap: wrap; row-gap: 6px; }
    .avr-cu-vol label { flex-basis: 100%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .avr-cu-play, .avr-cu-play:hover, .avr-cu-play:focus-visible { transition: none; transform: none; }
  .avr-cu-play[data-state="loading"] .avr-ico { animation: none; }
  .avr-cu-vol-segs i { transition: none; }
}

.avr-catchup-about { max-width: 65ch; margin: 0 0 28px; }
.avr-catchup-elsewhere { font-weight: 700; }

/* The transcript */
.avr-transcript { max-width: 68ch; }
/* Download Transcript (0.13.2): on the page itself, outside the dark player, so in the page's own colors, light and
   dark; the line saying where the file went is a status region that takes no room until it speaks */
.avr-transcript-save { margin: 0 0 1.2em; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.avr-transcript-save .avr-cu-save { min-height: 44px; padding: 8px 18px; border-radius: 999px; cursor: pointer; font: inherit;
  font-weight: 600; background: transparent; color: var(--wp--preset--color--contrast); border: 2px solid var(--wp--preset--color--accent-1); }
.avr-transcript-save .avr-cu-save:hover { background: color-mix(in srgb, var(--wp--preset--color--accent-1) 12%, transparent); }
.avr-transcript-save .avr-cu-save:focus-visible { outline: 3px solid var(--wp--preset--color--accent-1); outline-offset: 3px; }
.avr-cu-saved { color: var(--wp--preset--color--accent-4); font-size: .95rem; }
.avr-transcript-text p.avr-turn { margin: 0 0 1em; line-height: 1.7; }
.avr-turn-time { margin-right: 6px; padding: 1px 9px; min-height: 28px; border-radius: 999px; cursor: pointer; vertical-align: 1px;
  background: transparent; color: var(--wp--preset--color--contrast); border: 1px solid var(--wp--preset--color--accent-4);
  font-family: inherit; font-size: .85rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.5; }
.avr-turn-time:hover { background: var(--wp--preset--color--accent-5); }
.avr-speaker { font-weight: 800; }
.avr-cue { border-radius: 3px; transition: background-color .25s ease, box-shadow .25s ease; }
.avr-catchup .avr-cue { cursor: pointer; }
.avr-cue-now { background: #DCE6FF; box-shadow: 0 0 0 2px #DCE6FF; color: #0E1B2C; }
/* A web address in the words (always an https link, since 0.12.1) takes the lit words' color while they are lit */
.avr-transcript-text a { text-underline-offset: 3px; overflow-wrap: anywhere; }
.avr-cue-now a { color: inherit; }
@media (prefers-color-scheme: dark) {
  :root:not([data-avr-theme="light"]) .avr-cue-now { background: #22386B; box-shadow: 0 0 0 2px #22386B; color: #FFFFFF; }
}
:root[data-avr-theme="dark"] .avr-cue-now { background: #22386B; box-shadow: 0 0 0 2px #22386B; color: #FFFFFF; }
@media (prefers-reduced-motion: reduce) { .avr-cue { transition: none; } }
.avr-transcript-fix, .avr-transcript-none { color: var(--wp--preset--color--accent-4); font-size: .95rem; margin-bottom: 0; }
