/* MXPLEX v2.27 — unified full-width archive design. */

/* Let every approved archive use the same viewport width as the homepage. */
html body.post-type-archive-movies #contenedor,
html body.post-type-archive-tvshows #contenedor,
html body.tax-genres #contenedor,
html body.tax-dtcast #contenedor,
html body.tax-dtdirector #contenedor,
html body.tax-mx_language #contenedor,
html body.tax-mx_content_platform #contenedor,
html body.tax-mx_country #contenedor{
    width:100% !important;
    max-width:none !important;
    margin-left:0 !important;
    margin-right:0 !important;
    padding-left:0 !important;
    padding-right:0 !important;
    box-sizing:border-box !important;
}

html body .mxplex-archive-module{
    display:block !important;
    width:calc(100% - 20px) !important;
    max-width:none !important;
    margin:10px !important;
    padding:0 !important;
    float:none !important;
    overflow:visible !important;
    background:var(--mx-surface,#0b0a0f) !important;
    background-image:none !important;
    border:0 !important;
    box-shadow:none !important;
    box-sizing:border-box !important;
}
html body .mxplex-archive-module > .mxplex-archive-content{
    display:block !important;
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 10px 52px !important;
    float:none !important;
    background:var(--mx-surface,#0b0a0f) !important;
    border:0 !important;
    box-shadow:none !important;
    box-sizing:border-box !important;
}

/* Centered title + paired gradient dots, matching the supplied archive reference. */
html body .mxplex-archive-heading{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:18px !important;
    width:100% !important;
    min-height:58px !important;
    margin:40px auto 48px !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    text-align:center !important;
}
html body .mxplex-archive-heading::before,
html body .mxplex-archive-heading::after{
    content:none !important;
    display:none !important;
}
html body .mxplex-archive-heading h1{
    display:block !important;
    flex:0 1 auto !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    color:#7a3fe0 !important;
    background-color:transparent !important;
    background-image:linear-gradient(110deg,#0588ff 0%,#7a3fe0 100%) !important;
    background-repeat:no-repeat !important;
    background-size:100% 100% !important;
    background-clip:text !important;
    -webkit-background-clip:text !important;
    -webkit-text-fill-color:transparent !important;
    font-family:inherit !important;
    font-size:clamp(30px,4.5vw,46px) !important;
    font-weight:800 !important;
    line-height:1.12 !important;
    letter-spacing:.015em !important;
    text-align:center !important;
    text-transform:uppercase !important;
    overflow-wrap:anywhere !important;
}
html body .mxplex-archive-heading-dot{
    display:block !important;
    flex:0 0 27px !important;
    width:27px !important;
    height:27px !important;
    border:0 !important;
    border-radius:50% !important;
    background:linear-gradient(135deg,#0588ff 0%,#7a3fe0 100%) !important;
    box-shadow:0 0 16px rgba(122,63,224,.16) !important;
}

/* Reuse the exact homepage card renderer and six-column grid on desktop. */
html body .mxplex-archive-module #archive-content.mxplex-archive-grid{
    display:grid !important;
    grid-template-columns:repeat(6,minmax(0,1fr)) !important;
    grid-auto-rows:auto !important;
    align-items:stretch !important;
    gap:18px 0 !important;
    width:100% !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
    float:none !important;
    overflow:visible !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
    box-sizing:border-box !important;
}
html body .mxplex-archive-module #archive-content.mxplex-archive-grid::after{
    display:none !important;
    content:none !important;
}
html body .mxplex-archive-module #archive-content.mxplex-archive-grid > article.mxplex-card,
html body.post-type-archive-movies .mxplex-archive-module #archive-content > article.mxplex-card,
html body.post-type-archive-tvshows .mxplex-archive-module #archive-content > article.mxplex-card{
    display:block !important;
    position:relative !important;
    float:none !important;
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 8px !important;
    box-sizing:border-box !important;
}
html body .mxplex-archive-module .mxplex-archive-empty{
    grid-column:1 / -1 !important;
    margin:12px 8px !important;
    color:rgba(241,238,248,.72) !important;
    font-size:14px !important;
}

/* Archive pagination: purple outlined page tiles and a filled current page. */
html body .mxplex-archive-pagination{
    display:block !important;
    width:100% !important;
    margin:58px 0 60px !important;
    padding:0 8px !important;
    box-sizing:border-box !important;
}
html body .mxplex-archive-pagination .pagination{
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    flex-wrap:wrap !important;
    gap:10px !important;
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
}
html body .mxplex-archive-pagination .pagination > a,
html body .mxplex-archive-pagination .pagination > span.current{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    flex:0 0 44px !important;
    width:44px !important;
    min-width:44px !important;
    height:46px !important;
    margin:0 !important;
    padding:0 !important;
    border:1px solid transparent !important;
    border-radius:8px !important;
    background:linear-gradient(#0b0a0f,#0b0a0f) padding-box,linear-gradient(135deg,#0588ff 0%,#7a3fe0 100%) border-box !important;
    color:#7a3fe0 !important;
    font-size:23px !important;
    font-weight:800 !important;
    line-height:1 !important;
    text-decoration:none !important;
    box-shadow:none !important;
    box-sizing:border-box !important;
    transition:background .18s ease,color .18s ease,border-color .18s ease,transform .18s ease !important;
}
html body .mxplex-archive-pagination .pagination > span.current{
    border-color:transparent !important;
    background:linear-gradient(135deg,#0588ff 0%,#7a3fe0 100%) !important;
    color:#fff !important;
}
html body .mxplex-archive-pagination .pagination > a:hover,
html body .mxplex-archive-pagination .pagination > a:focus-visible{
    border-color:transparent !important;
    background:linear-gradient(135deg,#0588ff 0%,#7a3fe0 100%) !important;
    color:#fff !important;
    transform:translateY(-1px) !important;
}
html body .mxplex-archive-pagination .pagination > a.arrow_pag{
    font-size:0 !important;
}
html body .mxplex-archive-pagination .pagination > a.arrow_pag i{
    color:currentColor !important;
    font-size:20px !important;
    line-height:1 !important;
}

/* Tablets retain six columns as requested; phones use two columns / fifteen rows. */
@media only screen and (max-width:1100px) and (min-width:769px){
    html body .mxplex-archive-module #archive-content.mxplex-archive-grid{
        grid-template-columns:repeat(6,minmax(0,1fr)) !important;
    }
}
@media only screen and (max-width:768px){
    html body .mxplex-archive-module{
        width:100% !important;
        max-width:100% !important;
        margin:0 !important;
        padding:0 !important;
    }
    html body .mxplex-archive-module > .mxplex-archive-content{
        width:100% !important;
        max-width:100% !important;
        margin:0 !important;
        padding:0 2px 0 !important;
    }
    html body .mxplex-archive-heading{
        gap:11px !important;
        min-height:38px !important;
        margin:27px auto 31px !important;
    }
    html body .mxplex-archive-heading h1{
        font-size:clamp(23px,7vw,31px) !important;
        line-height:1.15 !important;
    }
    html body .mxplex-archive-heading-dot{
        flex-basis:15px !important;
        width:15px !important;
        height:15px !important;
    }
    html body .mxplex-archive-module #archive-content.mxplex-archive-grid{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        gap:12px 0 !important;
        width:100% !important;
        margin:0 !important;
        padding:0 !important;
    }
    html body .mxplex-archive-module #archive-content.mxplex-archive-grid > article.mxplex-card,
    html body.post-type-archive-movies .mxplex-archive-module #archive-content > article.mxplex-card,
    html body.post-type-archive-tvshows .mxplex-archive-module #archive-content > article.mxplex-card{
        width:auto !important;
        max-width:none !important;
        padding:0 2px !important;
    }
    html body .mxplex-archive-pagination{
        margin:36px 0 60px !important;
        padding:0 2px !important;
    }
    html body .mxplex-archive-pagination .pagination{
        gap:6px !important;
    }
    html body .mxplex-archive-pagination .pagination > a,
    html body .mxplex-archive-pagination .pagination > span.current{
        flex-basis:34px !important;
        width:34px !important;
        min-width:34px !important;
        height:38px !important;
        border-radius:7px !important;
        font-size:18px !important;
    }
    html body .mxplex-archive-pagination .pagination > a.arrow_pag i{
        font-size:16px !important;
    }
}

/* Archive cards use the exact same poster-only zoom as homepage cards. */
html body .mxplex-archive-module #archive-content.mxplex-archive-grid > article.mxplex-card .mxplex-card-poster{
    overflow:hidden !important;
}
html body .mxplex-archive-module #archive-content.mxplex-archive-grid > article.mxplex-card .mxplex-card-poster > img{
    transform:scale(1) !important;
    -webkit-transform:scale(1) !important;
    transform-origin:center center !important;
    transition:transform .38s cubic-bezier(.2,.65,.3,1) !important;
    -webkit-transition:-webkit-transform .38s cubic-bezier(.2,.65,.3,1) !important;
}
@media (hover:hover) and (pointer:fine){
    html body .mxplex-archive-module #archive-content.mxplex-archive-grid > article.mxplex-card:hover .mxplex-card-poster > img{
        transform:scale(1.055) !important;
        -webkit-transform:scale(1.055) !important;
    }
}
html body .mxplex-archive-module #archive-content.mxplex-archive-grid > article.mxplex-card:focus-within:not(:hover) .mxplex-card-poster > img{
    transform:scale(1) !important;
    -webkit-transform:scale(1) !important;
}
html body .mxplex-archive-module .mxplex-card-image-failed{
    opacity:0 !important;
}

