/* Single production stylesheet for the responsive Nova Audio website. */
:root,[data-theme=nova]{color-scheme:dark;--bg:#191a1d;--surface:#252629;--text:#f1ebe2;--muted:#bcb7b0;--gold:#e89587;--action:#e89587;--button-text:#241d1a;--line:#3b3c40;--soft:#342c2d;--serif:Georgia,'Times New Roman',serif}

[data-theme=club]{color-scheme:light;--bg:#edf2f5;--surface:#fff;--text:#263742;--muted:#536b79;--gold:#236c81;--action:#236c81;--button-text:#fff;--line:#d8e3e8;--soft:#e6f1f4;--serif:system-ui,'Segoe UI',sans-serif}

[data-theme=library]{color-scheme:light;--bg:#f0f3f8;--surface:#fff;--text:#26354b;--muted:#5d7089;--gold:#365b9a;--action:#365b9a;--button-text:#fff;--line:#d9e1ec;--soft:#e9eff9;--serif:system-ui,'Segoe UI',sans-serif}

*{box-sizing:border-box;scrollbar-width:thin;scrollbar-color:var(--muted) var(--bg)}

html{scroll-padding-block:24px 180px}
body{margin:0;padding-bottom:130px;background:var(--bg);color:var(--text);font:15px/1.55 system-ui,-apple-system,'Segoe UI',sans-serif}

a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}

button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 12px;border:0;background:none;cursor:pointer;line-height:1.3;text-align:center}

button,a,input,select,summary,textarea{-webkit-tap-highlight-color:transparent}
button:disabled{opacity:.5;cursor:not-allowed}
button:hover,a:hover{color:var(--gold)}
button:hover{background:var(--soft)}
[hidden]{display:none!important}
:focus-visible{outline:2px solid var(--action);outline-offset:3px}

h1,h2,h3,p{margin:0}
h1,h2,h3{font-family:var(--serif);line-height:1.25;text-wrap:pretty}
h1{font-size:clamp(28px,3vw,38px)}
h2{font-size:24px}
h3{font-size:19px}
small,.muted{color:var(--muted)}

svg{display:block;width:22px;height:22px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
[data-icon]{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
img{display:block;max-width:100%}

input,select,textarea{min-width:0;accent-color:var(--action);caret-color:var(--action)}

input[type=search],input[type=password],input[type=email],input[name=login],textarea,select{width:100%;padding:10px 12px;min-height:44px;border:1px solid var(--line);border-radius:8px;background:var(--surface);font-size:16px}
input::placeholder,textarea::placeholder{color:var(--muted)}
textarea{resize:vertical;line-height:1.5}

input[type=range]{appearance:none;display:block;width:100%;height:28px;margin:0;cursor:pointer;background:transparent}
input[type=range]::-webkit-slider-runnable-track{height:3px;border-radius:3px;background:var(--line)}
input[type=range]::-webkit-slider-thumb{appearance:none;width:14px;height:14px;margin-top:-5.5px;border:0;border-radius:50%;background:var(--action)}
input[type=range]::-moz-range-track{height:3px;background:var(--line)}
input[type=range]::-moz-range-thumb{width:14px;height:14px;border:0;border-radius:50%;background:var(--action)}

summary{cursor:pointer;list-style:none}
summary::-webkit-details-marker{display:none}
progress{display:block;width:100%;height:3px;border:0;border-radius:3px;overflow:hidden;background:var(--line);accent-color:var(--action)}
progress::-webkit-progress-bar{background:var(--line)}
progress::-webkit-progress-value{background:var(--action)}
progress::-moz-progress-bar{background:var(--action)}

.icon-button{width:44px;height:44px;min-width:44px;padding:10px;border-radius:8px}
.gold-button,.play-button{background:var(--action);color:var(--button-text)}
.gold-button{padding:10px 18px;border-radius:9px;font-weight:600}
.gold-button:hover,.play-button:hover{background:var(--action);color:var(--button-text);filter:brightness(.94)}

.text-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:6px 0;color:var(--gold)}
.metadata-link{color:var(--gold);text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--gold),transparent 65%);text-underline-offset:3px;overflow-wrap:anywhere}
.metadata-link:hover{text-decoration-color:var(--gold)}

.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

.skip-content{position:fixed;top:8px;left:16px;z-index:100;padding:10px 16px;border-radius:8px;background:var(--surface);transform:translateY(-160%)}
.skip-content:focus{transform:translateY(0)}

.site-header{display:flex;align-items:center;gap:20px;max-width:1280px;min-height:80px;margin:auto;padding:12px 24px;border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:10px;white-space:nowrap;font:700 25px var(--serif);letter-spacing:-.5px}
.brand>span{color:var(--gold)}
.brand svg{width:26px;height:26px}

.desktop-nav{display:flex;align-items:center;gap:24px;margin-left:auto}
.desktop-nav a{display:flex;align-items:center;min-height:44px;font-size:14px}
.desktop-nav a.active{color:var(--gold);box-shadow:0 2px var(--gold)}

.appearance-picker{position:relative;margin-left:auto;z-index:10}
.appearance-picker summary{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px;color:var(--muted);font-size:13px}
.appearance-picker summary svg{width:20px;height:20px}

.appearance-options{position:absolute;top:calc(100% + 4px);right:0;display:grid;gap:3px;width:220px;padding:6px;border:1px solid var(--line);border-radius:10px;background:var(--surface);box-shadow:0 12px 32px #0002}
.appearance-options button{justify-content:flex-start;text-align:left;font-size:14px;border-radius:6px}
.appearance-options button[aria-pressed=true]{background:var(--soft);color:var(--gold)}

.account-link{display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:50%}
.account-link img{width:34px;height:34px;object-fit:cover;border-radius:50%}

#content{max-width:1280px;min-height:70vh;margin:auto;padding:0 24px}
.page{padding:28px 0}
.loading,.empty{padding:40px 16px;text-align:center;color:var(--muted)}
.import-status{max-width:1280px;margin:auto;padding:8px 24px;font-size:13px;color:var(--gold)}
.import-status:empty{display:none}

.catalog-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}
.catalog-heading p{margin-top:5px;color:var(--muted);font-size:14px}
.catalog-heading .text-button{flex:none;font-size:13px}
.catalog-search{max-width:360px}

.shelf-tabs{display:flex;gap:24px;overflow-x:auto;white-space:nowrap;border-bottom:1px solid var(--line);margin-bottom:24px}
.shelf-tabs button{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:8px 0;color:var(--muted);font-size:14px}
.shelf-tabs .active{color:var(--gold);box-shadow:inset 0 -2px var(--gold)}

.catalog-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}
.feed-catalog{max-width:960px;margin:24px auto}

.feed-card{display:grid;grid-template-columns:132px minmax(0,1fr);gap:8px 22px;min-width:0;padding:0 0 24px;border-bottom:1px solid var(--line);align-content:start}
.feed-cover{grid-column:1;grid-row:1 / span 5;align-self:start}
.feed-cover img{width:100%;aspect-ratio:2/3;object-fit:contain;border-radius:5px;box-shadow:0 5px 16px #0002}

.feed-top{grid-column:2;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;font-size:12px;color:var(--muted)}
.feed-card h2{grid-column:2;font-size:25px;line-height:1.25;letter-spacing:-.3px}
.feed-description{grid-column:2;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;max-width:72ch;font-size:14px;line-height:1.65}

.feed-metadata{grid-column:2;display:flex;align-items:center;flex-wrap:wrap;gap:6px 14px;font-size:12px;color:var(--muted)}
.feed-metadata>span{display:inline-flex;align-items:center;flex-wrap:wrap;gap:5px}
.feed-metadata svg{width:15px;height:15px}
.views{display:inline-flex;align-items:center;gap:5px;flex:none;color:var(--muted);font:12px system-ui,sans-serif}
.views svg{width:15px;height:15px}

.social-actions{grid-column:2;display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;margin-top:2px}
.social-row,.reaction-row{display:flex;align-items:center;gap:6px}
.social-actions button{padding:6px 10px;min-height:40px;gap:6px;font-size:12px;white-space:nowrap;border-radius:7px;color:var(--muted)}
.social-actions svg{width:17px;height:17px}
.social-bookmark{background:var(--soft)}
.social-actions [aria-pressed=true]{color:var(--gold)}
.social-bookmark.saved svg{fill:var(--gold)}
.reaction-row button{padding-inline:7px}
.work-main>.social-actions{padding-top:14px;margin-top:16px;border-top:1px solid var(--line)}

.more{display:flex;min-height:44px;margin:20px auto;padding:8px 22px;border:1px solid var(--line);border-radius:8px;color:var(--gold)}

.filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.filters label{display:grid;gap:5px;min-width:0;color:var(--muted);font-size:12px}
.filters select{font-size:14px;background:var(--bg)}
.filters+.muted{margin-top:14px;font-size:13px}

/* Book and player share a grid; the transport always has fixed-size controls. */
.book-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:18px 0;font-size:12px;color:var(--muted)}
.work-layout{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:24px;align-items:start}
.work-main,.contents-column,.book-details{min-width:0;padding:22px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}

.work-heading{position:relative;margin-bottom:20px}
.work-heading h1{padding-right:32px;font-size:clamp(26px,2.7vw,36px)}
.work-heading .views{position:absolute;top:5px;right:0}
.work-byline{display:flex;flex-wrap:wrap;gap:5px 16px;margin-top:9px;font-size:13px}
.work-listen{display:grid;grid-template-columns:144px minmax(0,1fr);align-items:start;gap:22px}
.work-cover,.listen-column,.player-info{min-width:0}
.book-poster{width:100%;aspect-ratio:2/3;object-fit:contain;border-radius:5px}

.full-player{min-width:0}
.player-now,.player-wave{display:none}
.player-track{margin-bottom:8px}
.player-track .player-cover{display:none}
.player-info h2{font-size:22px;line-height:1.3}
.player-info p{margin-top:5px;color:var(--muted);font-size:12px;line-height:1.55}
.resume{justify-content:flex-start;min-height:36px;margin-top:5px;padding:5px 0;color:var(--gold);font-size:12px;text-align:left;line-height:1.45}

