/* v101 — Fix Android/Chrome reading progress rail and unavailable WBW controls.
   Keep the site's existing navy/gold palette, reading fonts, and Last Read logic. */
#panel-quran .q96-progress .q96-track-wrap{
 display:block!important;position:relative!important;
 width:100%!important;min-width:0!important;
 height:48px!important;padding:9px 10px!important;
 overflow:visible!important;
 box-sizing:border-box!important;
}
#panel-quran .q96-progress .q96-track-wrap #q96Seek{
 -webkit-appearance:none!important;appearance:none!important;
 writing-mode:horizontal-tb!important;direction:ltr!important;
 display:block!important;position:relative!important;
 transform:none!important;rotate:none!important;
 width:100%!important;max-width:none!important;min-width:0!important;
 height:32px!important;min-height:32px!important;
 padding:0!important;margin:0!important;
 border:0!important;border-radius:0!important;
 background:transparent!important;
 box-shadow:none!important;opacity:1!important;
 cursor:pointer;touch-action:pan-y;
}
#panel-quran .q96-progress #q96Seek::-webkit-slider-runnable-track{
 -webkit-appearance:none!important;
 width:100%!important;height:8px!important;
 border-radius:99px!important;
 background:linear-gradient(to right,
  #d8b475 0%,#d8b475 var(--q96-pct,0%),
  #48626d var(--q96-pct,0%),#48626d 100%)!important;
 border:1px solid #58727c!important;
 box-shadow:none!important;
}
#panel-quran .q96-progress #q96Seek::-webkit-slider-thumb{
 -webkit-appearance:none!important;appearance:none!important;
 width:27px!important;height:27px!important;
 margin-top:-10px!important;border:4px solid #f0d6a0!important;
 border-radius:50%!important;
 background:#bc9353!important;
 box-shadow:0 0 0 3px #12313d!important;
 cursor:grab;
}
#panel-quran .q96-progress #q96Seek::-moz-range-track{
 height:8px;border:1px solid #58727c;border-radius:99px;background:#48626d;
}
#panel-quran .q96-progress #q96Seek::-moz-range-progress{
 height:8px;border-radius:99px;background:#d8b475;
}
#panel-quran .q96-progress #q96Seek::-moz-range-thumb{
 width:22px;height:22px;border-radius:50%;
 border:4px solid #f0d6a0;background:#bc9353;
 box-shadow:0 0 0 3px #12313d;
}
#panel-quran .q96-progress #q96LastDot{
 top:6px!important;
 width:4px!important;height:12px!important;
 border-radius:3px!important;
 background:#f6dda9!important;
 box-shadow:0 0 0 2px #102f3e;
 pointer-events:none;
}
/* Preserve thumb accessibility; Last Read is just a small indicator. */
#panel-quran .q96-progress #q96Seek:focus-visible{
 outline:3px solid #f0d6a0!important;outline-offset:3px!important;
}
#panel-quran .q100-wbw-bar.q100-unavailable{
 gap:5px!important;padding:10px 13px!important;
}
#panel-quran .q100-wbw-bar.q100-unavailable .q100-wbw-switch{
 opacity:.74;cursor:default;
}
#panel-quran .q100-wbw-bar.q100-unavailable input{
 cursor:not-allowed;
}
#panel-quran .q100-wbw-bar.q100-unavailable .q100-wbw-support{
 width:100%;
}
#panel-quran .q100-wbw-bar.q100-unavailable #q100WbwStatus{
 color:#f0d6a0;font-size:11px;line-height:1.4;
}
@media (max-width:480px) {
 #panel-quran .q96-progress .q96-track-wrap{padding-inline:13px!important;}
 #panel-quran .q100-wbw-bar.q100-unavailable{margin-block:0 8px!important;}
}

/* Reliable source-switch guidance when a provider returns no audio. */
#panel-quran #q101AudioRecovery[hidden]{display:none!important}
#panel-quran .q101-audio-recovery{
 display:grid;gap:7px;align-items:center;
 padding:12px 15px;border-block:1px solid #826e4d;
 background:#23343d;color:#f3e7d0;
 font:12px/1.5 system-ui,-apple-system,sans-serif;
}
#panel-quran .q101-audio-recovery p{margin:0;max-width:74ch}
#panel-quran .q101-audio-recovery button{
 justify-self:start;min-height:43px;
 padding:9px 14px;border:1px solid #e3c17e;
 border-radius:10px;background:#d8b475;
 color:#152631;font:750 13px system-ui,sans-serif;
}
#panel-quran .q101-audio-recovery button:disabled{opacity:.55}
#panel-quran .q101-audio-recovery button:focus-visible{outline:3px solid #ffe5ac;outline-offset:3px}
#panel-quran #q101RecoveryStatus{font-size:11px;color:#dfc892}

/* v104: compact two-source recovery panel; avoid an oversized failed-audio card. */
#panel-quran .q101-audio-recovery{
 gap:9px!important;
 padding:11px 14px!important;
 line-height:1.4!important;
}
#panel-quran .q104-recovery-actions{
 display:flex;gap:8px;align-items:stretch;flex-wrap:wrap;
 width:100%;
}
#panel-quran .q104-recovery-actions button{
 display:flex;align-items:center;justify-content:center;
 flex:1 1 155px;min-width:0;min-height:43px;
 padding:8px 12px;
 border-radius:9px;
 font-size:12px;line-height:1.35;text-align:center;
 white-space:normal;
}
#panel-quran .q104-recovery-actions #q101UseMP3{
 background:#233d49;color:#f0d6a0;
}
#panel-quran .q101-audio-recovery #q101RecoveryStatus{
 min-height:0;line-height:1.4;
}
