/*
|--------------------------------------------------------------------------
| Файл: /assets/css/pages/movie-detail.css
|--------------------------------------------------------------------------
| Тайлбар:
| Gobi Cinema киноны дэлгэрэнгүй хуудасны дизайн.
|--------------------------------------------------------------------------
*/


/*
|--------------------------------------------------------------------------
| Page
|--------------------------------------------------------------------------
*/

.page-movie-detail {
    background:
            var(--color-bg);
}


/*
|--------------------------------------------------------------------------
| Hero
|--------------------------------------------------------------------------
*/

.movie-detail-hero {
    position: relative;

    overflow: hidden;

    min-height: 690px;

    isolation: isolate;

    background:
            #08090c;
}

.movie-detail-hero__background {
    position: absolute;

    z-index: -4;

    inset: 0;

    background-image:
            var(--movie-banner);

    background-position:
            center 30%;

    background-repeat:
            no-repeat;

    background-size:
            cover;

    transform:
            scale(1.03);
}

.movie-detail-hero__background::after {
    position: absolute;

    inset: 0;

    background:
            rgba(0, 0, 0, 0.12);

    content:
            '';
}


/*
|--------------------------------------------------------------------------
| Overlay
|--------------------------------------------------------------------------
*/

.movie-detail-hero__overlay {
    position: absolute;

    z-index: -3;

    inset: 0;

    background:
            linear-gradient(
                    90deg,
                    rgba(5, 6, 9, 0.97) 0%,
                    rgba(5, 6, 9, 0.9) 28%,
                    rgba(5, 6, 9, 0.63) 52%,
                    rgba(5, 6, 9, 0.28) 76%,
                    rgba(5, 6, 9, 0.14) 100%
            ),
            linear-gradient(
                    0deg,
                    #08090c 0%,
                    rgba(8, 9, 12, 0.9) 8%,
                    rgba(8, 9, 12, 0.12) 48%,
                    rgba(8, 9, 12, 0.16) 100%
            );
}

.movie-detail-hero::after {
    position: absolute;

    z-index: -2;

    right: 0;
    bottom: 0;
    left: 0;

    height: 180px;

    background:
            linear-gradient(
                    to bottom,
                    transparent,
                    #08090c
            );

    content:
            '';
}


/*
|--------------------------------------------------------------------------
| Hero container
|--------------------------------------------------------------------------
*/

.movie-detail-hero__container {
    display: grid;

    grid-template-columns:
        minmax(250px, 330px)
        minmax(0, 1fr);

    align-items: center;

    gap:
            clamp(
                    48px,
                    7vw,
                    100px
            );

    min-height: 690px;

    padding-top: 70px;

    padding-bottom: 90px;
}


/*
|--------------------------------------------------------------------------
| Poster
|--------------------------------------------------------------------------
*/

.movie-detail-hero__poster-column {
    display: flex;

    align-items: center;
    justify-content: flex-start;
}

.movie-detail-poster {
    position: relative;

    width: 100%;

    max-width: 320px;

    aspect-ratio:
            2 / 3;

    overflow: hidden;

    border:
            1px solid rgba(255, 255, 255, 0.14);

    border-radius: 18px;

    background:
            var(--color-bg-card);

    box-shadow:
            0 36px 90px rgba(0, 0, 0, 0.58);
}

.movie-detail-poster img {
    width: 100%;

    height: 100%;

    object-fit: cover;
}

.movie-detail-poster::after {
    position: absolute;

    inset: 0;

    border:
            1px solid rgba(255, 255, 255, 0.04);

    border-radius:
            inherit;

    content:
            '';

    pointer-events: none;
}

.movie-detail-poster--empty {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    background:
            radial-gradient(
                    circle at center,
                    rgba(220, 38, 38, 0.14),
                    transparent 46%
            ),
            linear-gradient(
                    145deg,
                    #171a21,
                    #0c0d11
            );
}

