/* Phase 6.3: movie-only geometry. No player, series detail or API changes. */
html body:not(.video-playback-active) #app #page > .mx-fl-movies-series:has(#catalogGrid.mx-movies-desktop-grid) {
 width:100%!important; max-width:100%!important; min-width:0!important; box-sizing:border-box!important;
 padding-inline:var(--mx-page-gutter,12px)!important; padding-bottom:24px!important; min-height:0!important;
}
html body #app #page .mx-fl-movies-series:has(#catalogGrid.mx-movies-desktop-grid) :is(.mx-fl-movies-tabs,.xtra-search-wrap,.mx-movie-meta-filters) {
 width:100%!important; max-width:100%!important; box-sizing:border-box!important; min-width:0!important; margin-inline:0!important;
}
html body #app #page .mx-fl-movies-series #catalogGrid.mx-movies-desktop-grid {
 display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:var(--mx-grid-gap,12px)!important;
 width:100%!important; max-width:none!important; min-width:0!important; padding:12px 0!important; margin:0!important; box-sizing:border-box!important;
}
@media(min-width:768px){html body #app #page .mx-fl-movies-series #catalogGrid.mx-movies-desktop-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(min-width:992px){html body #app #page .mx-fl-movies-series #catalogGrid.mx-movies-desktop-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(min-width:1200px){html body #app #page .mx-fl-movies-series #catalogGrid.mx-movies-desktop-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}}
html body #app #page #catalogGrid.mx-movies-desktop-grid > .card {min-width:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;}
html body #app #page #catalogGrid.mx-movies-desktop-grid .cover {width:100%!important;aspect-ratio:2/3!important;height:auto!important;min-height:0!important;max-height:none!important;}
html body #app #page #catalogGrid.mx-movies-desktop-grid .card-body {min-width:0!important;max-width:100%!important;}
html body #app #page #catalogGrid.mx-movies-desktop-grid .card-body :is(b,span) {white-space:normal!important;overflow-wrap:anywhere;min-width:0;}
html body #app #page #catalogGrid.mx-movies-desktop-grid > .empty {grid-column:1/-1;min-width:0;}
html body #app #page .mx-fl-movies-series:has(#catalogGrid.mx-movies-desktop-grid) #catalogSearch {width:100%!important;min-height:44px!important;box-sizing:border-box!important;}
html body #app #page .mx-fl-movies-series .mx-movie-meta-filters {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;overflow:visible!important;}
html body #app #page .mx-fl-movies-series .mx-movie-meta-filters label {min-width:0!important;max-width:100%;}
html body #app #page .mx-fl-movies-series :is(.mx-vj-trigger,#mxMovieGenreFilter) {width:100%!important;max-width:100%!important;min-width:0!important;min-height:44px!important;box-sizing:border-box!important;}
html body #app #page .mx-fl-movies-series .mx-vj-popup {width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;}
html body #app #page .mx-fl-movies-series .mx-vj-list {max-height:min(240px,35vh)!important;overflow-y:auto!important;overscroll-behavior:contain;}
html body #app #page .mx-fl-movies-series .mx-vj-option span {min-width:0;overflow-wrap:anywhere;white-space:normal;}
html body #app #page .mx-fl-movies-series .mx-vj-search-wrap input {min-width:0!important;width:100%!important;}
@media(max-width:767px){
 html body #app #page .mx-fl-movies-series :is(#catalogSearch,#mxVjSearch,#mxMovieGenreFilter){font-size:16px!important;}
}
@media(max-width:479px){html body #app #page .mx-fl-movies-series .mx-movie-meta-filters{grid-template-columns:minmax(0,1fr)!important}}
/* Explicit class is emitted only by movie detail renderer, not shared media detail types. */
html body:not(.video-playback-active) #app #page > .mx-movie-detail-phase63 {
 width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;
 grid-template-columns:minmax(0,1fr)!important;gap:var(--mx-grid-gap,16px)!important;min-height:0!important;
 padding:var(--mx-page-gutter,12px)!important;align-items:start!important;
}
html body:not(.video-playback-active) #app #page > .mx-movie-detail-phase63:before {inset:0!important;}
html body:not(.video-playback-active) #app #page > .mx-movie-detail-phase63 .detail-image {
 width:100%!important;max-width:360px!important;aspect-ratio:2/3!important;height:auto!important;min-height:0!important;max-height:none!important;background-size:contain!important;justify-self:center;
}
html body:not(.video-playback-active) #app #page > .mx-movie-detail-phase63 .media-detail-copy {max-width:100%!important;min-width:0!important;overflow-wrap:anywhere;}
html body:not(.video-playback-active) #app #page > .mx-movie-detail-phase63 .media-detail-copy h2 {font-size:clamp(22px,3vw,40px)!important;overflow-wrap:anywhere;}
html body:not(.video-playback-active) #app #page > .mx-movie-detail-phase63 .media-detail-actions {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;}
html body:not(.video-playback-active) #app #page > .mx-movie-detail-phase63 .media-detail-actions .btn {width:100%!important;min-width:0!important;min-height:44px!important;white-space:normal!important;}
@media(min-width:768px){html body:not(.video-playback-active) #app #page > .mx-movie-detail-phase63{grid-template-columns:minmax(0, min(38%,360px)) minmax(0,1fr)!important;}}
@media(max-width:359px){html body:not(.video-playback-active) #app #page > .mx-movie-detail-phase63 .media-detail-actions{grid-template-columns:minmax(0,1fr)!important;}}
