/* MXPLEX v2.05 — Movie Details Page, scoped to Movie singles only. */
body.single-movies {
    background: #0b0a0f !important;
}
body.single-movies #contenedor {
    background: #0b0a0f !important;
}
body.single-movies .mx-movie-page-heading {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto 16px;
    padding: 10px 20px 0;
    box-sizing: border-box;
}
body.single-movies .mx-movie-page-heading h1 {
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: clamp(22px, 2.8vw, 34px);
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    overflow-wrap: anywhere;
}
body.single-movies #single.mx-movie-single {
    display: block;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto 30px;
    padding: 0 0 25px;
    background: transparent !important;
    border: 0;
    box-sizing: border-box;
}
body.single-movies #single.mx-movie-single > .content.mx-movie-content {
    display: block;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 20px 25px !important;
    border: 0 !important;
    background: transparent !important;
    box-sizing: border-box;
}
body.single-movies #single.mx-movie-single > .sidebar {
    display: none !important;
}
body.single-movies .mx-movie-player-shell {
    width: 100%;
    margin: 0 0 20px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 12px;
    background: linear-gradient(#070c17, #070c17) padding-box,
                linear-gradient(110deg, #2d01b7 0%, #4702cd 42%, #7605f5 75%, #8e06ff 100%) border-box;
    box-shadow: 0 8px 25px rgba(0,0,0,.24);
}
body.single-movies .mx-movie-player-shell > .dooplay_player {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 11px;
    overflow: hidden;
    background: #070c17 !important;
}
body.single-movies .mx-movie-player-shell #dooplay_player_big_content,
body.single-movies .mx-movie-player-shell #playcontainer,
body.single-movies .mx-movie-player-shell .play {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    background: #070c17 !important;
}
body.single-movies .mx-movie-player-shell .play .pframe,
body.single-movies .mx-movie-player-shell .play .preplayer {
    background: #070c17 !important;
}
body.single-movies .mx-movie-player-shell .fakeplayer {
    width: 100% !important;
    margin: 0 !important;
    border-radius: 11px;
    overflow: hidden;
}
body.single-movies .mx-movie-player-source {
    width: 100%;
    height: 0;
    overflow: visible;
}
body.single-movies .mx-movie-player-source.mx-movie-player-source--regular {
    height: auto;
    overflow: visible;
    margin: 0 0 20px;
}
body.single-movies .mx-movie-player-source > .dooplay_player {
    width: 100%;
    float: none !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
}
body.single-movies .mx-movie-user-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 0 16px;
    padding: 8px 12px;
    border: 1px solid #1a142c;
    border-radius: 8px;
    background: #070c17;
}
body.single-movies .mx-movie-user-controls a {
    padding: 5px 12px;
}
body.single-movies .module_single_ads {
    width: 100%;
    margin: 0 0 18px;
}

/* Main information panel: poster left, Movie metadata right, community voting below. */
body.single-movies .mx-movie-info-card {
    display: grid;
    grid-template-columns: minmax(155px, 230px) minmax(0, 1fr);
    gap: 18px 22px;
    width: 100%;
    margin: 0 0 24px;
    padding: 18px;
    border: 1px solid #1a142c;
    border-radius: 12px;
    background: #070c17;
    color: #fff;
    box-sizing: border-box;
}
body.single-movies .mx-movie-info-poster {
    width: 100%;
    min-width: 0;
    align-self: start;
    overflow: hidden;
    border: 1px solid rgba(142,6,255,.22);
    border-radius: 8px;
    background: #0b0a0f;
}
body.single-movies .mx-movie-info-poster img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    object-position: center;
}
body.single-movies .mx-movie-info-main {
    min-width: 0;
    align-self: start;
}
body.single-movies .mx-movie-info-main h2 {
    margin: 0 0 8px;
    padding: 0;
    color: #fff;
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 750;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
body.single-movies .mx-movie-tagline {
    margin: 0 0 11px;
    color: rgba(235,237,245,.72);
    font-size: 13px;
    line-height: 1.5;
}
body.single-movies .mx-movie-meta-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    width: 100%;
}
body.single-movies .mx-movie-meta-row {
    display: grid;
    grid-template-columns: minmax(105px, 142px) minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    width: 100%;
    color: rgba(245,246,250,.88);
    font-size: 13px;
    line-height: 1.5;
}
body.single-movies .mx-movie-meta-row > strong {
    color: rgba(255,255,255,.95);
    font-weight: 700;
}
body.single-movies .mx-movie-meta-row > span {
    min-width: 0;
    overflow-wrap: anywhere;
}
body.single-movies .mx-movie-meta-row a {
    color: #c5a6ff;
    text-decoration: none;
    transition: color .2s ease, opacity .2s ease;
}
body.single-movies .mx-movie-meta-row a:hover {
    color: #fff;
    opacity: .95;
}
body.single-movies .mx-movie-imdb-row #update_imdb_rating {
    display: inline-block;
    margin-left: 7px;
    cursor: pointer;
}
body.single-movies .mx-movie-community-ratings {
    grid-column: 1 / -1;
    min-width: 0;
    margin: 0;
    padding: 13px 14px 10px;
    border: 1px solid rgba(45,1,183,.5);
    border-radius: 9px;
    background: rgba(5,7,18,.55);
}
body.single-movies .mx-movie-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0 0 12px;
    padding: 0;
}
body.single-movies .mx-movie-section-heading h2 {
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
}
body.single-movies .mx-movie-community-ratings .mx-movie-section-heading {
    margin-bottom: 5px;
}
body.single-movies .mx-movie-community-ratings .mx-movie-section-heading h2 {
    font-size: 16px;
}
body.single-movies .mx-movie-community-ratings .starstruck-ptype,
body.single-movies .mx-movie-community-ratings .starstruck-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Story line and plain-text post tags. */
body.single-movies .mx-movie-section {
    width: 100%;
    margin: 0 0 24px;
    padding: 18px 20px;
    border: 1px solid #1a142c;
    border-radius: 11px;
    background: #070c17;
    color: #e8e8ef;
    box-sizing: border-box;
}
body.single-movies .mx-movie-storyline .wp-content {
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
    color: rgba(242,243,248,.86);
    font-size: 14px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}
