@media(max-width:1100px){
    .grid,.cinema-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
    .detail-body-grid{grid-template-columns:minmax(0,1fr) 310px}
}
@media(max-width:900px){
    .menu-btn{display:block}
    .header-inner{min-height:68px}
    .main-nav{
        position:absolute;
        top:calc(100% + 1px);
        left:18px;
        right:18px;
        display:none;
        align-items:stretch;
        flex-direction:column;
        padding:12px;
        border:1px solid var(--line);
        border-radius:0 0 18px 18px;
        background:rgba(10,11,16,.98);
        box-shadow:0 25px 60px rgba(0,0,0,.45)
    }
    .main-nav.open{display:flex}
    .nav-link,.genres-trigger{width:100%;justify-content:space-between}
    .genres-menu{width:100%}
    .genres-mega{
        position:static;
        width:100%;
        max-height:0;
        overflow:hidden;
        padding:0;
        display:block;
        border:0;
        opacity:1;
        visibility:visible;
        transform:none;
        box-shadow:none;
        background:transparent;
        transition:max-height .25s ease,padding .25s ease
    }
    .genres-menu:hover .genres-mega,.genres-menu:focus-within .genres-mega{max-height:0;padding:0}
    .genres-menu.open .genres-mega{max-height:650px;padding:10px 2px 2px}
    .mega-intro{display:none}
    .mega-genres{grid-template-columns:repeat(2,minmax(0,1fr));padding:8px;background:#11141c;border-radius:12px}
    .movie-detail-hero{min-height:auto}
    .movie-detail-content{grid-template-columns:180px 1fr;gap:28px;padding-top:80px;padding-bottom:50px}
    .movie-detail-copy h1{font-size:46px}
    .detail-body-grid{grid-template-columns:1fr}
    .detail-sidebar{display:grid;grid-template-columns:1fr 1fr;align-items:start}
}
@media(max-width:720px){
    .container,.header-inner{width:min(100% - 24px,1240px)}
    .grid,.cinema-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
    .section-head{align-items:center}
    .movie-detail-content{grid-template-columns:1fr;align-items:end;padding-top:215px;padding-bottom:36px}
    .movie-detail-overlay{background:linear-gradient(0deg,#07080c 8%,rgba(7,8,12,.65) 63%,rgba(7,8,12,.2)),linear-gradient(90deg,rgba(7,8,12,.5),transparent)}
    .movie-poster-wrap{display:none}
    .movie-detail-copy h1{font-size:clamp(38px,12vw,56px)}
    .movie-overview{font-size:14px;line-height:1.7;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
    .detail-body-grid{padding-top:28px}
    .detail-sidebar{display:flex}
    .premium-panel{padding:19px}
}
@media(max-width:460px){
    .brand{font-size:19px}
    .brand img{max-width:145px;max-height:38px}
    .mega-genres{grid-template-columns:1fr}
    .movie-meta{gap:8px}
    .movie-meta span:not(:last-child):after{margin-left:8px}
    .movie-actions>a{width:100%}
}

@media(max-width:1100px){.player-layout{grid-template-columns:minmax(0,1fr) 320px}}
@media(max-width:900px){.player-layout{grid-template-columns:1fr}.related-sidebar{position:static}.related-sidebar .related-list-large{display:grid;grid-template-columns:1fr 1fr}}
@media(max-width:600px){.catalog-player{aspect-ratio:16/10;border-radius:16px}.catalog-play-button{width:70px;height:70px;margin:18px 0 12px}.catalog-play-button i{border-top-width:12px;border-bottom-width:12px;border-left-width:19px}.catalog-player-content>strong{font-size:26px}.related-sidebar .related-list-large{display:flex}.related-list-large>a{grid-template-columns:62px minmax(0,1fr)}.related-list-large img{width:62px;height:88px}}
@media(prefers-reduced-motion:reduce){.catalog-play-button:before,.catalog-play-button:after{animation:none}.catalog-player:before,.catalog-play-button{transition:none}}
@media(max-width:700px){.catalog-player-bottom{padding:18px}.catalog-watch-pill{display:none}.suggestion-slider{grid-auto-columns:42%}.suggestion-heading h2{font-size:24px}}
@media(max-width:430px){.suggestion-slider{grid-auto-columns:58%}}

@media(max-width:850px){.download-quality-buttons{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:520px){.download-quality-card{padding:18px;border-radius:18px}.download-quality-copy{align-items:flex-start}.download-quality-icon{flex-basis:44px;width:44px;height:44px;border-radius:13px;font-size:23px}.download-quality-copy p{display:none}.download-quality-buttons{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.download-quality-button:last-child{grid-column:1/-1}.download-quality-button{min-height:68px}.download-quality-button span{font-size:17px}}
@media(prefers-reduced-motion:reduce){.download-quality-card:before,.download-quality-button{animation:none}}

@media(max-width:1050px){.download-file-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.download-library-heading{align-items:flex-start}.download-library-heading>span{display:none}.download-file-grid{grid-template-columns:1fr;gap:13px}.download-file-card{padding:16px 14px}.download-file-actions a{min-height:42px}}
@media(prefers-reduced-motion:reduce){.file-watch-btn{animation:none}}

@media(max-width:850px){.catalog-footer-grid{grid-template-columns:1fr 1fr;gap:38px}.catalog-footer-about{grid-column:1/-1}.catalog-footer-main{padding:50px 0 35px}}
@media(max-width:540px){.catalog-footer-grid{grid-template-columns:1fr;gap:28px}.catalog-footer-about{grid-column:auto}.catalog-footer-main{padding:42px 0 30px}.catalog-footer-description{font-size:14px}.catalog-footer-phone{margin-top:22px}.player-stats-bar{gap:9px;font-size:11px}.player-stat svg{width:14px;height:14px}}

@media(max-width:900px){
    .nav-link-with-icon{justify-content:flex-start!important}
    .movies-nav-menu{width:100%}
    .movies-nav-control{width:100%}
    .movies-nav-link{flex:1}
    .movies-nav-menu .genres-trigger{width:48px;min-width:48px;justify-content:center;padding:0}
}

@media(max-width:900px){.reaction-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:540px){.content-reactions{padding:13px 11px}.reaction-heading>span{display:none}.reaction-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.reaction-button{justify-content:flex-start;padding:10px 12px}.reaction-emoji{font-size:22px}}

@media(max-width:900px){.top-cast-list{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:680px){.server-switcher{align-items:stretch;flex-direction:column;margin-top:-13px}.server-switcher-label{text-align:center}.server-switcher-buttons{width:100%}.server-button{padding:8px 6px;font-size:10px}.top-cast-section{padding:17px 12px}.top-cast-list{display:flex;gap:15px;overflow-x:auto;padding:2px 1px 8px;scrollbar-width:thin}.top-cast-card{flex:0 0 86px}.top-cast-avatar{width:72px;height:72px}}
@media(max-width:430px){.server-switcher-buttons{grid-template-columns:1fr}.server-button{min-height:39px;font-size:11px}}

@media (max-width:1100px){
    .home-catalogue-layout{grid-template-columns:minmax(0,1fr) 250px;gap:20px}
    .home-catalogue-main .cinema-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (max-width:820px){
    .home-catalogue-layout{display:flex;flex-direction:column}
    .home-filter-sidebar{position:static;width:100%;order:-1}
    .date-filter-card{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}
    .date-filter-heading,.date-filter-submit,.date-filter-reset,.filter-error{grid-column:1/-1}
    .home-catalogue-main{width:100%}
}
@media (max-width:560px){
    .date-filter-card{display:block}
    .home-catalogue-main .cinema-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