.movie-detail-poster--empty strong {
    color:
            #ffffff;

    font-size: 34px;

    font-weight: 700;

    letter-spacing:
            0.13em;
}

.movie-detail-poster--empty span {
    margin-top: 4px;

    color:
            var(--color-text-muted);

    font-size: 11px;

    letter-spacing:
            0.35em;
}


/*
|--------------------------------------------------------------------------
| Hero content
|--------------------------------------------------------------------------
*/

.movie-detail-hero__content {
    max-width: 820px;
}

.movie-detail-hero__kicker {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 18px;

    color:
            #f87171;

    font-size: 13px;

    font-weight: 700;

    letter-spacing:
            0.18em;
}

.movie-detail-hero__kicker::before {
    width: 24px;

    height: 2px;

    border-radius:
            999px;

    background:
            var(--color-accent);

    content:
            '';
}

.movie-detail-hero__title {
    max-width: 850px;

    margin: 0;

    color:
            #ffffff;

    font-family:
            var(--font-display);

    font-size:
            clamp(
                    48px,
                    6vw,
                    88px
            );

    font-weight: 700;

    letter-spacing:
            -0.045em;

    line-height: 1;

    text-wrap: balance;

    text-shadow:
            0 15px 45px rgba(0, 0, 0, 0.42);
}

.movie-detail-hero__original-title {
    margin-top: 14px;

    color:
            rgba(255, 255, 255, 0.5);

    font-size: 18px;

    letter-spacing:
            0.03em;
}


/*
|--------------------------------------------------------------------------
| Meta
|--------------------------------------------------------------------------
*/

.movie-detail-meta {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap:
            10px 15px;

    margin-top: 24px;
}

.movie-detail-meta__item {
    position: relative;

    color:
            rgba(255, 255, 255, 0.72);

    font-size: 15px;

    font-weight: 500;
}

.movie-detail-meta__item
+ .movie-detail-meta__item::before {
    display: inline-block;

    width: 3px;

    height: 3px;

    margin:
            0 12px 3px 0;

    border-radius:
            50%;

    background:
            rgba(255, 255, 255, 0.32);

    content:
            '';
}


/*
|--------------------------------------------------------------------------
| Synopsis
|--------------------------------------------------------------------------
*/

.movie-detail-hero__synopsis {
    display: -webkit-box;

    max-width: 650px;

    margin:
            25px 0 0;

    overflow: hidden;

    color:
            rgba(255, 255, 255, 0.68);

    font-size: 17px;

    line-height: 1.7;

    -webkit-box-orient:
            vertical;

    -webkit-line-clamp:
            4;
}


/*
|--------------------------------------------------------------------------
| Hero actions
|--------------------------------------------------------------------------
*/

.movie-detail-hero__actions {
    display: flex;

    flex-wrap: wrap;

    gap: 11px;

    margin-top: 30px;
}

.movie-detail-hero__actions .btn {
    min-width: 145px;
}

.movie-detail-hero__actions
.btn-primary {
    box-shadow:
            0 14px 36px rgba(220, 38, 38, 0.25);
}


/*
|--------------------------------------------------------------------------
| Information
|--------------------------------------------------------------------------
*/

.movie-detail-info-section {
    padding-top: 55px;
}

.movie-detail-info {
    display: grid;

    grid-template-columns:
        minmax(0, 1.5fr)
        minmax(280px, 0.7fr);

    align-items: start;

    gap:
            clamp(
                    48px,
                    7vw,
                    100px
            );
}

.movie-detail-info__main {
    min-width: 0;
}


/*
|--------------------------------------------------------------------------
| Description
|--------------------------------------------------------------------------
*/

.movie-detail-description {
    max-width: 800px;

    margin-top: 25px;

    color:
            var(--color-text-soft);

    font-family:
            var(--font-display);

    font-size: 18px;

    font-weight: 400;

    line-height: 1.85;
}

