/* aura-media custom styles (loaded after Tailwind CDN). */

/* Themed scrollbars — the OS default renders bright/white over the dark UI
   (e.g. the watch-page transcript panel). Dark is the default; a document with
   `data-theme="light"` on <html> gets the light set. Firefox uses the standard
   `scrollbar-*` properties; Chromium/Safari use the ::-webkit-scrollbar pseudos. */

* {
  scrollbar-width: thin;
  scrollbar-color: #3f3f46 transparent; /* thumb track */
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background-color: #3f3f46;          /* neutral-700-ish */
  border-radius: 9999px;
  border: 2px solid transparent;      /* inset the thumb so it reads as a pill */
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background-color: #52525b;          /* neutral-600 */
}
::-webkit-scrollbar-corner {
  background: transparent;
}

/* Light theme overrides. */
[data-theme="light"] {
  scrollbar-color: #c4c4cc transparent;
}
[data-theme="light"] * {
  scrollbar-color: #c4c4cc transparent;
}
[data-theme="light"] ::-webkit-scrollbar-thumb {
  background-color: #c4c4cc;          /* neutral-300-ish */
}
[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background-color: #a1a1aa;          /* neutral-400 */
}

/* =======================================================================
   Custom video/audio player (aura-player-ui.js builds the controls).
   YouTube-style: on-bar chapter segments, storyboard hover thumbnail, and a
   "most replayed" heat curve behind the scrubber.
   ======================================================================= */
