/* Edge-to-edge illustrated spreads with a quiet text band. */
.reading-mode{background:#fff9ed!important}
.reading-mode main{max-width:none;padding:0;gap:0;grid-template-rows:44px minmax(0,1fr) 20px;background:#fff9ed}
.reading-mode .reader-top,.reading-mode .reader-heading,.reading-mode .reader-dock{display:none}
.picture-toolbar{display:flex;gap:12px;align-items:center;padding:0 16px;background:#fff9ed;min-width:0;z-index:2}
.picture-toolbar button,.picture-back{height:40px;min-height:40px;display:grid;place-items:center;flex-shrink:0}
.picture-title{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;color:#54644b}
.picture-count{font:12px Georgia,serif;color:#859174;white-space:nowrap}
.picture-toolbar .play-button{width:34px;height:34px;min-height:34px;background:transparent;color:#214b3e;border:1px solid #d6ddca}
.picture-toolbar .translation-toggle{font-size:11px;border:0;background:transparent;padding:0 5px;min-height:40px;display:block}
.reading-mode .picture-book{position:relative;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(90px,24%);border:0;border-radius:0;box-shadow:none;background:#fff9ed;touch-action:pan-y;min-height:0}
.reading-mode .picture-book .illustration-column{padding:0;min-height:0;background:#e9eddf;overflow:hidden}
.reading-mode .picture-book .illustration-frame{border-radius:0;display:block;overflow:hidden;height:100%;width:100%;flex:none}
.reading-mode .picture-book .illustration-frame img{border-radius:0;width:100%;height:100%;object-fit:cover;object-position:center;user-select:none;-webkit-user-drag:none}
.reading-mode .picture-book .page-thumbs,.reading-mode .picture-book .reading-hint{display:none}
.reading-mode .picture-book .text-column{padding:12px max(50px,8vw) 4px;background:#fff9ed;display:block;text-align:center}
.reading-mode .picture-book .sentences{height:100%;padding:0 4px 6px;scrollbar-width:thin}
.reading-mode .picture-book .sentence{display:inline;border:0;padding:0;margin:0}
.reading-mode .picture-book .sentence-en{display:inline;font-size:clamp(20px,2.1vw,29px);line-height:1.6;margin:0}
.reading-mode .picture-book .sentence-en:after{content:' ';white-space:pre}
.reading-mode .picture-book .sentence-translate{display:none}
.reading-mode .picture-book .sentence-zh{font-size:14px;background:none;border:0;padding:2px 0;margin:0;line-height:1.6;color:#7b805f}
.reading-mode .edge-turn{position:absolute;top:48%;width:38px;height:56px;min-height:44px;border-radius:20px;background:#fff9edd9;box-shadow:0 2px 10px #20382015;display:grid;place-items:center;z-index:1;opacity:.65}
.reading-mode .edge-turn:hover{opacity:1}.reading-mode .edge-turn:disabled{opacity:.15}
.edge-previous{left:10px}.edge-next{right:10px}
.swipe-hint{margin:0;text-align:center;font-size:10px;color:#9ba18c;line-height:20px;background:#fff9ed}
@media(orientation:portrait){
 .reading-mode main{grid-template-rows:44px minmax(0,1fr) 24px}
 .picture-toolbar{padding:0 8px;gap:6px}.picture-title{font-size:11px}.picture-toolbar .translation-toggle{font-size:10px}
 .reading-mode .picture-book{grid-template-rows:minmax(0,1fr) minmax(130px,30%)}
 .reading-mode .picture-book .illustration-frame img{object-fit:contain;background:#e9eddf}
 .reading-mode .picture-book .text-column{padding:10px 26px 0}
 .reading-mode .picture-book .sentence-en{font-size:21px}
 .reading-mode .edge-turn{width:30px;height:46px;top:40%}.edge-previous{left:4px}.edge-next{right:4px}
}
@media(orientation:landscape) and (max-height:550px){
 .reading-mode main{grid-template-rows:36px minmax(0,1fr) 16px}
 .picture-toolbar button,.picture-back,.picture-toolbar .translation-toggle{height:34px;min-height:34px}
 .picture-toolbar .play-button{height:28px;min-height:28px;width:28px}
 .reading-mode .picture-book{grid-template-rows:minmax(0,1fr) minmax(76px,25%)}
 .reading-mode .picture-book .text-column{padding:5px 50px 0}
 .reading-mode .picture-book .sentence-en{font-size:20px;line-height:1.5}
 .swipe-hint{line-height:16px;font-size:9px}
}