.movie-detail-description--empty {
    color:
            var(--color-text-muted);

    font-family:
            var(--font-ui);

    font-size: 16px;
}


/*
|--------------------------------------------------------------------------
| Facts
|--------------------------------------------------------------------------
*/

.movie-detail-facts {
    min-width: 0;
}

.movie-detail-facts__card {
    overflow: hidden;

    border:
            1px solid var(--color-border);

    border-radius:
            var(--radius-md);

    background:
            rgba(255, 255, 255, 0.025);

    box-shadow:
            var(--shadow-sm);
}

.movie-detail-fact {
    display: grid;

    grid-template-columns:
        minmax(100px, 0.7fr)
        minmax(0, 1.3fr);

    gap: 20px;

    padding:
            16px 18px;

    border-bottom:
            1px solid var(--color-border);
}

.movie-detail-fact:last-child {
    border-bottom:
            0;
}

.movie-detail-fact__label {
    color:
            var(--color-text-faint);

    font-size: 13px;

    font-weight: 500;
}

.movie-detail-fact__value {
    color:
            var(--color-text-soft);

    font-size: 14px;

    font-weight: 600;

    line-height: 1.45;

    text-align: right;
}


/*
|--------------------------------------------------------------------------
| Showtimes
|--------------------------------------------------------------------------
*/

.movie-showtimes {
    position: relative;

    margin-top: 10px;

    padding:
            64px 0 80px;

    border-top:
            1px solid var(--color-border);

    background:
            linear-gradient(
                    180deg,
                    rgba(255, 255, 255, 0.008),
                    rgba(255, 255, 255, 0.018)
            );
}


/*
|--------------------------------------------------------------------------
| Showtime header
|--------------------------------------------------------------------------
*/

.movie-showtimes__header {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 27px;
}

.movie-showtimes__description {
    max-width: 600px;

    margin:
            9px 0 0;

    color:
            var(--color-text-muted);

    font-size: 15px;
}

.movie-showtimes__count {
    display: flex;

    align-items: baseline;

    gap: 6px;

    flex-shrink: 0;

    padding:
            9px 13px;

    border:
            1px solid var(--color-border);

    border-radius: 9px;

    background:
            rgba(255, 255, 255, 0.025);
}

.movie-showtimes__count strong {
    color:
            #ffffff;

    font-size: 18px;

    font-weight: 700;
}

.movie-showtimes__count span {
    color:
            var(--color-text-faint);

    font-size: 11px;
}


/*
|--------------------------------------------------------------------------
| Days
|--------------------------------------------------------------------------
*/

.movie-showtime-days {
    display: flex;

    flex-direction: column;

    gap: 9px;
}

.movie-showtime-day {
    display: grid;

    grid-template-columns:
        170px
        minmax(0, 1fr);

    align-items: center;

    gap: 22px;

    min-height: 102px;

    padding:
            14px 16px;

    border:
            1px solid var(--color-border);

    border-radius: 13px;

    background:
            rgba(255, 255, 255, 0.016);

    transition:
            border-color var(--transition-fast),
            background var(--transition-fast);
}

.movie-showtime-day:hover {
    border-color:
            rgba(255, 255, 255, 0.13);

    background:
            rgba(255, 255, 255, 0.025);
}


/*
|--------------------------------------------------------------------------
| Date
|--------------------------------------------------------------------------
*/

.movie-showtime-day__date {
    display: flex;

    flex-direction: column;

    justify-content: center;

    min-height: 68px;

    padding:
            3px 5px 3px 7px;

    border-right:
            1px solid var(--color-border);
}

.movie-showtime-day__date-top {
    min-height: 18px;

    margin-bottom: 2px;
}

.movie-showtime-day__weekday,
.movie-showtime-day__today {
    display: inline-flex;

    align-items: center;

    min-height: 18px;

    padding:
            0 6px;

    border-radius: 5px;

    color:
            var(--color-text-faint);

    font-size: 9px;

    font-weight: 700;

    letter-spacing:
            0.08em;
}

