html,body{margin:0;height:100%;color:#fff;font:15px system-ui,sans-serif;overflow:hidden}
#stage{position:relative;height:calc(100% - 56px);display:flex;align-items:center;justify-content:center;overflow:hidden}
#zoomwrap{flex:none;max-width:none}
#book{box-shadow:0 10px 40px #000a}
.page{background:#fff}
.page img{width:100%;height:100%;display:block;pointer-events:none;user-select:none;-webkit-user-drag:none}
#pan{display:none;position:absolute;inset:0;z-index:3;touch-action:none;cursor:grab}
#stage.zoomed #pan{display:block}
.nav{position:absolute;top:50%;transform:translateY(-50%);z-index:4;width:44px;height:76px;border:0;border-radius:10px;background:#0006;color:#fff;font-size:38px;line-height:1;cursor:pointer}
.nav:hover{background:#000a}.nav:disabled{opacity:.2;cursor:default}
#prev{left:8px}#next{right:8px}
#bar{height:56px;display:flex;align-items:center;justify-content:center;gap:10px;padding:0 8px;box-sizing:border-box}
#bar button,#bar a{background:#2c2c31;color:#fff;border:0;border-radius:8px;padding:9px 14px;font:inherit;text-decoration:none;cursor:pointer}
#scrub{width:min(220px,30vw);accent-color:#e63946}
#count{min-width:64px;text-align:center;font-variant-numeric:tabular-nums}
#load{position:fixed;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:9}
#prog{width:220px;height:6px;background:#ffffff33;border-radius:3px;margin-top:12px;overflow:hidden}
#prog i,#bgprog i{display:block;height:100%;width:0;background:#e63946}
#bgprog{position:fixed;top:0;left:0;right:0;height:3px;z-index:8}
@media (max-width:520px){.nav{width:34px;height:60px;font-size:30px}#bar{gap:6px}#bar button,#bar a{padding:8px 10px}}

#player{position:fixed;bottom:64px;left:50%;transform:translateX(-50%);z-index:7;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px;max-width:96vw;box-sizing:border-box;background:#000d;padding:8px 10px;border-radius:12px}
#player[hidden]{display:none}
#player button,#player select{background:#2c2c31;color:#fff;border:0;border-radius:8px;padding:8px 12px;font:inherit}
#player select{max-width:200px}
#pmsg{flex-basis:100%;text-align:center;font-size:13px;opacity:.85}#pmsg:empty{display:none}

.links{position:absolute;inset:0;pointer-events:none}
.hot{position:absolute;pointer-events:auto;cursor:pointer;border-radius:3px;transition:background .15s}
.hot:hover,.hot:focus-visible{background:rgba(230,57,70,.2);outline:2px solid rgba(230,57,70,.65)}
