/* Podcasts: the episode's player (player.js), Apple Podcasts' order: scrubber, times, then speed, back 15, play, forward 30. */
.episode { background: var(--surface); border-radius: var(--r-group); padding: var(--sp-3) var(--sp-4) var(--sp-2); margin: 0 0 var(--sp-5); }
.episode .scrub { width: 100%; margin: 0; accent-color: var(--accent); height: 24px; }
.episode .times { display: flex; justify-content: space-between; color: var(--sub); font-size: 13px; line-height: 18px; font-variant-numeric: tabular-nums; }
.episode .ctl { display: flex; align-items: center; justify-content: space-between; }
.episode button { width: 48px; height: 48px; border: 0; padding: 0; background: none; color: var(--text); display: grid; place-items: center; cursor: pointer; border-radius: var(--r-pill); }
.episode button svg { width: 30px; height: 30px; }
.episode .play svg { width: 40px; height: 40px; }
.episode .rate { width: 48px; font: inherit; font-size: 15px; font-weight: 600; text-align: left; justify-items: start; }
.episode button:focus-visible { outline: 4px solid color-mix(in srgb, var(--accent) 30%, transparent); }
/* Not the one playing: Play (or Resume) and Up Next, two capsules. */
.episode.cue { display: flex; gap: var(--sp-3); background: none; padding: 0; }
.episode.cue button { flex: 1; width: auto; display: flex; align-items: center; justify-content: center; gap: var(--sp-2); font: inherit; font-size: 16px; font-weight: 600; background: var(--surface); }
.episode.cue .go { background: var(--accent); color: #fff; }
.episode.cue button svg { width: 18px; height: 18px; }

/* The mini player: liquid glass like the tab bar, riding just above it. */
.mini { position: fixed; z-index: 6; left: 50%; transform: translateX(-50%); bottom: calc(max(var(--sp-4), env(safe-area-inset-bottom)) + 64px);
  width: min(358px, calc(100% - 32px)); height: 56px; display: flex; align-items: center; gap: var(--sp-1); padding: 0 var(--sp-1) 0 var(--sp-2); border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .26); backdrop-filter: blur(30px) saturate(190%) brightness(1.3); -webkit-backdrop-filter: blur(30px) saturate(190%) brightness(1.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 0 0 .5px rgba(0, 0, 0, .08), 0 8px 24px rgba(0, 0, 0, .12); }
.mini[hidden] { display: none; }
.mini .now { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--sp-3); border: 0; padding: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.mini img { flex: none; width: 40px; height: 40px; border-radius: var(--r-row); object-fit: cover; background: var(--surface); }
.mini .t { min-width: 0; display: flex; flex-direction: column; }
.mini b, .mini small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini b { font-size: 15px; line-height: 20px; }
.mini small { font-size: 13px; line-height: 18px; color: var(--sub); }
.mini > button:not(.now) { flex: none; width: 44px; height: 44px; border: 0; padding: 0; background: none; color: var(--text); display: grid; place-items: center; cursor: pointer; border-radius: var(--r-pill); }
.mini > button svg { width: 26px; height: 26px; }
body.has-mini .screen { padding-bottom: 192px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mini { background: rgba(28, 28, 30, .34); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 .5px rgba(255, 255, 255, .08), 0 8px 24px rgba(0, 0, 0, .4); } }
.episode .sleep { width: 48px; justify-items: end; font: inherit; font-size: 15px; font-weight: 600; }
.episode .sleep svg { width: 24px; height: 24px; }
.episode .sleep.on { color: var(--accent); }

/* Now Playing: a bottom sheet over a dimmed page, the app's sheet in a native dialog. */
.np { border: 0; padding: 0 var(--sp-4) var(--sp-4); width: min(680px, 100%); max-width: 100%; max-height: 92vh; margin: auto auto 0;
  border-radius: var(--r-card) var(--r-card) 0 0; background: var(--bg); color: var(--text); box-shadow: 0 -8px 32px rgba(0, 0, 0, .2); }
.np::backdrop { background: rgba(0, 0, 0, .35); }
.np-top { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; height: 56px; background: var(--bg); }
.np-top b { font-size: 17px; }
.np .done, .np .clear { height: 44px; border: 0; padding: 0; background: none; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; }
.np-ep { display: flex; align-items: center; gap: var(--sp-3); width: 100%; margin: 0 0 var(--sp-5); padding: var(--sp-3) var(--sp-4); border: 0; border-radius: var(--r-group);
  background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.np-ep img { flex: none; width: 64px; height: 64px; border-radius: var(--r-row); object-fit: cover; background: var(--line); }
.np .t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.np .t b { font-size: 16px; line-height: 22px; }
.np .t small { color: var(--sub); font-size: 13px; line-height: 18px; }
.np-label { display: flex; align-items: center; justify-content: space-between; margin: 0 var(--sp-4); color: var(--sub); font-size: 13px; }
.np-q { list-style: none; margin: 0 0 var(--sp-5); padding: 0; border-radius: var(--r-group); background: var(--surface); }
.np-q li { display: flex; align-items: center; gap: var(--sp-1); min-height: 48px; padding: var(--sp-2) var(--sp-2) var(--sp-2) var(--sp-4); box-shadow: inset 0 -.5px 0 var(--line); }
.np-q li:last-child { box-shadow: none; }
.np-q li.muted { color: var(--sub); }
.np-q button { flex: none; width: 44px; height: 44px; border: 0; padding: 0; background: none; color: var(--text); display: grid; place-items: center; border-radius: var(--r-pill); cursor: pointer; }
.np-q button svg { width: 20px; height: 20px; }
.np .episode { margin: 0; }
/* Dark: the sheet rises off the black page on the grouped surface, its cards a step lighter. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .np, :root:not([data-theme="light"]) .np-top { background: #1c1c1e; }
  :root:not([data-theme="light"]) .np .np-ep, :root:not([data-theme="light"]) .np .np-q, :root:not([data-theme="light"]) .np .episode.current { background: #2c2c2e; } }
/* Time runs left to right in every language: Apple keeps media controls unmirrored in Arabic and Hebrew. */
.episode.current, .mini > button:not(.now) { direction: ltr; }
/* The Briefing reuses the Now Playing sheet: numbered rows, the number in the accent. */
.np .acts { display: flex; gap: var(--sp-4); }
.np-q .brief-row { display: flex; width: 100%; height: auto; place-items: normal; border-radius: 0; }
.brief-row { display: flex; gap: var(--sp-3); align-items: baseline; width: 100%; border: 0; padding: var(--sp-1) 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.brief-row .num { flex: none; min-width: 24px; color: var(--accent); font-size: 22px; font-weight: 700; }
.brief-row .t small { margin-top: var(--sp-1); }
/* Your shows (player.js shows): a shelf of show art above the episodes, Apple Podcasts style */
.rows .shows { display: flex; gap: var(--sp-3); overflow-x: auto; padding: var(--sp-2) 20px var(--sp-4); scrollbar-width: none; border: 0; }
.rows .shows::-webkit-scrollbar { display: none; }
.show { flex: none; width: 112px; display: flex; flex-direction: column; gap: var(--sp-2); border: 0; padding: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.show img { width: 112px; height: 112px; border-radius: 12px; object-fit: cover; background: var(--surface); }
.show span { font-size: 13px; line-height: 18px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.np-total { color: var(--sub); font-weight: 400; margin-left: var(--sp-2); }
