/* 30/11 (ERES) : plein écran = tout l'écran, même sur ordinateur (plus de cadre de téléphone). */
body.fullscreen21 #phone .lfull.fs{position:fixed!important;top:var(--view-top21,0px)!important;left:0!important;right:0!important;width:100vw!important;height:var(--view-height21,100dvh)!important;max-width:none!important;z-index:2147483000!important;border-radius:0!important;margin:0!important;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)!important;background:#0B1437!important;box-sizing:border-box!important}
body.fullscreen21 #phone .lfull.fs .player.rp{width:100%!important;max-width:none!important;border-radius:0!important;margin:0!important}
body.fullscreen21 #phone .lfull.fs .rpscr{width:100%!important;max-width:none!important;border-radius:0!important}
body.fullscreen21 #phone .lfull.fs #lessonframe{width:100%!important;height:100%!important}
body.fullscreen21,body.fullscreen21 .stage,body.fullscreen21 #phone{overflow:visible!important}
body.fullscreen21 .stage,body.fullscreen21 #phone,body.fullscreen21 #phone>.screen{transform:none!important;filter:none!important;contain:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
body.fullscreen21 #phone .lfull.fs>:not(.player){display:none!important}
body.fullscreen21 #phone .lfull.fs>.player.rp{flex:1 1 auto!important;height:100%!important;min-height:0!important}
body.fullscreen21 #phone .lfull.fs .rpscr{flex:1 1 auto!important;min-height:0!important}

/* 30/11 lecteur iPhone portrait : la leçon prend la place */
@media (max-width:767px) and (orientation:portrait){body:not(.wide-app) #phone .lesson-screen .lfull:not(.fs) .rpscr{height:calc(min(60svh,(100vw - 46px)*16/9) + 112px)!important;max-height:none!important;aspect-ratio:auto!important;flex:none!important}}
/* 30/11 lecteur ordinateur / tablette : la vidéo prend toute la largeur (16:9), plafonnée à la hauteur d écran */
@media not all and (max-width:767px) and (orientation:portrait){#phone .lesson-screen .lfull:not(.fs) .rpscr,.lesson-screen .lfull:not(.fs) .rpscr{height:auto!important;min-height:0!important;max-height:calc(100svh - 150px)!important;aspect-ratio:auto!important;flex:none!important}#phone .lesson-screen .lfull:not(.fs) .rpscr::before,.lesson-screen .lfull:not(.fs) .rpscr::before{content:"";display:block;padding-top:calc(56.25% + 112px)}}
/* 30/11 : « Slušaj » ne couvre plus l en-tête de la leçon : il va au centre de la barre de commandes */
.lesson-screen .lfull:not(.fs) .rpscr .sl42-btn:not(.is-innav),#phone .lesson-screen .lfull:not(.fs) .rpscr .sl42-btn:not(.is-innav){top:auto!important;bottom:38px!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important}

/* 30/11 (fil iPhone) : le lecteur garde sa taille, l'écran de leçon défile pour atteindre les boutons dessous ; flèche orange d'indice. */
body:not(.fullscreen21) #phone .screen.lesson-screen:not(.ghost){overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#FA8228 transparent}
#phone .screen.lesson-screen::-webkit-scrollbar{width:5px}#phone .screen.lesson-screen::-webkit-scrollbar-thumb{background:#FA8228;border-radius:4px}
.sc49{position:fixed;z-index:60;width:44px;height:44px;margin-left:-22px;border:0;border-radius:50%;background:#FA8228;color:#fff;box-shadow:0 4px 14px rgba(15,40,225,.28);display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:0;pointer-events:none;transition:opacity .3s;animation:sc49b 1.6s ease-in-out infinite}
.sc49.on{opacity:.95;pointer-events:auto}.sc49 svg{width:22px;height:22px}
@keyframes sc49b{0%,100%{transform:translateY(0)}50%{transform:translateY(6px)}}
@media (prefers-reduced-motion:reduce){.sc49{animation:none}}
body.fullscreen21 .sc49{display:none!important}

/* 30/11 (ERES) : bouton Slušaj retiré partout (lecteur et plein écran). */ .sl42-btn{display:none!important} /* sl42 retiré */
.sc49{width:36px!important;height:36px!important;margin-left:-18px!important}

/* p8 (2/12) barre du haut des leçons : une seule hauteur, en CSS pur (vraie zone sûre), sans --sat calculé en JS qui basculait 0 ↔ 44 px au retour en portrait */
@media (orientation:portrait) and (max-width:700px){html #phone#phone>.screen.lesson-screen>.top{padding-top:calc(env(safe-area-inset-top,0px) + 16px)!important}}