/* MXPLEX v2.30 — archive poster zoom for responsive <picture> markup.
   Retain the homepage easing and support touch devices via :active. */
html body .mxplex-archive-module #archive-content.mxplex-archive-grid > article.mxplex-card .mxplex-card-poster > picture.mxplex-card-picture {
    display:block !important;
    overflow:hidden !important;
}
html body .mxplex-archive-module #archive-content.mxplex-archive-grid > article.mxplex-card .mxplex-card-poster > picture.mxplex-card-picture > img.mxplex-card-image {
    display:block !important;
    transform:scale(1) !important;
    -webkit-transform:scale(1) !important;
    transform-origin:center center !important;
    -webkit-transform-origin:center center !important;
    transition:transform .38s cubic-bezier(.2,.65,.3,1) !important;
    -webkit-transition:-webkit-transform .38s cubic-bezier(.2,.65,.3,1) !important;
    backface-visibility:hidden !important;
    -webkit-backface-visibility:hidden !important;
}
html body .mxplex-archive-module #archive-content.mxplex-archive-grid > article.mxplex-card:hover .mxplex-card-poster > picture.mxplex-card-picture > img.mxplex-card-image,
html body .mxplex-archive-module #archive-content.mxplex-archive-grid > article.mxplex-card:active .mxplex-card-poster > picture.mxplex-card-picture > img.mxplex-card-image,
html body .mxplex-archive-module #archive-content.mxplex-archive-grid > article.mxplex-card .mxplex-card-link:active .mxplex-card-poster > picture.mxplex-card-picture > img.mxplex-card-image {
    transform:scale(1.075) !important;
    -webkit-transform:scale(1.075) !important;
}