.movie-showtime-day__today {
    background:
            var(--color-accent-soft);

    color:
            #fca5a5;
}

.movie-showtime-day__date-main {
    color:
            #ffffff;

    font-family:
            var(--font-display);

    font-size: 20px;

    font-weight: 700;

    letter-spacing:
            -0.025em;

    line-height: 1.2;
}

.movie-showtime-day__date-year {
    margin-top: 2px;

    color:
            var(--color-text-faint);

    font-size: 10px;
}


/*
|--------------------------------------------------------------------------
| Showtime list
|--------------------------------------------------------------------------
*/

.movie-showtime-day__times {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(225px, 270px)
        );

    gap: 9px;
}


/*
|--------------------------------------------------------------------------
| Showtime
|--------------------------------------------------------------------------
*/

.movie-showtime {
    position: relative;

    display: grid;

    grid-template-columns:
        auto
        minmax(0, 1fr)
        auto
        28px;

    align-items: center;

    gap: 11px;

    min-height: 72px;

    padding:
            10px 10px 10px 13px;

    overflow: hidden;

    border:
            1px solid var(--color-border);

    border-radius: 10px;

    background:
            var(--color-bg-card);

    transition:
            transform var(--transition-fast),
            background var(--transition-fast),
            border-color var(--transition-fast),
            box-shadow var(--transition-fast);
}

.movie-showtime:hover {
    z-index: 2;

    transform:
            translateY(-2px);

    border-color:
            rgba(220, 38, 38, 0.5);

    background:
            var(--color-bg-card-hover);

    box-shadow:
            0 13px 28px rgba(0, 0, 0, 0.28);
}

.movie-showtime::before {
    position: absolute;

    top: 9px;
    bottom: 9px;
    left: 0;

    width: 3px;

    border-radius:
            0 999px 999px 0;

    background:
            var(--color-accent);

    opacity: 0;

    content:
            '';

    transition:
            opacity var(--transition-fast);
}

.movie-showtime:hover::before {
    opacity: 1;
}


/*
|--------------------------------------------------------------------------
| Clock
|--------------------------------------------------------------------------
*/

.movie-showtime__clock {
    display: flex;

    flex-direction: column;

    justify-content: center;

    min-width: 55px;
}

.movie-showtime__time {
    color:
            #ffffff;

    font-size: 22px;

    font-weight: 700;

    letter-spacing:
            -0.025em;

    line-height: 1;
}

.movie-showtime__end {
    margin-top: 5px;

    color:
            var(--color-text-faint);

    font-size: 10px;
}

.movie-showtime__end::before {
    content:
            '→ ';

    color:
            #494f59;
}


/*
|--------------------------------------------------------------------------
| Showtime details
|--------------------------------------------------------------------------
*/

.movie-showtime__details {
    display: flex;

    flex-direction: column;

    justify-content: center;

    min-width: 0;

    gap: 2px;
}

.movie-showtime__details strong {
    overflow: hidden;

    color:
            var(--color-text-soft);

    font-size: 11px;

    font-weight: 600;

    text-overflow: ellipsis;

    white-space: nowrap;
}

.movie-showtime__details span {
    overflow: hidden;

    color:
            var(--color-text-faint);

    font-size: 10px;

    text-overflow: ellipsis;

    white-space: nowrap;
}


/*
|--------------------------------------------------------------------------
| Price
|--------------------------------------------------------------------------
*/

.movie-showtime__price {
    display: flex;

    flex-direction: column;

    align-items: flex-end;

    min-width: 55px;
}

.movie-showtime__price strong {
    color:
            #ffffff;

    font-size: 12px;

    font-weight: 700;

    white-space: nowrap;
}

.movie-showtime__price span {
    margin-top: 1px;

    color:
            var(--color-text-faint);

    font-size: 9px;
}


