/* AIRO'S TV mobile web — iPhone/iPad, landscape-first, scoped to touch layouts. */
html.airos-mobile,html.airos-mobile body{min-height:100%;overscroll-behavior-y:none}
html.airos-mobile body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;-webkit-text-size-adjust:100%}
html.airos-mobile button,html.airos-mobile input,html.airos-mobile select{touch-action:manipulation}
html.airos-mobile button:focus:not(:focus-visible){outline:none!important;box-shadow:none!important}
html.airos-mobile .app{height:100dvh;min-height:0;padding-bottom:calc(63px + env(safe-area-inset-bottom));overflow:hidden}
html.airos-mobile .sidebar{display:none!important}
html.airos-mobile main{height:100%;width:100%;min-width:0;overflow:hidden;padding:10px max(12px,env(safe-area-inset-right)) 6px max(12px,env(safe-area-inset-left))}
html.airos-mobile header{flex:none;min-height:44px;gap:8px}
html.airos-mobile header h1{font-size:19px;line-height:1.2}
html.airos-mobile header p{display:none}
html.airos-mobile .topright #clock{font-size:13px}
html.airos-mobile .topright #account{max-width:32vw;font-size:10px;padding:7px 9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.airos-mobile .toolbar{margin:8px 0;gap:8px;flex:none}
html.airos-mobile .toolbar input,html.airos-mobile .toolbar select{font-size:16px;min-width:0;padding:10px 12px;width:100%}
html.airos-mobile .category-wrap{max-width:42%;min-width:0}
html.airos-mobile .content{min-height:0;flex:1;gap:10px;overflow:hidden}
html.airos-mobile .catalog{width:39%;min-width:0;max-width:none;overflow:hidden}
html.airos-mobile .catalog .list{overflow:auto;-webkit-overflow-scrolling:touch}
html.airos-mobile .item{min-height:56px;padding:8px;gap:8px;font-size:12px}
html.airos-mobile .item img,html.airos-mobile .item .fallback{width:38px;height:38px}
html.airos-mobile .viewer{min-width:0;overflow:auto;-webkit-overflow-scrolling:touch}
html.airos-mobile .playerbox{max-height:none;border-radius:10px}
html.airos-mobile .now{gap:8px;flex-wrap:wrap;padding:9px 0}
html.airos-mobile .now h2{font-size:14px}
html.airos-mobile .now p,html.airos-mobile .hint{display:none}
html.airos-mobile .player-actions{display:flex;flex-wrap:wrap;gap:5px}
html.airos-mobile .player-actions button{padding:8px 9px;font-size:11px}
html.airos-mobile .hero{margin:8px 0;padding:12px}
html.airos-mobile .promo-card{min-width:130px;width:130px;height:115px}
html.airos-mobile .media-page .content{display:block;overflow:auto;-webkit-overflow-scrolling:touch}
html.airos-mobile .media-page .catalog{width:100%;max-width:none;overflow:visible}
html.airos-mobile .media-page .catalog .list{overflow:visible}
html.airos-mobile .media-page .media-grid{grid-template-columns:repeat(auto-fill,minmax(115px,1fr));gap:10px}
html.airos-mobile .media-page.media-detail-open .viewer{display:block;overflow:auto}
html.airos-mobile .media-detail-hero{grid-template-columns:minmax(95px,27%) minmax(0,1fr);gap:12px}
html.airos-mobile .media-detail-hero>img{max-width:100%;max-height:180px;object-fit:cover}
html.airos-mobile .media-detail-hero h2{font-size:19px}
html.airos-mobile .media-actions button{min-height:44px}
html.airos-mobile .episode-grid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:9px}
html.airos-mobile .episode-card{min-width:0}
html.airos-mobile .settings-grid{grid-template-columns:1fr}
html.airos-mobile .multi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
html.airos-mobile .login{min-height:100dvh;padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom));overflow:auto}
html.airos-mobile .login-panel{padding:16px;max-height:94dvh;overflow:auto}
html.airos-mobile .login .brand img{height:75px}
html.airos-mobile .login-panel h1{margin-top:8px}
html.airos-mobile .login-panel form{margin-top:12px}
html.airos-mobile .login-panel input{font-size:16px}
.airos-mobile-bottom{display:none}
html.airos-mobile .airos-mobile-bottom{display:flex;position:fixed;bottom:0;left:0;right:0;height:calc(63px + env(safe-area-inset-bottom));padding:5px max(6px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(6px,env(safe-area-inset-left));background:rgba(10,17,29,.98);border-top:1px solid #304059;z-index:1000;gap:2px;justify-content:space-around}
html.airos-mobile .airos-mobile-bottom button{flex:1;min-width:0;border:0;border-radius:10px;background:transparent;color:#b9c7dc;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px}
html.airos-mobile .airos-mobile-bottom button span{font-size:20px;line-height:1.1}
html.airos-mobile .airos-mobile-bottom button.active{color:#fff;background:#9d1830}
html.airos-mobile .airos-mobile-more{position:fixed;z-index:1001;bottom:calc(65px + env(safe-area-inset-bottom));left:8px;right:8px;max-height:60dvh;overflow:auto;background:#111c2d;border:1px solid #46546d;border-radius:15px;padding:10px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;box-shadow:0 -12px 45px #0009}
html.airos-mobile .airos-mobile-more[hidden]{display:none!important}
html.airos-mobile .airos-mobile-more button{border:1px solid #35435b;background:#1d2c43;color:white;padding:12px 8px;border-radius:9px;min-height:46px;font-size:13px}
html.airos-mobile .playerbox.tv-fullscreen-fallback,html.airos-mobile .playerbox.vod-fullscreen{z-index:2000!important;inset:0!important;width:100vw!important;height:100dvh!important;max-height:none!important;border-radius:0!important}
html.airos-mobile .playerbox.tv-fullscreen-fallback video{width:100%!important;height:100%!important;object-fit:contain!important}
html.airos-mobile .tv-overlay-actions{max-height:35dvh;overflow:auto}
html.airos-mobile .tv-drawer{width:min(65%,350px)}
@media (orientation:portrait){
 html.airos-mobile .content:not(.media-content){flex-direction:column;overflow:auto}
 html.airos-mobile .app:not(.media-page) .catalog{width:100%;max-width:none;min-height:140px;flex:1}
 html.airos-mobile .app:not(.media-page) .viewer{width:100%;flex:none;max-height:45dvh}
 html.airos-mobile .app:not(.media-page) .playerbox{max-height:32dvh}
 html.airos-mobile .media-page .media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 html.airos-mobile .media-detail-hero{grid-template-columns:1fr}
 html.airos-mobile .media-detail-hero>img{max-height:190px}
 html.airos-mobile .episode-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (orientation:landscape) and (max-height:560px){
 html.airos-mobile main{padding-top:4px}
 html.airos-mobile header{min-height:32px}
 html.airos-mobile header h1{font-size:16px}
 html.airos-mobile .toolbar{margin:4px 0}
 html.airos-mobile .hero{padding:7px}
 html.airos-mobile .home-promo-head{margin-bottom:4px}
 html.airos-mobile .promo-card{height:85px}
 html.airos-mobile .playerbox{max-height:55dvh}
 html.airos-mobile .media-detail-hero>img{max-height:115px}
 html.airos-mobile .media-page .media-grid{grid-template-columns:repeat(auto-fill,minmax(110px,1fr))}
}

/* iOS premium landscape onboarding, translucent swipe arrow. */
html.airos-ios-webapp{background:#070a12}
.airos-landscape-onboarding{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;padding:calc(16px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));background:rgba(3,8,17,.77);-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);overflow-y:auto}
.airos-landscape-card{width:min(540px,100%);max-height:100%;overflow-y:auto;padding:clamp(16px,4vw,28px);border:1px solid rgba(255,255,255,.18);border-radius:24px;background:linear-gradient(145deg,rgba(24,37,59,.94),rgba(9,15,27,.96));color:#f5f8ff;box-shadow:0 24px 70px rgba(0,0,0,.6);text-align:center;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.airos-landscape-swipe{height:80px;display:flex;align-items:center;justify-content:center;gap:24px;color:#fff}
.airos-swipe-arrow{display:inline-block;font-size:54px;color:rgba(255,255,255,.62);text-shadow:0 0 18px rgba(255,255,255,.3);animation:airosSwipe 1.65s ease-in-out infinite}
.airos-rotate-phone{font-size:58px;line-height:1;color:#f15a6d;display:inline-block;animation:airosRotate 2.8s ease-in-out infinite;transform-origin:center}
.airos-landscape-kicker{font-size:11px;letter-spacing:.18em;color:#ff8091;font-weight:800;margin:8px 0}
.airos-landscape-card h2{font-size:clamp(21px,4vw,29px);line-height:1.12;margin:8px 0 12px}
.airos-landscape-card p{font-size:clamp(13px,2.8vw,15px);line-height:1.55;color:#d7e0f0;margin:10px auto;max-width:440px}
.airos-landscape-card .airos-landscape-help{font-size:12px;color:#9caec8}
.airos-landscape-enter{display:block;width:100%;margin:16px auto 12px;border:0;border-radius:13px;min-height:47px;padding:10px 14px;background:linear-gradient(105deg,#c9193a,#fa4260);color:white;font-size:14px;font-weight:800;cursor:pointer}
.airos-landscape-card label{display:flex;justify-content:center;align-items:center;gap:8px;font-size:12px;color:#bac8dd}
.airos-landscape-card input{accent-color:#f04460;width:17px;height:17px}
@keyframes airosSwipe{0%,100%{transform:translateX(-16px);opacity:.4}55%{transform:translateX(16px);opacity:.95}}
@keyframes airosRotate{0%,30%,100%{transform:rotate(0deg)}55%,75%{transform:rotate(90deg)}}
@media (orientation:landscape) and (max-height:450px){.airos-landscape-card{padding:12px 18px}.airos-landscape-swipe{height:35px}.airos-swipe-arrow{font-size:30px}.airos-rotate-phone{font-size:34px}.airos-landscape-card h2{font-size:18px;margin:4px}.airos-landscape-card p{font-size:12px;margin:5px auto}.airos-landscape-enter{margin:8px auto;min-height:38px}}
/* iOS Safari safe-area and fluid grids */
html.airos-mobile .media-page .media-grid,html.airos-mobile .episode-grid{align-content:start}
html.airos-mobile .media-page .viewer{min-height:0}
html.airos-mobile .playerbox video{max-width:100%}
html.airos-mobile .airos-mobile-bottom{backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);background:rgba(8,15,27,.91)}
html.airos-mobile .airos-mobile-bottom button{min-height:44px}
@media (orientation:landscape) and (max-height:520px){html.airos-mobile .airos-mobile-bottom{height:calc(48px + env(safe-area-inset-bottom))}html.airos-mobile .app{padding-bottom:calc(48px + env(safe-area-inset-bottom))}html.airos-mobile .airos-mobile-bottom button span{font-size:16px}html.airos-mobile .airos-mobile-bottom button{font-size:10px}}