/* MXPLEX v2.31 — archive titles stay single-layer and sharply rendered. */
html body .mxplex-archive-heading h1 {
    text-shadow:none !important;
    -webkit-text-stroke:0 transparent !important;
    filter:none !important;
}


/* MXPLEX v2.36 — match shared 1.10x / 0.80s poster zoom exactly. */
html body .mxplex-archive-module #archive-content.mxplex-archive-grid > article.item.mxplex-card .mxplex-card-poster > picture.mxplex-card-picture > img.mxplex-card-image {
    transform:scale(1) !important;
    -webkit-transform:scale(1) !important;
    transition:transform .80s cubic-bezier(.22,.61,.36,1) !important;
    -webkit-transition:-webkit-transform .80s cubic-bezier(.22,.61,.36,1) !important;
    transform-origin:center center !important;
    -webkit-transform-origin:center center !important;
}
@media (hover:hover) and (pointer:fine) {
    html body .mxplex-archive-module #archive-content.mxplex-archive-grid > article.item.mxplex-card:hover .mxplex-card-poster > picture.mxplex-card-picture > img.mxplex-card-image {
        transform:scale(1.10) !important;
        -webkit-transform:scale(1.10) !important;
    }
}
@media (hover:none), (pointer:coarse) {
    html body .mxplex-archive-module #archive-content.mxplex-archive-grid > article.item.mxplex-card:active .mxplex-card-poster > picture.mxplex-card-picture > img.mxplex-card-image,
    html body .mxplex-archive-module #archive-content.mxplex-archive-grid > article.item.mxplex-card .mxplex-card-link:active .mxplex-card-poster > picture.mxplex-card-picture > img.mxplex-card-image {
        transform:scale(1.10) !important;
        -webkit-transform:scale(1.10) !important;
    }
}


/* MXPLEX v2.49 — allocate poster compositing only during interaction. */
@media (hover:hover) and (pointer:fine) {
    html body .mxplex-archive-module #archive-content.mxplex-archive-grid > article.mxplex-card:hover .mxplex-card-poster > picture.mxplex-card-picture > img.mxplex-card-image {
        will-change:transform;
    }
}
@media (hover:none), (pointer:coarse) {
    html body .mxplex-archive-module #archive-content.mxplex-archive-grid > article.mxplex-card:active .mxplex-card-poster > picture.mxplex-card-picture > img.mxplex-card-image {
        will-change:transform;
    }
}
