/* =====================================================
   Vislun Video System — estilos públicos
===================================================== */

.vislun-video-wrapper {
    box-sizing: border-box;
}

/* Capa personalizada do player */
.vislun-video-frame {
    position: relative;
    overflow: hidden;
}

/* Garante que iframe/vídeo fiquem abaixo da capa */
.vislun-video-frame iframe,
.vislun-video-frame video {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Botão/camada da capa */
.vislun-video-cover {
    position: absolute !important;
    inset: 0 !important;
    z-index: 20 !important;

    width: 100% !important;
    height: 100% !important;

    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;

    display: block !important;
    cursor: pointer;

    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: #000 !important;

    appearance: none;
    -webkit-appearance: none;

    transform: none !important;
    transition: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Impede o tema de mover o botão no hover/focus/active */
.vislun-video-cover:hover,
.vislun-video-cover:focus,
.vislun-video-cover:active {
    transform: none !important;
    top: 0 !important;
    left: 0 !important;
    opacity: 1 !important;
    background-size: cover !important;
    background-position: center center !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Sombra discreta sobre a capa — estilo Vislun Padrão */
.vislun-video-cover-shade {
    position: absolute;
    inset: 0;
    z-index: 21;

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

    pointer-events: none;
}

/* Botão play central — Vislun Padrão */
.vislun-video-cover-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 22;

    width: 82px;
    height: 56px;

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

    border-radius: 7px;
    background: #eebe0d;

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

    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.36) !important;

    pointer-events: none;
}

/* Triângulo do play */
.vislun-video-cover-play span {
    display: block;

    width: 0;
    height: 0;

    margin-left: 5px;

    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 18px solid #ffffff;
}

/* Hover seco — sem mover a capa e sem escurecer demais */
.vislun-video-cover:hover .vislun-video-cover-shade {
    background: rgba(0, 0, 0, 0.20);
}

.vislun-video-cover:hover .vislun-video-cover-play {
    background: #f0c51a;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.42) !important;
}

/* Mobile: mantém o mesmo padrão, apenas menor */
@media (max-width: 768px) {
    .vislun-video-cover-play {
        width: 72px;
        height: 50px;
        border-radius: 7px;
    }

    .vislun-video-cover-play span {
        border-top-width: 10px;
        border-bottom-width: 10px;
        border-left-width: 16px;
    }
}

/* Estado após clique: remove a capa e libera o player */
.vislun-video-cover.is-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* YouTube preparado antes do clique, mas invisível até iniciar */
.vislun-video-frame .vislun-youtube-player {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Quando o usuário clica, o player preparado aparece */
.vislun-video-frame.is-playing .vislun-youtube-player {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* =====================================================
   Variação visual — Vislun TV
===================================================== */

.vislun-video-vislun_tv .vislun-video-cover-shade {
    background: rgba(0, 0, 0, 0.24);
}

.vislun-video-vislun_tv .vislun-video-cover-play {
    width: 82px;
    height: 56px;

    border-radius: 7px;

    background: #111111;

    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.36),
        0 0 0 2px #eebe0d inset;
}

.vislun-video-vislun_tv .vislun-video-cover-play span {
    border-left-color: #eebe0d;
}

.vislun-video-vislun_tv .vislun-video-cover:hover .vislun-video-cover-shade {
    background: rgba(0, 0, 0, 0.28);
}

.vislun-video-vislun_tv .vislun-video-cover:hover .vislun-video-cover-play {
    background: #000000;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.42),
        0 0 0 2px #eebe0d inset;
}

@media (max-width: 768px) {
    .vislun-video-vislun_tv .vislun-video-cover-play {
        width: 72px;
        height: 50px;
        border-radius: 7px;
    }
}


/* =====================================================
   Variação visual — Canal Vislun TV
===================================================== */

.vislun-video-channel-vislun_tv .vislun-video-cover-play {
    background: #000000 !important;
    border-radius: 7px !important;

    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.36) !important;
}

.vislun-video-channel-vislun_tv .vislun-video-cover-play span {
    border-left-color: #eebe0d !important;
}

.vislun-video-channel-vislun_tv .vislun-video-cover:hover .vislun-video-cover-play {
    background: #000000 !important;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.42) !important;
}

.vislun-video-channel-vislun_tv .vislun-video-cover-shade {
    background: rgba(0, 0, 0, 0.20);
}

.vislun-video-channel-vislun_tv .vislun-video-cover:hover .vislun-video-cover-shade {
    background: rgba(0, 0, 0, 0.22);
}

/* =====================================================
   Variação visual — Canal Vislun Play
===================================================== */

.vislun-video-channel-vislun_play .vislun-video-cover-play {
    background: #ffffff !important;
    border-radius: 7px !important;

    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.30) !important;
}

.vislun-video-channel-vislun_play .vislun-video-cover-play span {
    border-left-color: #eebe0d !important;
}

.vislun-video-channel-vislun_play .vislun-video-cover:hover .vislun-video-cover-play {
    background: #ffffff !important;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.36) !important;
}

.vislun-video-channel-vislun_play .vislun-video-cover-shade {
    background: rgba(0, 0, 0, 0.16);
}

.vislun-video-channel-vislun_play .vislun-video-cover:hover .vislun-video-cover-shade {
    background: rgba(0, 0, 0, 0.18);
}

/* =====================================================
   Variação visual — Canal Vislun Ao Vivo
===================================================== */

.vislun-video-channel-vislun_ao_vivo .vislun-video-cover-play {
    background: #000000 !important;
    border-radius: 7px !important;

    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.42) !important;
}

.vislun-video-channel-vislun_ao_vivo .vislun-video-cover-play span {
    border-left-color: #ffffff !important;
}

.vislun-video-channel-vislun_ao_vivo .vislun-video-cover:hover .vislun-video-cover-play {
    background: #000000 !important;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.50) !important;
}

.vislun-video-channel-vislun_ao_vivo .vislun-video-cover-shade {
    background: rgba(0, 0, 0, 0.24);
}

.vislun-video-channel-vislun_ao_vivo .vislun-video-cover:hover .vislun-video-cover-shade {
    background: rgba(0, 0, 0, 0.27);
}