/* Shared phone layout, loaded after the catalog and cinema styles. */
.mobile-playback-settings,.cinema-rotate-hint{display:none}
.seo-discovery h1{color:#ddd;font-size:22px;line-height:1.4;margin:0 0 16px}
/* An older !important layer put controls above error messages and menus. */
body.watch-mode #playerWrapper .plyr__controls{z-index:40!important}
body.watch-mode .np-wrapper.playback-failed .plyr__controls,body.watch-mode .np-wrapper.playback-failed .plyr__control--overlaid{visibility:hidden!important;pointer-events:none!important}
body.watch-mode .np-wrapper.playback-failed #plyrLoader{background:#080808;transition:none}
@media(max-width:760px){
    html{scroll-padding-top:110px}
    body.tv-catalog{--page-gutter:16px}
    body.tv-catalog .navbar{height:auto;min-height:104px;padding:0;background:#080808f5;position:sticky;top:0;z-index:20000}
    body.tv-catalog .navbar .container{display:flex;flex-wrap:wrap;height:auto;min-height:104px;gap:0 12px;padding:env(safe-area-inset-top) max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left))}
    body.tv-catalog .logo{margin-right:auto;line-height:60px;font-size:23px}
    body.tv-catalog .nav-right-icons{order:1;margin:0;max-width:none;gap:4px}
    body.tv-catalog .nav-icon-btn{height:44px;width:44px;min-height:44px;min-width:44px}
    body.tv-catalog .nav-links{order:2;position:static;flex:0 0 calc(100% + 32px);width:calc(100% + 32px);min-width:0;margin:0 -16px;padding:0 16px;gap:22px;height:44px;overflow-x:auto;overscroll-behavior-x:contain;background:none;align-items:center;box-sizing:border-box}
    body.tv-catalog .nav-links a{font-size:13px;display:flex;align-items:center;height:44px;padding:0 1px}
    body.tv-catalog .nav-links a.active:after{bottom:0}
    body.tv-catalog .search-box{display:none!important}
    body.tv-catalog .search-box.open{display:flex!important;position:fixed;top:calc(62px + env(safe-area-inset-top));left:12px;right:12px;width:auto!important;max-width:none!important;padding:10px;background:#151515;border:1px solid #ffffff26;border-radius:10px;z-index:30000;box-sizing:border-box}
    body.tv-catalog .search-box.open input{width:100%!important;min-width:0;min-height:44px;font-size:16px;opacity:1!important;pointer-events:auto!important;padding:10px 12px!important}
    body.tv-catalog .search-dropdown{left:0;right:0;top:calc(100% + 6px);width:auto;max-height:55dvh;overflow:auto;overscroll-behavior:contain}
    body.tv-catalog .language-menu,body.tv-catalog .account-menu{max-width:calc(100vw - 32px);max-height:65dvh;overflow-y:auto}
    body.tv-catalog .hero{height:clamp(460px,72svh,640px);min-height:460px;max-height:none}
    body.tv-catalog .hero-content{padding-top:30px;padding-bottom:76px;align-items:flex-end}
    body.tv-catalog .hero-title{font-size:clamp(28px,8vw,40px)}
    body.tv-catalog .hero-title-logo{max-width:78%;max-height:105px}
    body.tv-catalog .hero-desc{font-size:14px;line-height:1.5;-webkit-line-clamp:3;margin-bottom:18px}
    body.tv-catalog .hero-buttons{display:flex;flex-wrap:wrap;width:100%;gap:8px}
    body.tv-catalog .hero-buttons .btn{flex:1 1 120px;min-width:0;min-height:46px;justify-content:center;font-size:13px;padding:11px 12px}
    body.tv-catalog .hero-sound-btn{bottom:24px;right:16px;width:44px;height:44px}
    body.tv-catalog .hero-dots{margin-top:18px}
    body.tv-catalog main.content{margin-top:0}
    body.tv-catalog.catalog-list-mode main.content{padding-top:24px}
    body.tv-catalog .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px}
    body.tv-catalog .row-scroll .card{flex-basis:clamp(134px,38vw,185px)}
    body.tv-catalog .row-title{font-size:19px}
    body.tv-catalog .row-scroll{scroll-padding-inline:16px;scroll-snap-type:x proximity}
    body.tv-catalog .card-poster{aspect-ratio:2/3;height:auto;min-height:0}
    body.tv-catalog .modal-overlay{padding:0;align-items:flex-end}
    body.tv-catalog .modal-content{width:100%;max-width:100%;max-height:94dvh;border-radius:16px 16px 0 0;overscroll-behavior:contain;padding-bottom:env(safe-area-inset-bottom)}
    body.tv-catalog .modal-hero{height:270px;min-height:270px}
    body.tv-catalog .modal-body,body.tv-catalog .modal-body.has-episodes{padding:16px}
    body.tv-catalog .modal-hero-content{left:16px;right:16px}
    body.tv-catalog .modal-close{min-width:44px;min-height:44px}
    body.tv-catalog .modal-actions .btn{flex:1 1 120px;min-width:0;min-height:44px}
    body.tv-catalog .modal-ep-card{min-width:0;gap:9px}
    body.tv-catalog .modal-ep-thumb{flex-basis:88px;width:88px;height:54px}
    body.tv-catalog input,body.tv-catalog select,body.watch-mode select{font-size:16px}
    body.watch-mode .np-wrapper{height:auto!important;min-height:240px!important;max-height:none!important;aspect-ratio:16/10!important}
    body.watch-mode .np-wrapper.playback-failed{min-height:420px!important}
    body.watch-mode .np-wrapper>.plyr{height:100%;width:100%}
    body.watch-mode .np-top-bar{padding:8px max(8px,env(safe-area-inset-right)) 8px max(8px,env(safe-area-inset-left));gap:8px}
    body.watch-mode .np-top-bar button,body.watch-mode .np-top-bar .mobile-fullscreen-btn,body.watch-mode .np-top-bar #btnReportIssue{min-width:44px;min-height:44px}
    body.watch-mode .np-title{min-width:0;max-width:calc(100% - 140px);overflow:hidden;text-overflow:ellipsis}
    body.watch-mode .plyr__controls{display:flex;flex-wrap:wrap;column-gap:2px;row-gap:0;padding:24px max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important}
    body.watch-mode .plyr__progress__container{flex:1 0 calc(100% - 16px);width:100%;order:-1;min-width:0!important;min-height:30px}
    body.watch-mode .plyr__controls button{min-width:36px;min-height:40px;padding:7px!important}
    body.watch-mode .plyr__time{font-size:10px}
    body.watch-mode .plyr__controls>.plyr__time--duration,body.watch-mode .plyr__controls>[data-plyr=pip]{display:none}
    body.watch-mode .plyr__controls #customControlsContainer{margin-left:auto;gap:0}
    body.watch-mode .np-panel{width:min(92vw,380px);max-width:100%;height:100%;max-height:100%;padding-bottom:env(safe-area-inset-bottom);overscroll-behavior:contain}
    body.watch-mode #playerWrapper .np-panel,body.watch-mode #playerWrapper .np-panel.open{top:0;bottom:0;right:0!important;height:100%;max-height:100%;width:min(94vw,380px)!important;max-width:100%;border-radius:0;box-sizing:border-box}
    body.watch-mode #playerWrapper .np-panel-header{padding:10px 14px;min-height:56px}
    body.watch-mode #playerWrapper .np-panel-content{min-height:0;flex:1 1 0%;padding:12px}
    body.watch-mode #panelSources .source-scroll-controls{display:none}
    body.watch-mode .np-panel-header{position:sticky;top:0;z-index:2;background:#181818}
    body.watch-mode .np-panel .np-close{min-width:44px;min-height:44px}
    body.watch-mode .np-panel-content{overscroll-behavior:contain}
    body.watch-mode .np-pause-overlay{padding:58px 16px 98px}
    body.watch-mode .np-pause-poster{width:48px}
    body.watch-mode .np-pause-info h3{font-size:17px}
    body.watch-mode .pause-overview{display:none}
    body.watch-mode .cinema-mobile-tools{display:none}
    body.watch-mode .screen-lock-toggle{display:none;bottom:100px;min-height:40px}
    body.watch-mode .np-wrapper:has(#plyrLoader:not(.hide)) .cinema-mobile-tools,body.watch-mode .np-wrapper:has(#plyrLoader:not(.hide)) .screen-lock-toggle{display:none!important}
    body.watch-mode #plyrLoader{padding:54px 16px 20px;box-sizing:border-box;gap:12px}
    body.watch-mode .playback-failed #plyrLoader{overflow-y:auto;overscroll-behavior:contain;align-content:safe center}
    body.watch-mode #playbackStatus{font-size:13px;line-height:1.6;max-width:100%;overflow-wrap:anywhere}
    body.watch-mode #playbackErrorActions{gap:8px;width:100%;max-width:340px;justify-content:center}
    body.watch-mode #playbackErrorActions button,body.watch-mode #playbackErrorActions a{min-height:44px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;padding:10px 14px;box-sizing:border-box;margin:0}
    body.watch-mode #playbackReportMessage{font-size:12px;line-height:1.5;margin:0;max-width:100%;padding:10px}
    body.watch-mode .watch-title-tabs{flex-wrap:wrap;gap:12px}
    body.watch-mode .watch-main-title{font-size:25px;line-height:1.25}
    body.watch-mode .watch-summary-grid{grid-template-columns:1fr 1fr;gap:18px}
    body.watch-mode .watch-summary-value{overflow-wrap:anywhere}
    body.watch-mode .watch-description{font-size:14px;line-height:1.7}
    body.watch-mode .watch-similar-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .mobile-playback-settings{display:block;margin-top:22px;padding-top:18px;border-top:1px solid #ffffff18}
    .mobile-playback-settings label{display:flex;align-items:center;gap:16px;justify-content:space-between;min-height:48px;color:#eee;font-size:14px;cursor:pointer}
    .mobile-playback-settings small{display:block;margin-top:6px;font-size:11px;color:#aaa;line-height:1.5}
    .mobile-playback-settings input{width:22px;height:22px;accent-color:#e50914;flex:none}
    .cinema-rotate-hint:not([hidden]){display:block;position:absolute;top:max(64px,env(safe-area-inset-top));left:16px;right:16px;z-index:80;font-size:11px;color:#ccc;text-align:center;pointer-events:none}
    .seo-page .seo-header nav a,.seo-page .seo-genres a,.seo-page .seo-pagination a{min-height:44px;display:inline-flex;align-items:center}
    .seo-page .seo-header{padding-top:max(16px,env(safe-area-inset-top))}
    .seo-page .seo-episodes li>a{min-height:48px;align-items:center}
    .seo-page .seo-episodes summary{min-height:48px}
}
@media(pointer:coarse){
    .mobile-playback-settings{display:block}
    body.watch-mode .cinema-is-fullscreen .screen-lock-toggle{display:flex}
    body.watch-mode .cinema-is-fullscreen .cinema-mobile-tools{display:flex}
}
/* Fullscreen wins over the portrait player's aspect ratio. */
body.watch-mode .np-wrapper.cinema-is-fullscreen,body.watch-mode .np-wrapper:fullscreen,body.watch-mode .np-wrapper.cinema-fullscreen{width:100%;height:100dvh!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important}
@media(max-width:950px) and (orientation:landscape) and (max-height:520px){
    body.watch-mode .np-wrapper{height:100dvh!important;min-height:0!important;aspect-ratio:auto!important}
    body.watch-mode .np-pause-overlay{padding:60px 72px 100px}
    body.watch-mode .np-pause-poster{width:70px}
    body.watch-mode .cinema-mobile-tools{left:max(8px,env(safe-area-inset-left))}
    body.watch-mode .brightness-control input{height:70px}
    body.watch-mode .screen-lock-toggle{bottom:95px}
    body.watch-mode .np-panel{width:min(66vw,380px)}
    body.watch-mode #playerWrapper .np-panel,body.watch-mode #playerWrapper .np-panel.open{top:0;bottom:0;right:0!important;height:100%;max-height:100%;width:min(66vw,380px)!important;max-width:100%}
    body.watch-mode #panelSources .source-scroll-controls{display:none}
    body.tv-catalog .hero{min-height:380px;height:110svh}
}
@media(max-width:360px){
    body.tv-catalog .nav-links{gap:18px}
    body.watch-mode .plyr__controls button{min-width:32px;padding:5px!important}
    body.watch-mode .plyr__controls button svg{width:18px!important;height:18px!important}
    body.watch-mode .watch-summary-grid{grid-template-columns:1fr}
}
