/* v65: permanent mobile Quran playback parity, Android and desktop actions.
   Main controls are usable without entering fullscreen. */
.ac-studio-shell .ac-focus-mobile-row{display:none}
@media(max-width:800px){
  html:not(.ac-studio-fullscreen) .ac-studio-shell.ac-class-running{
    padding-bottom:136px!important;
  }
  html:not(.ac-studio-fullscreen) .ac-studio-shell.ac-class-running .ac-focus-footer{
    display:flex!important;position:fixed!important;z-index:40000!important;
    left:0!important;right:0!important;bottom:0!important;
    width:100%!important;min-height:113px!important;height:auto!important;
    box-sizing:border-box!important;margin:0!important;
    padding:6px 7px calc(6px + env(safe-area-inset-bottom,0px))!important;
    flex-wrap:wrap!important;align-items:center!important;
    justify-content:space-between!important;gap:5px!important;
    background:#073e31!important;border-top:1px solid #b49b62!important;
    box-shadow:0 -6px 20px #001c1640!important;
  }
  html.ac-studio-fullscreen .ac-studio-shell{
    grid-template-rows:53px minmax(0,1fr) 111px!important;
  }
  html.ac-studio-fullscreen .ac-focus-footer{
    align-content:center!important;
    flex-wrap:wrap!important;gap:5px!important;
    padding:5px 7px calc(5px + env(safe-area-inset-bottom,0px))!important;
  }
  .ac-studio-shell .ac-focus-mobile-row{
    display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));
    gap:5px;width:100%;flex:1 0 100%;order:3;
    box-sizing:border-box;
  }
  .ac-studio-shell .ac-focus-mobile-row .ac-action{
    width:100%;min-width:0!important;max-width:none!important;
    min-height:40px!important;padding:5px 3px!important;
    white-space:nowrap!important;overflow:hidden!important;
    text-overflow:ellipsis!important;font-size:11px!important;
    font-weight:700!important;border-radius:9px!important;
    background:#e4f4e9!important;color:#0a4834!important;
    touch-action:manipulation;
  }
  .ac-studio-shell .ac-focus-mobile-row [data-ac="class-full-surah"]{
    background:#f4d783!important;color:#124131!important;
  }
  .ac-studio-shell .ac-focus-playing{
    display:flex!important;align-items:center!important;justify-content:flex-start;
    flex:1 1 240px;gap:5px!important;min-width:0!important;
    overflow:hidden!important;order:1;
  }
  .ac-studio-shell .ac-focus-quick-play{
    min-width:100px!important;max-width:144px!important;min-height:40px!important;
    padding:5px 6px!important;font-size:11px!important;flex-shrink:0;
  }
  .ac-studio-shell .ac-focus-quick-sound{
    min-width:82px!important;min-height:40px!important;padding:5px 6px!important;
    border:1px solid #8db9aa;border-radius:10px;
    background:#e1f2ec;color:#0b503a;font-size:11px;font-weight:750;
    flex-shrink:0;white-space:nowrap;
  }
  .ac-studio-shell #ac-focus-playing-label{
    display:inline!important;min-width:0;flex:1;
    color:#fdf5d9!important;font-size:10px!important;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }
  .ac-studio-shell #ac-focus-mic-level{display:none!important}
  .ac-studio-shell .ac-focus-arrow{
    display:block!important;min-height:40px!important;
    width:44px!important;min-width:44px!important;max-width:44px!important;
    padding:0!important;order:2;font-size:22px!important;
  }
  html:not(.ac-studio-fullscreen) .ac-studio-shell.ac-focus-dock-open .ac-focus-dock{
    display:flex!important;position:absolute!important;
    bottom:100%!important;left:0!important;right:0!important;
    flex-direction:column!important;gap:7px!important;
    box-sizing:border-box!important;padding:8px 8px 12px!important;
    max-height:min(56dvh,380px)!important;overflow-y:auto!important;
    background:#0c513e!important;box-shadow:0 -7px 24px #001e1844!important;
  }
  html.ac-studio-fullscreen .ac-studio-shell.ac-focus-dock-open .ac-focus-dock{
    max-height:min(50dvh,380px)!important;
  }
  html.ac-studio-fullscreen .ac-studio-shell .ac-right{
    bottom:111px!important;
  }
  html.ac-studio-fullscreen .ac-studio-shell .ac-class-reciter{
    scroll-margin-bottom:120px;
  }
  .ac-studio-shell .ac-focus-control-row .ac-action{
    min-height:40px!important;
  }
  .ac-studio-shell .ac-focus-mobile-row .ac-action:focus-visible,
  .ac-studio-shell .ac-focus-quick-play:focus-visible{
    outline:3px solid #e5bd68!important;outline-offset:1px;
  }
}
@media(max-width:390px){
  .ac-studio-shell .ac-focus-mobile-row .ac-action{font-size:10px!important}
  .ac-studio-shell #ac-focus-playing-label{display:none!important}
  .ac-studio-shell .ac-focus-playing{flex:1 1 180px}
}