body.single-movies .mx-movie-storyline .wp-content p {
    margin: 0 0 14px;
    line-height: 1.75;
}
body.single-movies .mx-movie-storyline .wp-content p:last-child {
    margin-bottom: 0;
}
body.single-movies .mx-movie-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.07);
    color: rgba(255,255,255,.72);
    font-size: 12px;
}
body.single-movies .mx-movie-tags strong {
    color: #fff;
}
body.single-movies .mx-movie-tags span {
    display: inline-flex;
    padding: 5px 9px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 5px;
    background: rgba(255,255,255,.035);
    color: rgba(255,255,255,.82);
}

/* Existing TMDB gallery/lightbox output, now in its own page section. */
body.single-movies .mx-movie-gallery-content {
    width: 100%;
    overflow: hidden;
}
body.single-movies .mx-movie-gallery-content #dt_galery {
    display: block;
    width: 100%;
    margin: 0;
    overflow: hidden;
}
body.single-movies .mx-movie-gallery-content #dt_galery .g-item {
    width: 100%;
    padding: 7px;
    padding-top: 54%;
    border-radius: 7px;
    overflow: hidden;
}
body.single-movies .mx-movie-gallery-content #dt_galery .g-item img {
    width: 100%;
    height: auto;
    margin-top: -54%;
    object-fit: cover;
}
body.single-movies .mx-movie-gallery-content #dt_galery .owl-item {
    overflow: hidden;
}