.time-row{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums;line-height:1.4}
.time-row [data-current-time]{margin-right:auto}
.time-row:has([data-remaining]:not(:empty)) [data-duration]{display:none}

.transport{display:flex;align-items:center;justify-content:center;gap:8px;margin:14px 0}
.transport .icon-button{width:44px;height:44px;min-width:44px;padding:8px;border-radius:50%;color:var(--muted)}
.transport .skip{width:48px;min-width:48px;padding:4px;gap:3px;font-size:11px;white-space:nowrap}
.transport .skip svg{width:16px;height:16px}
.transport .skip span{display:inline-flex;align-items:center;line-height:1}
.transport .play-button{display:grid;place-items:center;width:56px;height:56px;min-width:56px;padding:0;border-radius:50%;flex:none}
.transport .play-button svg{width:25px;height:25px}

.volume-control{display:flex;align-items:center;gap:10px;min-height:36px;color:var(--muted);font-size:12px}
.volume-control svg{width:18px;height:18px}
.volume-control input{flex:1;min-width:40px}
.volume-control output{width:36px;text-align:right;font-variant-numeric:tabular-nums}

.player-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:10px}
.player-tools button{min-height:42px;padding:6px 4px;gap:6px;background:var(--soft);border-radius:8px;font-size:12px;white-space:nowrap}
.player-tools svg{width:17px;height:17px}
.player-tools [data-speed]{font-variant-numeric:tabular-nums}

.options{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;margin-top:8px}
.options .text-button{min-height:36px;gap:6px;font-size:12px}
.options svg{width:17px;height:17px}
.switch{display:inline-flex;align-items:center;gap:8px;min-height:36px;font-size:12px;color:var(--muted)}
.switch input{appearance:none;position:relative;width:34px;height:20px;flex:none;margin:0;border:0;border-radius:20px;background:var(--line);cursor:pointer}
.switch input:after{content:'';position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:var(--muted)}
.switch input:checked{background:var(--action)}
.switch input:checked:after{left:17px;background:var(--button-text)}

.listening-progress{display:grid;gap:7px;margin-top:8px;color:var(--muted);font-size:11px}
.rail-title{font-size:20px;margin:20px 0 12px}
.volume-carousel{display:flex;align-items:center;gap:6px;min-width:0}
.volume-scroll{width:32px;min-width:32px;height:44px;padding:6px}
.volume-scroll svg{width:18px;height:18px}
.volume-shelf{display:flex;align-items:flex-start;gap:14px;flex:1;min-width:0;padding:2px 0 8px;overflow-x:auto;scroll-snap-type:x proximity;cursor:grab}
.volume-shelf,.volume-shelf img{user-select:none}
.volume-shelf.dragging{cursor:grabbing;scroll-snap-type:none}
.volume-cover-card{display:flex;flex-direction:column;justify-content:flex-start;gap:5px;flex:0 0 64px;min-width:0;padding:0;background:none;scroll-snap-align:start}
.volume-cover-card img{width:64px;height:96px;object-fit:contain;border-radius:4px}
.volume-cover-card span{font-size:11px;color:var(--muted);line-height:1.4}

.contents-column{padding:18px}
.contents-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.contents-heading h2{font-size:23px}
.contents-heading button[aria-expanded=false] svg{transform:rotate(180deg)}
.contents-controls{display:grid;gap:10px}
.voice-chooser{position:relative;min-width:0}
.voice-chooser>summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:9px 10px;border:1px solid var(--line);border-radius:8px;font-size:13px}
.voice-chooser>summary svg{width:18px;height:18px}
.voice-chooser>summary span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.voice-options{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:5;max-height:280px;overflow:auto;padding:5px;border:1px solid var(--line);border-radius:8px;background:var(--surface);box-shadow:0 12px 24px #0002}
.voice-options button{width:100%;justify-content:flex-start;text-align:left;font-size:13px;border-radius:5px}
.voice-options button span{flex:1;min-width:0;overflow-wrap:anywhere}
.voice-options svg{width:17px;height:17px}
.voice-options button[aria-pressed=true]{color:var(--gold);background:var(--soft)}

.chapter-search-wrap{display:block;position:relative}
.chapter-search-wrap>svg{position:absolute;top:12px;left:11px;width:19px;height:19px;color:var(--muted);pointer-events:none}
.chapter-search-wrap .chapter-search{padding-left:38px;font-size:14px}
.volumes{margin-top:14px;max-height:860px;overflow:auto;overscroll-behavior:contain}
.volume{border-top:1px solid var(--line)}
.volume>summary{display:grid;grid-template-columns:16px 32px minmax(0,1fr);gap:6px 10px;align-items:center;padding:12px 0}
.volume>summary>svg{width:16px;height:16px}
.volume[open]>summary>svg{transform:rotate(90deg)}
.volume-art img{width:32px;height:48px;object-fit:contain;border-radius:3px}
.volume-art>span{display:none}
.volume-title{min-width:0;font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.volume-title small{display:block;margin-top:3px;font-size:11px}
.volume-progress{grid-column:3;font-size:10px;color:var(--muted)}
.volume-progress svg{display:inline-block;width:12px;height:12px;vertical-align:middle}

.chapter-scroll{max-height:420px;min-height:100px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.chapter{display:flex;align-items:center;gap:2px;border-top:1px solid var(--line);min-height:54px}
.chapter.active{background:var(--soft);color:var(--gold);border-radius:5px}
.chapter-main{display:flex;flex:1;align-items:center;justify-content:flex-start;gap:7px;min-width:0;min-height:54px;padding:8px;text-align:left}
.chapter-main .chapter-copy{flex:1;min-width:0}
.chapter-main strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:14px;font-weight:500;line-height:1.4;overflow-wrap:anywhere}
.chapter-main small{display:block;margin-top:2px;font-size:10px;color:var(--muted)}
.chapter-main time{flex:none;color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums}
.chapter-main>svg{width:14px;height:14px}
.chapter-mark,.chapter-note{width:36px;min-width:36px;height:44px;padding:9px}
.chapter-mark svg,.chapter-note svg{width:17px;height:17px}
.chapter-mark[aria-pressed=true]{color:var(--gold)}
.chapter-check,.chapter-idle{display:none}
.chapter-loading,.chapter-reveal{display:block;width:100%;padding:12px;text-align:center;color:var(--muted);font-size:12px}

.book-details{margin:24px 0}
.book-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;font-size:13px}
.book-facts>div{min-width:0}
.book-facts small{display:block;margin-bottom:4px;font-size:11px}
.description-title{font-size:24px;margin:22px 0 12px}
.book-description{max-width:78ch;font-size:15px;line-height:1.8;overflow-wrap:anywhere}
.source-warning{margin-bottom:16px;padding:10px 12px;border-left:3px solid var(--gold);color:var(--muted);font-size:13px}

/* Dock and modal have no page-column padding or fluid transport buttons. */
.mini-player{position:fixed;z-index:12;bottom:16px;left:50%;transform:translateX(-50%);display:grid;grid-template-columns:minmax(160px,1fr) auto minmax(140px,230px) 44px;align-items:center;gap:16px;width:calc(100% - 32px);max-width:1232px;min-height:76px;padding:10px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:0 6px 28px #0003}

.mini-book{display:flex;align-items:center;justify-content:flex-start;gap:10px;min-width:0;padding:0;text-align:left}
.mini-book:hover{background:none}
.mini-book img{width:34px;height:51px;flex:none;border-radius:4px;object-fit:cover}
.mini-book>span{min-width:0}
.mini-book strong,.mini-book small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mini-book strong{font-size:13px}
.mini-book small{font-size:10px;margin-top:3px;color:var(--muted)}

.mini-transport{display:flex;align-items:center;justify-content:center;gap:2px}
.mini-transport .icon-button{width:40px;min-width:40px;height:44px;padding:8px}
.mini-transport .play-button{display:grid;place-items:center;width:42px;min-width:42px;height:42px;min-height:42px;padding:0;border-radius:50%}
.mini-transport .play-button svg{width:21px;height:21px}
.mini-transport .skip{gap:2px;font-size:10px}
.mini-transport .skip svg{width:14px;height:14px}
.mini-seek{min-width:0}
.mini-seek [data-clock]{display:block;text-align:center;color:var(--muted);font-size:10px;font-variant-numeric:tabular-nums}
.mobile-nav{display:none}

#status{position:fixed;bottom:110px;left:50%;transform:translateX(-50%);z-index:50;max-width:calc(100% - 32px);padding:10px 16px;border-radius:9px;background:var(--text);color:var(--bg);font-size:13px;box-shadow:0 4px 20px #0002}

dialog{width:420px;max-width:calc(100% - 24px);max-height:90dvh;overflow:auto;margin:auto;padding:22px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--text)}
dialog::backdrop{background:#0009}
dialog h2{font-size:23px;margin-bottom:14px}
dialog label{display:block;margin-bottom:6px;font-size:13px;color:var(--muted)}
.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}
.sleep-options{display:grid;margin:12px 0}
.sleep-options button{justify-content:flex-start;border-bottom:1px solid var(--line)}
.speed-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0}
.speed-options button{border:1px solid var(--line);border-radius:8px}
.speed-options button[aria-pressed=true]{background:var(--action);color:var(--button-text)}

.dialog-heading{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:60px;padding:8px 16px;border-bottom:1px solid var(--line);background:var(--surface)}
.dialog-heading h2{margin:0;font-size:21px}
.dialog-heading>span{font-size:12px;color:var(--muted)}
.dialog-heading .text-button{font-size:11px}
.collapse-icon{transform:rotate(180deg)}

