/* The library (/library), drawn by library.js: a dark screen with a featured book and rows that scroll sideways.
   Fetched only when the library is opened. */
#lib{--lbg:#141414;--lfg:#e8e8e8;--lmut:#a3a3a3;--ch:226px;color:var(--lfg);background:var(--lbg);box-shadow:0 0 0 100vmax var(--lbg);clip-path:inset(0 -100vmax);padding:6px 0 40px;min-height:70vh}
html.libon body{overflow-x:clip}
html.libon footer{position:relative;z-index:1}
#lib h1,#lib h2,#lib h3{color:#fff}
#lib button{font:inherit}
@media (max-width:700px){#lib{--ch:164px}}

/* waiting for the list */
.lwait{display:grid;gap:22px;padding:30px 0}
.lwait div{height:var(--ch);border-radius:8px;background:linear-gradient(90deg,#1f1f1f,#2a2a2a,#1f1f1f);background-size:200% 100%;animation:lshim 1.4s linear infinite}
.lwait div:first-child{height:min(52vh,460px)}
@keyframes lshim{to{background-position:-200% 0}}

/* the bar: everything, genres, languages, countries, ages, search */
.lbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:14px 0 10px;position:relative;z-index:5}
.lpill{all:unset;cursor:pointer;display:inline-flex;gap:6px;align-items:center;padding:7px 15px;border-radius:999px;border:1px solid rgba(255,255,255,.32);color:#fff;font-weight:700;font-size:.9rem;white-space:nowrap}
.lpill i{font-style:normal;font-size:.7em;opacity:.8}
.lpill:hover{background:rgba(255,255,255,.1)}
.lpill.on{background:#fff;color:#141414;border-color:#fff}
.lpill:focus-visible,.lcard:focus-visible,.lplay:focus-visible,.linfo:focus-visible,.lchip:focus-visible,.lmore:focus-visible,.lmx:focus-visible,.lepread:focus-visible,.lpop button:focus-visible{outline:3px solid var(--sun,#ffc83d);outline-offset:3px}
.lmenu{position:relative}
.lpop{position:absolute;left:0;top:calc(100% + 6px);min-width:230px;max-width:min(520px,calc(100vw - 32px));max-height:min(60vh,420px);overflow:auto;background:#1c1c1c;border:1px solid #333;border-radius:10px;padding:8px;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:2px;box-shadow:0 18px 40px rgba(0,0,0,.7)}
.lpop[hidden]{display:none}
.lpop button{all:unset;cursor:pointer;padding:8px 10px;border-radius:6px;color:#fff;font-size:.92rem;display:flex;justify-content:space-between;gap:10px}
.lpop button span{color:var(--lmut);font-size:.8rem}
.lpop button:hover{background:#2c2c2c}
.lsearch{margin-left:auto;display:flex;align-items:center;gap:6px;border:1px solid rgba(255,255,255,.32);border-radius:999px;padding:0 12px;background:#000}
.lsearch span{color:var(--lmut)}
.lsearch input{all:unset;color:#fff;width:170px;padding:7px 0;font-size:.92rem}
.lsearch input::placeholder{color:#8c8c8c}
.lsearch:focus-within{outline:3px solid var(--sun,#ffc83d);outline-offset:2px}
@media (max-width:1100px){.lbar{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-right:-20px;padding-right:20px}.lbar::-webkit-scrollbar{display:none}.lsearch{margin-left:0;order:-1;flex:none}.lsearch input{width:120px}.lpop{position:fixed;left:16px;right:16px;top:auto;bottom:16px;max-width:none}}

/* the featured book */
.lbb{position:relative;margin:6px 0 10px;border-radius:14px;overflow:hidden;background:var(--c1)}
.lbbg{position:absolute;inset:-60px;background:var(--c1) 50% 40%/cover no-repeat;filter:blur(30px) saturate(1.25) brightness(.62);transform:scale(1.08)}
.lbb::after,.lmhead::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(20,20,20,.92) 0,rgba(20,20,20,.55) 45%,rgba(20,20,20,.1) 80%),linear-gradient(0deg,var(--lbg) 0,transparent 40%);pointer-events:none}
.lbbin{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:clamp(20px,5vw,64px);align-items:center;padding:clamp(28px,5vw,64px) clamp(20px,5vw,56px)}
.lwhy{display:inline-flex;gap:8px;align-items:center;font-weight:800;font-size:.95rem;letter-spacing:.02em;color:#fff;margin-bottom:10px}
.lwhy b{background:var(--sun,#ffc83d);color:#141414;border-radius:5px;padding:2px 8px;font-size:.85rem}
.lbbtx h1{font-family:var(--disp);font-size:clamp(2rem,4.6vw,3.6rem);line-height:1.02;margin:0 0 12px;text-shadow:0 2px 18px rgba(0,0,0,.5)}
.lmeta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 12px;color:#d6d6d6;font-weight:700;font-size:.92rem}
.lmeta i{font-style:normal;color:#8c8c8c}
.lsum{margin:0 0 20px;max-width:58ch;color:#e4e4e4;font-size:1.02rem;line-height:1.5}
.lsum,.lteach{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden} /* two lines at most */
.lbtns{display:flex;flex-wrap:wrap;gap:10px}
.lplay,.linfo{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:10px;padding:11px 26px;border-radius:7px;font-weight:800;font-size:1.08rem}
.lplay{background:#fff;color:#141414}
.lplay:hover{background:#dcdcdc}
.linfo{background:rgba(120,120,122,.55);color:#fff}
.linfo:hover{background:rgba(120,120,122,.4)}
.lbbcov{--ch:clamp(250px,30vw,400px)}
@media (max-width:700px){
  .lbb{margin-top:2px}
  .lbbin{grid-template-columns:1fr;justify-items:center;text-align:center;padding:26px 18px 22px;gap:18px}
  .lbb .lbbcov{--ch:250px;order:-1}
  .lbb::after{background:linear-gradient(0deg,var(--lbg) 0,rgba(20,20,20,.75) 45%,rgba(20,20,20,.2) 100%)}
  .lmeta,.lbtns{justify-content:center}
  .lbtns>*{flex:1;justify-content:center;padding:11px 14px}
}

/* rows */
.lrow{margin:26px 0 0;position:relative}
.lrow h2{font-family:var(--ui);font-size:clamp(1.05rem,1.8vw,1.3rem);font-weight:800;margin:0 0 4px;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px}
.lser{font-size:.66rem;letter-spacing:.12em;text-transform:uppercase;background:#2d2d2d;color:var(--sun,#ffc83d);border-radius:4px;padding:2px 7px;align-self:center}
.lmore{all:unset;cursor:pointer;font-size:.85rem;font-weight:800;color:#6ad1dc;opacity:0;transition:opacity .2s}
.lrow:hover .lmore,.lmore:focus-visible{opacity:1}
@media (hover:none){.lmore{opacity:1}}
.lwrap{position:relative}
.ltrack{display:flex;gap:10px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;padding:16px 20px 22px 2px;margin:-6px calc(50% - 50vw) -12px 0;min-height:var(--ch);scrollbar-width:none;align-items:flex-end}
.ltrack::-webkit-scrollbar{display:none}
.lcard{all:unset;cursor:pointer;position:relative;display:block;flex:none;height:var(--ch);aspect-ratio:var(--pa,.75);border-radius:6px;overflow:hidden;background:var(--c1);box-shadow:0 10px 22px -12px rgba(0,0,0,.9);scroll-snap-align:start;transition:transform .22s cubic-bezier(.2,.7,.2,1),box-shadow .22s}
.lcard .pg{position:absolute;inset:0;border-radius:inherit}
@media (hover:hover){.ltrack .lcard:hover,.lgridin .lcard:hover{transform:scale(1.07);z-index:2;box-shadow:0 18px 34px -10px rgba(0,0,0,.95)}}
.lbadge{position:absolute;left:6px;bottom:6px;z-index:3;background:rgba(0,0,0,.72);color:#fff;font-size:.66rem;font-weight:800;letter-spacing:.04em;border-radius:4px;padding:2px 7px}
.lbadge::before{content:"♪ ";color:var(--sun,#ffc83d)}
/* a series tile: its first episode's own cover, a "Series" ribbon, and the series' name along the foot */
.lserbadge{position:absolute;left:6px;top:6px;z-index:3}
.larcname{position:absolute;left:0;right:0;bottom:0;z-index:2;padding:18px 8px 6px;font-size:.8rem;font-weight:800;color:#fff;text-align:center;line-height:1.25;background:linear-gradient(0deg,rgba(0,0,0,.85),rgba(0,0,0,0));display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-shadow:0 1px 3px rgba(0,0,0,.6)}
/* the same "Series" ribbon, sitting inline in a book's or a series' own details instead of over a cover */
.lser.lserinline{display:inline-block;margin:0 0 8px}
.lserlink{all:unset;cursor:pointer;color:inherit;text-decoration:underline;text-underline-offset:3px}
.lserlink:hover,.lserlink:focus-visible{color:var(--sun,#ffc83d)}
.larr{all:unset;cursor:pointer;position:absolute;top:10px;bottom:16px;width:46px;z-index:4;display:grid;place-items:center;font-size:2.6rem;line-height:1;color:#fff;background:rgba(20,20,20,.6);opacity:0;transition:opacity .2s}
.larr.l{left:-20px;border-radius:0 6px 6px 0}
.larr.r{right:calc(50% - 50vw);border-radius:6px 0 0 6px}
.lwrap:hover .larr{opacity:1}
.lwrap.atl .larr.l,.lwrap.atr .larr.r{display:none}
@media (hover:none){.larr{display:none}}

/* Top 10: big outlined numbers beside the covers */
.ltop{display:flex;align-items:flex-end;flex:none;scroll-snap-align:start}
.ltop b{font-family:"Arial Black","Segoe UI Black",Impact,var(--ui),sans-serif;font-weight:900;font-size:calc(var(--ch)*.8);line-height:.76;color:var(--lbg);-webkit-text-stroke:4px #8d8d8d;paint-order:stroke fill;letter-spacing:-.07em;margin-right:-.1em;user-select:none}
.ltop .lcard{scroll-snap-align:none}
@media (max-width:700px){.ltop b{-webkit-text-stroke-width:2px}}

/* a genre, language, country or age on its own, or a search */
.lgrid h2{font-family:var(--ui);font-size:clamp(1.3rem,2.6vw,1.8rem);font-weight:800;margin:18px 0 16px;display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.lgrid h2 span{font-size:.9rem;color:var(--lmut);font-weight:700}
.lgridin{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:18px 14px;align-items:end}
.lgridin .lcard{height:auto;width:100%}
.lgridin.lsmall{grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:14px}
@media (max-width:700px){.lgridin{grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:12px 10px}}
.lnone{color:var(--lmut);display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.lfoot{margin:40px 0 0;text-align:center;color:var(--lmut);font-size:.92rem}
.lempty{padding:60px 0;text-align:center;color:var(--lmut)}

/* a book's details */
html.lmodon{overflow:hidden}
.lmod{position:fixed;inset:0;z-index:1200;background:rgba(0,0,0,.72);overflow-y:auto;overscroll-behavior:contain;display:flex;justify-content:center;align-items:flex-start;padding:5vh 16px;opacity:0;transition:opacity .2s}
.lmod.lshow{opacity:1}
.lmsheet{--lbg:#181818;--lmut:#a3a3a3;position:relative;width:min(860px,100%);background:var(--lbg);color:#e8e8e8;border-radius:12px;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.8);transform:translateY(16px) scale(.98);transition:transform .25s cubic-bezier(.2,.7,.2,1)}
.lmod.lshow .lmsheet{transform:none}
.lmsheet h2,.lmsheet h3{color:#fff}
.lmx{all:unset;cursor:pointer;position:absolute;right:14px;top:14px;z-index:3;width:38px;height:38px;border-radius:50%;background:#181818;color:#fff;display:grid;place-items:center;font-size:1.6rem;line-height:1}
.lmhead{position:relative;overflow:hidden;display:flex;gap:28px;align-items:flex-end;padding:56px 40px 26px;background:var(--c1)}
.lmhead>:not(.lbbg){position:relative;z-index:1}
.lmhead .lmcov{--ch:250px;cursor:default}
.lmtx h2{font-family:var(--disp);font-size:clamp(1.7rem,3.6vw,2.6rem);line-height:1.05;margin:0 0 10px}
.lnote{margin:12px 0 0;color:#cfcfcf;font-size:.86rem}
.lmbody{padding:4px 40px 36px}
.lmbody .lsum{max-width:none}
.lteach{margin:0 0 14px;color:#d6d6d6}
.lchips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 8px}
.lchip{all:unset;cursor:pointer;font-size:.84rem;font-weight:700;padding:5px 12px;border-radius:999px;background:#2b2b2b;color:#e8e8e8}
.lchip:hover{background:#3a3a3a}
.lmbody h3{font-family:var(--ui);font-size:1.25rem;font-weight:800;margin:28px 0 12px}
.leps{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.leps li{display:grid;grid-template-columns:28px auto minmax(0,1fr) auto;gap:16px;align-items:center;padding:12px 14px;border-radius:8px;border-bottom:1px solid #2c2c2c}
.leps li.now{background:#2c2c2c;border-color:transparent}
.lepn{font-size:1.4rem;font-weight:800;color:var(--lmut);text-align:center}
.lept{--ch:96px}
.lsoon{display:grid;place-items:center;height:96px;aspect-ratio:.75;border-radius:6px;background:linear-gradient(160deg,rgba(255,255,255,.14),rgba(0,0,0,.35)),var(--ac);color:#fff;font-size:.72rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.leps b{display:block;color:#fff}
.leps span:not(.lepn):not(.lsoon){display:block;color:var(--lmut);font-size:.88rem}
.lepread{all:unset;cursor:pointer;width:42px;height:42px;border-radius:50%;border:2px solid rgba(255,255,255,.6);color:#fff;display:grid;place-items:center;font-size:1rem}
.lepread:hover{background:#fff;color:#141414}
@media (max-width:700px){
  .lmod{padding:0}
  .lmsheet{border-radius:0;min-height:100%}
  .lmhead{flex-direction:column;align-items:center;text-align:center;padding:60px 18px 20px;gap:16px}
  .lmhead::after{background:linear-gradient(0deg,var(--lbg) 0,rgba(24,24,24,.7) 50%,rgba(24,24,24,.25) 100%)}
  .lmhead .lmcov{--ch:230px}
  .lmtx .lmeta,.lmtx .lbtns{justify-content:center}
  .lmtx .lbtns>*{flex:1;justify-content:center}
  .lmbody{padding:4px 18px 30px}
  .leps li{grid-template-columns:auto minmax(0,1fr) auto;gap:12px;padding:10px 4px}
  .lepn{display:none}
  .lept{--ch:80px}.lsoon{height:80px}
}

@media (prefers-reduced-motion:reduce){
  .lcard,.lmod,.lmsheet,.larr,.lmore{transition:none}
  .ltrack .lcard:hover,.lgridin .lcard:hover{transform:none}
  .lwait div{animation:none}
}

/* the library is its own reading app: no site top bar, only its own slim bar, pinned at the top (no see-through blur on
   it: that would trap the phone menus, which are pinned to the screen, inside the bar) */
html.libon header.top{display:none}
html.libon footer{border-top-color:#262626;color:#8c8c8c}
html.libon footer a,html.libon footer button{color:#a3a3a3}
.lbar{position:sticky;top:0;background:#141414;margin:0 -20px;padding:12px 20px}
.lbar::before{content:"";position:absolute;inset:0 -100vmax;background:#141414;z-index:-1;pointer-events:none} /* edge to edge, without clipping the menus */
.lbrand{all:unset;cursor:pointer;display:inline-flex;align-items:center;gap:9px;margin-right:10px;font-family:var(--ui);font-weight:800;font-size:1.15rem;color:#fff;white-space:nowrap}
.lbrand span{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#fff;color:#141414;font-size:1.05rem}
.lbrand i{font-style:normal;font-weight:700;color:var(--lmut);font-size:.95rem}
.lbrand:focus-visible{outline:3px solid var(--sun,#ffc83d);outline-offset:3px;border-radius:9px}
@media (max-width:700px){.lbar{padding:10px 20px}.lbrand{margin-right:4px}.lbrand b,.lbrand i{display:none}}
@media (max-width:1100px){.lbrand{order:-3;flex:none}}
/* the reader, for a book opened from the library: no motion or tap-sound switches (the volume slider stays,
   since a book's own music and sound effects play here too), and at the bottom just two small, quiet links:
   Share, and the same book on the main site */
html.libon #motionbtn,html.libon #soundbtn{display:none}
.rshop{flex-basis:100%;width:100%;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:4px 10px;margin:0;font-size:.8rem;font-weight:600;color:rgba(238,242,244,.7)}
.rshop button{all:unset;cursor:pointer}
.rshop a{color:inherit;text-decoration:none}
.rshop button:hover,.rshop a:hover{color:#fff;text-decoration:underline;text-underline-offset:3px}
.rshop button:focus-visible,.rshop a:focus-visible{outline:3px solid var(--sun,#ffc83d);outline-offset:3px;border-radius:4px}
html.libon #reader.full .rfoot{padding-top:18px;padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))}
/* the way to the personalised books (the main site), at the end of the library's bar; on narrow screens next to the logo */
.lshop{flex:none;display:inline-flex;align-items:center;gap:6px;padding:7px 15px;border-radius:999px;background:linear-gradient(135deg,var(--btn1,#ff7a59),var(--btn2,#e8436b));color:#fff;font-weight:800;font-size:.9rem;text-decoration:none;white-space:nowrap}
.lshop:hover{filter:brightness(1.08)}
.lshop:focus-visible{outline:3px solid var(--sun,#ffc83d);outline-offset:3px}
@media (max-width:1100px){.lshop{order:-2;padding:7px 12px}}
@media (min-width:1101px){.lsearch input{width:118px}.lsearch input:focus{width:170px}.lpill{padding:7px 13px}.lbar{flex-wrap:nowrap}}

/* how far a book was read, on its cover in "Continue reading" */
.lprog{position:absolute;left:8px;right:8px;bottom:8px;z-index:3;height:4px;border-radius:2px;background:rgba(255,255,255,.35);overflow:hidden}
.lprog i{display:block;height:100%;background:var(--sun,#ffc83d);border-radius:2px}
/* Resume: the page it was left at, under the word */
.lplay small{font-size:.72em;font-weight:700;opacity:.65;margin-left:2px}

/* "Up next" at the end of a book, over the reader */
.lnext{position:absolute;right:calc(18px + env(safe-area-inset-right,0px));bottom:calc(18px + env(safe-area-inset-bottom,0px));z-index:20;max-width:min(560px,calc(100% - 36px));opacity:0;transform:translateY(14px);transition:opacity .3s,transform .35s cubic-bezier(.2,.7,.2,1)}
.lnext.lshow{opacity:1;transform:none}
.lncard{position:relative;display:flex;gap:18px;align-items:center;background:rgba(20,20,20,.94);color:#e8e8e8;border:1px solid #333;border-radius:14px;padding:16px 18px;box-shadow:0 24px 60px rgba(0,0,0,.7)}
.lncov{--ch:150px;flex:none;cursor:default}
.lntx{min-width:0}
.lntx small{display:block;font-size:.78rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--sun,#ffc83d);margin-bottom:4px}
.lntx b{display:block;font-family:var(--disp);font-size:1.35rem;line-height:1.15;color:#fff;margin-bottom:6px}
.lntx p{margin:0 0 12px;font-size:.9rem;color:#cfcfcf}
.lnbtns{display:flex;flex-wrap:wrap;gap:8px}
.lnbtns .lplay,.lnbtns .linfo{padding:9px 18px;font-size:.98rem}
.lncount{display:inline-grid;place-items:center;min-width:1.6em;height:1.6em;border-radius:50%;background:#141414;color:#fff;font-size:.78em;margin-left:4px}
.lnx{all:unset;cursor:pointer;position:absolute;right:8px;top:6px;width:30px;height:30px;display:grid;place-items:center;font-size:1.3rem;color:#a3a3a3;border-radius:50%}
.lnx:hover{color:#fff;background:#2a2a2a}
.lnx:focus-visible,.lnbtns button:focus-visible{outline:3px solid var(--sun,#ffc83d);outline-offset:3px}
@media (max-width:700px){
  .lnext{left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));max-width:none}
  .lncard{gap:12px;padding:12px}
  .lncov{--ch:110px}
  .lntx b{font-size:1.1rem}
  .lntx p{display:none}
  .lnbtns .lplay,.lnbtns .linfo{padding:8px 12px;font-size:.88rem}
}
@media (prefers-reduced-motion:reduce){.lnext{transition:none;transform:none}}
/* a book published in the last two weeks: a small tag at the foot of its cover */
.lnew{position:absolute;right:6px;bottom:6px;z-index:3;background:var(--sun,#ffc83d);color:#141414;font-size:.62rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;padding:2px 7px;border-radius:4px;box-shadow:0 2px 6px rgba(0,0,0,.45)}
.lplay,.linfo{white-space:nowrap}

/* ---------- the library's reader uses the whole screen ----------
   the book goes edge to edge (no margin), as big as the screen allows in either direction */
html.libon #reader.full .stage{padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px)}
html.libon #reader.full .book{width:min(100vw,calc(100dvh*2*var(--pa,.75)))}
html.libon #reader.full .book.single{width:min(100vw,calc(100dvh*var(--pa,.75)))}
/* the WhatsApp button stays out of the way of the books and the reader */
html.libon .wabtn{display:none!important}
/* phones: the reader's controls are round icon buttons on one row (their words stay for screen readers) */
@media (max-width:700px),(max-height:520px){
  html.libon #reader .rbar{gap:8px;align-items:center}
  html.libon #reader .rbar .ib[hidden],html.libon #reader .rbar [data-act="first"],html.libon #reader .rbar [data-act="last"],html.libon #fullbtn,html.libon #motionbtn,html.libon #soundbtn{display:none!important}
  html.libon #reader .rbar button.ib{font-size:0;width:42px;height:42px;min-height:42px;padding:0;border-radius:50%;display:grid;place-items:center;flex:none;background:rgba(0,0,0,.45);border-color:rgba(255,255,255,.3)}
  html.libon #reader .rbar button.ib::before{font-size:1.05rem;line-height:1;color:#fff}
  html.libon #reader .rbar [data-act="close"]::before{content:"✕"}
  html.libon #readbtn::before{content:"🔊"}
  html.libon #readbtn[aria-pressed="true"]{background:var(--sun,#ffc83d);border-color:var(--sun,#ffc83d)}
  html.libon #readbtn[aria-pressed="true"]::before{content:"🔊";font-size:1.05rem}
  html.libon #hlbtn{display:none}
  html.libon #rlang{max-width:96px;min-height:42px;font-size:.85rem;border-radius:21px;flex:none}
  html.libon #reader .rbar h2{flex:1;min-width:0;max-width:none;font-size:.95rem}
  html.libon #reader .rbar .count{order:5;font-size:.8rem}
  html.libon #reader.full .arrow{width:44px;height:44px;background:rgba(0,0,0,.4)}
  html.libon .rshop{font-size:.78rem}
}
/* phones: the library's bar is a little smaller, so more of it shows */
@media (max-width:700px){
  .lbar{gap:6px;padding:8px 16px}
  .lpill,.lshop{font-size:.84rem;padding:6px 12px}
  .lshop b{font-weight:800}
  .lsearch input{width:96px}
  .lbtns .lplay,.lbtns .linfo{font-size:1rem}
}

/* autoplay switch in the library's reader only */
html:not(.libon) #lautobtn{display:none}
#lautobtn[aria-pressed="true"]{background:var(--sun,#ffc83d);border-color:var(--sun,#ffc83d);color:#141414}
@media (max-width:700px),(max-height:520px){
  html.libon #lautobtn::before{content:"✋"}
  html.libon #lautobtn[aria-pressed="true"]::before{content:"⏩";color:#141414}
}

/* the library has no text highlighting */
html.libon #hlbtn{display:none!important}