/*
|--------------------------------------------------------------------------
| Arrow
|--------------------------------------------------------------------------
*/

.movie-showtime__arrow {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 28px;

    height: 28px;

    border-radius: 7px;

    background:
            rgba(255, 255, 255, 0.05);

    color:
            var(--color-text-muted);

    font-size: 16px;

    transition:
            background var(--transition-fast),
            color var(--transition-fast),
            transform var(--transition-fast);
}

.movie-showtime:hover
.movie-showtime__arrow {
    background:
            var(--color-accent);

    color:
            #ffffff;

    transform:
            translateX(2px);
}


/*
|--------------------------------------------------------------------------
| Sold
|--------------------------------------------------------------------------
*/

.movie-showtime--sold {
    grid-template-columns:
        auto
        minmax(0, 1fr);

    opacity: 0.48;

    cursor: not-allowed;
}

.movie-showtime--sold:hover {
    transform: none;

    border-color:
            var(--color-border);

    background:
            var(--color-bg-card);

    box-shadow: none;
}

.movie-showtime--sold::before {
    display: none;
}

.movie-showtime__sold-label {
    color:
            #f87171 !important;

    font-weight: 600;
}


/*
|--------------------------------------------------------------------------
| Empty
|--------------------------------------------------------------------------
*/

.movie-showtimes__empty {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    min-height: 230px;

    padding:
            40px 24px;

    border:
            1px dashed rgba(255, 255, 255, 0.1);

    border-radius:
            var(--radius-lg);

    background:
            rgba(255, 255, 255, 0.015);

    text-align: center;
}

.movie-showtimes__empty h3 {
    margin: 0;

    color:
            #ffffff;

    font-family:
            var(--font-display);

    font-size: 26px;

    font-weight: 700;
}

.movie-showtimes__empty p {
    max-width: 450px;

    margin:
            9px 0 0;

    color:
            var(--color-text-muted);

    font-size: 15px;
}


/*
|--------------------------------------------------------------------------
| Error
|--------------------------------------------------------------------------
*/

.movie-detail-error__actions {
    display: flex;

    justify-content: center;

    margin-top: 24px;
}


/*
|--------------------------------------------------------------------------
| Desktop
|--------------------------------------------------------------------------
*/

@media (
max-width: 1280px
) {
    .movie-detail-hero__container {
        grid-template-columns:
            280px
            minmax(0, 1fr);

        gap: 55px;
    }

    .movie-detail-info {
        gap: 55px;
    }

    .movie-showtime-day__times {
        grid-template-columns:
            repeat(
                auto-fill,
                minmax(220px, 1fr)
            );
    }
}