.expanded-player{width:480px;padding:0}
.expanded-player>.dialog-heading{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;padding:6px 16px;gap:8px}
.expanded-player>.dialog-heading>span{text-align:center}
.expanded-player .dialog-heading .icon-button{width:44px;min-width:44px;padding:10px}
.expanded-work-link{display:block;padding:18px 22px 0;font:700 23px/1.3 var(--serif);color:var(--text);text-decoration:none}
.expanded-player .full-player{padding:16px 22px 0}
.expanded-player .player-track{display:grid;grid-template-columns:52px minmax(0,1fr);gap:14px;align-items:center;margin-bottom:12px}
.expanded-player .player-cover{display:block;width:52px;height:78px;object-fit:cover;border-radius:4px}
.expanded-player .player-info h2{font-size:20px}
.expanded-player .player-info p{font-size:12px}
.expanded-player .resume{display:none}
.expanded-player .transport{gap:12px;margin:12px 0}
.expanded-player .volume-control>span{display:none}
.expanded-player .options,.expanded-player .listening-progress{margin-inline:22px}
.expanded-player .listening-progress{margin-bottom:16px}
.expanded-chapters{margin-top:16px;padding:16px 22px 20px;border-top:1px solid var(--line)}
.expanded-chapters h2{font-size:18px;line-height:1.4;margin:0 0 12px}
.expanded-chapters input{margin:6px 0 12px}
.expanded-scroll{height:280px;max-height:35dvh;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}

.comment-form{display:flex;align-items:flex-start;gap:10px;margin-bottom:18px}
.comment-form textarea{flex:1}
.comment-form .gold-button{width:44px;min-width:44px;padding:10px}
.avatar{display:grid;place-items:center;width:34px;height:34px;flex:none;overflow:hidden;border-radius:50%;background:var(--soft);color:var(--gold)}
.avatar img{width:100%;height:100%;object-fit:cover}
.comment{display:flex;gap:12px;border-top:1px solid var(--line);padding:16px 0}
.comment>div{min-width:0}
.comment strong{font-size:14px}
.comment time{display:block;margin:3px 0 6px;font-size:11px;color:var(--muted)}
.comment p{font-size:14px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
.comment button{padding:4px 0;min-height:32px;font-size:12px}
#comment-list{max-height:60dvh;overflow:auto;overscroll-behavior:contain}

.profile{max-width:800px;margin:auto}
.profile h1{margin-bottom:16px}
.profile>p{max-width:65ch;color:var(--muted)}
.profile>.volume-control{max-width:450px;margin-top:20px}
.profile-links{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:20px 0}
.profile-links>a,.profile-links>button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;font-size:13px}
.profile-links>.muted{font-size:12px}
.audio-account-form{display:grid;gap:16px;max-width:440px;margin-top:24px}
.audio-account-form label{display:grid;gap:6px;font-size:13px}
.audio-account-form .account-consent{display:block;line-height:1.6}
.account-consent input{vertical-align:middle;margin-right:7px}
.account-consent a{color:var(--gold)}
.audio-account-form #account-error{color:var(--gold);font-size:13px}

.shelf-tabs{margin-top:18px}
.shelf-list{display:grid;gap:18px}
.shelf-entry{display:grid;grid-template-columns:74px minmax(0,1fr) 44px;gap:16px;padding:18px 0;border-bottom:1px solid var(--line)}
.shelf-entry img{width:74px;height:111px;object-fit:cover;border-radius:4px}
.shelf-entry h2{font-size:23px}
.shelf-entry p{margin-top:5px;font-size:13px;color:var(--muted)}
.shelf-entry .gold-button{margin-top:10px;min-height:40px;font-size:13px}

@media(max-width:1100px){
 .work-layout{grid-template-columns:minmax(0,1fr) 310px;gap:18px}
.work-listen{grid-template-columns:110px minmax(0,1fr);gap:18px}
.work-main{padding:18px}
.transport{gap:3px}
.transport .skip{width:44px;min-width:44px}

.feed-card{grid-template-columns:112px minmax(0,1fr);gap:7px 18px}
.mini-player{grid-template-columns:minmax(130px,1fr) auto 44px;gap:12px}
.mini-seek{display:none}

}

@media(max-width:950px){
 .work-layout{grid-template-columns:minmax(0,1fr)}
.work-listen{grid-template-columns:144px minmax(0,1fr);gap:24px}
.contents-controls{grid-template-columns:1fr 1fr}
.volumes{max-height:none}
.chapter-scroll{max-height:50dvh}
.feed-card{grid-template-columns:132px minmax(0,1fr)}
.book-facts{grid-template-columns:1fr 1fr}
.mini-transport [data-action=previous],.mini-transport [data-action=next]{display:none}
.desktop-nav{gap:16px}
.site-header{gap:12px}

}

@media(max-width:760px){
 body{padding-bottom:calc(180px + env(safe-area-inset-bottom,0px))}
.site-header{min-height:66px;padding:10px 16px;gap:8px}
.brand{font-size:22px;gap:8px}
.brand svg{width:22px;height:22px}
.desktop-nav,.header-search,.appearance-picker [data-theme-name]{display:none}
.appearance-picker{margin-left:auto}
.appearance-picker summary{width:40px;padding:8px}
.account-link{width:40px;height:40px}
.account-link svg{width:22px;height:22px}

 #content{padding:0 16px}
.page{padding:22px 0}
.import-status{padding-inline:16px}
.catalog-heading{gap:12px;flex-wrap:wrap;margin-bottom:16px}
.catalog-heading h1{font-size:26px}
.catalog-heading p{font-size:12px}
.catalog-heading .text-button{font-size:12px;min-height:36px}
.catalog-search{max-width:none}
.shelf-tabs{gap:22px;margin-bottom:20px}
.shelf-tabs button{font-size:13px;min-height:44px}

 .catalog-grid{gap:22px}
.feed-card{grid-template-columns:86px minmax(0,1fr);gap:7px 14px;padding-bottom:22px}
.feed-cover{grid-row:1 / span 3}
.feed-card h2{font-size:21px;line-height:1.25}
.feed-top{font-size:11px;gap:7px}
.views{font-size:10px}
.views svg{width:13px;height:13px}
.feed-description{font-size:13px;line-height:1.6;-webkit-line-clamp:3}
.feed-metadata{grid-column:1/-1;font-size:11px;gap:5px 12px;margin-top:3px}
.feed-metadata svg{width:14px;height:14px}
.social-actions{grid-column:1/-1;gap:2px 6px;margin-top:0}
.social-actions button{min-height:44px;font-size:11px;padding-inline:8px}
.social-actions .comment-label{display:none}
.reaction-row{gap:2px}
.social-row{gap:5px}
.filters{grid-template-columns:1fr 1fr;padding:12px;gap:10px}
.filters select{font-size:13px}

 .book-breadcrumb{padding:14px 0;font-size:11px}
.work-main{padding:16px}
.work-heading{margin-bottom:18px}
.work-heading h1{font-size:26px;padding-right:24px}
.work-byline{font-size:12px;gap:5px 12px;margin-top:8px}
.work-listen{grid-template-columns:80px minmax(0,1fr);gap:8px 14px}
.work-cover{grid-column:1;grid-row:1}
.listen-column,.listen-column>.full-player{display:contents}
.listen-column .player-track{grid-column:2;grid-row:1;align-self:center;margin:0}
.player-info h2{font-size:21px}
.player-info p{font-size:11px}
.resume{font-size:11px;min-height:32px}

 .listen-column .full-player>input,.listen-column .time-row,.listen-column .transport,.listen-column .volume-control,.listen-column .player-tools,.listen-column>.options,.listen-column>.listening-progress{grid-column:1/-1}
.listen-column .full-player>input{margin-top:8px}
.listen-column .transport{margin:6px 0;gap:8px}
.transport .play-button{width:54px;height:54px;min-width:54px}
.transport .icon-button{width:40px;min-width:40px}
.transport .skip{width:46px;min-width:46px}
.listen-column .volume-control>span{display:none}
.player-tools{margin-top:2px;gap:6px}
.player-tools button{min-height:40px;font-size:11px;gap:5px}
.player-tools svg{width:16px;height:16px}
.options{margin-top:0;gap:2px 10px}
.options .text-button,.switch{font-size:11px;min-height:34px}
.listening-progress{margin-top:0;font-size:10px}

 .work-main>.social-actions{margin-top:16px;padding-top:10px}
.rail-title{font-size:19px;margin:16px 0 10px}
.volume-shelf{gap:12px}
.volume-cover-card{flex-basis:56px}
.volume-cover-card img{width:56px;height:84px}
.volume-scroll{width:26px;min-width:26px;padding:4px}
.contents-column{padding:14px}
.contents-heading h2{font-size:22px}
.contents-controls{grid-template-columns:1fr}
.volume-title{font-size:14px}
.chapter-scroll{max-height:48dvh}
.chapter-main strong{font-size:15px}
.book-details{padding:16px;margin-top:18px}
.book-facts{gap:14px;font-size:12px}
.description-title{font-size:22px;margin-top:18px}
.book-description{font-size:14px}

 .mobile-nav{position:fixed;z-index:13;bottom:0;left:0;right:0;display:flex;align-items:stretch;justify-content:space-around;height:calc(62px + env(safe-area-inset-bottom,0px));padding:4px 8px env(safe-area-inset-bottom,0px);border-top:1px solid var(--line);background:var(--surface)}
.mobile-nav a{display:flex;flex:1;align-items:center;justify-content:center;flex-direction:column;gap:4px;min-width:0;min-height:52px;color:var(--muted);font-size:10px;line-height:1.2}
.mobile-nav svg{width:21px;height:21px}
.mobile-nav a.active{color:var(--gold)}

 .mini-player{left:8px;right:8px;bottom:calc(70px + env(safe-area-inset-bottom,0px));transform:none;width:auto;min-height:72px;padding:8px 10px;grid-template-columns:minmax(0,1fr) auto 36px;gap:6px;border-radius:10px}
.mini-book{gap:8px}
.mini-book img{width:28px;height:42px}
.mini-book strong{font-size:12px}
.mini-book small{font-size:9px}
.mini-transport{gap:0}
.mini-transport .icon-button{width:34px;min-width:34px;padding:4px}
.mini-transport .play-button{width:38px;min-width:38px;height:38px;min-height:38px}
.mini-transport .skip svg{width:12px;height:12px}
.mini-expand{width:36px;min-width:36px;padding:7px}
#status{bottom:calc(154px + env(safe-area-inset-bottom,0px))}

 .expanded-player{position:fixed;top:auto;bottom:0;left:0;right:0;width:100%;max-width:100%;max-height:92dvh;margin:0;border-radius:16px 16px 0 0;padding-bottom:env(safe-area-inset-bottom,0px)}
.expanded-player>.dialog-heading{min-height:52px;padding:4px 14px}
.expanded-player>.dialog-heading>span{font-size:11px}
.expanded-player .dialog-heading .text-button{font-size:10px}
.expanded-work-link{padding:16px 20px 0;font-size:21px}
.expanded-player .full-player{padding:14px 20px 0}
.expanded-player .player-info h2{font-size:19px}
.expanded-player .player-info p{font-size:11px}
.expanded-player .transport{margin:10px 0;gap:10px}
.expanded-player .options,.expanded-player .listening-progress{margin-inline:20px}
.expanded-player .options{margin-top:8px}
.expanded-player .listening-progress{margin-top:4px;margin-bottom:14px}
.expanded-chapters{padding:14px 20px 18px;margin-top:14px}
.expanded-chapters h2{font-size:16px}
.expanded-scroll{max-height:30dvh}

.comment-form>.avatar{display:none}
.profile h1{font-size:27px}
.profile-links{gap:8px}
.profile-links>a,.profile-links>button{font-size:12px;padding:8px 10px}
.shelf-entry{grid-template-columns:60px minmax(0,1fr) 36px;gap:12px}
.shelf-entry img{width:60px;height:90px}
.shelf-entry h2{font-size:20px}
.shelf-entry p{font-size:12px}

}

