/* ============================================================
   Public Stories — library (/stories), series page and the episode reader.
   Uses site.css tokens (--navy, --orange, --font-main, --font-display…). Ported from Techage Academy.
   ============================================================ */

/* Components below set display: grid/flex, which would beat the hidden attribute. */
.rd [hidden], .st-block[hidden], .st-follow [hidden], .st-card[hidden], .st-done[hidden] { display: none !important; }

.st-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.st-h { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; color: var(--dark-text); margin: 0; }
.st-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: linear-gradient(150deg, var(--navy-dark) 0%, var(--navy) 60%, #2a36c2 100%); color: var(--orange); font-family: var(--font-display); font-weight: 900; font-size: 3rem; }
.st-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 50px; font-size: .7rem; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.st-pill.ongoing, .st-pill.new { background: #e7f6ef; color: #0e7a55; }
.st-pill.completed { background: rgba(0,0,128,.08); color: var(--navy); }
.st-pill.featured { background: rgba(255,165,0,.18); color: #8a5300; }
.st-pill.new { background: var(--orange); color: var(--navy); }

/* ── Library hero (featured story) ── */
.st-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy-dark), var(--navy)); color: #fff; padding: 56px 0; }
.st-hero-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(36px) saturate(1.2); opacity: .35; }
.st-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,64,.92) 0%, rgba(0,0,96,.7) 60%, rgba(0,0,96,.45) 100%); }
.st-hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: center; }
.st-hero-cover { aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.45); transform: rotate(-2deg); transition: transform .35s; }
.st-hero-cover:hover { transform: rotate(0) scale(1.02); }
.st-hero-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-kicker { color: var(--orange-light); font-size: .76rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 10px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.st-hero h1, .st-hero h2 { font-family: var(--font-display); font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 900; line-height: 1.08; margin: 0 0 12px; color: #fff; }
.st-hero h2 a { color: #fff; }
.st-tagline { font-size: 1.15rem; color: var(--orange-light); margin: 0 0 12px; font-style: italic; }
.st-hero .st-syn { color: rgba(255,255,255,.8); max-width: 640px; margin: 0 0 22px; }
.st-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.st-hero .pbtn-outline { border-color: rgba(255,255,255,.5); color: #fff; }
.st-hero .pbtn-outline:hover { background: #fff; color: var(--navy); }
.st-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0 0 22px; font-size: .88rem; color: rgba(255,255,255,.82); }
.st-facts i { color: var(--orange); margin-right: 5px; }
.st-crumbs { font-size: .82rem; color: rgba(255,255,255,.65); margin-bottom: 14px; display: flex; gap: 8px; }
.st-crumbs a { color: rgba(255,255,255,.85); }
.st-crumbs a:hover { color: var(--orange-light); }
@media (max-width: 760px) {
    .st-hero { padding: 36px 0; }
    .st-hero-in { grid-template-columns: 1fr; gap: 24px; text-align: center; }
    .st-hero-cover { width: 170px; margin: 0 auto; }
    .st-kicker, .st-actions, .st-facts, .st-crumbs { justify-content: center; }
    .st-hero .st-syn { margin-left: auto; margin-right: auto; }
}

/* ── Library grid ── */
.st-block { padding: 48px 0; }
.st-libhead { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.st-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.st-chip { border: 1.5px solid var(--border); background: #fff; color: var(--dark-text); padding: 6px 14px; border-radius: 50px; font-size: .8rem; font-weight: 600; cursor: pointer; font-family: var(--font-main); }
.st-chip:hover { border-color: var(--navy); color: var(--navy); }
.st-chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 26px 22px; }
.st-card { display: flex; flex-direction: column; color: var(--dark-text); }
.st-cover { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; box-shadow: var(--card-shadow); transition: transform .25s, box-shadow .25s; }
.st-card:hover .st-cover { transform: translateY(-4px); box-shadow: var(--card-hover); }
.st-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-cover .st-pill { position: absolute; top: 10px; left: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.st-card-copy { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 3px; }
.st-card-copy small { color: var(--muted); font-size: .76rem; }
.st-card-copy .st-genre { color: var(--orange-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; font-size: .7rem; }
.st-card-copy b { font-family: var(--font-display); font-size: 1.08rem; line-height: 1.25; }
.st-card:hover b { color: var(--navy); }
.st-card-tag { font-size: .84rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 520px) { .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; } }

/* Continue reading */
.st-continue { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.st-cont { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: var(--dark-text); box-shadow: var(--card-shadow); transition: box-shadow .2s; }
.st-cont:hover { box-shadow: var(--card-hover); }
.st-cont img, .st-cont .st-ph { width: 52px; height: 70px; border-radius: 8px; object-fit: cover; flex-shrink: 0; font-size: 1.4rem; }
.st-cont > span { flex: 1; min-width: 0; }
.st-cont small { color: var(--muted); font-size: .76rem; display: block; }
.st-cont b { display: block; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-cont-bar { display: block; height: 5px; background: var(--light-bg); border-radius: 5px; margin-top: 8px; overflow: hidden; }
.st-cont-bar i { display: block; height: 100%; background: var(--orange); border-radius: 5px; }
.st-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.st-empty i { font-size: 2.6rem; color: var(--border); display: block; margin-bottom: 14px; }
.st-empty b { display: block; color: var(--dark-text); font-size: 1.1rem; margin-bottom: 4px; }

/* ── Series page ── */
.st-series { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .st-series { grid-template-columns: 1fr; } }
.st-next { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 10px; background: #fff7e6; color: #7a4a00; margin: 0 0 16px; font-size: .9rem; }
.st-eps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.st-eps a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; color: var(--dark-text); background: #fff; transition: border-color .2s, box-shadow .2s, transform .2s; }
.st-eps a:hover { border-color: var(--navy); box-shadow: var(--card-shadow); transform: translateX(3px); }
.st-epn { flex: 0 0 44px; height: 44px; border-radius: 10px; background: rgba(0,0,128,.07); color: var(--navy); font-family: var(--font-display); font-weight: 900; font-size: 1.05rem; display: grid; place-items: center; }
.st-epcopy { flex: 1; min-width: 0; }
.st-epcopy b { display: block; }
.st-epcopy small { color: var(--muted); font-size: .8rem; }
.st-eps a.is-read .st-epn { background: #e7f6ef; color: #0e7a55; }
.st-eps a.is-read b { color: var(--muted); font-weight: 600; }
.st-done { color: #0e7a55; }
.st-about { position: sticky; top: 90px; display: grid; gap: 18px; }
.st-panel { border: 1px solid var(--border); border-radius: 14px; padding: 20px; background: #fff; box-shadow: var(--card-shadow); }
.st-panel h3 { font-family: var(--font-display); font-size: 1.05rem; margin: 0 0 10px; color: var(--navy); }
.st-panel .st-syn { color: #374151; line-height: 1.75; margin: 0; }
.st-follow p { color: var(--muted); font-size: .86rem; margin: 0 0 12px; }
.st-follow form { display: grid; gap: 8px; }
.st-follow .pbtn { justify-content: center; }
.st-follow-ok { display: flex; gap: 10px; align-items: flex-start; color: #0e7a55; background: #e7f6ef; border-radius: 10px; padding: 12px; font-size: .88rem; }
.st-btnlike { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }

/* ── Reader ── */
.rd { --rd-bg: #fbfaf7; --rd-paper: #ffffff; --rd-text: #1f2333; --rd-muted: #6b7280; --rd-line: #e8e5dc; --rd-accent: var(--navy); --rd-quote: #fff6e3; --rd-size: 1.13rem; --rd-lh: 1.85; --rd-width: 700px;
    background: var(--rd-bg); color: var(--rd-text); min-height: 70vh; padding-bottom: 80px; transition: background .25s, color .25s; }
.rd[data-theme="sepia"] { --rd-bg: #f4ecd8; --rd-paper: #f8f1df; --rd-text: #433422; --rd-muted: #7d6a52; --rd-line: #e2d5b8; --rd-accent: #8a4b14; --rd-quote: #efe2c3; }
.rd[data-theme="night"] { --rd-bg: #12131c; --rd-paper: #181a26; --rd-text: #dfe1ea; --rd-muted: #9196ab; --rd-line: #2a2d3d; --rd-accent: #ffb733; --rd-quote: #222536; }
.rd[data-size="s"] { --rd-size: 1rem; } .rd[data-size="l"] { --rd-size: 1.27rem; } .rd[data-size="xl"] { --rd-size: 1.42rem; }
.rd[data-space="tight"] { --rd-lh: 1.6; } .rd[data-space="loose"] { --rd-lh: 2.1; }
.rd[data-width="wide"] { --rd-width: 860px; }
.rd[data-font="sans"] .rd-body { font-family: var(--font-main); }
.rd-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1001; pointer-events: none; }
.rd-progress i { display: block; height: 100%; width: 0; background: var(--orange); transition: width .1s linear; }
.rd-col { max-width: var(--rd-width); margin: 0 auto; padding: 0 22px; }

.rd-bar { position: sticky; top: 64px; z-index: 90; background: color-mix(in srgb, var(--rd-bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rd-line); }
.rd-bar-in { max-width: 1100px; margin: 0 auto; padding: 8px 22px; display: flex; align-items: center; gap: 10px; position: relative; }
.rd-back { display: flex; align-items: center; gap: 8px; color: var(--rd-text); font-weight: 600; font-size: .9rem; min-width: 0; margin-right: auto; }
.rd-back span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-back:hover { color: var(--rd-accent); }
.rd-tools { display: flex; gap: 6px; flex-shrink: 0; }
.rd-tbtn { height: 36px; min-width: 36px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--rd-line); background: var(--rd-paper); color: var(--rd-text); display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; font: 600 .84rem var(--font-main); }
.rd-tbtn:hover, .rd-tbtn[aria-expanded="true"], .rd-tbtn[aria-pressed="true"] { border-color: var(--rd-accent); color: var(--rd-accent); }
.rd-pop { position: absolute; right: 22px; top: calc(100% + 6px); width: min(340px, calc(100vw - 32px)); background: var(--rd-paper); color: var(--rd-text); border: 1px solid var(--rd-line); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.18); padding: 16px; display: grid; gap: 14px; z-index: 5; }
.rd-pop > div > span, .rd-pop label { display: block; font-size: .74rem; font-weight: 700; color: var(--rd-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.rd-seg { display: flex; border: 1px solid var(--rd-line); border-radius: 9px; overflow: hidden; }
.rd-seg button { flex: 1; padding: 7px 6px; border: 0; background: transparent; color: var(--rd-text); cursor: pointer; font: 600 .8rem var(--font-main); }
.rd-seg button + button { border-left: 1px solid var(--rd-line); }
.rd-seg button[aria-pressed="true"] { background: var(--rd-accent); color: var(--rd-paper); }
.rd-seg[data-set="size"] button:nth-child(1) { font-size: .72rem; } .rd-seg[data-set="size"] button:nth-child(3) { font-size: .95rem; } .rd-seg[data-set="size"] button:nth-child(4) { font-size: 1.1rem; }
.rd-seg[data-set="theme"] button[data-v="light"] { background: #fff; color: #222; } .rd-seg[data-set="theme"] button[data-v="sepia"] { background: #f4ecd8; color: #433422; } .rd-seg[data-set="theme"] button[data-v="night"] { background: #181a26; color: #dfe1ea; }
.rd-seg[data-set="theme"] button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--orange); }
.rd-pop select { width: 100%; padding: 7px 8px; border-radius: 8px; border: 1px solid var(--rd-line); background: var(--rd-paper); color: var(--rd-text); font: .84rem var(--font-main); }
.rd-scenes-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 50vh; overflow: auto; }
.rd-scenes-list button { width: 100%; display: flex; gap: 10px; align-items: center; text-align: left; padding: 8px; border: 0; border-radius: 9px; background: transparent; color: var(--rd-text); cursor: pointer; font: .88rem var(--font-main); }
.rd-scenes-list button:hover:not(:disabled) { background: var(--rd-quote); }
.rd-scenes-list button.is-current { background: var(--rd-quote); font-weight: 700; }
.rd-scenes-list button:disabled { opacity: .45; cursor: not-allowed; }
.rd-scenes-list small { display: block; color: var(--rd-muted); font-size: .72rem; }
.rd-scn { flex: 0 0 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--rd-quote); font-weight: 800; font-size: .76rem; }
.rd-scenes-list .is-done .rd-scn { background: #e7f6ef; color: #0e7a55; }
.rd-lock { margin-left: auto; color: var(--rd-muted); display: none; }
button:disabled > .rd-lock { display: inline; }

.rd-head { text-align: center; padding: 48px 0 26px; }
.rd-series { display: inline-flex; align-items: center; gap: 10px; color: var(--rd-muted); font-weight: 600; font-size: .9rem; }
.rd-series img { width: 30px; height: 40px; border-radius: 5px; object-fit: cover; }
.rd-series:hover { color: var(--rd-accent); }
.rd-kicker { color: var(--orange-dark); font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; font-size: .8rem; margin: 18px 0 6px; }
.rd[data-theme="night"] .rd-kicker { color: var(--orange); }
.rd-head h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 5vw, 2.8rem); line-height: 1.12; margin: 0 0 14px; color: var(--rd-text); }
.rd-meta { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; color: var(--rd-muted); font-size: .86rem; }
.rd-meta i { margin-right: 5px; }

.rd-strip { margin: 0 auto 26px; }
.rd-strip ol { list-style: none; display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 0; scroll-behavior: smooth; scrollbar-width: thin; }
.rd-strip button { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; max-width: 220px; padding: 7px 12px 7px 7px; border-radius: 50px; border: 1px solid var(--rd-line); background: var(--rd-paper); color: var(--rd-text); cursor: pointer; font: 600 .8rem var(--font-main); }
.rd-strip button.is-current { border-color: var(--rd-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--rd-accent) 25%, transparent); }
.rd-strip button:disabled { opacity: .5; cursor: not-allowed; }
.rd-strip-n { width: 26px; height: 26px; border-radius: 50%; background: var(--rd-quote); display: grid; place-items: center; font-size: .74rem; flex-shrink: 0; }
.rd-strip .is-done .rd-strip-n { background: #e7f6ef; color: #0e7a55; }
.rd-strip-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rd-body { font-family: Georgia, 'Iowan Old Style', 'Times New Roman', serif; font-size: var(--rd-size); line-height: var(--rd-lh); color: var(--rd-text); }
.rd-body p { margin: 0 0 1em; }
.rd-body strong { color: var(--rd-accent); font-weight: 700; }
.rd-body blockquote { margin: 0 0 1.1em; padding: 12px 20px; border-left: 3px solid var(--orange); background: var(--rd-quote); border-radius: 0 10px 10px 0; font-style: italic; }
.rd-body blockquote p:last-child { margin: 0; }
.rd-body hr { border: 0; height: auto; text-align: center; margin: 1.8em 0; }
.rd-body hr::after { content: '\2042'; color: var(--rd-muted); letter-spacing: .4em; font-size: 1.1rem; }
.rd-scene + .rd-scene { margin-top: 2.6em; }
.rd-scene-head { text-align: center; margin: 0 0 1.6em; padding-top: .4em; }
.rd-scene-n { display: block; font-family: var(--font-main); font-size: .74rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange-dark); }
.rd[data-theme="night"] .rd-scene-n { color: var(--orange); }
.rd-scene-head h2 { font-family: var(--font-display); font-size: 1.5em; line-height: 1.2; margin: 6px 0 4px; color: var(--rd-text); outline: none; }
.rd-scene-min { font-family: var(--font-main); font-size: .78rem; color: var(--rd-muted); }
.rd-scene.is-new { animation: rdIn .45s ease both; }
.rd-scene.is-new.is-back { animation-name: rdBack; }
@keyframes rdIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes rdBack { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.rd-speaking { background: color-mix(in srgb, var(--orange) 18%, transparent); border-radius: 6px; box-shadow: 0 0 0 6px color-mix(in srgb, var(--orange) 18%, transparent); }
.rd.is-listening .rd-body p, .rd.is-listening .rd-body blockquote { cursor: pointer; }

.rd-step { text-align: center; margin: 2.4em 0 0; padding: 24px 18px; border: 1px solid var(--rd-line); border-radius: 16px; background: var(--rd-paper); }
.rd-dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.rd-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--rd-line); transition: all .25s; }
.rd-dots i.on { background: #0e7a55; }
.rd-dots i.next { background: var(--orange); width: 22px; border-radius: 6px; }
.rd-step-k { font-weight: 800; margin: 0 0 4px; color: var(--rd-text); }
.rd-step-next { color: var(--rd-muted); margin: 0 0 16px; font-size: .92rem; }
.rd-step-btns { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.rd-step .pbtn-outline { border-color: var(--rd-line); color: var(--rd-text); }
.rd-step .pbtn-outline:hover { background: var(--rd-quote); color: var(--rd-text); }
.rd-step-tip { font-size: .78rem; color: var(--rd-muted); margin: 14px 0 6px; }
.rd-step-all { background: none; border: 0; color: var(--rd-accent); text-decoration: underline; cursor: pointer; font: .82rem var(--font-main); }

.rd-end { text-align: center; margin: 3em 0 1.6em; color: var(--rd-muted); font-family: var(--font-main); font-size: .8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; display: flex; align-items: center; gap: 14px; }
.rd-end::before, .rd-end::after { content: ''; flex: 1; height: 1px; background: var(--rd-line); }
.rd-note { border: 1px dashed var(--rd-line); border-radius: 14px; padding: 18px 20px; margin: 0 0 26px; background: var(--rd-paper); }
.rd-note b { display: flex; gap: 8px; align-items: center; color: var(--rd-accent); margin-bottom: 6px; }
.rd-note p { margin: 0; color: var(--rd-text); font-style: italic; }
.rd-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.rd-navcard { display: block; padding: 16px 18px; border: 1px solid var(--rd-line); border-radius: 14px; background: var(--rd-paper); color: var(--rd-text); transition: border-color .2s, transform .2s; }
a.rd-navcard:hover { border-color: var(--rd-accent); transform: translateY(-2px); }
.rd-navcard small { display: block; color: var(--rd-muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .6px; font-weight: 700; margin-bottom: 4px; }
.rd-navcard b { display: block; line-height: 1.35; }
.rd-next { text-align: right; background: var(--navy); border-color: var(--navy); color: #fff; }
.rd-next small { color: var(--orange-light); }
.rd[data-theme="night"] .rd-next { background: #23264a; border-color: #34386a; }
.rd-caught { grid-column: 2; text-align: right; }
.rd-caught a { display: inline-block; margin-top: 8px; color: var(--rd-accent); font-weight: 600; font-size: .86rem; }
.rd-all { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.rd .pbtn-outline { border-color: var(--rd-line); color: var(--rd-text); }
.rd .pbtn-outline:hover { background: var(--rd-quote); color: var(--rd-text); }
@media (max-width: 560px) { .rd-nav { grid-template-columns: 1fr; } .rd-caught { grid-column: 1; } .rd-tbtn .rd-lbl { display: none; } }

.rd-preview { background: #fff3cd; color: #7a4a00; text-align: center; padding: 10px 16px; font-size: .88rem; border-bottom: 1px solid #f0d58a; }
.rd-preview a { color: #7a4a00; font-weight: 700; text-decoration: underline; }

/* Read-aloud player */
.rd-player { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1002; display: flex; align-items: center; gap: 10px; width: min(520px, calc(100vw - 24px)); padding: 10px 12px; border-radius: 16px; background: #0d0d2b; color: #fff; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.rd-pbtn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; font: 700 .82rem var(--font-main); }
.rd-pbtn:hover { background: rgba(255,255,255,.2); }
.rd-pmain { width: 46px; height: 46px; background: var(--orange); color: var(--navy); }
.rd-pmain:hover { background: var(--orange-light); }
.rd-pinfo { flex: 1; min-width: 0; }
.rd-pinfo b { display: block; font-size: .88rem; }
.rd-pinfo small { display: block; color: rgba(255,255,255,.65); font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-ppanel { position: absolute; bottom: calc(100% + 8px); right: 0; width: 280px; background: #fff; color: var(--dark-text); border-radius: 14px; padding: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.25); display: grid; gap: 12px; }
.rd-ppanel span { display: block; font-size: .74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; margin-bottom: 6px; }
.rd-ppanel .rd-seg { border-color: var(--border); }
.rd-ppanel .rd-seg button { color: var(--dark-text); }
.rd-ppanel .rd-seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.rd-vol { display: flex; align-items: center; gap: 10px; }
.rd-vol button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: #fff; cursor: pointer; font-size: 1rem; }
.rd-pnote { display: block; color: var(--muted); font-size: .74rem; margin-top: 4px; }
.rd.is-listening ~ #backToTop, body:has(.rd.is-listening) .whatsapp-float, body:has(.rd.is-listening) .chat-launcher { opacity: 0; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
    .rd-scene.is-new, .st-hero-cover, .st-cover, .st-eps a { animation: none !important; transition: none !important; }
}
@media print {
    .rd-bar, .rd-progress, .rd-step, .rd-nav, .rd-all, .rd-player, .rd-strip { display: none !important; }
    .rd-scene[hidden] { display: block !important; }
}
