/* Phase 6.4: series catalogue and episode geometry. */
html body:not(.video-playback-active) #app #page > .mx-fl-movies-series:has(#catalogGrid.mx-series-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-series-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-series-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-series-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-series-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-series-desktop-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}}
html body #app #page #catalogGrid.mx-series-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-series-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-series-desktop-grid .card-body {min-width:0!important;max-width:100%!important;}
html body #app #page #catalogGrid.mx-series-desktop-grid .card-body :is(b,span) {white-space:normal!important;overflow-wrap:anywhere;min-width:0;}
html body #app #page #catalogGrid.mx-series-desktop-grid > .empty {grid-column:1/-1;min-width:0;}
html body #app #page .mx-fl-movies-series:has(#catalogGrid.mx-series-desktop-grid) #catalogSearch {width:100%!important;min-height:44px!important;box-sizing:border-box!important;}

html body #app #page > .mx-series-detail-phase64 {width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;padding:var(--mx-page-gutter,12px)!important;}
html body #app #page .mx-series-detail-phase64 .page-title {min-width:0!important;max-width:100%!important;box-sizing:border-box!important;}
html body #app #page .mx-series-detail-phase64 .page-title > div {min-width:0;overflow-wrap:anywhere;}
html body #app #page .mx-series-detail-phase64 .mx-series-season-filter {display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:12px 0;min-width:0;}
html body #app #page .mx-series-detail-phase64 #mxSeriesSeason {min-height:44px;width:100%;max-width:320px;min-width:0;font-size:16px;box-sizing:border-box;}
html body #app #page .mx-series-detail-phase64 .mx-series-episode-grid {display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;max-width:none!important;min-width:0!important;box-sizing:border-box!important;margin:0!important;padding:0!important;gap:var(--mx-grid-gap,12px)!important;}
html body #app #page .mx-series-episode-grid > .mx-series-episode-play {display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;box-sizing:border-box!important;padding:0!important;overflow:hidden;}
html body #app #page .mx-series-episode-grid > .mx-series-episode-play[hidden] {display:none!important;}
html body #app #page .mx-series-episode-play > :is(img,.mx-series-episode-placeholder) {display:block;width:100%!important;aspect-ratio:16/9!important;height:auto!important;max-height:none!important;object-fit:cover;}
html body #app #page .mx-series-episode-placeholder {background:rgba(128,128,128,.15);}
html body #app #page .mx-series-episode-copy {min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;box-sizing:border-box;}
html body #app #page .mx-series-episode-grid > .empty {grid-column:1/-1;min-width:0;}
@media(min-width:600px){html body #app #page .mx-series-detail-phase64 .mx-series-episode-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(min-width:1024px){html body #app #page .mx-series-detail-phase64 .mx-series-episode-grid {grid-template-columns:repeat(3,minmax(0,1fr))!important;}}
@media(min-width:1440px){html body #app #page .mx-series-detail-phase64 .mx-series-episode-grid {grid-template-columns:repeat(4,minmax(0,1fr))!important;}}