@media(max-width:359px){
 #content{padding-inline:12px}
.site-header{padding-inline:12px}
.brand{font-size:20px}
.feed-card{grid-template-columns:72px minmax(0,1fr);gap:6px 12px}
.feed-card h2{font-size:19px}
.feed-description{font-size:12px}
.work-main{padding:12px}
.work-heading h1{font-size:24px}
.work-listen{grid-template-columns:70px minmax(0,1fr);gap:8px 12px}
.player-info h2{font-size:19px}
.listen-column .transport{gap:4px}
.transport .icon-button{width:36px;min-width:36px}
.transport .skip{width:42px;min-width:42px}
.transport .play-button{width:50px;height:50px;min-width:50px}
.mini-book img{display:none}
.mini-player{gap:3px;padding-inline:8px}
.mini-book strong{font-size:11px}
.social-actions button{padding-inline:6px}
.filters{grid-template-columns:1fr}

}

@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}
}

/* Desktop library composition: independent shelves and a live chapter column. */
.site-header,#content{max-width:1560px}
.audio-book-page #content{max-width:1400px}
.feature-navigation{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px}
.feature-navigation .icon-button{height:36px;min-height:36px;width:36px;min-width:36px;padding:8px}
.home-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:32px;margin-top:28px}
.home-collections{min-width:0}
.home-rail{min-width:0;margin-bottom:26px}
.rail-heading{display:flex;align-items:center;gap:16px;margin-bottom:14px;min-width:0}
.rail-heading h2{font-size:26px;min-width:0}
.rail-heading>a{font-size:12px;margin-left:auto;white-space:nowrap}
.rail-controls{display:flex;gap:3px}
.rail-controls .icon-button{width:34px;min-width:34px;height:36px;min-height:36px;padding:7px}
.rail-controls svg{width:18px;height:18px}
.home-shelf{display:grid;grid-auto-flow:column;grid-auto-columns:144px;gap:20px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:2px 2px 14px}
.shelf-tile{min-width:0;scroll-snap-align:start}
.shelf-tile img{width:144px;height:216px;object-fit:contain;border-radius:5px;background:var(--surface)}
.shelf-tile h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:17px;line-height:1.35;margin-top:10px}
.shelf-tile p{font-size:12px;color:var(--muted);margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.shelf-tile small{display:block;font-size:11px;margin-top:3px}
.chapter-updates{min-width:0;border-left:1px solid var(--line);padding-left:24px}
.chapter-updates>.rail-heading{height:36px}
.chapter-updates h2{font-size:23px}
.update-row{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:10px;align-items:start;padding:14px 0;border-bottom:1px solid var(--line)}
.update-row img{width:40px;height:60px;object-fit:cover;border-radius:3px}
.update-row>span{min-width:0}
.update-row strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font:600 13px/1.4 system-ui,sans-serif}
.update-row small{display:block;font-size:11px;line-height:1.5;margin-top:3px}
.update-row time{font-size:10px;color:var(--muted);white-space:nowrap;margin-top:2px}
.chapter-updates .more{font-size:12px;min-height:38px;padding:7px 12px}
.home-genres{margin-top:24px}
.home-genres>div{display:flex;flex-wrap:wrap;gap:8px 12px;margin-top:14px;font-size:12px}
.mini-controls{min-width:0}
.mini-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px}
.dock-speed{border-radius:8px;font-size:15px;font-weight:600}
.expanded-selectors{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:12px;padding:14px 22px 0}
.expanded-selectors label{min-width:0;margin:0;font-size:12px}
.expanded-selectors select{margin-top:5px;font-size:14px;min-height:44px}
.expanded-chapters{margin-top:12px}
.expanded-now{border-top:1px solid var(--line);margin-top:8px;padding-bottom:16px}
@media(min-width:761px){
 body{padding-bottom:160px}
.catalog-page .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 28px}
.catalog-page .feed-catalog{max-width:none}
.catalog-page .feed-card{grid-template-columns:105px minmax(0,1fr);gap:7px 16px}
.catalog-page .feed-card h2{font-size:22px}
.catalog-page .feed-description{-webkit-line-clamp:2;font-size:13px}
.catalog-page .feed-metadata{grid-column:1/-1;font-size:12px}
.catalog-page .social-actions{grid-column:1/-1}
.catalog-page .catalog-search{max-width:430px}
.catalog-page .filters{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;padding:12px}
.catalog-page .filters select{font-size:13px;padding:9px 10px;min-height:40px}
.listen-column .player-info h2{font-size:27px}
.listen-column .player-info p{font-size:14px}
.listen-column .resume{font-size:14px;min-height:40px}
.full-player .time-row{font-size:13px}
.full-player input[type=range]{height:32px}
.full-player .transport{gap:12px;margin:16px 0}
.full-player .transport .icon-button{width:48px;height:48px;min-width:48px}
.full-player .transport .skip{width:58px;min-width:58px;font-size:13px;gap:5px}
.full-player .transport .skip svg{width:19px;height:19px}
.full-player .transport .play-button{width:68px;height:68px;min-width:68px}
.full-player .transport .play-button svg{width:31px;height:31px}
.full-player .player-tools button{min-height:48px;font-size:14px;gap:8px}
.full-player .player-tools svg{width:20px;height:20px}
.listen-column .volume-control{font-size:14px;min-height:40px}
.listen-column .options .text-button,.listen-column .switch{font-size:13px;min-height:40px}
.listen-column .listening-progress{font-size:12px}
.mini-player{max-width:1120px;grid-template-columns:minmax(190px,.9fr) minmax(340px,1.5fr) auto;gap:16px;padding:12px 16px;min-height:106px}
.mini-book{gap:14px}
.mini-book img{width:44px;height:66px}
.mini-book strong{font-size:16px}
.mini-book small{font-size:12px;line-height:1.5}
.mini-controls{display:grid;gap:2px}
.mini-transport{gap:8px}
.mini-transport .icon-button{width:44px;min-width:44px;height:44px}
.mini-transport .skip{width:50px;min-width:50px;font-size:12px;gap:3px}
.mini-transport .skip svg{width:17px;height:17px}
.mini-transport .play-button{width:50px;height:50px;min-width:50px;min-height:50px}
.mini-transport .play-button svg{width:25px;height:25px}
.mini-seek{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px}
.mini-seek [data-clock]{font-size:12px;min-width:94px}
.mini-actions .mini-expand{width:50px;height:50px;min-width:50px;background:var(--soft);border-radius:50%}
.mini-expand svg{width:26px;height:26px}
.player-popover{position:fixed;top:auto;right:auto;margin:0;z-index:40;max-width:calc(100% - 32px);border-radius:14px;box-shadow:0 14px 60px #0004}
.player-popover>.dialog-heading{min-height:48px;padding-block:2px}
.player-popover .expanded-work-link{font-size:22px;padding-top:12px}
.player-popover .expanded-selectors{padding-top:10px}
.player-popover .expanded-chapters{padding-top:0;padding-bottom:6px;border-top:0}
.player-popover .expanded-chapters label{margin-bottom:4px}
.player-popover .expanded-chapters input{min-height:38px;font-size:14px;margin-bottom:8px}
.player-popover .expanded-scroll{height:156px;max-height:19dvh}
.player-popover .chapter{min-height:44px}
.player-popover .chapter-main{min-height:44px;padding-block:5px}
.player-popover .chapter-main strong{font-size:14px}
.player-popover .expanded-now .full-player{padding-top:12px}
.player-popover .player-track{display:block;margin-bottom:6px}
.player-popover .player-cover,.player-popover .volume-control,.player-popover .listening-progress{display:none}
.player-popover .player-info h2{font-size:22px}
.player-popover .player-info p{font-size:13px}
.player-popover .full-player .transport{margin:8px 0;gap:10px}
.player-popover .full-player .transport .play-button{width:60px;height:60px;min-width:60px}
.player-popover .player-tools button{min-height:42px;font-size:13px}
.player-popover .options{margin-top:8px}
.player-popover .expanded-now{padding-bottom:10px}
}
@media(min-width:761px) and (max-width:1100px){
 .home-layout{grid-template-columns:minmax(0,1fr) 270px;gap:22px}
.chapter-updates{padding-left:18px}
.home-shelf{grid-auto-columns:126px;gap:16px}
.shelf-tile img{width:126px;height:189px}
.mini-player{grid-template-columns:minmax(180px,.9fr) minmax(300px,1.5fr) auto;gap:12px}
.mini-book strong{font-size:14px}
.mini-book small{font-size:11px}
.mini-seek [data-clock]{min-width:86px;font-size:11px}
.catalog-page .filters{grid-template-columns:repeat(3,minmax(0,1fr))}
.catalog-page .feed-card{grid-template-columns:85px minmax(0,1fr);gap:7px 12px}
.catalog-page .feed-card h2{font-size:20px}
.catalog-page .comment-label{display:none}
.full-player .transport{gap:7px}
.full-player .transport .skip{width:52px;min-width:52px}
}
@media(max-width:760px){
.feature-copy .gold-button svg{width:17px;height:17px}
.home-layout{grid-template-columns:minmax(0,1fr);margin-top:22px;gap:12px}
.home-rail{margin-bottom:18px}
.rail-heading{gap:10px;margin-bottom:12px}
.rail-heading h2{font-size:23px}
.rail-heading>a{font-size:11px}
.rail-controls{gap:0}
.rail-controls .icon-button{width:28px;min-width:28px;padding:5px}
.home-shelf{grid-auto-columns:112px;gap:16px}
.shelf-tile img{width:112px;height:168px}
.shelf-tile h3{font-size:16px}
.shelf-tile p{font-size:11px}
.chapter-updates{padding:0;border-left:0}
.update-row{grid-template-columns:40px minmax(0,1fr) auto}
.mini-controls,.mini-actions{display:contents}
.dock-speed{display:none}
.expanded-selectors{padding-inline:20px;gap:10px}
.expanded-selectors select{font-size:13px}
.expanded-now{padding-bottom:12px}
.expanded-chapters{margin-top:10px}
.expanded-player .expanded-scroll{height:190px;max-height:25dvh}
}
@media(max-width:359px){
.expanded-selectors{grid-template-columns:1fr}
.home-shelf{grid-auto-columns:102px}
.shelf-tile img{width:102px;height:153px}
}
@media(min-width:761px){
 /* A two-column flyout stays beside the dock instead of growing into a page. */
 .player-popover #expanded-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:18px}
.player-popover .expanded-work-link,.player-popover .expanded-selectors{grid-column:1/-1}
.player-popover .expanded-selectors{padding-bottom:14px}
.player-popover .expanded-chapters{grid-column:1;grid-row:3;padding:0 0 16px 22px;margin:0;min-width:0}
.player-popover .expanded-scroll{height:250px;max-height:29dvh}
.player-popover .expanded-now{grid-column:2;grid-row:3;border-top:0;border-left:1px solid var(--line);padding:0 0 12px;margin:0;min-width:0}
.player-popover .expanded-now .full-player{padding:0 22px 0 18px}
.player-popover .options{margin-inline:18px 22px;gap:2px 8px}
.player-popover .options .text-button,.player-popover .switch{font-size:11px}
.player-popover .full-player .transport{gap:3px;margin:10px 0}
.player-popover .full-player .transport .icon-button{width:40px;min-width:40px;height:44px}
.player-popover .full-player .transport .skip{width:46px;min-width:46px;font-size:11px}
.player-popover .full-player .transport .play-button{width:56px;height:56px;min-width:56px}
.player-popover .player-tools button{font-size:11px;gap:5px}
.player-popover .player-tools svg{width:17px;height:17px}
}
@media(min-width:761px){
 .catalog-page .feed-cover{grid-row:1 / span 4}
.catalog-page .feed-metadata{grid-column:2}
.catalog-page .feed-card{padding-bottom:20px}
}
@media(min-width:761px){
 .mini-seek input[type=range]{height:32px}
.mini-seek input[type=range]::-webkit-slider-runnable-track{height:4px}
.mini-seek input[type=range]::-webkit-slider-thumb{width:16px;height:16px;margin-top:-6px}
.mini-seek input[type=range]::-moz-range-track{height:4px}
.mini-seek input[type=range]::-moz-range-thumb{width:16px;height:16px}
}

