.ear-tabs{display:flex;gap:8px;margin:0 0 20px}.ear-tabs button{flex:1;min-height:46px;background:#edf2fb;color:#254779;border:0;border-radius:12px;font-size:16px}.ear-tabs .selected{background:#193e70;color:white}.ear-list-head h2{font-size:24px;margin:0 0 8px}.ear-list-head p{font-size:15px;color:#65758d;margin-bottom:20px}.ear-catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.ear-scene{padding:0;text-align:left;background:white;border:1px solid #e0e7f1;border-radius:16px;overflow:hidden;min-width:0;color:#182b49}.ear-scene img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover}.ear-scene>span{display:grid;gap:7px;padding:14px}.ear-scene strong{font-size:17px;line-height:1.5}.ear-scene small{font-size:13px;color:#65758d}.ear-player{overflow:hidden;border-radius:18px;background:white;color:#182b49}.ear-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 12px;background:#1b365b;color:white;flex-wrap:wrap}.ear-header button{background:transparent;border:0;color:white;padding:7px 0;font-size:14px;min-height:40px}.ear-header strong{font-size:18px}.ear-stage{position:relative;min-height:480px;aspect-ratio:1/1.08;display:flex;align-items:flex-end;background:#e6edf4}.ear-picture{position:absolute;width:100%;height:100%;inset:0;object-fit:cover}.ear-counter{position:absolute;right:14px;top:14px;background:#193758b8;color:white;border-radius:20px;padding:7px 14px;font-size:14px}.ear-bubbles{position:relative;width:100%;align-self:flex-start;display:grid;gap:22px;padding:62px 14px 30px;background:linear-gradient(#ffffff00,#ffffff00)}.ear-bubble{position:relative;background:#fffffff5;box-shadow:0 5px 12px #13294822;border:2px solid #ec5288;border-radius:20px;padding:14px 16px;text-align:left;max-width:92%;width:fit-content;min-width:50%;color:#192b43}.ear-bubble:after{content:'';position:absolute;bottom:-11px;left:22px;width:18px;height:18px;background:white;border-bottom:2px solid #ec5288;border-right:2px solid #ec5288;transform:rotate(45deg)}.ear-bubble.role-1{justify-self:end;border-color:#5475ee}.ear-bubble.role-1:after{left:auto;right:22px;border-color:#5475ee}.ear-bubble.ear-other{opacity:.96}.ear-role{display:block;font-size:12px;color:#b82e61;margin-bottom:5px}.role-1 .ear-role{color:#315ad3}.ear-ko{display:block;font-size:clamp(19px,4.7vw,26px);font-weight:600;line-height:1.5;overflow-wrap:anywhere}.ear-cn{display:block;font-size:15px;line-height:1.6;color:#586b83;margin-top:5px}.ear-console{position:relative;padding:18px 16px;background:#f8fafc}.ear-progress{height:5px;background:#dce4ef;border-radius:5px;overflow:hidden}.ear-progress i{display:block;height:100%;background:#ed5087;transition:width .2s}.ear-status{font-size:14px;color:#5a6d85;min-height:22px;margin:12px 0}.ear-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.ear-controls button{min-height:48px;padding:10px 14px;border:0;border-radius:24px;background:#eaf0f8;color:#1d3c65;font-size:15px}.ear-controls .ear-play{background:#ed5087;color:white;font-weight:600;min-width:98px}.ear-controls label{display:flex;gap:6px;align-items:center;font-size:14px;color:#365373}.ear-controls select{font-size:16px;padding:8px 5px;border:1px solid #d8e2f0;border-radius:10px;background:white;color:#24416c}.ear-chinese input{accent-color:#ed5087;width:20px;height:20px}.ear-lines{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:18px}.ear-line{background:white;border:1px solid #e0e6ef;border-radius:12px;text-align:left;padding:12px;min-width:0;color:#18304e;overflow-wrap:anywhere}.ear-line.active{background:#fff0f5;border:2px solid #ed5087;padding:11px}.ear-line small{display:block;font-size:12px;color:#65758d}.ear-line strong{display:block;font-size:16px;line-height:1.6;margin:6px 0}.ear-line span{display:block;font-size:14px;line-height:1.6;color:#65758d}.ear-navigation{display:flex;gap:8px;border-top:1px solid #dce5f0;margin-top:18px;padding-top:15px}.ear-navigation button{flex:1;border:0;background:#e8eef8;border-radius:12px;min-height:46px;padding:8px 4px;color:#234575;font-size:15px}.ear-navigation button:disabled{opacity:.4}.ear-voice-note{display:block;text-align:center;color:#77879c;font-size:12px;margin-top:14px}.ear-reading .ear-tabs{display:none}.ear-home-entry{display:block;width:100%;background:#193e70;color:white;text-align:left;border:0;border-radius:16px;padding:20px;margin:18px 0}.ear-home-entry strong{display:block;font-size:21px}.ear-home-entry span{display:block;font-size:15px;margin-top:8px;color:#dfebfc}@media(min-width:700px){.ear-catalog{grid-template-columns:repeat(3,minmax(0,1fr))}.ear-player{max-width:680px;margin:auto}.ear-lines{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:360px){.ear-header strong{font-size:16px}.ear-stage{min-height:490px}.ear-ko{font-size:19px}.ear-cn{font-size:14px}.ear-bubbles{padding-left:12px;padding-right:12px}.ear-bubble{max-width:98%;padding:12px}.ear-console{padding:16px 12px}.ear-controls{gap:8px}}@media(prefers-reduced-motion:reduce){.ear-progress i{transition:none}}

body.listening-mode .app>header,body.listening-mode .site-footer{display:none}body.listening-mode main{padding-top:18px}.ear-bubble.role-0{justify-self:end}.ear-bubble.role-0:after{left:auto;right:22px}.ear-bubble.role-1{justify-self:start}.ear-bubble.role-1:after{left:22px;right:auto}

.ear-stage{aspect-ratio:1/1.4;min-height:540px;background:#eaf1f8}.ear-picture{top:auto;bottom:0;height:auto;aspect-ratio:1;object-fit:contain}.ear-bubbles{padding-top:52px;gap:18px}.ear-bubble{max-width:94%}.ear-other .ear-ko{font-size:19px}.ear-other .ear-cn{font-size:14px}@media(min-width:700px){.ear-stage{min-height:700px}}

.ear-bubbles{display:block;position:relative;padding:58px 14px 30px;min-width:0}.ear-bubble{display:block;width:fit-content;min-width:0;max-width:100%;box-sizing:border-box}.ear-bubble.role-0{margin-left:auto;margin-right:0}.ear-bubble.role-1{margin-left:0;margin-right:auto}.ear-ko,.ear-cn{overflow-wrap:anywhere;word-break:normal}.ear-active{animation:ear-appear .18s ease-out}@keyframes ear-appear{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){.ear-active{animation:none}}

/* Keep the speaking bubble beside the faces inside the actual scene. */
.ear-stage{aspect-ratio:1/1.12;min-height:0;background:#dbe8f2;overflow:hidden}.ear-picture{inset:0;width:100%;height:100%;aspect-ratio:auto;object-fit:cover;object-position:center}.ear-bubbles{position:absolute;inset:0;padding:0;pointer-events:none}.ear-bubble{position:absolute;bottom:55%;width:82%;max-width:calc(100% - 28px);padding:16px 14px 13px;border-radius:17px;pointer-events:auto;background:#fffffff7}.ear-bubble.role-0{right:14px;left:auto;margin:0}.ear-bubble.role-1{left:14px;right:auto;margin:0}.ear-bubble.role-0:after{right:17%;left:auto}.ear-bubble.role-1:after{left:22%;right:auto}.ear-role{position:absolute;top:-13px;left:15px;border-radius:16px;padding:4px 12px;background:#ed5087;color:white;font-size:12px;line-height:1.4}.role-1 .ear-role{background:#5475ee;color:white}.ear-ko{font-size:20px;line-height:1.5;letter-spacing:0;font-weight:600}.ear-cn{font-size:15px;line-height:1.5;margin-top:7px}.ear-sign{position:absolute;top:14px;left:14px;max-width:65%;padding:7px 10px;background:#1c3c61e8;color:white;border-radius:4px;font-size:13px;line-height:1.4;box-shadow:0 2px 5px #142b4420}.ear-counter{top:14px;right:14px}.ear-active{animation:ear-appear .18s ease-out}@media(max-width:360px){.ear-stage{min-height:0}.ear-ko{font-size:18px}.ear-cn{font-size:14px}.ear-bubble{width:86%;padding:16px 12px 12px}}@media(min-width:700px){.ear-stage{min-height:0}.ear-ko{font-size:24px}.ear-cn{font-size:18px}}

.ear-stage{display:block;position:relative}.ear-bubbles{position:absolute;inset:0;display:block;width:100%;height:100%;align-self:auto;padding:0;box-sizing:border-box}.ear-bubble{top:66px;bottom:auto;height:auto;min-height:0;transform:none}.ear-bubble.role-0,.ear-bubble.role-1{top:66px;bottom:auto}@media(max-width:360px){.ear-bubble.role-0,.ear-bubble.role-1{top:62px}}

/* Compact speech stays on the speaker side; short lines do not span both people. */
.ear-bubble{width:max-content;min-width:0;max-width:72%;padding:15px 12px 10px;text-align:left}.ear-bubble.role-0,.ear-bubble.role-1{width:max-content;max-width:72%}.ear-bubble.role-0:after{right:20%;left:auto}.ear-bubble.role-1:after{left:25%;right:auto}.ear-role{font-size:11px;padding:4px 9px;white-space:nowrap}.ear-ko{font-size:19px;line-height:1.45}.ear-cn{font-size:14px;line-height:1.45;margin-top:5px}@media(max-width:360px){.ear-bubble{padding:15px 10px 10px}.ear-ko{font-size:18px}.ear-cn{font-size:14px}.ear-role{font-size:10px}}

/* Fit speech around the inspected face band instead of a fixed head-level box. */
.ear-bubble{padding:13px 11px 9px}.ear-ko{font-size:17px;line-height:1.4}.ear-cn{font-size:13px;line-height:1.4}.ear-bubble.ear-tail-up:after{bottom:auto;top:-10px;transform:rotate(225deg)}
@media(max-width:360px){.ear-ko{font-size:16px}.ear-cn{font-size:12px}}

/* Reserve only the space required above the heads; never put speech over torsos. */
.ear-stage{aspect-ratio:auto;background:#eaf1f8;height:420px}.ear-picture{bottom:auto;object-fit:cover}.ear-bubble:after{z-index:0;bottom:-8px;top:auto;width:12px;height:12px;transform:rotate(45deg)}.ear-role{z-index:2;left:10px}.ear-bubble.role-0:after{right:20%;left:auto}.ear-bubble.role-1:after{left:25%;right:auto}

.ear-bubble.role-0:after,.ear-bubble.role-1:after{left:var(--ear-tail-x,26px);right:auto}

/* Independent HD scenes retain their native proportions. */
.ear-scene-art{display:block;width:100%;background-repeat:no-repeat}.ear-picture{background-repeat:no-repeat}.ear-counter{z-index:3;pointer-events:none;font-size:12px;padding:5px 9px}.ear-bubble{bottom:auto;z-index:2}.ear-bubble:after{pointer-events:none}.ear-bubble .ear-ko,.ear-bubble .ear-cn{position:relative;z-index:1}

/* Speaker identity stays visible even with one device voice. */
.ear-speaker{display:block;font-size:12px;line-height:1.4;font-weight:600;color:#ae2c5a;margin-bottom:4px}.role-1 .ear-speaker{color:#3654ac}.ear-voices{margin-top:14px;font-size:14px}.ear-voices summary{cursor:pointer;min-height:32px}.ear-voices label{display:grid;grid-template-columns:5em minmax(0,1fr);align-items:center;gap:8px;margin-top:10px}.ear-voices select{min-width:0;width:100%;font-size:16px;padding:8px;border:1px solid #d8e2f0;border-radius:8px;background:white}.ear-bubble .ear-cn{font-size:14px}

.ear-toolbar{padding:10px 14px 14px;background:#f8fafc}.ear-toolbar .ear-status{margin:0 0 8px}.ear-toolbar .ear-controls{gap:8px}

/* Theme, subdirectory, then scene: short lists at every level. */
.ear-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 20px;color:#65758d;font-size:14px}.ear-breadcrumb button{border:0;background:#eaf0f8;color:#234575;border-radius:10px;padding:10px 12px;min-height:44px;font:inherit}.ear-breadcrumb [aria-current=page]{color:#182b49;font-weight:600}.ear-topics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ear-topic{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:9px;padding:18px 14px;border:1px solid #dce5f0;border-radius:16px;background:white;color:#182b49;min-width:0}.ear-topic-icon{font-size:28px}.ear-topic strong{font-size:18px}.ear-topic small{font-size:14px;color:#526882}.ear-topic-hint{font-size:14px;line-height:1.6;color:#65758d}.ear-subdirectories{display:grid;gap:12px}.ear-subdirectory{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:84px;padding:16px;text-align:left;border:1px solid #dce5f0;border-radius:14px;background:white;color:#182b49}.ear-subdirectory>span{display:grid;gap:7px;min-width:0}.ear-subdirectory strong{font-size:18px}.ear-subdirectory small{font-size:14px;line-height:1.6;color:#65758d}.ear-subdirectory b{font-size:14px;white-space:nowrap;color:#365373;font-weight:500}.ear-topic:focus-visible,.ear-subdirectory:focus-visible,.ear-breadcrumb button:focus-visible{outline:3px solid #5475ee;outline-offset:3px}@media(min-width:700px){.ear-topics{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:360px){.ear-topic{padding:14px 10px}.ear-topic strong{font-size:17px}.ear-subdirectory{flex-wrap:wrap}}

/* Compact scene directory; full illustrations remain in the player. */
.ear-catalog{grid-template-columns:minmax(0,1fr);gap:10px}
.ear-scene{display:flex;align-items:center;gap:0;min-height:96px;padding:8px;border-radius:14px}
.ear-scene .ear-scene-art{display:block;flex:0 0 72px;width:72px;height:80px;aspect-ratio:auto!important;object-fit:cover;object-position:center 42%;border-radius:9px;background-size:cover;background-position:center 42%}
.ear-scene>span{display:grid;min-width:0;flex:1;gap:4px;padding:4px 12px}
.ear-scene strong{font-size:16px;line-height:1.45;overflow-wrap:anywhere}
.ear-scene small{font-size:13px;line-height:1.4}
.ear-scene:focus-visible{outline:3px solid #5475ee;outline-offset:3px}
@media(min-width:700px){.ear-catalog{grid-template-columns:repeat(2,minmax(0,1fr))}}

.ear-starter{margin-bottom:20px}.ear-starter h3{font-size:18px;color:#173b68;margin:0 0 12px}

/* The player fits above the measured bottom menu, including iPhone browser chrome. */
body.listening-mode main.ear-reading{padding:0}
main.ear-reading .ear-player{position:fixed;z-index:40;top:var(--ear-player-top,8px);bottom:auto;left:50%;transform:translateX(-50%);display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;min-width:0;min-height:0;width:calc(100% - 16px);max-width:664px;margin:0;border-radius:16px;background:#fff;height:var(--ear-player-height,calc(var(--app-viewport-height,100dvh) - var(--bottom-nav-height) - 32px))}
main.ear-reading .ear-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;padding:6px 10px}
main.ear-reading .ear-header strong{font-size:16px;line-height:1.35;overflow-wrap:anywhere}
main.ear-reading .ear-header button{font-size:13px;min-height:44px;white-space:nowrap}
main.ear-reading .ear-toolbar{padding:6px 10px 8px}
main.ear-reading .ear-status{font-size:12px;line-height:1.4;min-height:17px;margin:0 0 5px}
main.ear-reading .ear-controls{display:grid;grid-template-columns:1fr 1.2fr 1fr;gap:5px 8px}
main.ear-reading .ear-controls button{min-width:0;min-height:44px;padding:6px 8px;font-size:14px}
main.ear-reading .ear-controls label{font-size:12px;justify-content:center;min-width:0}
main.ear-reading .ear-controls select{min-width:0;min-height:44px;padding:4px;font-size:16px}
main.ear-reading .ear-chinese{grid-column:1/-1;justify-self:start;min-height:24px}
main.ear-reading .ear-stage{height:auto;min-height:0;aspect-ratio:auto;overflow:hidden}
main.ear-reading .ear-picture{right:auto;bottom:auto}
main.ear-reading .ear-bubble{max-width:calc(100% - 24px);max-height:none;overflow:visible;padding:9px 10px}
main.ear-reading .ear-ko{font-size:16px;line-height:1.4}
main.ear-reading .ear-cn{font-size:13px;line-height:1.4;margin-top:4px}
main.ear-reading .ear-console{padding:8px 10px 10px}
main.ear-reading .ear-navigation{margin-top:8px;padding-top:0;border:0;gap:8px}
main.ear-reading .ear-navigation button{min-height:44px;font-size:14px;padding:6px 2px}
main.ear-reading .ear-voice-note{display:none}
@media(max-height:600px){main.ear-reading .ear-ko{font-size:16px}main.ear-reading .ear-cn{font-size:13px}main.ear-reading .ear-header strong{font-size:14px}main.ear-reading .ear-chinese{grid-column:auto;min-height:24px}main.ear-reading .ear-controls{grid-template-columns:1fr 1.2fr 1fr}main.ear-reading .ear-chinese{grid-column:1/-1}main.ear-reading .ear-toolbar{padding-bottom:4px}}

/* The player already includes two return controls; the generic injected back button must not occupy its layout. */
main.ear-reading > [data-context-back]{display:none!important}

body.listening-mode .bottom-nav{z-index:60}
.ear-bubble-content{display:block;max-height:none;overflow:visible}

/* Uploaded adjustment: centered speech, full bilingual text, no bubble transform. */
main.ear-reading .ear-bubble{max-width:min(72%,300px);transform:none}
