.videos-youtube {
    --videos-amarelo: rgba(242, 160, 0, 0.96);
    --videos-borda-amarela: #ffc524;
    --videos-azul-titulo: #0757d4;
    --videos-azul-escuro: rgba(8, 38, 67, 0.78);
    --videos-azul-card-1: rgba(3, 57, 158, 0.78);
    --videos-azul-card-2: rgba(4, 64, 175, 0.78);
    --videos-azul-card-3: rgba(6, 83, 225, 0.78);
    background: #0640af;
    color: #fff;
    overflow: hidden;
    position: relative;
}

.videos-youtube::before {
    background: url("../images/bgv.webp") center center / cover no-repeat;
    content: "";
    inset: 0;
    mix-blend-mode: multiply;
    opacity: 0.52;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

.videos-youtube__principal,
.videos-youtube__grade {
    position: relative;
    z-index: 1;
}

.videos-youtube__principal {
    display: grid;
    grid-template-columns: 42.25% 57.75%;
    aspect-ratio: 16 / 5.1975;
}

.videos-youtube__coluna-esquerda {
    display: grid;
    grid-template-rows: 31% 69%;
    min-width: 0;
}

.videos-youtube__cabecalho {
    background: #f2a000;
    border: 4px solid var(--videos-borda-amarela);
    color: var(--videos-azul-titulo);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem clamp(2rem, 5.8vw, 5rem);
    position: relative;
}

.videos-youtube__cabecalho span {
    color: rgba(255, 255, 255, 0.96);
    display: block;
    font-size: clamp(1rem, 1.45vw, 1.3rem);
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.38);
}

.videos-youtube__cabecalho h2 {
    color: var(--videos-azul-titulo);
    font-size: clamp(2.2rem, 3.35vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1;
    margin: 0.4rem 0 0;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
}

.videos-youtube__sol {
    height: clamp(3.3rem, 5vw, 4.8rem);
    opacity: 0.82;
    pointer-events: none;
    position: absolute;
    right: clamp(2.5rem, 7.2vw, 6.5rem);
    top: clamp(0.8rem, 1.5vw, 1.4rem);
    width: clamp(3.3rem, 5vw, 4.8rem);
}

.videos-youtube__informacoes {
    align-items: center;
    background-color: var(--videos-azul-escuro);
    display: flex;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    padding: 2rem clamp(2rem, 4.5vw, 4rem);
    position: relative;
    text-align: center;
}

.videos-youtube__informacoes h3 {
    color: #fff;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    font-weight: 700;
    letter-spacing: 0.005em;
    line-height: 1.18;
    margin: 0;
    max-width: 31rem;
    position: relative;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
}

.videos-youtube__informacoes p {
    display: none;
}

.videos-youtube__player {
    align-self: stretch;
    background: #031f3b;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    position: relative;
}

.videos-youtube__player iframe {
    border: 0;
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
}

.videos-youtube__fallback {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.videos-youtube__fallback[hidden] {
    display: none;
}

.videos-youtube__fallback i {
    font-size: 3rem;
}

.videos-youtube__fallback p {
    margin: 0.75rem 0;
}

.videos-youtube__fallback a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
}

.videos-youtube__grade {
    background: linear-gradient(
        to right,
        var(--videos-azul-card-1) 0 33.333%,
        var(--videos-azul-card-2) 33.333% 66.666%,
        var(--videos-azul-card-3) 66.666% 100%
    );
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: clamp(22rem, 29.5vw, 32rem);
    overflow: hidden;
    position: relative;
}

.videos-youtube__card {
    background: transparent;
    min-width: 0;
    padding: clamp(3rem, 5.35vw, 5.5rem) clamp(2rem, 4.1vw, 4.5rem) 2.5rem;
    position: relative;
    transition: filter 180ms ease, box-shadow 180ms ease;
}

.videos-youtube__card:hover {
    box-shadow: 0 10px 25px rgba(21, 21, 21, 0.095);
    filter: brightness(1.08);
}

.videos-youtube__seletor {
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
    display: block;
    padding: 0;
    position: relative;
    width: 100%;
    z-index: 2;
}

.videos-youtube__midia {
    aspect-ratio: 1.88 / 1;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 30, 75, 0.24);
    display: block;
    overflow: hidden;
    position: relative;
}

