/* Large, predictable touch controls around the existing narration element. */
#reader footer.child-player{display:grid;grid-template-columns:76px 156px 150px 76px;justify-content:center;align-items:center;gap:14px;height:auto;min-height:0;padding:18px 12px 24px;max-width:1000px;margin:auto}
#reader footer.child-player #narration{display:none!important}
#reader .child-player #prevPage{grid-area:1/1}#reader .child-player #narrationToggle{grid-area:1/2}#reader .child-player #replayPage{grid-area:1/3}#reader .child-player #nextPage{grid-area:1/4}
#reader #replayPage{display:flex;align-items:center;justify-content:center;gap:8px;width:150px;min-height:76px;border:3px solid #d9a34d;border-radius:22px;background:#fff0bf;color:#704a19;font-size:18px;font-weight:700;box-shadow:0 5px 0 #d9b66a;touch-action:manipulation}#replayPage span:first-child{font-size:34px}
#reader .child-player .story-timeline{grid-area:2/1/3/5;display:flex;align-items:center;gap:12px;background:#fffdf6;border:2px solid #eadff7;border-radius:26px;padding:8px 16px;font-size:24px}
.trail-track{flex:1;min-width:0}.trail-track>label{font-size:13px;font-weight:700;color:#70558f}.story-time{display:flex;justify-content:space-between;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums;color:#70558f}
#reader .child-player input[type=range]{display:block;appearance:none;-webkit-appearance:none;width:100%;height:44px;background:transparent;margin:0;cursor:pointer;touch-action:pan-y;accent-color:#8965c4}
#reader .child-player input[type=range]::-webkit-slider-runnable-track{height:12px;border-radius:20px;background:linear-gradient(to right,#a17ad7 var(--fill,0%),#e9dff5 var(--fill,0%))}
#reader .child-player input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:30px;height:30px;border:4px solid white;border-radius:50%;background:#9270cd;box-shadow:0 2px 5px #66508255;margin-top:-9px}
#reader .child-player input[type=range]::-moz-range-track{height:12px;border-radius:20px;background:#e9dff5}#reader .child-player input[type=range]::-moz-range-progress{height:12px;background:#a17ad7;border-radius:20px}#reader .child-player input[type=range]::-moz-range-thumb{width:24px;height:24px;border:4px solid white;border-radius:50%;background:#9270cd}
#reader .child-player input:focus-visible,#reader .child-player button:focus-visible{outline:3px solid #613cac;outline-offset:3px}
#reader .child-player .story-volume{grid-area:3/1/4/4;display:flex;gap:12px;align-items:center;justify-content:center;background:#eaf6ef;border:2px solid #cae7d4;border-radius:24px;padding:8px 14px}
#reader #storyMute{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:70px;min-height:64px;background:#fff;border:2px solid #bddbc5;border-radius:22px;color:#42604b;font-size:12px;font-weight:700;touch-action:manipulation}#speakerFace{font-size:30px;line-height:1.1}.story-volume>div{flex:1;min-width:0}.story-volume label{font-size:13px;color:#42604b;font-weight:700}.story-volume small{font-size:11px;color:#42604b}
#reader .child-player>label{grid-area:3/4;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;min-height:64px;font-size:12px;white-space:nowrap}#reader .child-player #autoNext{width:24px;height:24px;accent-color:#8965c4}
#reader .child-player button:disabled,#reader .child-player input:disabled{opacity:.45;cursor:default}
/* Keep the main controls visible; the extra controls open with narration settings. */
#reader.screen-reader footer.child-player{max-width:none;width:100%;height:88px;min-height:0;display:flex;gap:12px;padding:8px 100px;bottom:0;background:linear-gradient(transparent,#fffdf5ef)}
#reader.screen-reader footer.child-player #narrationToggle,#reader.screen-reader footer.child-player #replayPage{position:static;transform:none;width:142px;min-height:64px;height:64px;font-size:17px}
#reader.screen-reader footer.child-player #prevPage{position:absolute;left:12px;bottom:10px}#reader.screen-reader footer.child-player #nextPage{position:absolute;right:12px;bottom:10px}
#reader.screen-reader .child-player .story-timeline,#reader.screen-reader .child-player .story-volume,#reader.screen-reader .child-player>label{display:none}
#reader.screen-reader.sound-open footer.child-player{height:250px;align-items:flex-end}
#reader.screen-reader.sound-open .child-player .story-timeline{display:flex;position:absolute;bottom:160px;left:16%;right:16%;height:78px}
#reader.screen-reader.sound-open .child-player .story-volume{display:flex;position:absolute;bottom:84px;left:16%;right:30%;height:70px;padding:4px 12px}
#reader.screen-reader.sound-open .child-player>label{display:flex;position:absolute;bottom:84px;right:16%;left:auto;min-height:70px;background:#fffdf6;padding:4px 10px;border-radius:18px}
#reader.screen-reader.sound-open .child-player .trail-track>label,#reader.screen-reader.sound-open .child-player .story-volume label{display:block;position:static;background:none;padding:0}
@media(max-width:600px){#reader:not(.screen-reader) footer.child-player{grid-template-columns:52px minmax(0,1fr) minmax(0,1fr) 52px;gap:10px;padding:14px 0}#reader:not(.screen-reader) .child-player #prevPage,#reader:not(.screen-reader) .child-player #nextPage{width:52px;height:64px;min-height:64px;font-size:28px}#reader:not(.screen-reader) footer.child-player #narrationToggle,#reader:not(.screen-reader) footer.child-player #replayPage{width:100%;height:64px;min-height:64px;flex-direction:column;gap:0;font-size:14px;border-radius:20px}#reader:not(.screen-reader) .child-player #replayPage span:first-child,#reader:not(.screen-reader) .child-player #narrationToggle span:first-child{font-size:26px}#reader:not(.screen-reader) footer.child-player>label{grid-area:3/4;font-size:10px}#reader:not(.screen-reader) .child-player .story-timeline{padding:6px 10px;gap:8px}}
#reader:not(.screen-reader) footer.child-player>label{grid-area:3/4/4/5;position:static;}
#reader.screen-reader.sound-open footer.child-player>label{height:70px;min-height:70px;box-sizing:border-box;line-height:1.2;gap:4px;}
#reader .child-player input[type=range]{border:0;padding:0;box-shadow:none;}#reader.screen-reader.sound-open .child-player .story-volume small{display:none;}
