/* One visible artwork; the original remains an immediate, accessible fallback. */
.character-frame.character-playing{background:#101315}
.character-frame.character-playing>img{opacity:0!important}
.character-frame.character-playing>.character-video{background:#101315}
.reader.chapter .character-controls:has(.character-play){display:none}
.reader.chapter figure:has(video.error) .character-controls{display:flex}
.reader.chapter .artwork-options{margin:6px auto 24px;padding:0 24px;max-width:1040px;box-sizing:border-box;font:14px/1.5 var(--f-ui,system-ui);color:inherit}
.artwork-options>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--experience-line,#7775);list-style:none}
.artwork-options>summary:after{content:'+'}.artwork-options[open]>summary:after{content:'−'}
.artwork-options>summary::-webkit-details-marker{display:none}
.artwork-options .figure-sharing,.artwork-options .reader-effect-controls{padding:0!important;margin:8px 0!important;max-width:100%}
.artwork-options .artwork-description{margin:12px 0}.artwork-options .artwork-description>summary{min-height:44px;cursor:pointer;display:flex;align-items:center}
.artwork-options .desc{font:14px/1.7 var(--f-ui,system-ui)}
.reader.chapter figcaption>.cap-t{display:block}.reader.chapter figcaption>.mono{display:block;margin-top:12px}
.reader.chapter .story-access{border:0;border-block:1px solid var(--experience-line,#7775);border-radius:0;padding:0;margin:20px 0 12px}
.story-access>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none}
.story-access>summary::-webkit-details-marker{display:none}
.story-access>summary:after{content:'+';font-size:18px}.story-access[open]>summary:after{content:'−'}
.story-access-state{font-size:12px;font-weight:400;margin-left:auto;opacity:.8}
.story-access-body{padding:8px 0 18px}
.reader-polish-tools{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.reader-polish-tools button{font:600 13px/1.4 var(--f-ui,system-ui);color:inherit;background:none;border:1px solid var(--experience-line,#7775);padding:10px 14px;min-height:44px;border-radius:5px;cursor:pointer}
.reader-polish-tools [hidden]{display:none!important}
html[data-reader-listening="false"]{--ra-pad:0px!important}
html[data-reader-listening="false"] .ra-player,html[data-reader-listening="false"] .ra-voice{display:none!important;visibility:hidden!important}
html.reader-polished .dy-m-pen{display:none!important}
html.reader-polished .dy-app-toast.is-install{display:none!important}
.reader-polish-exit{border:0;background:none;color:inherit;min-height:44px;font:600 12px var(--f-ui,system-ui);cursor:pointer;padding:6px 10px}
.ra-player.is-collapsed .reader-polish-exit{display:block}
.reading-atmosphere{position:fixed;inset:0;width:100%;height:100%;pointer-events:none!important;user-select:none;z-index:2;contain:strict}
.book-atmosphere-choice{display:flex;align-items:center;gap:10px;min-height:44px;font:14px/1.5 var(--f-ui,system-ui)}
.book-atmosphere-choice input{width:20px;height:20px;flex-shrink:0}
:is(.artwork-options,.story-access,.reader-polish-tools) :is(summary,button,a):focus-visible{outline:3px solid var(--accent,#c9aa72);outline-offset:4px}
@media(max-width:600px){.reader.chapter .artwork-options{padding-inline:16px}.story-access-actions{gap:8px}.story-access-actions a,.story-access-actions button{font-size:12px;padding:8px 10px}.reader.chapter .r-cover{gap:18px!important}.reader.chapter .r-head h1{font-size:clamp(30px,9vw,38px)}.reader.chapter .r-head .row{margin:12px 0}.reader.chapter .chapter-sharing{margin-top:8px}.ra-player .reader-polish-exit{grid-column:1/-1;text-align:center;padding:0;min-height:36px}}
@media(prefers-reduced-motion:reduce),(prefers-reduced-data:reduce){.reading-atmosphere{display:none!important}}
html[data-reading-motion="still"] .reading-atmosphere,html[data-reading-data="save"] .reading-atmosphere,html[data-app-motion="reduce"] .reading-atmosphere{display:none!important}
@media print{.reading-atmosphere,.artwork-options,.reader-polish-tools,.reader-polish-exit{display:none!important}}

/* Optional controls keep the same reading width when their contents are collapsed. */
.reader.chapter .artwork-options{width:min(100%,1040px);min-width:0;grid-column:1/-1;justify-self:stretch;text-align:left}
.artwork-options :is(.reader-effect-controls,.figure-sharing){width:100%;box-sizing:border-box}
.artwork-options :is(.reader-effect-controls,.figure-sharing)>summary,.reader.chapter .chapter-sharing>summary{display:flex;width:100%;justify-content:space-between;box-sizing:border-box;gap:12px}
.artwork-options :is(.reader-effect-controls,.figure-sharing)>summary:after{margin-left:auto;flex-shrink:0}
.artwork-options .free-media-actions{display:flex;flex-wrap:wrap;gap:10px}
.artwork-options .free-media-actions>:is(a,button){margin:0!important}
.reader.chapter .ep-no{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px}
@media(max-width:600px){
 .reader.chapter .story-access-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 .reader.chapter .story-access-actions>*{text-align:center;justify-content:center;margin:0!important}
 .reader.chapter .chap-nav.nav-bottom{display:grid;grid-template-columns:1fr;gap:12px}
 .reader.chapter .chap-nav.nav-bottom .next{order:-1;width:100%;box-sizing:border-box;margin:0!important}
 .reader.chapter .chap-nav.nav-bottom .next.off{display:none}
 .reader.chapter .chap-nav.nav-bottom :is(.prev,.toc-link){margin:0!important;justify-self:start}
}