.videos-youtube__midia img {
    height: 100%;
    object-fit: cover;
    transition: transform 180ms ease;
    width: 100%;
}

.videos-youtube__seletor:hover img,
.videos-youtube__seletor:focus-visible img {
    transform: scale(1.025);
}

.videos-youtube__play {
    align-items: center;
    background: rgba(0, 91, 201, 0.85);
    border-radius: 50%;
    color: #fff;
    display: flex;
    font-size: 1.45rem;
    height: 3rem;
    justify-content: center;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 3rem;
}

.videos-youtube__play i {
    margin-left: 0.12rem;
}

.videos-youtube__seletor strong {
    align-items: flex-start;
    display: flex;
    font-size: clamp(1.15rem, 1.75vw, 1.5rem);
    font-weight: 700;
    justify-content: center;
    line-height: 1.08;
    min-height: 4.2rem;
    padding: 1.35rem 0.25rem 0;
    text-align: center;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
}

.videos-youtube__seletor:focus-visible {
    outline: 3px solid #ffb800;
    outline-offset: 5px;
}

@media (max-width: 1199.98px) {
    .videos-youtube__principal {
        grid-template-columns: 42% 58%;
        aspect-ratio: 16 / 5.22;
    }

    .videos-youtube__cabecalho {
        padding-inline: 2.5rem;
    }

    .videos-youtube__cabecalho h2 {
        font-size: 2rem;
    }

    .videos-youtube__sol {
        right: 2rem;
    }

    .videos-youtube__informacoes {
        padding: 2rem;
    }

    .videos-youtube__informacoes h3 {
        font-size: 1.7rem;
    }

    .videos-youtube__grade {
        min-height: 20rem;
    }

    .videos-youtube__card {
        padding: 2.75rem 2rem 2rem;
    }

    .videos-youtube__seletor strong {
        font-size: 1.1rem;
    }
}

@media (max-width: 767.98px) {
    .videos-youtube__principal {
        display: flex;
        height: auto;
        flex-direction: column;
    }

    .videos-youtube__coluna-esquerda {
        display: contents;
    }

    .videos-youtube__cabecalho {
        border-width: 3px;
        min-height: 7rem;
        padding: 1rem 1.5rem;
    }

    .videos-youtube__cabecalho span {
        font-size: 0.85rem;
    }

    .videos-youtube__cabecalho h2 {
        font-size: 1.85rem;
        max-width: calc(100% - 4rem);
    }

    .videos-youtube__sol {
        height: 3rem;
        right: 1rem;
        top: 0.8rem;
        width: 3rem;
    }

    .videos-youtube__informacoes {
        min-height: 9rem;
        padding: 1.5rem;
    }

    .videos-youtube__informacoes h3 {
        font-size: 1.4rem;
        max-width: 24rem;
    }

    .videos-youtube__player {
        aspect-ratio: 16 / 9;
        order: 3;
    }

    .videos-youtube__grade {
        background: linear-gradient(
            to bottom,
            var(--videos-azul-card-1) 0 33.333%,
            var(--videos-azul-card-2) 33.333% 66.666%,
            var(--videos-azul-card-3) 66.666% 100%
        );
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .videos-youtube::before {
        background-size: auto 100%;
        opacity: 0.46;
    }

    .videos-youtube__card {
        padding: 1.5rem;
    }

    .videos-youtube__seletor {
        align-items: center;
        display: grid;
        gap: 1rem;
        grid-template-columns: minmax(8rem, 42%) 1fr;
    }

    .videos-youtube__seletor strong {
        align-items: center;
        font-size: 1rem;
        justify-content: flex-start;
        min-height: auto;
        padding: 0;
        text-align: left;
    }

    .videos-youtube__play {
        font-size: 1.1rem;
        height: 2.4rem;
        width: 2.4rem;
    }
}
