/* Arkemion V19 - UI movil cinematografica */
@media (max-width: 768px){
  html,body{overflow-x:hidden!important;}
  .ark-app{min-height:100dvh;background:#05060a;}
  .ark-reader{min-height:100dvh!important;padding:8px 8px calc(78px + env(safe-area-inset-bottom))!important;justify-content:flex-end!important;}
  .ark-bg,.ark-bg-layer,.ark-video-bg{height:62dvh!important;bottom:auto!important;object-fit:cover!important;filter:saturate(1.02) contrast(1.06) brightness(.82)!important;}
  .ark-vignette{background:linear-gradient(to top,rgba(0,0,0,.84),rgba(0,0,0,.06) 45%,rgba(0,0,0,.38))!important;}
  .ark-topbar{display:none!important;}
  .ark-reader-bottom{width:100%!important;margin:0!important;bottom:calc(70px + env(safe-area-inset-bottom))!important;max-height:34vh!important;z-index:48!important;}
  .ark-textbox{max-height:30vh!important;overflow:auto!important;padding:12px 13px!important;border-radius:14px!important;background:linear-gradient(180deg,rgba(8,9,14,.88),rgba(6,7,10,.94))!important;border:1px solid rgba(213,176,106,.24)!important;box-shadow:0 14px 48px rgba(0,0,0,.56)!important;}
  .ark-textbox p{font-size:15.5px!important;line-height:1.52!important;margin:.35em 0!important;}
  body.ak-text-expanded .ark-reader-bottom{max-height:58vh!important;}
  body.ak-text-expanded .ark-textbox{max-height:55vh!important;}
  body.ak-text-hidden .ark-reader-bottom{display:none!important;}
  body.ak-mode-visual .ark-bg,body.ak-mode-visual .ark-bg-layer,body.ak-mode-visual .ark-video-bg{height:78dvh!important;}
  body.ak-mode-visual .ark-reader-bottom{opacity:.94;max-height:24vh!important;}
  body.ak-mode-visual .ark-textbox{max-height:20vh!important;}
  body.ak-mode-reading .ark-reader-bottom{max-height:58vh!important;}
  body.ak-mode-reading .ark-textbox{max-height:54vh!important;background:rgba(7,8,12,.96)!important;}
  .ak-cinematic-text-tools{display:flex;gap:6px;justify-content:flex-end;margin:6px 0 0;}
  .ak-cinematic-text-tools button,.ak-show-text{min-height:36px;border:1px solid rgba(213,176,106,.32);border-radius:999px;background:rgba(8,9,14,.88);color:#f4dfaf;padding:6px 10px;font:inherit;font-size:12px;font-weight:800;}
  .ak-show-text{position:fixed;right:10px;bottom:calc(84px + env(safe-area-inset-bottom));z-index:1002;display:none;}
  body.ak-text-hidden .ak-show-text{display:block;}
  .ark-mobile-actionbar{height:auto!important;max-height:76px!important;grid-template-columns:72px minmax(0,1fr) 58px!important;align-items:center!important;padding:7px 8px calc(8px + env(safe-area-inset-bottom))!important;gap:7px!important;}
  .ark-mobile-actionbar button{min-height:44px!important;border-radius:12px!important;font-size:12px!important;padding:6px 8px!important;}
  .ark-mobile-actionbar button[data-ak-mobile-action="continue"]{grid-column:auto!important;font-size:15px!important;}
  .ark-mobile-actionbar button[data-ak-mobile-action="audio"],
  .ark-mobile-actionbar button[data-ak-mobile-action="narrator"],
  .ark-mobile-actionbar button[data-ak-mobile-action="notebook"],
  .ark-mobile-actionbar button[data-ak-mobile-action="fullscreen"]{display:none!important;}
  .ark-touch-menu{bottom:calc(66px + env(safe-area-inset-bottom))!important;grid-template-columns:1fr 1fr!important;border-radius:18px 18px 0 0!important;max-height:58vh!important;}
  .ark-touch-menu button{min-height:42px!important;font-size:13px!important;}
  .ak-narrator-android-panel,.ark-narrator-panel{bottom:calc(78px + env(safe-area-inset-bottom))!important;max-height:48vh!important;border-radius:18px!important;}
  .ak-narrator-android-panel:not([hidden]){display:block!important;}
  .ak-narrator-grid{grid-template-columns:1fr!important;}
  .ak-narrator-actions{grid-template-columns:1fr 1fr!important;}
}
@media (max-width:768px) and (orientation:landscape){
  .ark-bg,.ark-bg-layer,.ark-video-bg{height:100dvh!important;}
  .ark-reader-bottom{max-height:38vh!important;width:min(560px,58vw)!important;margin-left:0!important;}
  .ark-mobile-actionbar{grid-template-columns:82px minmax(160px,1fr) 62px!important;left:auto!important;width:min(560px,100vw)!important;}
}
