﻿.story-details { --story-ink:#081c31; --story-panel:#102c46; --story-gold:#e1b54b; --story-muted:#a9bdd0; --story-line:#284359; color:#e6edf3; font-family:system-ui,-apple-system,"Segoe UI",sans-serif; }
.story-details .story-playback-note { font-size:12px; line-height:1.7; color:var(--story-muted); margin:14px 0 0; }
@media(max-width:991px) { .story-details { padding:0 16px; } }
.story-details .story-layout { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:24px; }
.story-details .story-main,.story-details .story-sidebar { min-width:0; }
.story-details a { color:var(--story-gold); }
.story-details a:hover { color:#ffe09a; text-decoration:none; }
.story-details .story-hero { display:grid; grid-template-columns:160px minmax(0,1fr); align-items:start; gap:16px 18px; margin:8px 0 24px; padding:18px; border:1px solid var(--story-line); border-radius:18px; background:radial-gradient(circle at 0 0,rgba(74,109,132,.2),transparent 48%),linear-gradient(135deg,#142e43,#0e2237); box-shadow:0 14px 32px rgba(0,10,26,.12); }
.story-details .story-cover { position:relative; min-width:0; overflow:hidden; border:1px solid var(--story-line); border-radius:10px; background:var(--story-ink); }
.story-details .story-cover img { width:100%; height:auto; aspect-ratio:355/200; object-fit:contain; display:block; }
.story-details .story-cover-caption { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:4px 6px; padding:6px; background:#142e43; }
.story-details .story-cover-badge { background:var(--story-gold); color:#081c31; padding:2px 5px; border-radius:4px; font-size:10px; line-height:1.4; font-weight:650; }
.story-details .story-cover-note { display:flex; align-items:center; gap:4px; color:#c6d6e5; font-size:10px; line-height:1.4; }
.story-details .story-cover-note span { width:5px; height:5px; flex-shrink:0; border-radius:50%; background:#6de0a3; }
.story-details .story-heading { min-width:0; }
.story-details .story-eyebrow { margin:0 0 8px; color:#6de0a3; font-size:10px; line-height:1.5; font-weight:650; letter-spacing:.8px; }
.story-details .story-heading h1 { margin:0; color:#f2d080; font-size:clamp(25px,2.5vw,32px); line-height:1.25; letter-spacing:-.5px; font-weight:700; overflow-wrap:anywhere; }
.story-details .story-summary { grid-column:1/-1; display:flex; flex-direction:column; gap:12px; min-width:0; }
.story-details .story-byline { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:6px 16px; }
.story-details .story-author,.story-details .story-updated { margin:0; color:var(--story-muted); font-size:12px; line-height:1.6; overflow-wrap:anywhere; }
.story-details .story-author a { color:#dbe4ed; font-weight:600; }
.story-details .story-summary > .story-ranks { margin:0; }
.story-details .story-stats { display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; padding:14px 0; border-top:1px solid var(--story-line); border-bottom:1px solid var(--story-line); }
.story-details .story-rating { min-width:0; flex:1 1 220px; font-size:12px; line-height:1.6; }
.story-details .rating-widget { display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; }
.story-details .rating-choices { display:flex; flex-wrap:wrap; gap:2px; }
.story-details .rating-choice { padding:4px 2px; min-width:25px; min-height:32px; border:0; background:transparent; color:#7790a4; font-size:20px; line-height:1; cursor:pointer; }
.story-details .rating-choice.is-active { color:var(--story-gold); }
.story-details .rating-choice:focus-visible,.story-details .rating-submit:focus-visible { outline:2px solid #fff; outline-offset:2px; }
.story-details .rating-choice:disabled { cursor:default; }
.story-details .rating-submit { padding:5px 10px; border:1px solid var(--story-gold); border-radius:6px; background:var(--story-gold); color:#081c31; font-weight:650; cursor:pointer; }
.story-details .rating-submit:disabled { opacity:.55; cursor:default; }
.story-details .rating-selection,.story-details .rating-summary { color:var(--story-muted); }
.story-details .rating-status { color:#f2d080; }
.story-details .story-rating .rate-img { width:16px; height:16px; }
.story-details .story-rating > .d-inline-flex { max-width:100%; flex-wrap:wrap; gap:4px; }
.story-details .story-rating #rateText { margin-top:0!important; overflow-wrap:anywhere; }
.story-details .story-rating #rate_des { color:var(--story-muted); }
.story-details .story-views { display:inline-flex; align-items:center; gap:5px; min-height:30px; margin:0; padding:4px 9px; border:1px solid rgba(169,189,208,.16); border-radius:999px; background:rgba(8,28,49,.32); color:#c6d6e5; font-size:12px; line-height:1.5; }
.story-details .story-metadata { margin:0; }
.story-details .story-metadata > div { display:flex; align-items:baseline; gap:8px 12px; }
.story-details .story-metadata dt { flex-shrink:0; color:var(--story-muted); font-size:11px; font-weight:400; margin:0; }
.story-details .story-metadata dd { min-width:0; margin:0; }
.story-details .story-genres { display:flex; flex-wrap:wrap; gap:6px; }
.story-details .story-genres a { max-width:100%; padding:4px 8px; border-radius:6px; background:#223b50; color:#c3d4e5; font-size:11px; line-height:1.4; overflow-wrap:anywhere; }
.story-details .story-section-title,.story-details .story-section-heading h2 { margin:0; color:#e6edf3; font-size:20px; line-height:1.3; font-weight:650; }
.story-details .story-section-title { margin-bottom:20px; padding-bottom:12px; position:relative; border-bottom:1px solid var(--story-line); }
.story-details .story-section-title::after { content:""; position:absolute; left:0; bottom:-1px; width:100px; height:3px; background:var(--story-gold); }
.story-details .story-section-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:16px; border-bottom:1px solid var(--story-line); padding-bottom:12px; }
.story-details .story-section-heading-copy { min-width:0; }
.story-details .story-section-kicker { display:block; margin-bottom:4px; color:var(--story-gold); font-size:10px; font-weight:700; letter-spacing:1.3px; }
.story-details .story-section-heading > span,.story-details .story-section-heading > a { font-size:12px; color:var(--story-muted); }
.story-details .story-player { margin:8px 0 30px; padding:20px; border:1px solid var(--story-line); border-radius:16px; background:linear-gradient(160deg,#122a40,#0b2035); }
.story-details .story-player #videoCtrl { padding-top:0!important; }
.story-details .story-player #videoFrame { border:1px solid var(--story-line); border-radius:14px; overflow:hidden; padding:0!important; }
.story-details .story-player #speedRateContainer { padding:14px 0; }
.story-details .story-player-actions { display:flex; flex-wrap:wrap; gap:8px; }
.story-details .story-action { display:inline-flex; justify-content:center; gap:8px; align-items:center; min-height:44px; padding:10px 14px; border:1px solid #3b5369; border-radius:9px; font-size:13px; font-weight:600; transition:background-color .15s ease,border-color .15s ease; }
.story-details .story-action:hover { background:#1e3a52; border-color:var(--story-gold); }
.story-details .story-player-actions .save-story { min-height:44px; padding:10px 14px; border-radius:9px; font-weight:600; }
.story-details .story-action-primary { background:var(--story-gold); color:#081c31; font-weight:700; margin-left:auto; border-color:var(--story-gold); }
.story-details .story-action-primary:hover { background:#f3cb68; border-color:#f3cb68; color:#081c31; }
.story-details .story-support { display:flex; align-items:center; justify-content:space-between; padding:12px 18px; border:1px solid var(--story-line); border-radius:12px; margin-top:16px; background:var(--story-panel); }
.story-details .story-support > span { color:var(--story-muted); font-size:13px; }
.story-details .story-support > div { display:flex; gap:14px; }
.story-details .story-support img { object-fit:contain; }
.story-details .story-synopsis { background:linear-gradient(135deg,#102c46,#0b2239); border:1px solid var(--story-line); border-radius:14px; padding:22px; margin:28px 0; }
.story-details .story-prose { color:#dbe4ed; font-size:16px; line-height:1.85; text-align:justify; text-justify:inter-word; overflow-wrap:anywhere; }
.story-details .story-prose :is(h1,h2,h3,h4,blockquote) { text-align:left; }
.story-details .story-prose img { max-width:100%; height:auto; }
.story-details .story-prose p:last-child { margin-bottom:0; }
.story-details .story-more { margin-top:18px; border-top:1px solid var(--story-line); padding-top:14px; }
.story-details .story-more summary { color:var(--story-gold); cursor:pointer; }
.story-details .story-more .story-prose { margin-top:12px; }
.story-details [data-story-intro-more] .story-more-close { display:none; }
.story-details [data-story-intro-more][open] .story-more-open { display:none; }
.story-details [data-story-intro-more][open] .story-more-close { display:inline; }
.story-details .story-tracks,.story-details .story-episodes,.story-details .story-comments { margin-top:30px; }
.story-details .story-chapter-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.story-details .story-chapter-grid button { min-width:0; min-height:48px; border:1px solid var(--story-line); border-radius:9px; padding:12px 14px; background:var(--story-ink); color:var(--story-gold); font-size:14px; text-align:left; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; cursor:pointer; }
.story-details .story-chapter-grid button:last-child:nth-child(odd) { grid-column:1/-1; }
.story-details .story-chapter-grid button:hover,.story-details .story-chapter-grid button.is-current { background:#183b55; color:#fff; }
.story-details .story-chapter-grid button.is-current { border-color:#e2e9ef; box-shadow:inset 0 0 0 1px #e2e9ef; }
.story-details .story-episode-grid { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:6px; }
.story-details .story-episode-grid > a,.story-details .story-episode-grid > span { display:grid; place-items:center; min-height:44px; border:1px solid var(--story-line); border-radius:8px; padding:8px 4px; background:var(--story-ink); color:var(--story-muted); font-size:13px; text-decoration:none; }
.story-details .story-episode-grid > .is-current,.story-details .story-episode-grid a:hover { background:var(--story-gold); color:#081c31; font-weight:700; }
.story-details .story-comments { min-height:160px; }
.story-details .story-empty { padding:24px; background:var(--story-panel); border-radius:12px; }
.story-details .story-ad { margin:24px 0; }
.story-details .story-ad .adunit-close { border:0; background:transparent; color:#fff; font-size:20px; cursor:pointer; }
.story-details .story-sidebar { padding-top:18px; }
.browse-menu { color:#e6edf3; }
.browse-section { margin-bottom:28px; }
.browse-menu .sidebar-tabs { margin-bottom:16px; }
.browse-menu .sidebar-panel[hidden] { display:none; }
.browse-menu .sidebar-panel > .browse-section { margin-bottom:0; }
.browse-title { position:relative; color:#e6edf3; font-size:18px; line-height:1.4; font-weight:650; margin:0 0 14px; padding-bottom:10px; border-bottom:1px solid #284359; }
.browse-title::after { content:""; position:absolute; left:0; bottom:-1px; width:44px; height:2px; background:#d4a84b; }
.browse-cards-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.browse-card.home-card { padding:0; }
.browse-card .browse-copy h3 { margin:0; font-family:inherit; font-size:14px; line-height:1.4; font-weight:600; }
.browse-card .browse-copy h3 a { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; height:2.8em; overflow:hidden; overflow-wrap:anywhere; color:#ecf0f5; }
.browse-card .browse-copy h3 a:hover { color:#e1b54b; }
.browse-card .home-card-author a { color:inherit; }
.browse-card .home-card-tags a { color:#bcd0e3; }
.browse-card .home-card-body { padding:10px; }
.browse-card .home-card-views,.browse-card .home-card-rating { bottom:6px; padding:2px 5px; font-size:10px; }
.browse-card .home-card-views { right:6px; }
.browse-card .home-card-rating { left:6px; }
.browse-periods { display:flex; gap:5px; margin:0 0 14px; }
.browse-periods button { flex:1; border:1px solid #284359; background:transparent; color:#a9bdd0; padding:7px; border-radius:6px; font-size:12px; cursor:pointer; }
.browse-periods button[aria-pressed="true"] { background:#d4a84b; color:#081c31; border-color:#d4a84b; }
.browse-loading { min-height:360px; font-size:13px; color:#a9bdd0; }
.browse-loading > div { height:64px; margin-top:18px; border-radius:8px; background:linear-gradient(90deg,#102c46,#183b55,#102c46); background-size:200% 100%; animation:browse-shimmer 1.5s linear infinite; }
.browse-retry, .browse-section-retry { background:transparent; color:#e1b54b; border:1px solid #284359; border-radius:8px; padding:9px 14px; cursor:pointer; }
.browse-menu .browse-more-status { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px; margin:12px 0 0; color:#9fb3c8; font-size:13px; }
.browse-menu .browse-sentinel { height:1px; }
.featured-hero { position:relative; overflow:hidden; margin:0 0 13px; padding:18px 17px 16px; border:1px solid #775f38; border-radius:15px; background:radial-gradient(circle at 100% 0,rgba(231,181,75,.24),transparent 56%),linear-gradient(140deg,#233136,#102438 72%); box-shadow:inset 0 1px rgba(255,231,172,.12),0 12px 28px rgba(0,11,25,.18); }
.featured-hero::after { content:""; position:absolute; right:-27px; bottom:-59px; width:125px; height:125px; border:1px solid rgba(230,181,84,.19); border-radius:50%; pointer-events:none; }
.featured-hero-top { display:flex; justify-content:space-between; align-items:center; gap:8px; color:#f5d18b; font-size:10px; font-weight:750; letter-spacing:1.3px; }
.featured-hero-top span { display:inline-flex; align-items:center; gap:6px; }
.featured-hero-top svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.featured-hero-top a { position:relative; z-index:1; color:#d8bd82; font-size:10px; font-weight:600; letter-spacing:0; white-space:nowrap; }
.featured-hero h2 { position:relative; margin:13px 0 6px; color:#fff5dd; font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif; font-size:22px; line-height:1.2; font-weight:750; letter-spacing:-.25px; }
.featured-hero p { position:relative; max-width:29ch; margin:0; color:#c0cbd0; font-size:11px; line-height:1.55; }
.browse-cards-grid.featured-cards-grid { grid-template-columns:minmax(0,1fr); gap:10px; }
.featured-card { display:flex; flex-direction:column; gap:0; min-width:0; padding:0; overflow:hidden; border:1px solid #385a66; border-radius:12px; background:linear-gradient(135deg,#162f3b,#102637); box-shadow:0 7px 22px rgba(0,13,27,.15); }
.featured-card-visual { position:relative; min-width:0; }
.featured-card-cover { position:relative; display:block; overflow:hidden; width:100%; aspect-ratio:5/2; background:#081c31; }
.featured-card-cover img { display:block; width:100%; height:auto; aspect-ratio:355/200; object-fit:contain; }
.featured-card-cover::after { content:""; position:absolute; inset:auto 0 0; height:30px; background:linear-gradient(to bottom,transparent,#142c39); pointer-events:none; }
.featured-card-rank { z-index:1; position:absolute; top:0; left:8px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; min-width:30px; padding:5px 6px 9px; border-radius:0 0 10px 10px; background:#304c64; color:#e0eaf3; font-size:15px; line-height:1; font-weight:800; box-shadow:0 2px 6px #0006; }
.featured-card-rank i { font-size:11px; }
.featured-card-rank--1 { background:linear-gradient(135deg,#fff0a4,#e6af34); color:#493000; }
.featured-card-rank--2 { background:linear-gradient(135deg,#edf5ff,#9bacc8); color:#304057; }
.featured-card-rank--3 { background:linear-gradient(135deg,#ffd5b0,#bf7548); color:#542b16; }
.featured-card-metrics { position:absolute; right:7px; bottom:7px; left:7px; display:flex; flex-wrap:wrap; justify-content:flex-end; gap:5px; pointer-events:none; }
.featured-card-metric,.featured-card-rating { display:inline-flex; align-items:center; gap:5px; padding:4px 7px; border:1px solid #b8964b66; border-radius:999px; background:rgba(4,17,29,.92); color:#f7d16e; font-size:12px; line-height:1.3; font-weight:700; pointer-events:auto; }
.featured-card-copy { display:flex; flex:1; flex-direction:column; min-width:0; gap:5px; padding:9px; }
.featured-card-title-row { min-width:0; }
.featured-card-title-row h3 { min-width:0; margin:0; font-family:inherit; font-size:14px; line-height:1.4; font-weight:700; }
.featured-card-title-row h3 a { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#f3f5f4; }
.featured-card-title-row h3 a:hover { color:#ffe09a; }
.featured-card-visual .save-story { position:absolute; top:7px; right:7px; display:grid; place-items:center; width:32px; height:32px; min-height:32px; margin:0; padding:4px; border:1px solid rgba(180,205,222,.45); border-radius:7px; background:rgba(4,17,29,.45); color:#e0edf5; }
.featured-card-visual .save-story svg { width:13px; height:16px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linejoin:round; }
.featured-card-visual .save-story[aria-pressed="true"] svg { fill:currentColor; }
.featured-card-visual .save-story [data-save-label] { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.featured-card-author { min-width:0; margin:0; overflow:hidden; color:#a9c0cb; font-size:11px; line-height:1.45; text-overflow:ellipsis; white-space:nowrap; }
.featured-card-genres { display:flex; flex-wrap:wrap; align-items:center; gap:5px; margin-top:auto; padding-top:2px; }
.featured-card-genres a,.featured-card-state { max-width:100%; padding:3px 7px; border-radius:7px; background:#234359; color:#bbd8ee; font-size:10px; line-height:1.35; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.featured-card-genres .featured-card-state { border:1px solid #35775f; background:rgba(18,83,64,.44); color:#9ceac5; }
.featured-card-hook { overflow:hidden; margin:2px 0 3px; padding:8px 10px; border-left:2px solid #d7ad57; border-radius:0 8px 8px 0; background:rgba(7,27,43,.6); color:#d8e3e5; font-size:11px; font-style:normal; line-height:1.55; overflow-wrap:anywhere; }
.featured-card-author a { color:inherit; }
.featured-card-hook > a { display:block; color:inherit; text-decoration:none; }
.featured-card-author a:hover,.featured-card-hook > a:hover { color:#ffe09a; }
.featured-card-hook > a > span { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:4; overflow:hidden; }
@media (min-width:640px) and (max-width:991px) { .browse-cards-grid.featured-cards-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@keyframes browse-shimmer { to { background-position:-200% 0; } }
.story-details :is(a,button,summary):focus-visible { outline:2px solid #e1b54b; outline-offset:3px; }
/* Desktop: the sidebar is pinned beside the content and becomes its own bounded
   scroll box, so infinite paging scrolls inside the box instead of lengthening
   the whole page. It is a real scroll container (overflow-y:auto), so ad-layout.js
   skips it and never unclips it. */
@media (min-width:992px) { .story-details .story-sidebar { position:sticky; top:64px; align-self:start; max-height:calc(100vh - 84px); overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; scrollbar-width:thin; } }
@media (max-width:1199px) and (min-width:992px) { .story-details .story-layout { grid-template-columns:minmax(0,1fr) 310px; gap:20px; } .story-details .story-hero { grid-template-columns:160px minmax(0,1fr); padding:16px; gap:16px; } .story-details .story-heading h1 { font-size:27px; } }
@media (max-width:991px) { .story-details .story-layout { grid-template-columns:minmax(0,1fr); gap:20px; } .story-details .story-sidebar { padding-top:0; } .browse-cards-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:575px) { .story-details .story-hero { grid-template-columns:124px minmax(0,1fr); gap:12px; padding:12px; } .story-details .story-heading h1 { font-size:clamp(19px,5vw,22px); line-height:1.3; } .story-details .story-eyebrow { font-size:10px; } .story-details .story-summary { gap:10px; } .story-details .story-stats { padding:10px 0; } .story-details .story-metadata > div { flex-direction:column; gap:6px; } .story-details .story-synopsis { padding:18px 15px; } .story-details .story-section-heading h2,.story-details .story-section-title { font-size:18px; } .story-details .story-episode-grid { grid-template-columns:repeat(8,minmax(0,1fr)); } .story-details .story-chapter-grid button { font-size:13px; } .browse-cards-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .story-details .story-player-actions .story-action { padding:9px 10px; font-size:12px; } }
@media (max-width:575px) {
    .story-details .story-player { padding:8px 0 0; border:0; border-radius:0; background:transparent; }
    .story-details .story-player-actions > :not(.story-action-primary) { flex:1 1 calc(50% - 8px); text-align:center; }
    .story-details .story-player-actions .story-action-primary { flex:1 0 100%; margin-left:0; }
}
@media (max-width:360px) { .story-details .story-hero { grid-template-columns:112px minmax(0,1fr); gap:10px; } .story-details .story-eyebrow { font-size:9px; letter-spacing:.4px; } }
@media (max-width:400px) { .story-details .story-episode-grid { grid-template-columns:repeat(6,minmax(0,1fr)); } }
@media (prefers-reduced-motion:reduce) { .browse-loading > div { animation:none; } }
.story-details .story-action { background:transparent; color:var(--story-gold); cursor:pointer; }
.story-details .story-action-primary { background:var(--story-gold); color:#081c31; }
.story-details .story-action[hidden] { display:none!important; }
.story-details .story-playback-note { color:var(--story-muted); font-size:12px; line-height:1.6; margin:12px 0; }
.footer-links { display:flex; flex-wrap:wrap; gap:16px; font-size:12px; line-height:1.6; padding:10px 0; }
.footer-links a { color:#a9bdd0; }
.listening-discovery { margin:14px 0; padding:14px; border:1px solid #52604b; border-radius:16px; background:radial-gradient(ellipse at 100% 0,#6c532a55,transparent 65%),#11283b; }
.listening-discovery-label { font-size:10px; letter-spacing:1.3px; font-weight:700; color:#efd18a; }
.listening-discovery p { margin:4px 0 12px; font-size:13px; color:#b7c9d9; }
.listening-discovery-actions { display:flex; flex-wrap:wrap; gap:8px; }
.listening-discovery-actions button { min-height:44px; padding:6px 10px; border:1px solid #52667b; border-radius:8px; color:#f4d48b; background:#1c3549; font-size:12px; }
.story-details .listening-recommendation + .story-synopsis { margin-top:16px; }
.listening-discovery-actions button:hover { border-color:#e1b54b; background:#2b4251; }
.listening-discovery .listening-explore-status:empty { display:none; }
#right-menu { scroll-margin-top:90px; }
#listen { scroll-margin-top:90px; }

/* Keep the discovery controls visible as the sidebar or page scrolls. The
   measured offsets follow the search field and the tab row on every width. */
.story-details { --explore-search-height:44px; }
.story-details .story-sidebar {
    --explore-tabs-height:54px;
    --explore-search-offset:var(--explore-search-height);
}
.story-details .browse-menu .sidebar-tabs {
    position:sticky;
    top:var(--explore-search-offset);
    z-index:22;
    justify-content:flex-start;
    gap:16px;
    margin:0 0 10px;
    padding:0 6px;
    background:#0d2237;
    box-shadow:0 8px 12px -12px #000;
}
.story-details .browse-menu .sidebar-tabs button { min-width:0; }
.story-details #sidebar-panel-hot .browse-periods {
    position:sticky;
    top:calc(var(--explore-search-offset) + var(--explore-tabs-height));
    z-index:21;
    margin:0 0 12px;
    padding:8px 5px 10px;
    border-bottom:1px solid #304a62;
    background:#0d2237;
}
.story-details .browse-menu .sidebar-tabs,.story-details #sidebar-panel-hot .browse-periods { max-height:64px; opacity:1; transform:translateY(0); transition:max-height .18s ease,margin .18s ease,padding .18s ease,opacity .14s ease,transform .18s ease,border-color .18s ease; }
.story-details.sticky-controls-switching .browse-menu .sidebar-tabs,.story-details.sticky-controls-switching #sidebar-panel-hot .browse-periods { transition:none; }
.story-details.sticky-controls-hidden .browse-menu .sidebar-tabs,.story-details.sticky-period-controls-hidden #sidebar-panel-hot .browse-periods { max-height:0; margin-top:0; margin-bottom:0; overflow:hidden; padding-top:0; padding-bottom:0; border-color:transparent; opacity:0; transform:translateY(-8px); pointer-events:none; }
.story-details.sticky-controls-hidden .story-sidebar { --explore-tabs-height:0px; }
.story-details.sticky-controls-hidden #sidebar-panel-hot .browse-periods { top:var(--explore-search-offset); }
.story-details #right-menu { scroll-margin-top:calc(var(--explore-search-offset) + 4px); }
.story-details #listen { scroll-margin-top:calc(var(--explore-search-height) + 12px); }
.story-details #story-title { scroll-margin-top:calc(var(--explore-search-height) + 12px); }
@media (min-width:992px) {
    .story-details .story-sidebar {
        --explore-search-offset:0px;
        top:var(--explore-search-height);
        max-height:calc(100vh - var(--explore-search-height) - 20px);
        padding-top:0;
    }
}
@media (prefers-reduced-motion:reduce) { .story-details .browse-menu .sidebar-tabs,.story-details #sidebar-panel-hot .browse-periods { transition:none; } }

/* Mobile listening mode keeps the existing player alive behind a true-black,
   full-viewport control surface. */
.lights-out-dialog[hidden],.lights-out-settings[hidden],[data-lights-out-section][hidden] { display:none!important; }
html.dtcb-lights-out-restoring body::before {
    content:"";
    position:fixed;
    inset:0;
    z-index:2147483000;
    background:#000;
}
body.lights-out-open { overscroll-behavior:none; }
.lights-out-dialog {
    position:fixed;
    inset:0;
    z-index:2147483001;
    width:100vw;
    height:100vh;
    min-height:100dvh;
    overflow:hidden;
    background:#000;
    color:#d8d8d8;
}
.lights-out-dialog:focus { outline:none; }
.lights-out-surface {
    box-sizing:border-box;
    display:grid;
    grid-template-rows:auto auto minmax(0,1fr) auto auto;
    width:100%;
    height:100vh;
    height:100dvh;
    padding:max(18px,env(safe-area-inset-top,0px)) 18px max(14px,env(safe-area-inset-bottom,0px));
    background:#000;
}
.lights-out-visible-controls {
    align-self:center;
    justify-self:center;
    width:min(100%,520px);
    max-height:calc(100dvh - 190px);
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-width:thin;
}
.lights-out-visible-controls > section {
    margin:0 0 20px;
    transition:opacity .2s ease,visibility .2s ease;
}
.lights-out-dialog.is-idle .lights-out-visible-controls > section { opacity:0; visibility:hidden; pointer-events:none; }
.lights-out-dialog.is-idle .lights-out-status,.lights-out-dialog.is-idle .lights-out-recovery { visibility:hidden; }
.lights-out-info { text-align:center; }
.lights-out-kicker { margin:0 0 8px; color:#777; font-size:10px; font-weight:700; letter-spacing:1.5px; }
.lights-out-info h2 { margin:0; color:#ddd; font-size:clamp(17px,4.6vw,23px); line-height:1.35; font-weight:600; }
.lights-out-info p:last-child { margin:8px 0 0; color:#898989; font-size:13px; }
.lights-out-progress input { width:100%; accent-color:#b99347; }
.lights-out-progress div { display:flex; justify-content:space-between; gap:10px; margin-top:6px; color:#858585; font-size:12px; font-variant-numeric:tabular-nums; }
.lights-out-playback { display:flex; align-items:center; justify-content:center; gap:18px; }
.lights-out-playback button,.lights-out-speed-options button,.lights-out-chapter-actions button {
    min-width:48px;
    min-height:44px;
    border:1px solid #303030;
    border-radius:12px;
    background:#0d0d0d;
    color:#aaa;
}
.lights-out-playback .lights-out-play { min-width:128px; border-color:#655331; color:#e0c27d; font-weight:700; white-space:nowrap; }
.lights-out-speed { text-align:center; }
.lights-out-speed p { margin:0 0 10px; color:#929292; }
.lights-out-speed-options { display:flex; flex-wrap:wrap; justify-content:center; gap:7px; }
.lights-out-speed-options button { min-width:54px; min-height:40px; padding:5px 8px; font-size:12px; }
.lights-out-speed-options button.is-selected { border-color:#a98847; background:#241d11; color:#e7c97f; }
.lights-out-section-label { margin-bottom:8px; color:#858585; text-align:center; font-size:12px; }
.lights-out-chapter-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:8px; }
.lights-out-chapters select { width:100%; min-height:44px; padding:8px 34px 8px 12px; border:1px solid #303030; border-radius:10px; background:#0d0d0d; color:#bbb; }
.lights-out-episodes { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:8px; font-size:13px; text-align:center; }
.lights-out-episodes a,.lights-out-episodes span { min-height:44px; display:flex; align-items:center; justify-content:center; border:1px solid #303030; border-radius:10px; color:#b99b5e; }
.lights-out-episodes span { color:#4d4d4d; }
.lights-out-episodes strong { color:#8b8b8b; font-weight:600; }
.lights-out-status { min-height:18px; margin:0; color:#9a875f; text-align:center; font-size:12px; }
.lights-out-recovery { display:flex; justify-content:center; gap:8px; }
.lights-out-recovery button { min-height:42px; padding:8px 12px; border:1px solid #6a5730; border-radius:9px; background:#171208; color:#d7b96f; }
.lights-out-recovery button[hidden] { display:none!important; }
.lights-out-toolbar { display:flex; justify-content:flex-end; gap:10px; position:relative; z-index:2; }
.lights-out-hint { margin:10px 0 0; min-height:18px; color:#898989; font-size:12px; text-align:right; pointer-events:none; }
.lights-out-hint.is-hidden { visibility:hidden; }
.lights-out-toolbar button {
    min-height:46px;
    padding:9px 16px;
    border:1px solid #292929;
    border-radius:12px;
    background:#090909;
    color:#8f8f8f;
    font-weight:600;
}
.lights-out-toolbar .lights-out-restore { border-color:#5b4b2c; color:#d4b56e; }
.lights-out-restore { display:inline-flex; align-items:center; justify-content:center; gap:6px; }
.lights-out-dialog.is-idle .lights-out-toolbar [data-lights-out-settings-open],
.lights-out-dialog.is-idle .lights-out-restore-label { display:none; }
.lights-out-dialog.is-idle .lights-out-restore { width:46px; padding:0; }
.lights-out-dialog.is-idle .lights-out-restore-icon { font-size:21px; line-height:1; }
.lights-out-settings {
    position:absolute;
    right:12px;
    top:calc(82px + env(safe-area-inset-top,0px));
    z-index:3;
    left:12px;
    max-height:min(calc(100dvh - 110px - env(safe-area-inset-top,0px)),560px);
    overflow-y:auto;
    padding:16px;
    border:1px solid #313131;
    border-radius:16px;
    background:#101010;
    box-shadow:0 18px 60px #000;
}
.lights-out-settings-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.lights-out-settings-heading h3 { margin:0; color:#d0d0d0; font-size:17px; }
.lights-out-settings-heading button { width:44px; height:44px; border:0; background:transparent; color:#aaa; font-size:27px; }
.lights-out-settings > label { display:flex; align-items:center; gap:11px; min-height:46px; margin:0; border-top:1px solid #252525; color:#b2b2b2; font-size:14px; }
.lights-out-settings input { width:20px; height:20px; accent-color:#a98847; }
.lights-out-dialog :is(button,a,input,select):focus-visible { outline:2px solid #c5a45c; outline-offset:2px; }
@media (prefers-reduced-motion:reduce) { .lights-out-visible-controls > section { transition:none; } }
@media print { .lights-out-dialog { display:none!important; } }
