/* ---- Listen to this story ---- */
.listen{margin:18px 0 0}
.listen-start{display:inline-flex;align-items:center;gap:10px;padding:10px 20px 10px 12px;border:1px solid var(--gold,#b08d4c);border-radius:999px;background:#fff;color:var(--navy,#13284f);font:600 .95rem/1 var(--sans);cursor:pointer;transition:background .2s,box-shadow .2s}
.listen-start:hover{background:#b08d4c14;box-shadow:0 2px 10px #13284f14}
.listen-ico{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--navy,#13284f)}
.listen-ico svg{width:17px;height:17px;fill:#fff}
.tts-on{background:#b08d4c1f;box-shadow:0 0 0 8px #b08d4c1f;border-radius:4px;transition:background .3s}
body.listening .story-body p,body.listening .story-body h2,body.listening .story-body blockquote{cursor:pointer}
body.listening{padding-bottom:84px}
.listen-bar{position:fixed;left:0;right:0;bottom:0;z-index:60;background:var(--navy,#13284f);color:#fff;box-shadow:0 -6px 24px #0003;padding:10px 14px calc(10px + env(safe-area-inset-bottom))}
.listen-bar[hidden]{display:none}
.lb-inner{max-width:980px;margin:0 auto;display:flex;align-items:center;gap:10px}
.lb-btn{flex:none;display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:50%;background:transparent;cursor:pointer}
.lb-btn svg{width:22px;height:22px;fill:#fff}
.lb-btn:hover{background:#ffffff1f}
.lb-play{width:48px;height:48px;background:var(--gold,#b08d4c)}
.lb-play:hover{background:#c39d5c}
.lb-play .i-play,.listen-bar.is-paused .lb-play .i-pause{display:none}
.listen-bar.is-paused .lb-play .i-play{display:block}
.lb-mid{flex:1;min-width:0}
.lb-title{font:600 .9rem/1.3 var(--sans);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:6px}
.lb-track{height:3px;background:#ffffff33;border-radius:2px;overflow:hidden}
.lb-track span{display:block;height:100%;width:0;background:var(--gold,#b08d4c);transition:width .4s}
.lb-opt{display:flex;align-items:center;gap:6px;font:600 .72rem/1 var(--sans);letter-spacing:.06em;text-transform:uppercase;color:#ffffffb3}
.lb-opt select{background:#ffffff1a;color:#fff;border:1px solid #ffffff40;border-radius:6px;padding:6px 6px;font:500 .85rem var(--sans);max-width:150px}
.lb-opt select option{color:#13284f}
.lb-opt[hidden]{display:none}
@media (max-width:640px){.lb-opt span{display:none}.lb-voice{display:none!important}.lb-title{font-size:.82rem}.lb-btn{width:36px;height:36px}.lb-play{width:44px;height:44px}.lb-opt select{max-width:70px}}

.listen-bar.lb-msg .lb-btn:not(.lb-close),.listen-bar.lb-msg .lb-opt,.listen-bar.lb-msg .lb-track{display:none}
.listen-bar.lb-msg .lb-title{white-space:normal}
.lb-title[lang="ur"]{font-family:"Noto Nastaliq Urdu",serif;font-weight:400;line-height:2}
/* inside the book reader */
.listen-bar.in-reader{left:50%;right:auto;bottom:6px;transform:translateX(-50%);width:min(680px,calc(100vw - 20px));border-radius:16px;padding:8px 12px;background:#1b2d4fee;backdrop-filter:blur(6px);border:1px solid #d9c49a44}
body.reader.listening{padding-bottom:0}
#book .tts-on{background:#b08d4c2b;box-shadow:0 0 0 3px #b08d4c2b;border-radius:2px}
.rd-listen svg{width:16px;height:16px;fill:currentColor;display:block}
.rd-listen.on{background:#b08d4c;border-color:#b08d4c;color:#13284f}
body.reader.listening .rd-bar{visibility:hidden}
@media (max-width:640px){.listen-bar.in-reader{bottom:2px;padding:4px 8px}}
@media (max-width:480px){body.reader .rd-fs{display:none}body.reader .rd-btn{white-space:nowrap}}
