/* AliMed V12K - responsive native player and mobile corrections. */
body.ac16-immersive #ac16-root .ac11-size-label{display:none!important}
body.ac16-immersive main.main #ac16-root .ac16-study-grid{grid-template-columns:minmax(190px,235px) minmax(0,1fr)!important;gap:14px!important;max-width:none!important}
body.ac16-immersive main.main #ac16-root .ac16-study-body,
body.ac16-immersive main.main #ac16-root .ac16-playerbox{min-width:0!important;width:100%!important;max-width:none!important}
body.ac16-immersive main.main #ac16-root #ac21-playerframe{width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:16/9!important;background:#000!important;position:relative!important}
body.ac16-immersive main.main #ac16-root #ac21-playerframe video#ac16-video{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:contain!important}
body.ac16-immersive #ac16-root .ac19-player-toolbar button.ac12k-jump{font-family:inherit!important;font-size:12px!important;font-weight:650!important;white-space:nowrap!important;min-width:45px!important;min-height:30px!important;color:#fff!important;padding:3px 5px!important}
body.ac16-immersive #ac16-root #ac19-duration{min-width:46px!important;font-variant-numeric:tabular-nums!important}
body.ac16-immersive #ac16-root .ac16-player-controls{justify-content:flex-end!important}
body.ac16-immersive #ac16-root #ac21-playerframe:fullscreen,
body.ac16-immersive #ac16-root #ac21-playerframe:-webkit-full-screen{height:100dvh!important;width:100vw!important;aspect-ratio:auto!important}
@media(max-width:800px){body.ac16-immersive main.main #ac16-root .ac16-study-grid{grid-template-columns:minmax(0,1fr)!important}body.ac16-immersive #ac16-root .ac19-player-toolbar button.ac12k-jump{font-size:10px!important;min-width:37px!important;padding:2px!important}}
@media(max-width:760px){
 /* Landing: original two auth buttons only, no logo/menu/duplicated mobile drawer. */
 html body #topbar #dock .dock-brand, html body #topbar #mobileMenu,html body #topbar #mobileNav, html body #am12c-mobile-auth{display:none!important}
 html body #topbar #dock{display:flex!important;justify-content:center!important;align-items:center!important;gap:10px!important}
 html body #topbar #dock > :not(button[data-auth-action="login"]):not(button[data-auth-action="register"]){display:none!important}
 html body #topbar #dock button[data-auth-action="login"]{display:inline-flex!important;order:1!important;background:#c9273c!important;color:#fff!important;visibility:visible!important;pointer-events:auto!important;flex:1 1 0!important}
 html body #topbar #dock button[data-auth-action="register"]{display:inline-flex!important;order:2!important;background:#236ccd!important;color:#fff!important;visibility:visible!important;pointer-events:auto!important;flex:1 1 0!important}
 /* Hide Aixa only on mobile, including floating controls. */
 html body [id*="aixa" i],html body [class*="aixa-floating" i],html body [class*="aixa-widget" i]{display:none!important}
 /* Referral module remains desktop-only. */
 html body .ali87-card,html body .ali87-home,html body .ali87-n2{display:none!important}
}


/* ALIMED V12L - AUTH MOBILE FINAL */
@media screen and (max-width:760px) {

  html body #topbar {
    position:fixed!important;
    top:0!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    max-width:100vw!important;
    min-height:58px!important;
    height:58px!important;
    padding:6px 12px!important;
    margin:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    box-sizing:border-box!important;
    z-index:2147483000!important;
  }

  html body #topbar #dock {
    display:flex!important;
    position:relative!important;
    flex:0 0 auto!important;
    align-items:center!important;
    justify-content:flex-end!important;
    gap:8px!important;
    width:auto!important;
    min-width:0!important;
    max-width:calc(100vw - 24px)!important;
    height:46px!important;
    min-height:46px!important;
    padding:0!important;
    margin:0!important;
    background:transparent!important;
    background-image:none!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    transform:none!important;
    pointer-events:auto!important;
  }

  html body #topbar #dock::before,
  html body #topbar #dock::after,
  html body #topbar::before,
  html body #topbar::after {
    display:none!important;
    content:none!important;
  }

  html body #topbar #dock > :not(
    button[data-auth-action="login"]
  ):not(
    button[data-auth-action="register"]
  ) {
    display:none!important;
  }

  html body #topbar #mobileMenu,
  html body #topbar #mobileNav,
  html body #topbar #am12c-mobile-auth {
    display:none!important;
  }

  html body #topbar #dock button[data-auth-action] {
    position:relative!important;
    display:inline-flex!important;
    flex:0 0 auto!important;
    align-items:center!important;
    justify-content:center!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    height:38px!important;
    min-height:38px!important;
    padding:0 13px!important;
    margin:0!important;
    border-radius:10px!important;
    box-sizing:border-box!important;
    font-family:inherit!important;
    font-size:13px!important;
    font-weight:650!important;
    line-height:1!important;
    letter-spacing:0!important;
    white-space:nowrap!important;
    text-transform:none!important;
    transform:none!important;
    box-shadow:none!important;
    filter:none!important;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    touch-action:manipulation!important;
    z-index:2!important;
  }

  html body #topbar #dock button[data-auth-action="login"] {
    order:1!important;
    background:#c9273c!important;
    border:1px solid #c9273c!important;
    color:#fff!important;
  }

  html body #topbar #dock button[data-auth-action="register"] {
    order:2!important;
    background:#236ccd!important;
    border:1px solid #236ccd!important;
    color:#fff!important;
  }

  html body #topbar #dock button[data-auth-action] span,
  html body #topbar #dock button[data-auth-action] svg,
  html body #topbar #dock button[data-auth-action] i,
  html body #topbar #dock button[data-auth-action]::before,
  html body #topbar #dock button[data-auth-action]::after {
    display:none!important;
    content:none!important;
  }

  html body #topbar #dock .dock-brand {
    display:none!important;
  }

  html body #am12c-mobile-auth,
  html body #mobileNav {
    display:none!important;
  }

}

@media screen and (max-width:360px) {
  html body #topbar {
    padding-left:8px!important;
    padding-right:8px!important;
  }

  html body #topbar #dock {
    gap:6px!important;
  }

  html body #topbar #dock button[data-auth-action] {
    font-size:12px!important;
    padding-left:10px!important;
    padding-right:10px!important;
  }
}