/* v66 Public Quran Reader: iPhone/Android accessible persistent Sheikh player.
   Keep the verified Mushaf untouched; dock only the recitation controls. */
.ap-android-reader .ap-quick-recitation{
 display:flex;gap:8px;align-items:center;flex-wrap:wrap;
 border-top:1px solid #d2e2d5;padding:8px 0 0;
}
.ap-android-reader .ap-quick-recitation>.ap-btn{
 min-height:39px;padding:7px 13px;font-weight:800;
}
.ap-android-reader .ap-inline-sheikh{
 display:flex;gap:5px;align-items:center;min-width:0;
 color:#386b52;font-size:11px;font-weight:750;
}
.ap-android-reader .ap-inline-sheikh select{
 max-width:220px;min-width:95px;min-height:39px;
 padding:5px 8px;border:1px solid #c6dccc;border-radius:10px;
 color:#164a38;background:#fff;font-size:12px;
}
.ap-android-reader .ap-quick-recitation #ap-quick-ayah{margin-left:auto}
@media(max-width:780px){
 body:has(.ap-android-reader) .content{
  padding-bottom:calc(235px + env(safe-area-inset-bottom,0px))!important;
 }
 .ap-android-reader .ap-bottom-player{
  position:fixed!important;
  left:8px!important;right:8px!important;
  bottom:calc(68px + env(safe-area-inset-bottom,0px))!important;
  width:auto!important;max-width:none!important;
  max-height:min(48dvh,330px)!important;overflow-y:auto!important;
  overscroll-behavior:contain!important;
  z-index:65!important;
  border:1px solid #bdcfb4!important;
  border-radius:15px!important;
  box-shadow:0 -7px 28px #063c3060!important;
  background:#f8fcf5!important;
  display:grid!important;gap:5px!important;
  padding:7px 10px 8px!important;
  margin:0!important;
 }
 .ap-android-reader .ap-tiny-title{gap:8px;min-height:18px}
 .ap-android-reader .ap-tiny-title strong{
  max-width:60%;font-size:11px;
 }
 .ap-android-reader .ap-tiny-title span{font-size:10px}
 .ap-android-reader .ap-player-row{
  gap:6px;justify-content:space-evenly;
  flex-wrap:nowrap;min-height:39px;
 }
 .ap-android-reader .ap-player-row .ap-ico{
  flex:0 0 auto;min-width:39px;min-height:38px;
  touch-action:manipulation;
 }
 .ap-android-reader .ap-player-row .ap-play{min-width:52px}
 .ap-android-reader .ap-player-row #tr-player-status{
  flex:1;max-width:none;min-width:0;margin:0;
  font-size:10px;line-height:1.2;
  overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
 }
 .ap-android-reader .ap-quick-recitation{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.15fr);
  gap:5px;padding:5px 0 0;
 }
 .ap-android-reader .ap-quick-recitation>.ap-btn{
  padding:5px 3px;min-width:0;min-height:41px;
  font-size:11px;white-space:nowrap;
 }
 .ap-android-reader .ap-inline-sheikh{
  min-width:0;width:100%;display:block;font-size:0;
 }
 .ap-android-reader .ap-inline-sheikh select{
  width:100%;max-width:100%;min-width:0;
  min-height:41px;font-size:11px;padding:5px 2px;
  text-overflow:ellipsis;
 }
 .ap-android-reader .ap-quick-recitation #ap-quick-ayah{display:none}
 .ap-android-reader .ap-tiny-seek{height:13px;min-height:13px;width:100%;accent-color:#0d7654}
 .ap-android-reader .ap-expanded{
  overflow:auto;max-height:min(23dvh,190px);
  padding-top:8px;gap:6px;
 }
 .ap-android-reader .ap-expanded .ap-btn{
  min-height:37px;font-size:11px;
 }
 .ap-android-reader .ap-bottom-player button:focus-visible,
 .ap-android-reader .ap-bottom-player select:focus-visible{
  outline:3px solid #d0ab56!important;
  outline-offset:1px!important;
 }
 .ap-android-reader .ap-reader-region .tr-page{
  overscroll-behavior:contain;
 }
}
@media(max-width:380px){
 .ap-android-reader .ap-bottom-player{
  left:5px!important;right:5px!important;padding:6px 6px!important;
 }
 .ap-android-reader .ap-player-row{gap:3px}
 .ap-android-reader .ap-player-row .ap-ico{min-width:35px}
 .ap-android-reader .ap-quick-recitation>.ap-btn{font-size:10px}
}
@media(min-width:781px) and (max-width:1024px){
 body:has(.ap-android-reader) .content{padding-bottom:225px!important}
 .ap-android-reader .ap-bottom-player{
  position:fixed!important;z-index:65!important;
  left:12px!important;right:12px!important;
  bottom:12px!important;width:auto!important;
  max-height:38dvh!important;overflow:auto!important;
  margin:0!important;padding:10px 15px!important;
  border:1px solid #b8d5c3!important;
  box-shadow:0 -7px 26px #052b2440!important;
  background:#f7fdf6!important;
 }
 .ap-android-reader .ap-quick-recitation{display:flex;flex-wrap:wrap}
 .ap-android-reader .ap-player-row .ap-ico{min-height:42px;min-width:42px}
 .ap-android-reader .ap-quick-recitation>.ap-btn{min-height:42px}
 .ap-android-reader .ap-inline-sheikh select{min-height:42px}
}