.aura-player { position: relative; background: #000; overflow: hidden; }
.aura-player .aura-video { display: block; width: 100%; }
.aura-player.aura-audio { background: #0a0a0f; }
.aura-player:fullscreen { display: flex; align-items: center; justify-content: center; }
.aura-player:fullscreen .aura-video { height: 100%; width: 100%; object-fit: contain; }
.aura-player:-webkit-full-screen { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.aura-player:-webkit-full-screen .aura-video { height: 100%; width: 100%; object-fit: contain; }
.aura-player .aura-video, .aura-player .ap-controls { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
/* double-tap skip note (left or right of the picture) */
.ap-skipflash { position: absolute; top: 50%; left: 14%; transform: translate(-50%, -50%); padding: .45rem .8rem; border-radius: 9999px; background: rgba(0,0,0,.55); color: #fff; font: 600 14px/1.2 system-ui, sans-serif; opacity: 0; transition: opacity .15s ease; pointer-events: none; z-index: 3; }
.ap-skipflash.ap-skipflash-r { left: 86%; }
.ap-skipflash.show { opacity: 1; }

.ap-controls {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 12px 8px;
  background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.25) 60%, transparent);
  opacity: 0; transition: opacity .18s ease; pointer-events: none;
}
.aura-player.ap-show .ap-controls { opacity: 1; pointer-events: auto; }
.aura-audio .ap-controls {
  position: static; opacity: 1; pointer-events: auto;
  background: transparent; padding: 10px 2px 2px;
}

/* scrubber */
.ap-scrub { position: relative; height: 20px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.ap-heat { position: absolute; left: 0; right: 0; bottom: 8px; height: 18px; pointer-events: none; opacity: .55; }
.ap-heat svg { width: 100%; height: 100%; display: block; }
.ap-bar { position: relative; display: flex; align-items: center; gap: 2px; width: 100%; height: 4px; transition: height .1s ease; }
.ap-scrub:hover .ap-bar { height: 7px; }
.ap-seg { position: relative; height: 100%; overflow: hidden; border-radius: 9999px; background: rgba(255,255,255,.30); flex-grow: 1; min-width: 1px; }
.ap-buf  { position: absolute; top: 0; left: 0; height: 100%; width: 0; background: rgba(255,255,255,.45); }
.ap-play { position: absolute; top: 0; left: 0; height: 100%; width: 0; background: #f43f5e; }
.ap-knob { position: absolute; top: 50%; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 9999px; background: #f43f5e; transform: translateY(-50%) scale(0); transition: transform .1s ease; pointer-events: none; }
.ap-scrub:hover .ap-knob { transform: translateY(-50%) scale(1); }

/* hover thumbnail + tooltip */
.ap-thumb { position: absolute; bottom: 50px; width: 160px; height: 90px; border: 2px solid #fff; border-radius: 5px; background-repeat: no-repeat; box-shadow: 0 6px 18px rgba(0,0,0,.55); display: none; pointer-events: none; z-index: 2; }
.ap-tip { position: absolute; bottom: 26px; background: rgba(0,0,0,.85); color: #fff; font: 600 9.5px/1.3 inherit; padding: 2px 6px; border-radius: 4px; white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; display: none; pointer-events: none; z-index: 3; }
.ap-thumb.show, .ap-tip.show { display: block; }

/* button row */
.ap-row { display: flex; align-items: center; gap: 12px; margin-top: 6px; color: #fff; }
.aura-audio .ap-row { color: #e5e5e5; }
.ap-btn { background: none; border: 0; color: inherit; cursor: pointer; padding: 0; display: inline-flex; opacity: .9; }
.ap-btn:hover { opacity: 1; }
.ap-btn svg { width: 22px; height: 22px; }
.ap-skip svg { width: 24px; height: 24px; }
@media (pointer: coarse) { .ap-row { gap: 14px; } .ap-btn { min-width: 32px; min-height: 32px; align-items: center; justify-content: center; } }
.ap-cc.active { opacity: 1; box-shadow: inset 0 -2px 0 var(--accent, #f43f5e); }
.ap-time { font-variant-numeric: tabular-nums; font-size: 12.5px; color: #e5e5e5; }
.ap-spacer { flex: 1; }
.ap-chap { font-size: 12px; color: #e5e5e5; max-width: 40%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; opacity: .85; }

/* settings menu (YouTube-style: main panel -> playback speed / quality).
   Anchored to the .aura-player root so it grows to its content, capped just
   short of the player's top edge. */
.aura-player { position: relative; }
.ap-menu { position: absolute; right: 10px; bottom: 64px; min-width: 15rem; max-height: calc(100% - 84px); overflow-y: auto; background: rgba(13,16,21,.96); border: 1px solid #2a3340; border-radius: 10px; padding: 8px; display: none; z-index: 4; font-size: 13px; color: #e7ecf3; }
.ap-menu.show { display: block; }
.aura-audio .ap-menu { bottom: 44px; }
.ap-menu-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 8px 10px; background: none; border: 0; color: inherit; font: inherit; text-align: left; border-radius: 6px; cursor: pointer; }
.ap-menu-item:hover { background: #1b222c; }
.ap-menu-side { color: #8b95a3; font-size: 12px; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.ap-menu-side .chev { font-size: 15px; line-height: 1; }
.ap-menu-item .check { visibility: hidden; color: #f43f5e; font-size: 13px; }
.ap-menu-item.active .check { visibility: visible; }
.ap-menu-head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px 8px; background: none; border: 0; border-bottom: 1px solid #1b222c; color: inherit; font: inherit; font-weight: 600; text-align: left; cursor: pointer; margin-bottom: 6px; }
.ap-menu-head .chev { font-size: 17px; line-height: 1; color: #8b95a3; }
.ap-menu-head:hover .chev { color: #e7ecf3; }
.ap-menu-value { text-align: center; font-size: 15px; font-weight: 600; padding: 6px 0 2px; font-variant-numeric: tabular-nums; }
.ap-speed-slider { display: flex; align-items: center; gap: 8px; padding: 6px 8px 8px; }
.ap-speed-slider input[type=range] { flex: 1; accent-color: #f43f5e; min-width: 0; }
.ap-mini-btn { flex: none; width: 26px; height: 26px; border-radius: 9999px; border: 0; background: #1b222c; color: #e7ecf3; font-size: 15px; line-height: 1; cursor: pointer; }
.ap-mini-btn:hover { background: #2a3340; }
.ap-chips { display: flex; justify-content: center; gap: 6px; padding: 4px 8px 8px; flex-wrap: wrap; }
.ap-chip { border: 0; border-radius: 9999px; background: #1b222c; color: #e7ecf3; padding: 5px 12px; font: inherit; font-size: 12.5px; cursor: pointer; font-variant-numeric: tabular-nums; }
.ap-chip:hover { background: #2a3340; }
.ap-chip.active { background: #f43f5e; color: #07090d; font-weight: 600; }
.ap-search-wrap { padding: 8px 8px 6px; }
.ap-search-field { display: flex; align-items: center; gap: 7px; padding: 6px 12px; background: #131920; border: 1px solid #2a3340; border-radius: 999px; transition: border-color .15s; }
.ap-search-field:focus-within { border-color: #f43f5e; }
.ap-search-mag { width: 15px; height: 15px; color: #8b95a3; flex: none; }
.ap-search-input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; -webkit-appearance: none; appearance: none; box-shadow: none; color: #e7ecf3; font: inherit; font-size: 13px; }
.ap-search-input::placeholder { color: #8b95a3; }
.ap-search-results { max-height: 240px; overflow-y: auto; padding: 0 4px 4px; }
.ap-search-item { display: flex; gap: 8px; align-items: baseline; width: 100%; text-align: left; background: none; border: 0; color: #e7ecf3; padding: 7px 8px; border-radius: 6px; cursor: pointer; font: inherit; }
.ap-search-item:hover { background: #1b222c; }
.ap-search-ts { flex: none; color: #f43f5e; font-variant-numeric: tabular-nums; font-size: 12px; min-width: 44px; }
.ap-search-text { flex: 1; font-size: 12.5px; line-height: 1.35; color: #cdd6e0; }
.ap-search-item mark { background: #f43f5e; color: #07090d; border-radius: 2px; padding: 0 1px; }
.ap-search-hint { padding: 8px 10px; color: #8b95a3; font-size: 12.5px; }

/* =======================================================================
   Stream I — the listen page (audio as a CMS format). The stage behind the
   audio player is drawn in AMPLIFI CI colours only, from amplifi-ci
   tokens.css: coral #ff695e, violet #8a88f3, ink #12121e, soft pause #f7f1f1
   (AMPLIFI's site carries the tokens; a tenant page uses the same values).
   Ink in dark, soft pause in light; the five pattern ids are fixed
   (waves, dots, grid, rings, gradient), shared with aura-cms.
   ======================================================================= */
.aura-player audio.aura-video { display: none; }
.aura-player.aura-listen { background: var(--surface, #0a0a0f); color: var(--fg, #e5e5e5); border: 1px solid var(--border, #1b222c); border-radius: 12px; }
.listen-stage {
  --ls-bg: var(--brand-ink, #12121e); --ls-a: var(--brand-coral, #ff695e); --ls-b: var(--brand-violet, #8a88f3);
  position: relative; overflow: hidden; aspect-ratio: 16 / 7; display: flex; align-items: center; justify-content: center;
  background: var(--ls-bg);
}
:root[data-theme=light] .listen-stage { --ls-bg: var(--brand-soft-pause, #f7f1f1); }
@media (prefers-color-scheme: light) { :root:not([data-theme=dark]) .listen-stage { --ls-bg: var(--brand-soft-pause, #f7f1f1); } }
.listen-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.listen-pattern { position: absolute; inset: -96px; background-color: var(--ls-bg); }
/* waves: a sine stroke as a mask over each CI colour, the violet row half a period on */
.listen-pat-waves .listen-pattern::before, .listen-pat-waves .listen-pattern::after {
  content: ""; position: absolute; inset: 0; background-color: var(--ls-a);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='36'%3E%3Cpath d='M0 9 Q24 1 48 9 T96 9' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") 0 0 / 96px 36px repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='36'%3E%3Cpath d='M0 9 Q24 1 48 9 T96 9' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") 0 0 / 96px 36px repeat;
}
.listen-pat-waves .listen-pattern::after { background-color: var(--ls-b); -webkit-mask-position: 48px 18px; mask-position: 48px 18px; }
.listen-pat-dots .listen-pattern {
  background-image: radial-gradient(var(--ls-a) 2px, transparent 2.5px), radial-gradient(var(--ls-b) 2px, transparent 2.5px);
  background-size: 24px 24px; background-position: 0 0, 12px 12px;
}
.listen-pat-grid .listen-pattern {
  background-image: linear-gradient(var(--ls-b) 2px, transparent 2px), linear-gradient(90deg, var(--ls-a) 2px, transparent 2px);
  background-size: 48px 48px;
}
.listen-pat-rings .listen-pattern {
  background-image: repeating-radial-gradient(circle at 50% 50%, transparent 0 22px, var(--ls-a) 22px 24px, transparent 24px 46px, var(--ls-b) 46px 48px);
}
.listen-pat-gradient .listen-pattern { background-image: linear-gradient(135deg, var(--ls-a), var(--ls-b)); background-size: 200% 200%; }
.aura-listen.is-playing .listen-pattern { animation: listen-drift 12s linear infinite; }
.aura-listen.is-playing .listen-pat-rings .listen-pattern { animation: listen-pulse 4s ease-in-out infinite alternate; }
.aura-listen.is-playing .listen-pat-gradient .listen-pattern { animation: listen-shift 12s ease-in-out infinite alternate; }
@keyframes listen-drift { to { transform: translate3d(96px, 0, 0); } }
@keyframes listen-pulse { to { transform: scale(1.08); } }
@keyframes listen-shift { to { background-position: 100% 100%; } }
@media (prefers-reduced-motion: reduce) { .aura-listen .listen-pattern { animation: none !important; } }
.listen-art { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.listen-poster { width: clamp(96px, 30%, 220px); aspect-ratio: 1; border-radius: 14px; object-fit: cover; }
.listen-poster-ci { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--ls-a), var(--ls-b)); color: var(--brand-ink, #12121e); }
.listen-poster-ci svg { width: 42%; height: 42%; }
.listen-pat-gradient .listen-poster-ci { background: var(--ls-bg); color: var(--ls-a); }
.listen-wave { position: absolute; left: 4%; bottom: 10%; width: 92%; height: auto; max-height: 70%; object-fit: contain; }
.aura-listen .ap-controls { padding: 10px 14px 12px; }
.aura-listen .ap-row, .aura-listen .ap-time, .aura-listen .ap-chap { color: var(--fg, #e5e5e5); }
.aura-listen .ap-seg { background: var(--border2, rgba(255,255,255,.30)); }
.aura-listen .ap-buf { background: var(--muted, rgba(255,255,255,.45)); }
.aura-player :is(.ap-btn, .ap-scrub):focus-visible, .aura-player[data-aura-player]:focus-visible { outline: 2px solid var(--accent, #f43f5e); outline-offset: 2px; }

/* the listen page's audio pre-roll (ads::audio_preroll) */
.ads-preroll-audio { position: absolute; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; background: var(--brand-ink, #12121e); color: var(--brand-soft-pause, #f7f1f1); }
.ads-preroll-audio [hidden] { display: none !important; }
.apa-tag { position: absolute; top: 10px; left: 10px; font-size: 11px; letter-spacing: .05em; padding: 2px 8px; border: 1px solid currentColor; border-radius: 4px; }
.apa-play { width: 72px; height: 72px; border: 0; border-radius: 50%; background: var(--brand-coral, #ff695e); color: var(--brand-ink, #12121e); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.apa-play svg { width: 32px; height: 32px; margin-left: 4px; }
.apa-link { position: absolute; left: 10px; bottom: 10px; color: inherit; font-size: 13px; }
.apa-skip { position: absolute; right: 10px; bottom: 10px; padding: 6px 12px; border: 1px solid currentColor; border-radius: 6px; background: none; color: inherit; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ads-preroll-audio :is(button, a):focus-visible { outline: 2px solid var(--brand-coral, #ff695e); outline-offset: 2px; }

/* time positions — the share menu, chapter links and moments (watch pages) */
.act-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.actionbar { position: relative; }
.share-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; min-width: 15rem; padding: 6px; border-radius: 10px; background: var(--surface, #0d1117); border: 1px solid var(--border2, #2a3340); }
.share-item { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: none; color: var(--fg, #e7ecf3); font: inherit; font-size: .9rem; text-align: left; cursor: pointer; }
.share-item:hover, .share-item:focus-visible { background: var(--surface2, #1b222c); outline: none; }
.chip-wrap { display: inline-flex; align-items: center; gap: 2px; }
/* STU-A2-35 — show notes on the watch and listen pages */
.show-notes { line-height: 1.55; overflow-wrap: anywhere; }
.show-notes p, .show-notes li { white-space: pre-line; }
.show-notes p { margin: 0 0 .75rem; }
.show-notes a { color: var(--site-accent-text, var(--accent, #f43f5e)); text-decoration: underline; text-underline-offset: 2px; }
.show-notes a.notes-ts { font-variant-numeric: tabular-nums; text-decoration: none; font-weight: 600; }
.show-notes a.notes-ts:hover, .show-notes a.notes-ts:focus-visible { text-decoration: underline; }
.show-notes img { max-width: 100%; height: auto; }
.watch .summary .ai-badge { margin-right: .35rem; vertical-align: .1em; }
.watch .paid-promo { display: inline-flex; align-items: center; gap: .4rem; margin: .75rem 0 0; padding: .3rem .7rem; border: 1px solid var(--border, #1b222c); border-radius: 999px; background: var(--surface2, #1b222c); color: var(--fg, #e7ecf3); font-size: .85rem; font-weight: 600; }
.watch .paid-promo svg { width: 15px; height: 15px; flex: none; }
.watch .also-on { margin: .75rem 0 0; font-size: .9rem; }
.watch .also-on a { color: var(--fg, #e7ecf3); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.chip-link, .moment-copy, .moment-del { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--muted2, #aab4c0); cursor: pointer; }
.chip-link svg, .moment-copy svg, .moment-del svg { width: 15px; height: 15px; }
.chip-link:hover, .chip-link:focus-visible, .moment-copy:hover, .moment-copy:focus-visible, .moment-del:hover, .moment-del:focus-visible { color: var(--fg, #e7ecf3); background: var(--surface2, #1b222c); outline: none; }
.chip-link.act-ok, .moment-copy.act-ok { color: var(--accent, #f43f5e); }
.wp-moments { margin: 1.25rem 0 0; }
.moment-save { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.moment-label-in { flex: 1 1 12rem; min-width: 0; padding: .45rem .7rem; border: 1px solid var(--border2, #2a3340); border-radius: 8px; background: var(--surface, transparent); color: var(--fg, inherit); font: inherit; font-size: .9rem; }
.moment-btn { display: inline-flex; align-items: center; padding: .45rem .9rem; border: 1px solid var(--accent, #f43f5e); border-radius: 999px; background: none; color: var(--fg, inherit); font: inherit; font-size: .9rem; font-weight: 600; text-decoration: none; cursor: pointer; }
.moment-btn:hover, .moment-btn:focus-visible { background: var(--surface2, #1b222c); }
.moments { list-style: none; padding: 0; margin: .6rem 0 0; display: flex; flex-direction: column; gap: .25rem; }
.moment { display: flex; align-items: center; gap: .25rem; }
.moment-seek { flex: 1; display: flex; gap: .6rem; align-items: baseline; min-width: 0; padding: .35rem .5rem; border: 0; border-radius: 6px; background: none; color: var(--fg, inherit); font: inherit; font-size: .9rem; text-align: left; cursor: pointer; }
.moment-seek:hover, .moment-seek:focus-visible { background: var(--surface2, #1b222c); }
.moment-ts { flex: none; font-variant-numeric: tabular-nums; color: var(--site-accent-text, var(--accent, #f43f5e)); }
.moment-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.moments-empty, .moments-signin { margin: .5rem 0 0; color: var(--muted2, #aab4c0); font-size: .9rem; }

/* ============================================================================
 * Legacy pages (/library, /upload, /processing, /admin/roles): a neutral dark UI on
 * near-black. These answer on every host, so no brand colour here. */
.bg-neutral-950, .bg-black { background-color: #07090d !important; }
.bg-neutral-950\/95 { background-color: rgba(7, 9, 13, 0.95) !important; }
.bg-neutral-900 { background-color: #0d1117 !important; }
.bg-neutral-800 { background-color: #131920 !important; }
.border-neutral-800, .border-neutral-700 { border-color: #1b2430 !important; }
.bg-indigo-600, .bg-indigo-500 { background-color: #e5e7eb !important; color: #07090d !important; }
.hover\:bg-indigo-500:hover, .hover\:bg-indigo-400:hover, .hover\:bg-indigo-700:hover { background-color: #f3f4f6 !important; }
.text-indigo-400, .text-indigo-500, .text-indigo-300 { color: #e5e7eb !important; }
.ring-indigo-500, .focus\:ring-indigo-500:focus { --tw-ring-color: #e5e7eb !important; }
/* teal/green accents for media states stay on-brand */
.text-emerald-400, .text-green-400 { color: #2dd4bf !important; }

/* ── Aura typeface — Inter ─────────────────────────────────────────────
   Served locally from /static/fonts (no CDN). One variable woff2 per style
   covers weights 100–900. `!important` so it wins over the Tailwind CDN
   preflight that also sets the html font-family. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/static/fonts/inter-latin-wght-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('/static/fonts/inter-latin-wght-italic.woff2') format('woff2');
}
html, body, button, input, select, textarea {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* STU-F1-11 chapters, podcast mode only */
.chip-frame { flex: none; display: block; border-radius: 4px; background-repeat: no-repeat; }
.wp-chapters .chip-wrap.is-playing .chip { border-color: var(--accent); }
.wp-chapters .chip-wrap.is-playing .chip-ts::before { content: "\25B6\00a0"; font-size: .7em; }
.ap-btn[hidden] { display: none; }
.listen-chapter { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; padding: 4px 10px; border-radius: 999px; width: fit-content; max-width: calc(100% - 24px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; background: var(--brand-ink, #12121e); color: #fff; }
.listen-chapter[hidden] { display: none; }
.ap-help { position: absolute; z-index: 5; right: 12px; bottom: 56px; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 12px 14px; border-radius: 8px; font-size: 12px; background: var(--brand-ink, #12121e); color: #fff; }
.ap-help kbd { font: inherit; opacity: .85; white-space: nowrap; }
