/* Viewport and touch ergonomics; remote keyboard controls remain unchanged. */
html{-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%;overscroll-behavior:none}
button,[role=button],#nav a,#cinema-header a{touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
#watch{height:100vh;height:100dvh}#tv-login{min-height:100vh;min-height:100dvh;padding-top:max(24px,env(safe-area-inset-top));padding-bottom:max(24px,env(safe-area-inset-bottom))}
.watch-top{padding-top:max(16px,env(safe-area-inset-top));padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
.watch-bottom{padding-bottom:max(20px,env(safe-area-inset-bottom))}
@media(pointer:coarse){input,select,textarea{font-size:16px!important}button,a.nav-link{min-height:44px}#cinema-header nav a{min-height:44px;display:flex;align-items:center}button:active{filter:brightness(1.16)}.tools{overflow-x:auto;overscroll-behavior:contain;max-width:100%;padding:5px 3px 12px}.tools button,.tools select{flex-shrink:0}.rail{scroll-snap-type:x proximity;overscroll-behavior-x:contain}.rail .media-card{scroll-snap-align:start}body[data-interface=cinema] .cinema-hero{height:auto;min-height:73svh;padding-bottom:45px}body[data-interface=cinema] #cinema-header{padding-top:env(safe-area-inset-top)}body[data-interface=cinema] .cinema-hero button.cinema-more{display:inline-flex}}
@media(hover:none){body[data-interface=cinema] .artwork:hover{transform:none;box-shadow:none}body[data-interface=cinema] .cinema-play:hover{background:#59647c}body[data-interface=cinema][data-button-preview=glass] .cinema-play:hover{background:linear-gradient(135deg,#56627cbd,#161c2ca6)}}
@media(max-width:600px){.watch-bottom{left:max(12px,env(safe-area-inset-left));right:max(12px,env(safe-area-inset-right))}.watch-bottom h1{font-size:24px}.tv-login-layout{min-width:0}.tv-login-form{min-width:0;padding:20px}.tv-login-form input{max-width:100%}body[data-interface=cinema] .cinema-hero .actions{flex-wrap:wrap}#tv-exit-dialog{max-width:calc(100vw - 32px);box-sizing:border-box}}