/* Director and cast horizontal profile cards. */
body.single-movies .mx-movie-cast-section {
    overflow: hidden;
}
body.single-movies .mx-movie-people-track {
    display: flex;
    align-items: stretch;
    gap: 14px;
    width: 100%;
    padding: 2px 1px 9px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(142,6,255,.65) rgba(255,255,255,.06);
}
body.single-movies .mx-movie-person-card {
    flex: 0 0 145px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 1px solid #1a142c;
    border-radius: 8px;
    background: #0b0a0f;
    overflow: hidden;
    scroll-snap-align: start;
}
body.single-movies .mx-movie-person-link {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    color: #fff;
    text-decoration: none;
}
body.single-movies .mx-movie-person-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #171321;
}
body.single-movies .mx-movie-person-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transition: transform .25s ease;
}
body.single-movies .mx-movie-person-link:hover .mx-movie-person-image img {
    transform: scale(1.035);
}
body.single-movies .mx-movie-person-name {
    display: block;
    width: 100%;
    padding: 8px 7px 2px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    overflow-wrap: anywhere;
}
body.single-movies .mx-movie-person-role {
    display: block;
    width: 100%;
    min-height: 25px;
    padding: 0 7px 8px;
    color: rgba(255,255,255,.64);
    font-size: 11px;
    line-height: 1.35;
    text-align: center;
    overflow-wrap: anywhere;
}
body.single-movies .mx-movie-person-link:hover .mx-movie-person-name {
    color: #c5a6ff;
}

/* Keep download links and existing comments visually integrated into the page. */
body.single-movies .mx-movie-download-section {
    padding: 0;
    border: 0;
    background: transparent;
}
body.single-movies .mx-movie-download-section .box_links {
    width: 100%;
    margin: 0;
}
body.single-movies .mx-movie-single #comments,
body.single-movies .mx-movie-single .comments-area {
    width: 100%;
    max-width: 100%;
}
body.single-movies .mx-movie-single .srelacionados {
    width: 100%;
    margin: 0 0 24px;
    padding: 18px 12px;
    border: 1px solid #1a142c;
    border-radius: 11px;
    background: #070c17;
    box-sizing: border-box;
}
body.single-movies .mx-movie-single .srelacionados > h2 {
    float: none;
    width: 100%;
    margin: 0 8px 12px;
    padding: 0;
    color: #fff;
    font-size: 21px;
    font-weight: 700;
}
body.single-movies .mx-movie-single .srelacionados .mx-related-grid {
    margin: 0;
}

@media (max-width: 900px) {
    body.single-movies .mx-movie-info-card {
        grid-template-columns: minmax(125px, 190px) minmax(0, 1fr);
        gap: 15px;
        padding: 14px;
    }
    body.single-movies .mx-movie-meta-row {
        grid-template-columns: minmax(95px, 120px) minmax(0, 1fr);
        font-size: 12px;
    }
    body.single-movies .mx-movie-person-card {
        flex-basis: 132px;
    }
}
@media (max-width: 600px) {
    body.single-movies .mx-movie-page-heading {
        margin-bottom: 12px;
        padding: 8px 12px 0;
    }
    body.single-movies .mx-movie-page-heading h1 {
        font-size: 21px;
        line-height: 1.35;
    }
    body.single-movies #single.mx-movie-single > .content.mx-movie-content {
        padding: 0 10px 20px !important;
    }
    body.single-movies .mx-movie-info-card {
        grid-template-columns: 94px minmax(0, 1fr);
        gap: 11px;
        padding: 11px;
        border-radius: 9px;
    }
    body.single-movies .mx-movie-info-main h2 {
        margin-bottom: 7px;
        font-size: 19px;
    }
    body.single-movies .mx-movie-tagline {
        margin-bottom: 7px;
        font-size: 11px;
    }
    body.single-movies .mx-movie-meta-list {
        gap: 5px;
    }
    body.single-movies .mx-movie-meta-row {
        grid-template-columns: 1fr;
        gap: 1px;
        font-size: 11px;
        line-height: 1.4;
    }
    body.single-movies .mx-movie-meta-row > strong {
        font-size: 11px;
    }
    body.single-movies .mx-movie-community-ratings {
        padding: 10px 9px 8px;
    }
    body.single-movies .mx-movie-section {
        margin-bottom: 16px;
        padding: 14px 12px;
        border-radius: 9px;
    }
    body.single-movies .mx-movie-section-heading h2,
    body.single-movies .mx-movie-single .srelacionados > h2 {
        font-size: 18px;
    }
    body.single-movies .mx-movie-storyline .wp-content {
        font-size: 13px;
        line-height: 1.65;
    }
    body.single-movies .mx-movie-person-card {
        flex-basis: 118px;
    }
    body.single-movies .mx-movie-download-section {
        padding: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    body.single-movies .mx-movie-person-image img {
        transition: none !important;
    }
}
