#mask.video-modal-mask {
    display: flex;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 12, 18, 0.82);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 180ms ease, visibility 180ms ease;
}

#mask.video-modal-mask.is-open {
    opacity: 1;
    visibility: visible;
}

body.video-modal-open {
    overflow: hidden;
}

.video-modal {
    position: relative;
    display: grid;
    grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
    width: min(1120px, 94vw);
    max-height: calc(100vh - 48px);
    overflow: hidden;
    background: #111820;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

.video-menu {
    min-width: 0;
    padding: 54px 12px 16px;
    overflow-y: auto;
    background: #18212b;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    scrollbar-width: thin;
    scrollbar-color: #536273 transparent;
}

.video-menu-list {
    margin: 0;
}

.video-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    aspect-ratio: 16 / 9;
    background: #05080b;
}

.video-stage video {
    display: block;
    width: 100%;
    height: 100%;
    max-height: calc(100vh - 48px);
    object-fit: contain;
    background: #05080b;
}

.video-modal .MenuLi {
    display: block;
    width: 100%;
    min-height: 42px;
    margin: 0 0 6px;
    padding: 10px 12px;
    border: 0;
    border-left: 3px solid transparent;
    border-radius: 4px;
    background: transparent;
    color: #d8e0e8;
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.video-modal .MenuLi:hover,
.video-modal .MenuLi:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    outline: none;
}

.video-modal .MenuLiActive {
    border-left-color: #f2b544;
    background: rgba(242, 181, 68, 0.14);
    color: #fff;
    font-weight: 600;
}

.video-modal-close,
.video-modal-play {
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
}

.video-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(5, 8, 11, 0.72);
    color: #fff;
    font-size: 18px;
    transition: background-color 150ms ease, transform 150ms ease;
}

.video-modal-close:hover,
.video-modal-close:focus-visible {
    background: #d94c43;
    transform: scale(1.05);
    outline: none;
}

.video-modal-play {
    position: absolute;
    z-index: 2;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #f2b544;
    color: #101820;
    font-size: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
    transition: background-color 150ms ease, transform 150ms ease;
}

.video-modal-play:hover,
.video-modal-play:focus-visible {
    background: #ffc95c;
    transform: scale(1.06);
    outline: none;
}

@media (max-width: 767px) {
    #mask.video-modal-mask {
        align-items: flex-end;
        padding: 12px;
    }

    .video-modal {
        grid-template-columns: 1fr;
        width: 100%;
        max-height: calc(100vh - 24px);
    }

    .video-menu {
        grid-row: 2;
        display: flex;
        padding: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-right: 0;
    }

    .video-menu-list {
        white-space: nowrap;
    }

    .video-stage {
        height: min(74vh, calc(100vw * 16 / 9));
        aspect-ratio: auto;
        overflow: hidden;
    }

    .video-modal .MenuLi {
        display: inline-flex;
        align-items: center;
        width: auto;
        min-height: 38px;
        margin: 0 6px 0 0;
        border-bottom: 3px solid transparent;
        border-left: 0;
        text-align: center;
    }

    .video-modal .MenuLiActive {
        border-bottom-color: #f2b544;
    }

    .video-modal-play {
        width: 58px;
        height: 58px;
        font-size: 20px;
    }
}