/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (
max-width: 991px
) {
    .movie-detail-hero {
        min-height: 610px;
    }

    .movie-detail-hero__container {
        grid-template-columns:
            220px
            minmax(0, 1fr);

        min-height: 610px;

        gap: 38px;

        padding-top: 55px;

        padding-bottom: 72px;
    }

    .movie-detail-poster {
        max-width: 220px;

        border-radius: 15px;
    }

    .movie-detail-hero__title {
        font-size:
                clamp(
                        42px,
                        6vw,
                        64px
                );
    }

    .movie-detail-hero__synopsis {
        font-size: 15px;

        -webkit-line-clamp:
                3;
    }

    .movie-detail-info {
        grid-template-columns:
            1fr;

        gap: 40px;
    }

    .movie-detail-facts {
        max-width: 620px;
    }

    .movie-showtime-day {
        grid-template-columns:
            145px
            minmax(0, 1fr);

        gap: 16px;
    }

    .movie-showtime-day__times {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .movie-showtime {
        grid-template-columns:
            auto
            minmax(0, 1fr)
            28px;
    }

    .movie-showtime__price {
        display: none;
    }
}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (
max-width: 767px
) {
    .movie-detail-hero {
        min-height: auto;
    }

    .movie-detail-hero__background {
        background-position:
                center top;
    }

    .movie-detail-hero__overlay {
        background:
                linear-gradient(
                        to bottom,
                        rgba(5, 6, 9, 0.4) 0%,
                        rgba(5, 6, 9, 0.68) 29%,
                        rgba(5, 6, 9, 0.95) 65%,
                        #08090c 100%
                );
    }

    .movie-detail-hero__container {
        display: flex;

        flex-direction: column;

        align-items: flex-start;

        min-height: auto;

        gap: 27px;

        padding-top: 38px;

        padding-bottom: 55px;
    }

    .movie-detail-hero__poster-column {
        width: 100%;
    }

    .movie-detail-poster {
        width: 150px;

        border-radius: 12px;

        box-shadow:
                0 24px 58px rgba(0, 0, 0, 0.48);
    }

    .movie-detail-hero__kicker {
        margin-bottom: 12px;

        font-size: 11px;
    }

    .movie-detail-hero__title {
        font-size:
                clamp(
                        39px,
                        12vw,
                        58px
                );

        line-height: 1.02;
    }

    .movie-detail-hero__original-title {
        margin-top: 9px;

        font-size: 15px;
    }

    .movie-detail-meta {
        margin-top: 17px;
    }

    .movie-detail-meta__item {
        font-size: 13px;
    }

    .movie-detail-hero__synopsis {
        margin-top: 19px;

        font-size: 15px;

        line-height: 1.65;
    }

    .movie-detail-hero__actions {
        width: 100%;

        margin-top: 22px;
    }

    .movie-detail-hero__actions .btn {
        flex: 1;

        min-width: 0;
    }

    .movie-detail-info-section {
        padding-top: 40px;
    }

    .movie-detail-description {
        margin-top: 20px;

        font-size: 16px;

        line-height: 1.8;
    }

    .movie-detail-fact {
        grid-template-columns:
            110px
            minmax(0, 1fr);

        gap: 15px;

        padding:
                14px 15px;
    }


    /*
    |--------------------------------------------------------------------------
    | Mobile showtimes
    |--------------------------------------------------------------------------
    */

    .movie-showtimes {
        padding:
                48px 0 58px;
    }

    .movie-showtimes__header {
        align-items: flex-start;

        margin-bottom: 21px;
    }

    .movie-showtimes__count {
        display: none;
    }

    .movie-showtime-day {
        display: block;

        min-height: 0;

        padding:
                15px;
    }

    .movie-showtime-day__date {
        min-height: 0;

        padding:
                0 0 12px;

        border-right: 0;

        border-bottom:
                1px solid var(--color-border);
    }

    .movie-showtime-day__date-top {
        margin-bottom: 1px;
    }

    .movie-showtime-day__date-main {
        font-size: 18px;
    }

    .movie-showtime-day__times {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 7px;

        margin-top: 12px;
    }

    .movie-showtime {
        display: grid;

        grid-template-columns:
            minmax(0, 1fr)
            26px;

        gap: 7px;

        min-height: 68px;

        padding:
                10px;
    }

    .movie-showtime__clock {
        min-width: 0;
    }

    .movie-showtime__time {
        font-size: 20px;
    }

    .movie-showtime__end {
        font-size: 9px;
    }

    .movie-showtime__details {
        grid-column:
                1 / -1;

        grid-row:
                2;
    }

    .movie-showtime__details strong {
        font-size: 10px;
    }

    .movie-showtime__details span {
        font-size: 9px;
    }

    .movie-showtime__price {
        display: none;
    }

    .movie-showtime__arrow {
        grid-column:
                2;

        grid-row:
                1;

        width: 26px;

        height: 26px;
    }

    .movie-showtime--sold {
        grid-template-columns:
            1fr;
    }
}


/*
|--------------------------------------------------------------------------
| Small mobile
|--------------------------------------------------------------------------
*/

@media (
max-width: 430px
) {
    .movie-detail-hero__container {
        padding-top: 28px;
    }

    .movie-detail-poster {
        width: 130px;
    }

    .movie-detail-hero__title {
        font-size: 40px;
    }

    .movie-detail-hero__actions {
        flex-direction: column;
    }

    .movie-detail-hero__actions .btn {
        width: 100%;
    }

    .movie-detail-fact {
        grid-template-columns:
            1fr;

        gap: 4px;
    }

    .movie-detail-fact__value {
        text-align: left;
    }
}


/*
|--------------------------------------------------------------------------
| Very small mobile
|--------------------------------------------------------------------------
*/

@media (
max-width: 360px
) {
    .movie-showtime-day__times {
        grid-template-columns:
            1fr;
    }
}


/*
|--------------------------------------------------------------------------
| Hover
|--------------------------------------------------------------------------
*/

@media (
hover: hover
) and (
pointer: fine
) {
    .movie-detail-poster {
        transition:
                transform var(--transition-slow),
                box-shadow var(--transition-slow);
    }

    .movie-detail-poster:hover {
        transform:
                translateY(-5px);

        box-shadow:
                0 44px 105px rgba(0, 0, 0, 0.66);
    }
}


/*
|--------------------------------------------------------------------------
| Reduced motion
|--------------------------------------------------------------------------
*/

@media (
prefers-reduced-motion: reduce
) {
    .movie-detail-poster,
    .movie-showtime {
        transform:
                none !important;
    }
}

/*
|--------------------------------------------------------------------------
| Trailer button
|--------------------------------------------------------------------------
*/

.movie-trailer-button__icon {
    width:
            19px;

    height:
            19px;

    flex:
            0 0 19px;
}


/*
|--------------------------------------------------------------------------
| Trailer modal body
|--------------------------------------------------------------------------
*/

body.movie-trailer-open {
    overflow:
            hidden;
}


/*
|--------------------------------------------------------------------------
| Trailer modal
|--------------------------------------------------------------------------
*/

.movie-trailer-modal {
    position:
            fixed;

    z-index:
            10000;

    inset:
            0;

    display:
            flex;

    align-items:
            center;

    justify-content:
            center;

    padding:
            30px;

    opacity:
            0;

    visibility:
            hidden;

    transition:
            opacity 220ms ease,
            visibility 220ms ease;
}

.movie-trailer-modal[hidden] {
    display:
            none;
}

.movie-trailer-modal.is-open {
    opacity:
            1;

    visibility:
            visible;
}


/*
|--------------------------------------------------------------------------
| Backdrop
|--------------------------------------------------------------------------
*/

.movie-trailer-modal__backdrop {
    position:
            absolute;

    inset:
            0;

    width:
            100%;

    height:
            100%;

    padding:
            0;

    border:
            0;

    background:
            rgba(0, 0, 0, 0.86);

    cursor:
            default;

    -webkit-backdrop-filter:
            blur(12px);

    backdrop-filter:
            blur(12px);
}


/*
|--------------------------------------------------------------------------
| Dialog
|--------------------------------------------------------------------------
*/

.movie-trailer-modal__dialog {
    position:
            relative;

    z-index:
            1;

    width:
            min(
                    1100px,
                    100%
            );

    overflow:
            hidden;

    border:
            1px solid rgba(255, 255, 255, 0.12);

    border-radius:
            18px;

    background:
            #0c0e12;

    box-shadow:
            0 40px 120px rgba(0, 0, 0, 0.72);

    transform:
            translateY(14px)
            scale(0.985);

    transition:
            transform 220ms ease;
}

.movie-trailer-modal.is-open
.movie-trailer-modal__dialog {
    transform:
            translateY(0)
            scale(1);
}


/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.movie-trailer-modal__header {
    display:
            flex;

    align-items:
            center;

    justify-content:
            space-between;

    gap:
            24px;

    min-height:
            74px;

    padding:
            14px 17px 14px 22px;

    border-bottom:
            1px solid var(--color-border);
}

.movie-trailer-modal__kicker {
    display:
            block;

    margin-bottom:
            2px;

    color:
            var(--color-accent-hover);

    font-size:
            9px;

    font-weight:
            700;

    letter-spacing:
            0.18em;
}

.movie-trailer-modal__header h2 {
    margin:
            0;

    overflow:
            hidden;

    color:
            #ffffff;

    font-family:
            var(--font-display);

    font-size:
            20px;

    font-weight:
            700;

    line-height:
            1.25;

    text-overflow:
            ellipsis;

    white-space:
            nowrap;
}


/*
|--------------------------------------------------------------------------
| Close
|--------------------------------------------------------------------------
*/

.movie-trailer-modal__close {
    display:
            flex;

    align-items:
            center;

    justify-content:
            center;

    flex:
            0 0 42px;

    width:
            42px;

    height:
            42px;

    padding:
            0;

    border:
            1px solid var(--color-border);

    border-radius:
            10px;

    background:
            rgba(255, 255, 255, 0.045);

    color:
            var(--color-text-soft);

    cursor:
            pointer;

    font-family:
            Arial,
            sans-serif;

    font-size:
            28px;

    font-weight:
            300;

    line-height:
            1;

    transition:
            background var(--transition-fast),
            border-color var(--transition-fast),
            color var(--transition-fast);
}

.movie-trailer-modal__close:hover {
    border-color:
            rgba(220, 38, 38, 0.4);

    background:
            rgba(220, 38, 38, 0.14);

    color:
            #ffffff;
}


/*
|--------------------------------------------------------------------------
| Video
|--------------------------------------------------------------------------
*/

.movie-trailer-modal__video {
    position:
            relative;

    width:
            100%;

    aspect-ratio:
            16 / 9;

    background:
            #000000;
}

.movie-trailer-modal__video iframe {
    position:
            absolute;

    inset:
            0;

    width:
            100%;

    height:
            100%;

    border:
            0;
}


/*
|--------------------------------------------------------------------------
| Trailer tablet
|--------------------------------------------------------------------------
*/

@media (
max-width: 991px
) {
    .movie-trailer-modal {
        padding:
                22px;
    }

    .movie-trailer-modal__dialog {
        border-radius:
                15px;
    }
}


/*
|--------------------------------------------------------------------------
| Trailer mobile
|--------------------------------------------------------------------------
*/

@media (
max-width: 767px
) {
    .movie-trailer-modal {
        padding:
                14px;
    }

    .movie-trailer-modal__header {
        min-height:
                62px;

        padding:
                10px 11px 10px 15px;
    }

    .movie-trailer-modal__header h2 {
        font-size:
                16px;
    }

    .movie-trailer-modal__close {
        flex-basis:
                38px;

        width:
                38px;

        height:
                38px;

        border-radius:
                9px;
    }
}


/*
|--------------------------------------------------------------------------
| Trailer landscape mobile
|--------------------------------------------------------------------------
*/

@media (
max-height: 600px
) and (
orientation: landscape
) {
    .movie-trailer-modal {
        padding:
                8px 30px;
    }

    .movie-trailer-modal__dialog {
        width:
                min(
                        850px,
                        100%
                );
    }

    .movie-trailer-modal__header {
        min-height:
                50px;

        padding:
                6px 8px 6px 14px;
    }

    .movie-trailer-modal__close {
        width:
                34px;

        height:
                34px;

        flex-basis:
                34px;
    }
}


/*
|--------------------------------------------------------------------------
| Reduced motion
|--------------------------------------------------------------------------
*/

@media (
prefers-reduced-motion: reduce
) {
    .movie-trailer-modal,
    .movie-trailer-modal__dialog {
        transition:
                none !important;
    }
}