/* =====================================================
   INTRO VIDEO MODAL
   ===================================================== */

.intro-video-modal {
    padding-right: 0 !important;
}

.intro-video-modal .modal-dialog {
    width: calc(100vw - 32px);
    max-width: 760px;
    margin: 16px auto;
}

.intro-video-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background-color: #ffffff;
    box-shadow:
        0 24px 64px rgba(18, 38, 63, 0.20),
        0 4px 16px rgba(18, 38, 63, 0.08);
}

.intro-video-modal__header {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 28px 32px 20px;
    border-bottom: 0;
}

.intro-video-modal__heading {
    max-width: 630px;
    padding-right: 35px;
}

.intro-video-modal__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    margin-bottom: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background-color: rgba(13, 54, 255, 0.08);
    color: var(--degas-primary);
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.intro-video-modal__title {
    margin: 0;
    color: #272b41;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
}

.intro-video-modal__subtitle {
    margin: 10px 0 0;
    color: #667085;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
}

.intro-video-modal__close {
    position: absolute;
    top: 18px;
    right: 20px;
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background-color: transparent;
    color: #667085;
    font-size: 28px;
    font-weight: 400;
    line-height: 1;
    opacity: 1;
    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.intro-video-modal__close:hover,
.intro-video-modal__close:focus {
    background-color: #f1f2f6;
    color: #272b41;
    outline: none;
}

.intro-video-modal__body {
    padding: 0 32px 24px;
}

.intro-video-player {
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 14px;
    background-color: #101828;
    aspect-ratio: 16 / 9;
}

.intro-video-player__cover,
.intro-video-player__youtube {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.intro-video-player__cover {
    z-index: 3;
    overflow: hidden;
    pointer-events: auto;
}

.intro-video-player__thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.intro-video-player__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(16, 24, 40, 0.04) 0%,
            rgba(16, 24, 40, 0.35) 100%
        );
}

.intro-video-player__play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 4;

    display: inline-flex;
    width: 72px;
    height: 72px;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: 0;
    border-radius: 50%;

    background-color: #ffffff;
    color: var(--degas-primary);

    box-shadow: 0 12px 32px rgba(16, 24, 40, 0.30);

    transform: translate(-50%, -50%);

    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.intro-video-player__play:hover,
.intro-video-player__play:focus {
    box-shadow: 0 16px 40px rgba(16, 24, 40, 0.38);
    outline: none;
    transform: translate(-50%, -50%) scale(1.06);
}

.intro-video-player__play svg {
    width: 30px;
    height: 30px;
    margin-left: 4px;
}

.intro-video-player__play--loading {
    cursor: wait;
    pointer-events: none;
}

.intro-video-player__play--loading svg {
    display: none;
}

.intro-video-player__play--loading::after {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(13, 54, 255, 0.20);
    border-top-color: var(--degas-primary);
    border-radius: 50%;
    content: "";
    animation: intro-video-spin 0.8s linear infinite;
}

@keyframes intro-video-spin {
    to {
        transform: rotate(360deg);
    }
}

.intro-video-player__youtube {
    z-index: 1;
}

.intro-video-player__youtube iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.intro-video-player.is-started .intro-video-player__cover {
    display: none;
}

/* =====================================================
   PROGRESSO
   ===================================================== */

.intro-video-progress {
    margin-top: 16px;
}

.intro-video-progress__bar {
    overflow: hidden;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background-color: #e9ecef;
}

.intro-video-progress__value {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background-color: var(--degas-primary);
    transition: width 0.25s ease;
}

.intro-video-progress.is-completed
.intro-video-progress__value {
    background-color: #20c997;
}

/* =====================================================
   RODAPÉ
   ===================================================== */

.intro-video-modal__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 32px 28px;
    border-top: 1px solid #e9ecef;
}

.intro-video-modal__button {
    min-height: 42px;
    margin: 0 !important;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.intro-video-modal__button--primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.intro-video-modal__button--secondary {
    border-color: #e3e6ef;
    background-color: #f4f5f7;
    color: #5a5f7d;
}

.intro-video-modal__button--secondary:hover,
.intro-video-modal__button--secondary:focus {
    border-color: #d9dce3;
    background-color: #e9ebf0;
    color: #272b41;
}

/* =====================================================
   RESPONSIVO
   ===================================================== */

@media (max-width: 767.98px) {
    .intro-video-modal .modal-dialog {
        width: calc(100vw - 32px);
        margin: 16px auto;
    }

    .intro-video-modal__header {
        padding: 24px 20px 16px;
    }

    .intro-video-modal__heading {
        padding-right: 30px;
    }

    .intro-video-modal__title {
        font-size: 23px;
    }

    .intro-video-modal__subtitle {
        font-size: 14px;
        line-height: 1.5;
    }

    .intro-video-modal__close {
        top: 14px;
        right: 12px;
    }

    .intro-video-modal__body {
        padding: 0 20px 20px;
    }

    .intro-video-player__play {
        width: 60px;
        height: 60px;
    }

    .intro-video-player__play svg {
        width: 25px;
        height: 25px;
    }

    .intro-video-modal__footer {
        display: grid;
        grid-template-columns: 1fr;
        padding: 18px 20px 22px;
    }

    .intro-video-modal__button {
        width: 100%;
    }

    .intro-video-modal__button--primary {
        grid-row: 1;
    }
}

@media (max-width: 399.98px) {
    .intro-video-modal .modal-dialog {
        width: calc(100vw - 20px);
        margin: 10px auto;
    }

    .intro-video-modal__header {
        padding-right: 18px;
        padding-left: 18px;
    }

    .intro-video-modal__body {
        padding-right: 18px;
        padding-left: 18px;
    }

    .intro-video-modal__footer {
        padding-right: 18px;
        padding-left: 18px;
    }
}