/* Large cover-led hero; white copy remains readable in all three appearances. */
.feature-copy h2 a:hover{color:#fff;text-decoration:underline;text-underline-offset:5px}
.feature-facts{display:flex;align-items:center;flex-wrap:wrap;gap:8px 20px;font-size:12px;color:#ced5dd;margin-bottom:10px}
.feature-facts>span{display:inline-flex;align-items:center;gap:5px}
.feature-facts svg{width:17px;height:17px;color:#c0cbd8}
.feature-facts strong{color:#fff;font-weight:600;font-variant-numeric:tabular-nums}
.feature-navigation{z-index:3;color:#e0e5ec}
.feature-navigation button:hover{background:#ffffff20;color:#fff}
/* Compact rhythm keeps large transport buttons but removes stacked whitespace. */
.work-title-row{display:flex;align-items:start;justify-content:space-between;gap:18px}
.work-title-row h1{min-width:0;padding-right:0;flex:1}
.work-title-row .title-bookmark{display:inline-flex;flex:none;align-items:center;justify-content:center;min-height:42px;padding:8px 14px;border:1px solid var(--line);border-radius:8px;font-size:13px;white-space:nowrap;color:var(--gold)}
.title-bookmark svg{width:18px;height:18px}
.work-heading .work-byline .views{position:static;font-size:12px;align-self:center}
.listen-column .player-track{margin-bottom:2px}
.listen-column .resume{margin-top:0;min-height:30px;padding-block:3px}
.listen-column .full-player>input[type=range]{height:26px}
.listen-column .full-player .transport{margin:4px 0}
.listen-column .volume-control{min-height:32px}
.listen-column .player-tools{margin-top:4px}
.listen-column .player-tools button{min-height:44px}
.listen-column .options{margin-top:2px}
.listen-column .options .text-button,.listen-column .switch{min-height:34px}
.listen-column .listening-progress{margin-top:4px;gap:4px}
.work-listen{column-gap:18px}
.work-main .rail-title{margin:16px 0 12px;font-size:24px}
.work-main .volume-shelf{gap:18px;padding-bottom:12px}
.work-main .volume-cover-card{flex-basis:120px;gap:6px}
.work-main .volume-cover-card img{width:120px;height:180px;border-radius:6px}
.work-main .volume-cover-card>span{font-size:17px;font-weight:600;color:var(--text);line-height:1.35}
.volume-cover-card>small{font-size:12px;color:var(--muted);line-height:1.4}
.work-main .volume-scroll{width:40px;min-width:40px;height:48px}
.work-main .volume-scroll svg{width:22px;height:22px}
.book-comments{margin-top:12px;border-top:1px solid var(--line);padding-top:4px}
.comments-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:8px 0}
.comments-heading h2{display:flex;align-items:center;gap:10px;font-size:22px;margin:0}
.comments-heading small{display:inline-flex;align-items:center;justify-content:center;min-width:26px;min-height:24px;padding:2px 7px;border-radius:6px;background:var(--soft);color:var(--muted);font:12px system-ui,sans-serif}
.comments-heading>svg{width:20px;height:20px;transform:rotate(180deg)}
.book-comments[open] .comments-heading>svg{transform:none}
.book-comments[open] .comments-heading{margin-bottom:12px}
@media(max-width:1100px) and (min-width:761px){
.feature-facts{gap:8px 14px}
.work-main .volume-cover-card{flex-basis:110px}
.work-main .volume-cover-card img{width:110px;height:165px}
}
@media(max-width:760px){
.feature-facts{font-size:11px;gap:8px 14px}
.feature-facts svg{width:15px;height:15px}
.work-title-row{gap:10px}
.work-title-row .title-bookmark{width:40px;min-height:40px;padding:9px}
.title-bookmark [data-save-label]{display:none}
.work-title-row h1{padding-right:0}
.work-heading{margin-bottom:14px}
.work-listen{row-gap:3px}
.listen-column .full-player>input{margin-top:2px}
.listen-column .full-player .transport{margin:3px 0}
.listen-column .player-tools{margin-top:2px}
.listen-column .player-tools button{min-height:40px}
.listen-column .listening-progress{margin-top:1px}
.work-main .rail-title{font-size:22px;margin-top:14px}
.work-main .volume-shelf{gap:14px}
.work-main .volume-cover-card{flex-basis:90px}
.work-main .volume-cover-card img{width:90px;height:135px}
.work-main .volume-cover-card>span{font-size:15px}
.work-main .volume-scroll{width:28px;min-width:28px;padding:3px}
.work-main .volume-scroll svg{width:19px;height:19px}
.comments-heading h2{font-size:21px}
}

/* One bounded hero layout: long titles cannot move the shelves or controls. */
.featured-books{position:relative;display:block;isolation:isolate;height:420px;min-height:0;max-height:420px;padding:28px 44px 56px;border:1px solid #242d38;border-radius:16px;background:#141921;overflow:hidden}
.feature-copy{position:relative;z-index:2;display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:64%;max-width:740px;height:100%;min-height:0;overflow:hidden;color:#f4f5f7}
.feature-genre{flex:none;width:100%;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:16px;color:#f1b8a9}
.feature-copy h2{flex:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:26ch;max-height:2.32em;font-size:clamp(28px,2.6vw,38px);line-height:1.16;margin:0}
.feature-author{flex:none;width:100%;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;line-height:18px;color:#c8cfd7}
.feature-description{flex:0 1 auto;min-height:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-height:42px;margin:0;font-size:14px;line-height:21px;color:#e0e4e9}
.feature-facts{flex:none;line-height:18px;margin:2px 0 0;gap:6px 16px}
.feature-copy .gold-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:none;align-self:flex-start;min-height:42px;margin-top:auto;padding:9px 16px;font-size:14px}
.featured-books::after{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,#141921 0%,#141921 30%,#141921fc 45%,#141921eb 54%,#14192199 65%,#14192120 82%,#1419210a 100%)}
@media(min-width:761px) and (max-width:1100px){
 .featured-books{padding-inline:30px}
 .feature-copy{width:70%}
}
@media(max-width:760px){
 .featured-books{height:380px;max-height:380px;padding:20px 20px 48px;border-radius:12px}
 .feature-copy{width:100%;max-width:none}
 .feature-copy h2{max-width:100%;font-size:26px}
 .feature-genre{font-size:11px;line-height:15px}
 .feature-author{font-size:12px;line-height:17px}
 .feature-description{font-size:13px;line-height:19px;max-height:38px}
 .feature-facts{font-size:11px;gap:6px 12px}
 .feature-copy .gold-button{font-size:12px;min-height:40px;padding:8px 12px}
 .featured-books::after{background:linear-gradient(90deg,#141921fa 0%,#141921f2 45%,#141921ce 60%,#14192185 100%)}
}

/* Readable library scale and a dock aligned to the right edge of the site. */
.feature-facts{font-size:15px;line-height:24px;gap:10px 18px}
.feature-facts svg{width:21px;height:21px}
.feature-facts .feature-count{color:#ffd6a1;font-size:17px}
.feature-count strong{color:#ffd6a1;font-size:21px}
.feature-copy .gold-button{font-size:16px;min-height:46px}
.feature-author{font-size:15px;line-height:21px}
.feature-autoplay svg{width:18px;height:18px}
.shelf-tile p{font-size:14px;line-height:1.5}
.shelf-tile small{display:inline-flex;align-items:center;gap:6px;font-size:14px;color:var(--gold);font-weight:600;margin-top:7px}
.shelf-tile h3{font-size:19px;min-height:2.7em}
.cover-reactions{display:flex;justify-content:center;gap:8px;margin-top:12px}
.cover-reactions button{min-width:68px;min-height:48px;font-size:18px;border:1px solid var(--line);border-radius:8px;background:var(--soft)}
.cover-reactions svg{width:25px;height:25px}
.cover-reactions button[aria-pressed=true]{color:var(--gold);border-color:var(--gold)}
.comments-heading{min-height:66px}
.comments-heading h2{font-size:26px}
.comments-heading small{font-size:15px;min-width:32px;min-height:30px}
.listener-profile{max-width:1000px}
.listener-overview{margin:22px 0 30px;padding:26px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.listener-identity{display:flex;align-items:center;gap:20px}
.listener-identity>div{flex:1;min-width:0}
.listener-identity h2{font-size:27px;overflow-wrap:anywhere}
.listener-identity p{color:var(--muted);font:italic 17px/1.5 var(--serif);margin-top:5px}
.listener-avatar{display:grid;place-items:center;flex:none;width:88px;height:88px;border-radius:50%;overflow:hidden;color:var(--gold);background:var(--soft)}
.listener-avatar svg{width:42px;height:42px}
.listener-avatar img{width:100%;height:100%;object-fit:cover}
.listener-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:26px;padding-top:24px;border-top:1px solid var(--line);gap:20px}
.listener-stats a{display:grid;grid-template-columns:28px 1fr;align-content:start;align-items:center;gap:6px 12px}
.listener-stats svg{color:var(--gold);width:26px;height:26px}
.listener-stats strong{font-size:28px;line-height:1.25;font-weight:600}
.listener-stats span{grid-column:1/-1;font-size:14px;color:var(--muted)}
.listener-sync{margin-top:22px;color:var(--muted);font-size:14px}
.listener-settings{display:grid;gap:12px;padding-block:8px 24px;border-bottom:1px solid var(--line)}
.listener-settings h2{font-size:24px}
.listener-settings .volume-control{max-width:500px}
.listener-settings>.text-button{justify-content:flex-start;font-size:16px}
.listener-shelf .shelf-tabs{display:flex;flex-wrap:wrap;gap:6px}
.listener-shelf .shelf-tabs button{font-size:16px;padding-inline:14px}
.account-page{padding:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);max-width:1180px;margin:36px auto;min-height:600px;border:1px solid var(--line);border-radius:20px;overflow:hidden;background:var(--surface)}
.account-panel{padding:40px}
.account-panel h1{font-size:32px;margin:18px 0 12px}
.account-panel>p{font-size:14px;line-height:1.7;color:var(--muted)}
.account-panel .audio-account-form{max-width:none;gap:18px}
.account-panel .audio-account-form label{font-size:15px}
.account-panel input:not([type=checkbox]){min-height:50px}
.account-panel .gold-button{min-height:50px;font-size:17px}
.account-art{position:relative;isolation:isolate;overflow:hidden;background:#141921;color:#f5eee5;display:flex;align-items:flex-end;padding:38px}
.account-covers{position:absolute;inset:-35px -40px 0;z-index:-2;display:flex;align-items:flex-start;gap:20px;transform:rotate(-12deg);opacity:.65}
.account-covers img{width:43%;max-width:none;aspect-ratio:2/3;object-fit:cover;border-radius:8px;box-shadow:0 18px 40px #0007}
.account-covers img:nth-child(2){margin-top:90px}
.account-art::after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#141921 3%,#141921f0 30%,#14192133 85%)}
.account-story>svg{width:36px;height:36px;color:#efb19d;margin-bottom:16px}
.account-story h2{font-size:34px;margin-bottom:14px}
.account-story p{color:#d6dbe1;line-height:1.8;font-size:17px;max-width:36ch}
@media(min-width:761px){
 .mini-player{left:auto;right:max(24px,calc((100vw - 1560px)/2 + 24px));transform:none;max-width:1180px;grid-template-columns:minmax(210px,.95fr) minmax(350px,1.5fr) auto;padding:14px 18px;min-height:116px}
 .mini-book img{width:52px;height:78px}
 .mini-book strong{font-size:18px}
 .mini-book small{font-size:14px}
 .mini-transport .play-button{width:56px;height:56px;min-width:56px;min-height:56px}
 .mini-transport .icon-button{width:48px;min-width:48px;height:48px}
 .mini-transport .skip{font-size:14px;width:58px;min-width:58px}
 .mini-seek [data-clock]{font-size:14px;min-width:104px}
 .home-shelf{grid-auto-columns:164px;gap:22px}
 .shelf-tile img{width:164px;height:246px}
 .work-listen{grid-template-columns:210px minmax(0,1fr);gap:22px}
 .listen-column{max-width:590px}
 .listen-column .player-info h2{font-size:25px}
 .listen-column .player-info p{font-size:14px}
}
@media(min-width:761px) and (max-width:1100px){
 .mini-player{right:16px;grid-template-columns:minmax(150px,.8fr) minmax(300px,1.4fr) auto;gap:10px}
 .mini-book strong{font-size:16px}
 .mini-book small{font-size:12px}
 .work-layout{grid-template-columns:minmax(0,1fr) 290px;gap:16px}
 .work-main{padding:16px}
 .work-listen{grid-template-columns:160px minmax(0,1fr);gap:14px}
 .listen-column .full-player .transport{gap:0}
 .listen-column .full-player .transport .icon-button{width:36px;min-width:36px;padding-inline:4px}
 .listen-column .full-player .transport .skip{width:44px;min-width:44px;font-size:11px}
 .listen-column .full-player .transport .play-button{width:58px;min-width:58px;height:58px}
 .listen-column .player-tools button{font-size:12px;gap:4px}
 .feature-facts{font-size:14px;gap:7px 12px}
 .feature-facts .feature-count{font-size:15px}
 .feature-count strong{font-size:18px}
 .account-panel{padding:28px}
 .account-art{padding:28px}
}
@media(max-width:760px){
 .feature-facts{font-size:12px;line-height:20px;gap:6px 12px}
 .feature-facts svg{width:17px;height:17px}
 .feature-facts .feature-count{font-size:13px}
 .feature-count strong{font-size:17px}
 .feature-copy .gold-button{font-size:14px;min-height:42px}
 .feature-author{font-size:13px;line-height:18px}
 .shelf-tile h3{font-size:17px}
 .shelf-tile p,.shelf-tile small{font-size:12px}
 .work-listen{grid-template-columns:minmax(0,1fr);gap:12px}
 .listen-column{grid-column:1/-1;grid-row:auto;display:block}
 .listen-column>.full-player{display:block}
 .listen-column .player-track{margin:0 0 8px}
 .work-cover{grid-column:1/-1;display:block;width:164px;margin:0 auto 16px}
 .work-cover .book-poster{width:164px}
 .cover-reactions{flex-direction:row;margin:10px 0 0;gap:8px}
 .cover-reactions button{min-width:72px;min-height:50px}
 .comments-heading h2{font-size:24px}
 .listener-overview{padding:20px 16px;margin-block:18px 24px}
 .listener-identity{gap:12px;flex-wrap:wrap}
 .listener-avatar{width:64px;height:64px}
 .listener-avatar svg{width:32px;height:32px}
 .listener-identity h2{font-size:23px}
 .listener-identity p{font-size:14px}
 .listener-identity>.text-button{margin-left:auto}
 .listener-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 14px}
 .listener-stats strong{font-size:26px}
 .listener-stats span{font-size:13px}
 .listener-shelf .shelf-tabs button{font-size:14px;padding-inline:10px}
 .account-page{grid-template-columns:minmax(0,1fr);margin:20px auto;border-radius:14px}
 .account-art{min-height:220px;padding:24px}
 .account-covers{inset:-110px -25px 0;opacity:.6}
 .account-covers img{width:36%}
 .account-story>svg{display:none}
 .account-story h2{font-size:28px;margin-bottom:8px}
 .account-story p{font-size:14px;max-width:40ch}
 .account-panel{padding:24px 20px}
 .account-panel h1{font-size:28px}
}

@media(min-width:761px) and (max-width:950px){.work-layout{grid-template-columns:minmax(0,1fr)}.work-listen{grid-template-columns:190px minmax(0,1fr)}}

/* The expanded player replaces the dock, with one clear route back to the book. */
.mini-player{transition:opacity .2s ease,transform .24s ease,visibility .2s}
body.player-expanded .mini-player{opacity:0;visibility:hidden;pointer-events:none;transform:translateY(18px)}
.expanded-player>.dialog-heading{grid-template-columns:44px minmax(0,1fr) auto;gap:12px}
.expanded-player .dialog-heading>a{display:inline-flex;align-items:center;gap:8px;font-size:14px;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;white-space:nowrap}
.expanded-player .dialog-heading>a svg{width:19px;height:19px}
.expanded-player .expanded-selectors{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
.expanded-selectors label{font-size:14px}
.expanded-selectors select{width:100%;font-size:15px;min-height:48px;text-overflow:ellipsis}
.expanded-player .player-wave{display:flex;align-items:center;justify-content:space-between;height:64px;gap:3px;margin:12px 0 4px;overflow:hidden;color:var(--gold)}
.player-wave span{display:block;width:5px;flex:1;max-width:9px;border-radius:4px;height:var(--wave-height);background:currentColor;opacity:.5;transform:scaleY(.45);transform-origin:center;animation:audio-wave .9s ease-in-out var(--wave-delay) infinite alternate;animation-play-state:paused}
.audio-playing .player-wave span{animation-play-state:running}
@keyframes audio-wave{from{transform:scaleY(.35);opacity:.4}to{transform:scaleY(1);opacity:.9}}
.player-popover #expanded-body{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);column-gap:18px}
.player-popover .expanded-selectors{grid-column:1/-1;padding-bottom:20px}
.player-popover .expanded-work-link{font-size:25px;padding-right:22px}
.player-popover .expanded-now .full-player{padding-inline:18px 22px}
.player-popover .full-player .transport{gap:10px;margin:10px 0}
.player-popover .full-player .transport .icon-button{width:50px;min-width:50px;height:54px;padding:7px}
.player-popover .full-player .transport .skip{width:64px;min-width:64px;font-size:14px;gap:5px}
.player-popover .full-player .transport .skip svg{width:22px;height:22px}
.player-popover .full-player .transport .play-button{width:74px;height:74px;min-width:74px}
.player-popover .full-player .transport .play-button svg{width:32px;height:32px}
.player-popover .expanded-scroll{height:330px;max-height:37dvh}
.player-popover .options{margin:8px 22px 18px 18px;gap:10px}
.player-popover .options .text-button,.player-popover .switch{font-size:13px}
.player-popover .player-tools button{font-size:14px;min-height:46px}
@media(min-width:951px){
 .listen-column .full-player .transport{gap:10px}
 .listen-column .full-player .transport .icon-button{width:48px;min-width:48px;height:52px}
 .listen-column .full-player .transport .skip{width:62px;min-width:62px;font-size:14px}
 .listen-column .full-player .transport .play-button{width:72px;min-width:72px;height:72px}
}
@media(min-width:761px) and (max-width:950px){
 .player-popover #expanded-body{grid-template-columns:minmax(0,1fr)}
 .player-popover .expanded-now{grid-column:1;grid-row:3;border-left:0}
 .player-popover .expanded-chapters{grid-column:1;grid-row:4;padding:0 22px 20px}
 .player-popover .expanded-scroll{height:180px;max-height:22dvh}
 .player-popover .expanded-now .full-player{max-width:540px;margin:auto}
}
@media(max-width:760px){
 .expanded-player .dialog-heading>a{font-size:12px;gap:5px;padding:6px 8px}
 .expanded-player>.dialog-heading{gap:6px;padding-inline:10px;font-size:12px}
 .expanded-player .expanded-selectors{gap:10px;padding-inline:18px}
 .expanded-selectors select{font-size:13px}
 .expanded-player .full-player .transport{gap:4px}
 .expanded-player .full-player .transport .icon-button{width:36px;min-width:36px;padding:4px}
 .expanded-player .full-player .transport .skip{width:46px;min-width:46px;font-size:12px}
 .expanded-player .full-player .transport .play-button{width:60px;min-width:60px;height:60px}
}
@media(prefers-reduced-motion:reduce){.mini-player{transition:none}.player-wave span{animation:none}}

.social-login{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:24px}
.social-login button{justify-content:flex-start;min-height:52px;padding:10px 14px;border:1px solid var(--line);border-radius:9px;font-size:15px;background:var(--bg)}
.provider-mark{display:grid;place-items:center;width:28px;height:28px;border-radius:7px;font:bold 15px system-ui;flex:none}
.vk-mark{color:#fff;background:#0077ff}
.yandex-mark{color:#fff;background:#e93535;font-size:22px}
.social-caption{font-size:12px;color:var(--muted);line-height:1.7;margin-top:10px}
.account-divider{display:flex;align-items:center;gap:14px;color:var(--muted);font-size:13px;margin-top:22px}
.account-divider::before,.account-divider::after{content:'';height:1px;background:var(--line);flex:1}
.social-progress{padding:12px;margin-top:14px;background:var(--soft);border-radius:8px;font-size:14px}
.social-progress button{margin-top:4px;padding-left:0}
@media(min-width:761px){.mini-transport{gap:12px}}
@media(max-width:1100px){.social-login{grid-template-columns:1fr}}

.cover-stack{position:relative;height:100%;min-height:0;isolation:isolate}
/* The selected cover leads an eight-book procession; each next cover recedes. */
.cover-procession{--cover-width:210px;height:100%;min-width:0;align-self:center;margin-left:12px}
.cover-procession .procession-book{position:absolute;top:50%;width:var(--cover-width);height:315px;min-height:0;padding:0;border:0;border-radius:6px;background:none;z-index:calc(10 - var(--book-index));transform:translateY(-50%) scale(calc(1 - var(--book-index)*.055));transform-origin:left center;filter:brightness(var(--book-light));transition:filter .2s,transform .2s;box-shadow:-12px 14px 28px #0006;overflow:hidden}
.cover-procession .procession-book img{position:static;display:block;width:100%;height:100%;max-width:none;object-fit:cover;transform:none;border-radius:6px;box-shadow:none;filter:none}
.cover-procession .procession-book:hover,.cover-procession .procession-book:focus-visible{filter:brightness(1);transform:translateY(-53%) scale(calc(1 - var(--book-index)*.055));outline:2px solid var(--gold);outline-offset:3px}
@media(min-width:761px) and (max-width:1100px){.cover-procession{--cover-width:170px;margin-left:0}.cover-procession .procession-book{height:255px}}
@media(max-width:359px){.cover-procession{--cover-width:140px;}.cover-procession .procession-book{height:210px}}
@media(prefers-reduced-motion:reduce){.cover-procession .procession-book{transition:none}}

@media(max-width:760px){
 .expanded-player #expanded-body{display:flex;flex-direction:column}
 .expanded-player .expanded-work-link{order:0}
 .expanded-player .expanded-selectors{order:1}
 .expanded-player .expanded-now{order:2}
 .expanded-player .expanded-chapters{order:3}
}

.cover-procession .procession-book{left:calc(var(--book-index)*(100% - var(--cover-width)*.615)/7);box-shadow:-10px 18px 26px #0003;opacity:calc(1 - var(--book-index)*.12)}
.cover-procession .procession-book:hover,.cover-procession .procession-book:focus-visible{opacity:1}

/* Accepted floating hero: portrait artwork fills the right half without a frame. */
.featured-books.floating-feature{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);align-items:center;gap:28px;height:440px;max-height:440px;padding:28px 12px 54px 20px;border:0;border-radius:0;background:none;color:var(--text)}
.floating-feature::after{display:none}
.floating-feature::before{content:'';position:absolute;inset:10% 30% 6% -14%;background:radial-gradient(ellipse at 40% 50%,var(--surface),transparent 69%);z-index:-1;pointer-events:none;opacity:.7}
.floating-feature .feature-copy{width:100%;max-width:none;height:100%;gap:6px;color:var(--text);justify-content:center;overflow:hidden}
.floating-feature .feature-copy h2{font-size:clamp(28px,2.3vw,34px);line-height:1.16;max-width:none}
.floating-feature .feature-copy h2 a:hover{color:var(--gold)}
.floating-feature .feature-genre{color:var(--gold)}
.floating-feature .feature-author{font-size:14px;line-height:18px;color:var(--muted)}
.floating-feature .feature-description{color:var(--muted);font-size:14px;line-height:20px;max-height:40px}
.floating-feature .feature-facts{color:var(--muted);font-size:13px;line-height:22px;gap:6px 14px}
.floating-feature .feature-facts svg{color:var(--gold);width:19px;height:19px}
.floating-feature .feature-facts strong,.floating-feature .feature-count{color:var(--gold);font-size:15px}
.floating-feature .feature-count strong{font-size:19px}
.floating-feature .feature-copy .gold-button{margin-top:10px;font-size:16px;min-height:44px}
.floating-feature .feature-procession{width:100%;height:100%;margin:0}
.floating-feature .feature-navigation{left:auto;right:12px;bottom:8px;transform:none;color:var(--muted);gap:12px}
.floating-feature .feature-navigation button:hover{color:var(--gold);background:var(--soft)}
.feature-counter{font-size:13px;min-width:36px;text-align:center}
@media(min-width:1101px){.feature-procession{--cover-width:220px}.feature-procession .procession-book{height:330px}}
@media(min-width:761px) and (max-width:1100px){.featured-books.floating-feature{gap:22px;padding-inline:12px}.floating-feature .feature-copy h2{font-size:28px}.floating-feature .feature-facts{gap:6px 10px;font-size:12px}}
@media(max-width:760px){
 .featured-books.floating-feature{height:650px;max-height:650px;grid-template-columns:minmax(0,1fr);grid-template-rows:205px minmax(0,1fr);padding:20px 8px 54px;gap:16px}
 .floating-feature .feature-procession{grid-row:1;grid-column:1;height:205px}
 .floating-feature .feature-copy{grid-row:2;grid-column:1;padding-inline:10px;justify-content:flex-start}
 .floating-feature .feature-copy h2{font-size:26px}
 .floating-feature .feature-description{font-size:13px;line-height:19px;max-height:38px}
 .floating-feature .feature-facts{font-size:12px;gap:6px 12px}
 .floating-feature .feature-count{font-size:13px}
 .floating-feature .feature-count strong{font-size:17px}
 .floating-feature .feature-copy .gold-button{font-size:14px;margin-top:auto;min-height:42px}
 .feature-procession{--cover-width:140px}
 .feature-procession .procession-book{height:210px}
 .floating-feature::before{inset:35% -30% -10%}
 .floating-feature .feature-navigation{top:188px;bottom:auto;right:0;gap:6px}
 .floating-feature .feature-navigation .icon-button{width:30px;min-width:30px;height:32px;min-height:32px;padding:6px}
 .floating-feature .feature-counter{min-width:30px;font-size:12px}
}

/* Bounded tome captions and a balanced inline listening area. */
.work-main .volume-cover-card>span{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;max-height:4.05em}
.player-info p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;max-height:3.1em}
.header-app-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;color:var(--gold);font-size:14px;white-space:nowrap}
.header-app-link svg{width:19px;height:19px}
@media(min-width:761px){.work-listen{column-gap:40px}.listen-column{width:100%;max-width:580px;margin-inline:auto;padding-inline:12px}}
@media(min-width:761px) and (max-width:1100px){.work-listen{column-gap:26px}.listen-column{padding-inline:6px}.site-header{gap:12px}.desktop-nav{gap:16px}.header-app-link{font-size:13px}}
@media(max-width:760px){.header-app-link{width:36px;min-width:36px;min-height:40px}.header-app-link>span:last-child{display:none}.listen-column{padding:0}}
@media(max-width:359px){.site-header{gap:3px}.brand{font-size:20px}}

/* Compact mobile listening: current track first, optional chapters last. */
.mobile-player-heading{display:flex;gap:12px;padding:0 18px 12px;align-items:center;order:0}
.mobile-player-heading>img{width:48px;height:72px;object-fit:cover;border-radius:5px;flex:none}
.mobile-player-heading>div{flex:1;min-width:0}
.mobile-track-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
.mobile-track-row h2{font:600 16px/1.3 system-ui;min-width:0;flex:1;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mobile-track-row a{display:inline-flex;align-items:center;gap:4px;font-size:11px;color:var(--gold);white-space:nowrap;min-height:36px}
.mobile-track-row svg{width:15px;height:15px}
.mobile-work-name{font-size:14px;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px}
.mobile-reader{font-size:12px;color:var(--muted);line-height:18px}
.mobile-player-selectors{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin:10px 0 4px}
.mobile-player-selectors button{min-width:0;justify-content:space-between;background:var(--soft);border:0;border-radius:10px;padding:8px 10px;min-height:54px;gap:6px}
.mobile-player-selectors button>span{min-width:0;flex:1;text-align:left}
.mobile-player-selectors small{display:block;font-size:11px;color:var(--muted)}
.mobile-player-selectors strong{display:block;font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mobile-player-selectors svg{width:16px;height:16px}
.player-choice-dialog{width:480px;max-width:calc(100% - 28px);max-height:72dvh;padding:0;border-radius:16px;box-shadow:0 16px 64px #0005}
.player-choice-dialog::backdrop{background:#0007;backdrop-filter:blur(4px)}
.player-choice-dialog>header{position:sticky;top:0;background:var(--surface);display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center;padding:8px 12px;border-bottom:1px solid var(--line)}
.player-choice-dialog h2{text-align:center;margin-left:44px;font-size:22px}
.player-choice-dialog .player-choice-list{overflow:auto;max-height:60dvh;padding:8px}
.player-choice-list button{width:100%;justify-content:flex-start;gap:12px;text-align:left;padding:12px;min-height:54px;border-radius:9px;font-size:15px}
.player-choice-list button[aria-pressed=true]{background:var(--soft);color:var(--gold)}
.player-choice-list button>span{flex:1;min-width:0;overflow-wrap:anywhere;line-height:1.45}
.player-choice-list img{width:34px;height:51px;object-fit:cover;border-radius:3px;flex:none}
.player-choice-list small{display:block;font-size:12px;color:var(--muted);margin-top:4px}
.player-choice-list svg{width:20px;height:20px}
.featured-books{touch-action:pan-y}
.home-shelf{-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
@media(min-width:1200px){
 .listen-column{max-width:760px;padding-inline:8px}
 .listen-column .player-info h2{font-size:30px}
 .listen-column .player-info p{font-size:16px}
 .listen-column .full-player .transport{gap:16px;margin:10px 0}
 .listen-column .full-player .transport .icon-button{width:56px;min-width:56px;height:60px}
 .listen-column .full-player .transport .skip{width:70px;min-width:70px;font-size:16px}
 .listen-column .full-player .transport .play-button{width:82px;min-width:82px;height:82px}
 .listen-column .full-player .transport .play-button svg{width:37px;height:37px}
 .listen-column .player-tools button{font-size:16px;min-height:50px}
}
@media(max-width:760px){
 .featured-books.floating-feature{height:560px;max-height:560px;grid-template-rows:185px minmax(0,1fr);padding:16px 8px 38px;gap:10px}
 .floating-feature .feature-procession{height:185px}
 .floating-feature .feature-copy .gold-button{margin-top:10px}
 .floating-feature .feature-genre{padding-right:148px;min-height:22px}
 .floating-feature .feature-navigation{top:202px;right:4px;bottom:auto}
 .compact-mobile-player.expanded-player{height:auto;min-height:0;max-height:88dvh;padding:0 0 env(safe-area-inset-bottom,0px)}
 .compact-mobile-player>.dialog-heading{display:flex;justify-content:flex-end;position:relative;min-height:28px;height:28px;padding:0 8px;border:0}
 .compact-mobile-player>.dialog-heading>span,.compact-mobile-player>.dialog-heading>a{display:none}
 .compact-mobile-player>.dialog-heading .icon-button{width:30px;min-width:30px;height:28px;min-height:28px;padding:5px}
 .compact-mobile-player .expanded-now{order:1;padding:0;border:0;margin:0}
 .compact-mobile-player .expanded-chapters{order:2;margin:0;padding:12px 18px 16px}
 .compact-mobile-player .expanded-now .full-player{padding:0 18px}
 .compact-mobile-player .player-wave{height:34px;margin:0 0 4px}
 .compact-mobile-player .player-wave span{max-height:30px}
 .compact-mobile-player .volume-control,.compact-mobile-player .listening-progress{display:none}
 .compact-mobile-player .full-player .transport{margin:4px 0 8px}
 .compact-mobile-player .player-tools{margin-top:0}
 .compact-mobile-player .player-tools button{min-height:42px;font-size:12px}
 .compact-mobile-player .options{margin:0 18px 10px;gap:8px;font-size:12px}
 .compact-mobile-player .options .text-button,.compact-mobile-player .switch{font-size:12px;min-height:36px}
 .compact-mobile-player .expanded-scroll{height:190px;max-height:26dvh}
}

/* Website RTB placements share the existing theme; empty auctions collapse. */
.nova-ad{display:none;min-width:0;margin:22px 0;color:var(--muted)}
.ads-enabled .nova-ad{display:block}
.ads-enabled .nova-ad[data-ad-state=empty]{display:none}
.ad-caption{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:24px;font-size:11px;line-height:1.4;padding:0 2px 5px}
.ad-caption button{font-size:11px;min-height:24px;padding:2px 5px;color:var(--muted)}
.ad-creative{width:100%;height:150px;min-width:160px;border-radius:8px;background:var(--bg)}
.ad-square .ad-creative{height:250px}
.ad-compact .ad-creative{height:90px}
.nova-ad[data-ad-state=loaded] .ad-creative:empty{background:none}
body.ads-preview .ad-creative{display:flex;align-items:center;justify-content:center;border:1px dashed var(--line);background:var(--soft);font-size:13px}
.catalog-column{min-width:0;display:flex;flex-direction:column;gap:24px}
.catalog-column>.nova-ad{margin:0 0 24px}
.book-comments{margin-top:24px;padding:18px 22px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.mobile-discussion-ad{display:none!important}
.work-main>.nova-ad{margin-block:24px}
.chapter-updates>.nova-ad{margin-block:24px}
.home-collections>.nova-ad{margin:4px 0 30px}
.dock-ad{position:absolute;left:0;right:0;bottom:calc(100% + 14px);margin:0;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);box-shadow:0 5px 20px #0002}
.dock-ad .ad-creative{height:70px}
body.ads-enabled{padding-bottom:calc(160px + var(--dock-ad-reserve,0px))}
.expanded-top-ad{margin:0 18px 18px;order:-1}
#expanded-ad-rail{display:none;position:fixed;z-index:15;width:300px}
body.player-expanded.ads-enabled #expanded-ad-rail:not([hidden]){display:block}
#expanded-ad-rail>.nova-ad{padding:10px;margin:0;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
#expanded-ad-rail:has([data-ad-state=empty]){display:none!important}
@media(min-width:1264px){.expanded-top-ad{display:none!important}}
@media(min-width:951px){
 .work-layout{align-items:start}
 .contents-column{display:flex;flex-direction:column;height:var(--work-height,800px);max-height:var(--work-height,800px);min-height:0}
 .contents-column.is-collapsed{height:auto}
 .contents-column.is-collapsed>.nova-ad{display:none}
 .contents-heading{flex-shrink:0}
 #contents-body{display:flex;flex-direction:column;flex:1;min-height:0}
 .contents-controls{flex-shrink:0}
 #contents .volumes{flex:1;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
 .contents-column>.nova-ad{flex-shrink:0;margin:14px 0 0}
 .contents-column>.nova-ad .ad-creative{height:100px}
}
@media(max-width:950px){
 .desktop-contents-ad,.desktop-discussion-ad{display:none!important}
 .ads-enabled .mobile-discussion-ad{display:block!important}
 .ads-enabled .mobile-discussion-ad[data-ad-state=empty]{display:none!important}
}
@media(max-width:760px){
 .catalog-page .catalog-grid{grid-template-columns:minmax(0,1fr)}
 .catalog-column{gap:22px}
 .nova-ad{margin:20px 0}
 .ad-creative{height:120px}
 .ad-square .ad-creative{height:250px}
 .ad-compact .ad-creative,.dock-ad .ad-creative{height:50px}
 .dock-ad{bottom:calc(100% + 12px);margin:0;padding:6px 10px}
 body.ads-enabled{padding-bottom:calc(170px + var(--dock-ad-reserve,0px))}
 .expanded-top-ad{margin:0 18px 14px}
 .compact-mobile-player .expanded-top-ad{flex-shrink:0}
 .book-comments{padding:14px;margin-top:18px}
 .desktop-extra-ad{display:none!important}
 #expanded-ad-rail{display:none!important}
}
.ads-enabled .nova-ad[data-ad-state=cooldown]{display:none!important}

/* Public navigation between the video and audio libraries. */
.brand-links{display:flex;align-items:center;gap:20px;flex-shrink:0}
.header-nova-link{display:inline-flex;align-items:center;gap:6px;min-height:44px;white-space:nowrap;font-size:14px;color:var(--muted)}
.header-nova-link svg{width:20px;height:20px;color:var(--gold)}
@media(max-width:1100px){
 .brand-links{flex-direction:column;align-items:flex-start;gap:0}
 .header-nova-link{min-height:28px;font-size:13px;line-height:1.2;gap:5px}
 .header-nova-link svg{width:16px;height:16px}
}
