.shelf{ display:flex; gap:12px; overflow-x:auto; padding:2px 2px 10px; scroll-snap-type:x proximity; } .shelf::-webkit-scrollbar{ display:none; }
.shelf{ align-items:flex-start; } .book{ flex:0 0 118px; border:0; background:none; padding:0; text-align:start; color:var(--ink); scroll-snap-align:start; display:flex; flex-direction:column; justify-content:flex-start; align-items:stretch; align-self:flex-start; }
.book .cv{ width:118px; height:160px; border-radius:12px; overflow:hidden; background:var(--surf2); display:flex; align-items:flex-end; box-shadow:0 6px 18px rgba(0,0,0,.35); position:relative; }
.book .cv img{ width:100%; height:100%; object-fit:cover; display:block; } .book .cv .gen{ box-sizing:border-box; padding:12px; font-weight:900; font-size:15px; line-height:1.15; color:#0e0d0c; }
.book .cv .bar{ position:absolute; left:0; bottom:0; height:5px; background:var(--app); } .book b{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:14px; line-height:1.2; height:2.4em; margin-top:7px; } .book span{ display:block; font-size:12px; color:var(--faint); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.book .cv{ flex:0 0 auto; }
.reader{ max-width:720px; margin:0 auto; font-size:var(--fs,19px); line-height:1.75; padding:4px 2px 120px; overflow-wrap:break-word; }
.reader img{ max-width:100%; height:auto; display:block; margin:14px auto; border-radius:8px; } .reader table, .reader tbody, .reader tr, .reader td{ display:block; width:100% !important; border:0; padding:0; }
.reader h1,.reader h2,.reader h3,.reader h4{ line-height:1.25; } .reader .speaking{ background:color-mix(in srgb, var(--app) 30%, transparent); border-radius:6px; }
.reader.paper{ background:#f6efe0; color:#231d17; padding:20px 18px 120px; border-radius:18px; } .reader.paper img{ mix-blend-mode:multiply; }
.reader .ctitle{ font-size:1.4em; font-weight:900; margin:6px 0 14px; }
.rbar{ position:fixed; left:0; right:0; bottom:0; z-index:6; display:flex; gap:6px; justify-content:center; padding:10px max(8px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)); background:var(--bg); border-top:2px solid var(--surf2); box-sizing:border-box; max-width:100vw; }
.rbar button{ flex:1 1 0; min-width:0; max-width:72px; height:52px; border-radius:14px; border:0; background:var(--surf2); font-weight:900; font-size:15px; display:flex; align-items:center; justify-content:center; padding:0; overflow:hidden; white-space:nowrap; }
.rbar button.on{ background:var(--app); color:var(--onapp); } .rbar .i{ width:20px; height:20px; }
.pdfpage{ background:#fff; margin:0 auto 10px; border-radius:6px; overflow:hidden; } .pdfpage canvas{ width:100%; height:auto; display:block; border-radius:0; background:#fff; }
.prog{ height:6px; background:var(--surf2); border-radius:3px; overflow:hidden; margin:8px 0; } .prog i{ display:block; height:100%; background:var(--app); }
