.hh-video-popup,
.hh-video-popup * {
    box-sizing: border-box;
}

.hh-video-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    inset: 0;
    padding: 20px;
    background-color: rgba(0, 0, 0, .6);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    z-index: 10050;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', Arial, sans-serif;
}

.hh-video-popup.is-open {
    display: flex;
    animation: hhVideoPopupFadeIn .2s ease-out;
}

.hh-video-popup[hidden] {
    display: none;
}

.hh-video-popup__box {
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0000 40%, #5c0000 100%);
    border-radius: 20px;
    width: 100%;
    max-width: 880px;
    max-height: 92vh;
    max-height: 92dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 28px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
    animation: hhVideoPopupScaleIn .2s cubic-bezier(.175, .885, .32, 1.275);
}

.hh-video-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #CBD3DB;
    border-radius: 50%;
    background: #fff;
    color: #00060A;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
    z-index: 2;
}

.hh-video-popup__close:hover {
    background: #0064B4;
    border-color: #0064B4;
    color: #FAFBFC;
}

.hh-video-popup__close:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 100, 180, .28);
}

.hh-video-popup__titulo {
    margin: 0 44px 4px 0;
    font: normal normal 800 20px/24px 'Montserrat', Arial, sans-serif;
    letter-spacing: .15px;
    color: white;
}

.hh-video-popup__desc {
    margin: 0 44px 16px 0;
    font: normal normal 400 14px/18px 'Montserrat', Arial, sans-serif;
    color: white;
}

.hh-video-popup__titulo + .hh-video-popup__player,
.hh-video-popup__desc + .hh-video-popup__player {
    margin-top: 16px;
}

.hh-video-popup__player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

@supports not (aspect-ratio: 16 / 9) {
    .hh-video-popup__player {
        height: 0;
        padding-bottom: 56.25%;
    }
}

.hh-video-popup__player iframe,
.hh-video-popup__player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.hh-video-popup__player video {
    object-fit: contain;
}

.hh-video-popup__footer {
    display: flex;
    align-items: center;
    margin-top: 18px;
}

.hh-video-popup__check {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: white;
    padding: 6px 0;
    min-height: 32px;
    cursor: pointer;
    font: normal normal 400 14px/18px 'Montserrat', Arial, sans-serif;
    -webkit-user-select: none;
    user-select: none;
}

.hh-video-popup__check input[type="checkbox"] {
    position: absolute;
    width: 20px;
    height: 20px;
    margin: 0;
    opacity: 0;
    display: block !important;
}

.hh-video-popup__checkbox {
    position: relative;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border: 2px solid #CBD3DB;
    border-radius: 4px;
    background: #fff;
    transition: background-color .15s ease, border-color .15s ease;
}

.hh-video-popup__checkbox::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 6px;
    width: 4px;
    height: 9px;
    border: solid #FAFBFC;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform .15s ease;
}

.hh-video-popup__check input[type="checkbox"]:checked + .hh-video-popup__checkbox {
    background: #0064B4;
    border-color: #0064B4;
}

.hh-video-popup__check input[type="checkbox"]:checked + .hh-video-popup__checkbox::after {
    transform: rotate(45deg) scale(1);
}

.hh-video-popup__check input[type="checkbox"]:focus-visible + .hh-video-popup__checkbox {
    box-shadow: 0 0 0 3px rgba(0, 100, 180, .28);
}

@keyframes hhVideoPopupFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes hhVideoPopupScaleIn {
    from { opacity: 0; transform: scale(.96); }
    to   { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .hh-video-popup.is-open,
    .hh-video-popup__box {
        animation: none;
    }

    .hh-video-popup__checkbox,
    .hh-video-popup__checkbox::after,
    .hh-video-popup__close {
        transition: none;
    }
}

@media (max-width: 768px) {
    .hh-video-popup {
        padding: 12px;
    }

    .hh-video-popup__box {
        max-width: 100%;
        border-radius: 16px;
        padding: 20px 16px 16px;
    }

    .hh-video-popup__close {
        top: 8px;
        right: 8px;
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .hh-video-popup__titulo {
        margin-right: 52px;
        font-size: 18px;
        line-height: 22px;
    }

    .hh-video-popup__desc {
        margin-right: 52px;
        font-size: 13px;
        line-height: 17px;
    }

    .hh-video-popup__player {
        aspect-ratio: 4 / 5;
        border-radius: 10px;
    }

    @supports not (aspect-ratio: 4 / 5) {
        .hh-video-popup__player {
            padding-bottom: 125%;
        }
    }

    .hh-video-popup__footer {
        margin-top: 14px;
    }

    .hh-video-popup__check {
        min-height: 44px;
        font-size: 13px;
    }
}

@media (max-height: 480px) and (orientation: landscape) {
    .hh-video-popup {
        padding: 8px;
    }

    .hh-video-popup__box {
        max-height: 96vh;
        max-height: 96dvh;
        padding: 16px;
    }

    .hh-video-popup__titulo {
        font-size: 16px;
        line-height: 20px;
        margin-bottom: 2px;
    }

    .hh-video-popup__desc {
        display: none;
    }

    .hh-video-popup__player {
        aspect-ratio: 16 / 9;
        max-width: calc(62dvh * 16 / 9);
        margin: 0 auto;
    }

    .hh-video-popup__footer {
        margin-top: 10px;
    }

    .hh-video-popup__check {
        min-height: 32px;
    }
}
