/*
==================================================
UBEX SINGLE MOVIE
==================================================
*/

.ubex-single-movie {
    width: 100%;
    min-height: 100vh;
    background: #000;
    color: #fff;
}


/*
==================================================
MOVIE HERO
==================================================
*/

.ubex-movie-hero {
    position: relative;
    width: 100%;
    min-height: 680px;
    aspect-ratio: 16 / 9;
    background-color: #05070a;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}


/*
 * Left blue gradient.
 */

.ubex-movie-hero-left-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background:
        linear-gradient(
            to right,
            rgba(2, 16, 35, 1) 0%,
            rgba(3, 50, 92, 0.94) 18%,
            rgba(0, 102, 170, 0.62) 36%,
            rgba(0, 102, 170, 0.16) 58%,
            rgba(0, 0, 0, 0) 76%
        );
}


/*
 * Lower third gradient.
 */

.ubex-movie-hero-bottom-gradient {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 40, 75, 0.82) 16%,
            rgba(0, 83, 140, 0.34) 35%,
            rgba(0, 0, 0, 0) 58%
        );
}


/*
==================================================
HERO CONTENT
==================================================
*/

.ubex-movie-hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 680px;
    height: 100%;
    box-sizing: border-box;
    padding: 80px 5vw;
}

.ubex-movie-hero-inner {
    width: min(650px, 48vw);
}

.ubex-movie-title {
    margin: 0 0 15px;
    color: #fff;
    font-size: clamp(42px, 5vw, 78px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: -1.5px;
}


/*
==================================================
MOVIE META
==================================================
*/

.ubex-movie-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    font-weight: 600;
}

.ubex-movie-meta > span:not(:last-child)::after {
    content: "•";
    margin-left: 9px;
    color: rgba(255, 255, 255, 0.45);
}

.ubex-movie-meta
.ubex-movie-rating {
    padding: 2px 7px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 3px;
}


/*
==================================================
DESCRIPTION
==================================================
*/

.ubex-movie-description {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 18px;
    line-height: 1.6;
}

.ubex-movie-description p {
    margin: 0 0 18px;
}


/*
==================================================
MOVIE BUTTONS
==================================================
*/

.ubex-movie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.ubex-movie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition:
        background .18s ease,
        opacity .18s ease;
}

.ubex-movie-btn-primary {
    background: #fff;
    color: #000;
}

.ubex-movie-btn-primary:hover,
.ubex-movie-btn-primary:focus {
    background: #d9d9d9;
    color: #000;
}

.ubex-movie-btn-secondary {
    background: rgba(255, 255, 255, 0.20);
    color: #fff;
}

.ubex-movie-btn-secondary:hover,
.ubex-movie-btn-secondary:focus {
    background: rgba(255, 255, 255, 0.32);
    color: #fff;
}

.ubex-movie-play-icon {
    position: relative;
    top: 1px;
    font-size: 15px;
}


/*
==================================================
SECTIONS
==================================================
*/

.ubex-movie-section {
    width: 100%;
    box-sizing: border-box;
    padding: 45px 5vw;
    background: #000;
}

.ubex-movie-section-inner {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}

.ubex-movie-section h2 {
    margin: 0 0 25px;
    color: #fff;
    font-size: 27px;
    font-weight: 700;
}


/*
==================================================
MOVIE DETAILS
==================================================
*/

.ubex-movie-details {
    padding-top: 25px;
}

.ubex-movie-details-grid {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(180px, 1fr)
        );
    gap: 18px;
}

.ubex-movie-detail {
    padding: 18px 20px;
    background: #111720;
    border-radius: 6px;
}

.ubex-movie-detail-label {
    display: block;
    margin-bottom: 6px;
    color: #777f8a;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.ubex-movie-detail-value {
    display: block;
    color: #fff;
    font-size: 16px;
    line-height: 1.4;
}


/*
==================================================
CAST & CREW
==================================================
*/

.ubex-movie-cast {
    padding-top: 30px;
    padding-bottom: 80px;
}

.ubex-movie-cast-grid {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fill,
            minmax(180px, 1fr)
        );
    gap: 28px 22px;
}

.ubex-movie-cast-member {
    min-width: 0;
}

.ubex-movie-cast-photo {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 15px;
    border-radius: 50%;
    overflow: hidden;
    background: #111720;
}

.ubex-movie-cast-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/*
 * Placeholder when cast photo is unavailable.
 */

.ubex-movie-cast-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    background: #1a2029;
}

.ubex-movie-cast-placeholder::before {
    content: "";
    position: absolute;
    top: 27px;
    left: 50%;
    width: 43px;
    height: 43px;
    border-radius: 50%;
    background: #343b45;
    transform: translateX(-50%);
}

.ubex-movie-cast-placeholder::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 92px;
    height: 73px;
    border-radius: 50% 50% 0 0;
    background: #343b45;
    transform: translateX(-50%);
}

.ubex-movie-cast-content h3 {
    margin: 0 0 4px;
    color: #fff;
    font-size: 17px;
    line-height: 1.25;
}

.ubex-movie-cast-role {
    margin-bottom: 7px;
    color: #2ec5f0;
    font-size: 14px;
    font-weight: 600;
}

.ubex-movie-cast-content p {
    margin: 0;
    color: #8d949e;
    font-size: 13px;
    line-height: 1.5;
}


/*
==================================================
TABLET
==================================================
*/

@media (max-width: 1000px) {

    .ubex-movie-hero {
        min-height: 600px;
    }

    .ubex-movie-hero-content {
        min-height: 600px;
    }

    .ubex-movie-hero-inner {
        width: min(650px, 65vw);
    }

}


/*
==================================================
MOBILE
==================================================
*/

@media (max-width: 700px) {

    .ubex-movie-hero {
        min-height: 650px;
        aspect-ratio: auto;
        background-position: 65% center;
    }

    .ubex-movie-hero-left-gradient {
        background:
            linear-gradient(
                to top,
                rgba(0, 0, 0, 1) 0%,
                rgba(0, 45, 82, 0.94) 42%,
                rgba(0, 88, 148, 0.38) 72%,
                rgba(0, 0, 0, 0) 100%
            );
    }

    .ubex-movie-hero-bottom-gradient {
        background:
            linear-gradient(
                to top,
                rgba(0, 0, 0, 1) 0%,
                rgba(0, 42, 77, 0.65) 32%,
                rgba(0, 0, 0, 0) 65%
            );
    }

    .ubex-movie-hero-content {
        align-items: flex-end;
        min-height: 650px;
        padding: 60px 22px 55px;
    }

    .ubex-movie-hero-inner {
        width: 100%;
    }

    .ubex-movie-title {
        font-size: clamp(36px, 11vw, 55px);
    }

    .ubex-movie-description {
        font-size: 16px;
        line-height: 1.55;
    }

    .ubex-movie-actions {
        width: 100%;
    }

    .ubex-movie-btn {
        flex: 1 1 auto;
    }

    .ubex-movie-section {
        padding-left: 22px;
        padding-right: 22px;
    }

    .ubex-movie-details-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
        gap: 10px;
    }

    .ubex-movie-detail {
        padding: 15px;
    }

    .ubex-movie-cast-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
        gap: 28px 18px;
    }

    .ubex-movie-cast-photo {
        width: 120px;
        height: 120px;
    }

}


/*
==================================================
SMALL MOBILE
==================================================
*/

@media (max-width: 430px) {

    .ubex-movie-details-grid {
        grid-template-columns: 1fr;
    }

    .ubex-movie-cast-photo {
        width: 105px;
        height: 105px;
    }

}