:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#102348;background:#f5f8fd;font-synthesis:none;--blue:#1765ff;--muted:#74839c;--line:#e3ebf6;--soft:#eaf3ff}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button,a,select,summary{cursor:pointer}button{border:0}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #95bbff;outline-offset:3px}button:disabled{opacity:.4;cursor:default}[hidden]{display:none!important}.topbar{height:84px;display:flex;align-items:center;gap:70px;padding:0 max(28px,calc((100vw - 1200px)/2));background:#fff;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px}.brand strong{font-size:21px;letter-spacing:-.5px}.brand strong span{display:block;font-size:10px;letter-spacing:2px;font-weight:500;color:var(--muted);margin-top:2px}nav{display:flex;height:100%;gap:38px;align-items:center}nav a{height:100%;display:flex;gap:8px;align-items:center;font-size:15px;font-weight:650;border-bottom:3px solid transparent;padding-top:3px;color:#78869d}nav a span{font-weight:400;font-size:13px}nav a.active{border-color:var(--blue);color:var(--blue)}.account-button{margin-left:auto;border:1px solid #d5e6ff;border-radius:50%;height:36px;width:36px;background:#edf4ff;color:var(--blue);font-weight:700}main{max-width:1200px;margin:0 auto;padding:38px 0 24px}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px}.eyebrow{display:block;letter-spacing:2px;color:#7991b2;font-size:10px;font-weight:700}h1{font-size:30px;font-weight:650;letter-spacing:-.8px;margin:10px 0}p{line-height:1.65}.page-heading p{color:var(--muted);font-size:13px;margin:0}.private-badge{background:#edf4ff;color:#5c7aa8;padding:8px 13px;font-size:11px;border:1px solid #dfeafa;border-radius:30px}.layout{display:grid;grid-template-columns:282px minmax(0,1fr);gap:28px;align-items:start}.collection-card{background:white;border:1px solid var(--line);border-radius:14px;overflow:hidden}.book-art{margin:20px 20px 0;background:linear-gradient(145deg,#153b71,#0e2345);height:250px;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#f7e6c3;position:relative}.book-art span{font-family:"Songti SC",SimSun,serif;font-size:33px;letter-spacing:6px;margin-top:13px}.book-art small{font-size:7px;letter-spacing:2px;margin-top:13px;opacity:.65}.art-symbol{font-size:65px;font-weight:100;margin:17px 0 6px;color:#c0a679}.art-line{height:1px;width:66%;background:#b8a27b;opacity:.4}.book-art.video-art{height:180px;background:linear-gradient(135deg,#e9f2ff,#d5e6ff);color:#1765ff}.video-art span{font-family:inherit;font-size:23px;letter-spacing:4px}.video-art .art-symbol{font-size:38px}.collection-info{padding:24px 22px 16px}.collection-info h2{font-size:23px;margin:9px 0}.collection-info>p{font-size:12px;color:var(--muted);margin:0}.stat-row{display:flex;gap:0;margin:24px 0}.stat-row>div{width:50%;display:flex;flex-direction:column;gap:5px}.stat-row>div+div{padding-left:24px;border-left:1px solid var(--line)}.stat-row strong{font-size:20px;font-weight:600}.stat-row span{font-size:10px;color:var(--muted)}.primary{display:flex;align-items:center;justify-content:center;gap:20px;width:100%;background:var(--blue);border-radius:7px;color:white;padding:13px 18px;font-size:13px;font-weight:600;transition:background .15s}.primary:hover{background:#0a55e9}.primary span{font-size:12px}.collection-info .resume-hint{text-align:center;font-size:10px;margin-top:10px;color:#8b99ae;min-height:16px}.help{padding:17px 4px;font-size:12px;color:var(--muted)}.help summary{color:#607799}.help p{font-size:11px}.content{background:white;border:1px solid var(--line);border-radius:14px;overflow:hidden;min-height:500px}.list-heading{display:flex;align-items:center;justify-content:space-between;padding:25px 25px 20px;gap:16px}.list-heading h2{font-size:17px;margin:0 0 7px}.list-heading #update-label{font-size:10px;color:#91a0b5}.search{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--line);background:#f8faff;border-radius:7px;max-width:240px}.search span{font-size:22px;line-height:15px;color:#8394ae}.search input{min-width:0;width:180px;font-size:11px;border:0;outline:none;background:transparent;color:#102348}.filter-row{display:flex;align-items:center;justify-content:space-between;padding:12px 25px;background:#f9fbfe;border-block:1px solid var(--line);font-size:11px;color:#7d8ca4}.filter-row label{display:flex;align-items:center;gap:5px}.filter-row input{accent-color:var(--blue);width:13px;height:13px}.media-row{width:100%;display:flex;align-items:center;gap:16px;min-height:66px;padding:13px 25px;border-bottom:1px solid #edf2f9;text-align:left;background:#fff;color:#102348}.media-row:hover{background:#f4f8ff}.media-row.active{background:#edf4ff}.row-number{font-size:12px;min-width:24px;color:#96a6bd;font-variant-numeric:tabular-nums}.media-row.active .row-number{color:var(--blue)}.row-main{flex:1;min-width:0}.row-title{font-size:13px;font-weight:500;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.row-sub{font-size:10px;color:#8e9db2;display:block;margin-top:5px}.row-time{font-size:11px;color:#7d8ca4;font-variant-numeric:tabular-nums}.row-play{border:1px solid #dce7f7;width:27px;height:27px;border-radius:50%;display:grid;place-items:center;color:#7995c0;font-size:9px;padding-left:1px}.active .row-play{background:var(--blue);color:white;border-color:var(--blue)}.finished{font-size:10px;color:#5b9a87}.empty-state{padding:65px 20px;color:#8594aa;text-align:center;font-size:13px}.footer{max-width:1200px;margin:0 auto 155px;display:flex;justify-content:space-between;color:#a3b0c3;font-size:9px;letter-spacing:1px;padding-top:5px}.footer #sync-status{letter-spacing:0}.player{position:fixed;bottom:0;left:0;right:0;z-index:10;display:grid;grid-template-columns:minmax(200px,1fr) minmax(300px,490px) minmax(200px,1fr);gap:20px;align-items:center;padding:15px max(28px,calc((100vw - 1200px)/2)) max(16px,env(safe-area-inset-bottom));background:#fffffff5;border-top:1px solid #dbe5f4;box-shadow:0 -4px 24px #19376006;backdrop-filter:blur(16px)}.now-playing{display:flex;gap:12px;align-items:center;min-width:0}.mini-cover{height:49px;width:43px;flex-shrink:0;border-radius:5px;background:#17365e;color:#dcc89d;display:grid;place-items:center;font-size:22px}.now-playing>div{display:flex;flex-direction:column;gap:5px;min-width:0}.now-playing strong{font-size:12px;font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.now-playing span:not(.mini-cover),.now-playing small{font-size:9px;color:#8a99ad}.transport{display:flex;justify-content:center;align-items:center;gap:26px}.transport button{background:none;color:#627999;font-size:12px;min-height:30px;padding:3px}.transport .play-button{height:36px;width:36px;border-radius:50%;background:var(--blue);color:white;font-size:13px}.seek-row{display:flex;align-items:center;gap:11px;margin-top:8px}.seek-row time{font-size:9px;color:#8090a7;min-width:31px;font-variant-numeric:tabular-nums}.seek-row input{flex:1;min-width:50px;height:3px;accent-color:var(--blue);cursor:pointer}.player-options{display:flex;gap:10px;justify-content:flex-end}.player-options select{border:1px solid var(--line);border-radius:5px;background:#fff;padding:7px 5px;font-size:10px;color:#6b7f9d}.login-screen{min-height:100dvh;display:grid;place-items:center;padding:30px;background:radial-gradient(ellipse at 25% 15%,#dfeaff,transparent 60%),#f5f8fd}.login-card{max-width:400px;width:100%;background:#fff;border:1px solid var(--line);border-radius:18px;padding:38px;box-shadow:0 20px 60px #10234806}.login-card>.eyebrow{margin-top:28px}.login-card h1{font-size:28px;margin-top:13px}.login-card p{font-size:13px;color:var(--muted)}label:has(input[name]){display:flex;flex-direction:column;gap:9px;font-size:12px;margin:20px 0;color:#536c90}input[name]{border:1px solid #dce6f4;border-radius:7px;padding:11px;background:#fafdff;color:#102348;width:100%;outline:none}input[name]:focus{border-color:#78a6ff}.login-card small{display:block;font-size:10px;color:#92a2b9;text-align:center;margin-top:18px}.error{color:#bc4c59!important;font-size:12px;min-height:16px}.secondary{padding:10px 14px;background:#edf4ff;border:1px solid #d5e6ff;border-radius:6px;color:#1765ff;font-size:12px}.video-caption{padding:18px 25px 0}.video-caption h2{font-size:17px;margin:0}.video-caption p{font-size:11px;color:var(--muted);margin:8px 0}video{display:block;width:100%;aspect-ratio:16/9;background:#101b2f;max-height:60vh}.video-row .row-number{width:58px;height:40px;border-radius:5px;background:#e8f1ff;color:#1765ff;display:grid;place-items:center;font-size:15px}.video-row{min-height:88px}.video-row .row-title{font-size:13px}dialog{border:1px solid var(--line);border-radius:14px;width:min(400px,calc(100% - 30px));padding:26px;color:#102348;box-shadow:0 20px 60px #10234822}dialog::backdrop{background:#0b224866;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center}.dialog-heading h2{font-size:20px;margin:0}.icon-button{background:none;font-size:24px;color:#8698b3}dialog p{font-size:13px;color:#8191a8}.logout{margin-top:25px;background:transparent;color:#b45963;padding:0;font-size:12px}.toast{position:fixed;bottom:135px;left:50%;transform:translateX(-50%);padding:13px 20px;max-width:90vw;border-radius:8px;background:#16365e;color:white;font-size:12px;z-index:30;box-shadow:0 4px 20px #10234833}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1250px){main,.footer{margin-left:28px;margin-right:28px}.player{grid-template-columns:minmax(170px,1fr) minmax(260px,440px) 180px;gap:12px}.player-options{gap:5px}.layout{gap:22px;grid-template-columns:260px minmax(0,1fr)}}
@media(max-width:850px){.topbar{gap:32px;padding:0 22px}.layout{grid-template-columns:210px minmax(0,1fr);gap:18px}.book-art{margin:15px 15px 0;height:215px}.book-art span{font-size:25px;letter-spacing:4px}.book-art small{font-size:6px;letter-spacing:1px}.collection-info{padding:20px 16px}.collection-info h2{font-size:20px}.stat-row>div+div{padding-left:12px}.stat-row strong{font-size:17px}.list-heading{align-items:stretch;flex-direction:column;padding:20px}.search{max-width:none}.search input{width:100%}.media-row{padding:13px 18px;gap:10px}.filter-row{padding:12px 18px}.player{grid-template-columns:180px 1fr;gap:5px 16px;padding:12px 24px}.player-options{grid-column:1;grid-row:2;justify-content:flex-start;margin-left:55px}.player-center{grid-column:2;grid-row:1/3}.footer{margin-bottom:150px}}
@media(max-width:620px){.topbar{height:68px;gap:20px;padding:0 18px}.brand{gap:8px}.brand img{width:29px;height:29px}.brand strong{font-size:19px}.brand strong span{font-size:8px}nav{gap:20px;flex:1;justify-content:center}nav a{font-size:13px}nav a span{display:none}.account-button{height:30px;width:30px;font-size:12px}main{margin:0;padding:26px 16px 12px}.page-heading{margin-bottom:22px}.page-heading h1{font-size:25px}.eyebrow{font-size:9px}.page-heading p{font-size:11px;max-width:235px}.private-badge{font-size:9px;padding:6px 8px;white-space:nowrap}.layout{display:block}.collection-card{display:grid;grid-template-columns:110px 1fr;margin-bottom:18px;padding:16px;gap:16px;border-radius:12px}.book-art{margin:0;height:160px;border-radius:5px}.book-art span{font-size:19px;letter-spacing:2px}.book-art small{font-size:4px;letter-spacing:.5px;margin-top:8px}.art-symbol{font-size:38px;margin:15px 0 8px}.collection-info{padding:0}.collection-info .eyebrow{font-size:8px}.collection-info h2{font-size:21px;margin:7px 0 5px}.collection-info>p{font-size:10px}.stat-row{margin:12px 0}.stat-row strong{font-size:14px}.stat-row span{font-size:8px}.stat-row>div+div{padding-left:14px}.primary{padding:10px 12px;font-size:12px}.collection-info .resume-hint{font-size:8px;margin-top:6px;line-height:1.3}.help{display:none}.content{border-radius:12px}.list-heading{padding:20px 18px 16px;flex-direction:row;align-items:center;gap:12px}.list-heading h2{font-size:15px}.list-heading #update-label{font-size:9px}.search{width:145px;padding:7px}.search input{font-size:10px}.filter-row{font-size:10px;padding:10px 18px}.media-row{min-height:65px;gap:10px}.row-title{font-size:12px}.row-sub{font-size:9px}.row-number{font-size:11px}.row-time{font-size:10px}.row-play{width:25px;height:25px}.finished{display:none}.footer{margin:12px 18px 177px;flex-direction:column;gap:9px;font-size:8px}.player{display:grid;grid-template-columns:1fr auto;gap:5px 10px;padding:10px 18px max(12px,env(safe-area-inset-bottom))}.now-playing{gap:9px}.mini-cover{width:32px;height:36px;font-size:18px}.now-playing strong{font-size:11px}.now-playing #now-label{display:none}.now-playing small{font-size:8px}.player-options{grid-column:2;grid-row:1;margin:0;justify-content:flex-end}.player-options select{font-size:9px;padding:6px 3px;max-width:86px}.player-center{grid-column:1/3;grid-row:2}.transport{gap:29px}.transport .play-button{height:31px;width:31px;font-size:11px}.seek-row{margin-top:3px}.seek-row input{height:3px}.transport button{font-size:10px}.toast{bottom:158px;width:max-content;max-width:90vw}.video-art{height:160px!important}.video-art span{font-size:15px!important;letter-spacing:2px!important}.video-caption{padding:15px 18px 0}.video-caption h2{font-size:14px}.video-row .row-title{white-space:normal;font-size:11px;line-height:1.5}.video-row .row-number{width:42px;height:34px}.video-row{gap:10px}.login-card{padding:30px}.private-badge{align-self:flex-start;margin-top:20px}}
/* Navigation hover and keyboard focus keep both destinations easy to identify. */
nav a{padding-left:14px;padding-right:14px;border-radius:8px 8px 0 0;transition:color .15s,background-color .15s,border-color .15s}nav a:hover,nav a:focus-visible{color:#1765ff;background:#eaf3ff;border-bottom-color:#90b8ff}nav a.active:hover,nav a.active:focus-visible{background:#dfeaff;border-bottom-color:#1765ff}@media(max-width:620px){nav{gap:4px}nav a{padding-left:8px;padding-right:8px}}

/* Multi-book library and per-book navigation. */
.back-to-books{display:inline-block;margin:0 0 20px;font-size:13px;color:var(--blue);padding:8px 0}.back-to-books:hover{text-decoration:underline}
.shelf-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:10px 0 24px}.shelf-heading h2{font-size:21px;margin:0}.shelf-heading h2 span{font-size:12px;color:var(--muted);font-weight:400;margin-left:10px}.shelf-heading p{font-size:12px;color:var(--muted);margin:8px 0 0}
.book-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.shelf-card{display:block;min-width:0;background:white;border:1px solid var(--line);border-radius:14px;overflow:hidden;transition:border-color .15s,box-shadow .15s}.shelf-card:hover{border-color:#90b8ff;box-shadow:0 8px 28px #1937600c}.shelf-card .book-art{margin:20px 20px 0;height:250px}.book-art span{max-width:90%;text-align:center;overflow-wrap:anywhere}.book-art small{max-width:90%;text-align:center}.shelf-card-info{padding:24px}.shelf-card h3{font-size:23px;margin:10px 0}.shelf-stats{font-size:12px;color:var(--muted);margin:0 0 20px}.shelf-progress{font-size:12px;line-height:1.7;margin:0;color:#536c90;min-height:40px}.shelf-completion{display:block;font-size:11px;color:#8191a8;margin:8px 0 22px}.shelf-action{display:block;background:#edf4ff;border-radius:7px;padding:12px;color:var(--blue);text-align:center;font-size:13px;font-weight:600}.shelf-card:hover .shelf-action{background:var(--blue);color:white}
@media(max-width:1000px){.book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}}
@media(max-width:620px){.shelf-heading{align-items:flex-start;margin:5px 0 20px}.shelf-heading h2{font-size:19px}.shelf-heading p{font-size:11px}.shelf-heading .search{width:130px}.book-grid{grid-template-columns:1fr;gap:16px}.shelf-card{display:grid;grid-template-columns:105px minmax(0,1fr);padding:16px;gap:16px;align-items:center}.shelf-card .book-art{margin:0;height:170px}.shelf-card-info{padding:0}.shelf-card h3{font-size:21px;margin:7px 0}.shelf-card .eyebrow{font-size:8px}.shelf-stats{font-size:10px;margin-bottom:12px}.shelf-progress{font-size:10px;min-height:0}.shelf-completion{font-size:9px;margin:6px 0 12px}.shelf-action{padding:9px;font-size:11px}.back-to-books{margin-bottom:12px}.book-art span{letter-spacing:2px}}

#listener-panel{margin:18px 0 24px;border-block:1px solid var(--line);padding:14px 0}
#listener-panel summary{cursor:pointer;color:var(--blue);font-size:14px;font-weight:600}
#listener-form button{margin-top:10px}
#listener-status:empty{display:none}
#listener-status{color:#24436a}
dialog{max-height:85dvh;overflow-y:auto}
