/* ========================================
   index2 - Player VSL self-hosted (estilo da imagem)
   ======================================== */

/* Texto "(X) personas viendo simultáneamente" abaixo da VSL */
.vsl-viewers-text {
    text-align: center;
    margin-top: 12px;
    margin-bottom: 0;
    font-size: 15px;
    color: #555;
}

.vsl-viewers-text #vsl-viewers-count {
    font-weight: bold;
    color: #1976D2;
}

/* Wrapper do player: flutuante, cantos arredondados, sombra */
.video-container .vsl-wrapper {
    max-width: 900px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    background: #000;
}

/* Container do player (ratio 16:9) */
.vsl-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

/* Vídeo HTML5 */
.vsl-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Marca d'água de fundo (logo VTU translúcido) */
.vsl-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(48px, 12vw, 120px);
    font-weight: bold;
    color: rgba(200, 80, 60, 0.25);
    pointer-events: none;
    letter-spacing: 0.05em;
    font-family: Arial, Helvetica, sans-serif;
}

/* Overlay: apenas um card no centro (não tampa a VSL inteira) */
.vsl-unmute-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.35s ease;
}

.vsl-unmute-overlay.vsl-hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.vsl-unmute-overlay.vsl-hidden .vsl-unmute-content {
    pointer-events: none;
}

/* Card central com a mensagem (clicável) */
.vsl-unmute-content {
    text-align: center;
    padding: 32px 40px;
    max-width: 320px;
    width: 85%;
    background: rgba(224, 122, 107, 0.75);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.2s, box-shadow 0.2s;
}

.vsl-unmute-content:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}

.vsl-unmute-title {
    font-size: clamp(20px, 4vw, 28px);
    font-weight: bold;
    color: #fff;
    margin-bottom: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.vsl-unmute-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    color: #fff;
}

.vsl-unmute-icon svg {
    width: 100%;
    height: 100%;
}

.vsl-unmute-subtitle {
    font-size: clamp(14px, 2.5vw, 18px);
    color: #fff;
    opacity: 0.95;
}

/* Botões de controle (canto superior direito) - estilo pill */
.vsl-controls-top {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 3;
}

.vsl-btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: rgba(240, 240, 240, 0.95);
    color: #333;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.vsl-btn-pill:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.vsl-btn-pill svg {
    width: 20px;
    height: 20px;
}

.vsl-badge {
    cursor: default;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.vsl-badge:hover {
    transform: none;
}

/* Barra de progresso inteligente (mesmas cores do card unmute) */
.vsl-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: rgba(180, 100, 90, 0.35);
    z-index: 2;
    overflow: hidden;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.15);
    opacity: 0.9;
}

.vsl-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(224, 122, 107, 0.85), rgba(212, 105, 90, 0.85));
    border-radius: 0 2px 0 0;
    transition: width 0.15s linear;
    box-shadow: 0 0 6px rgba(224, 122, 107, 0.35);
}

/* Responsivo */
@media (max-width: 768px) {
    .vsl-controls-top {
        top: 12px;
        right: 12px;
        gap: 6px;
    }

    .vsl-btn-pill {
        width: 36px;
        height: 32px;
    }

    .vsl-btn-pill svg {
        width: 18px;
        height: 18px;
    }

    /* Card unmute menor no mobile */
    .vsl-unmute-content {
        padding: 18px 22px;
        max-width: 220px;
        width: 75%;
        border-radius: 12px;
    }

    .vsl-unmute-title {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .vsl-unmute-icon {
        width: 44px;
        height: 44px;
        margin: 0 auto 10px;
    }

    .vsl-unmute-subtitle {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .vsl-unmute-content {
        padding: 14px 18px;
        max-width: 180px;
        width: 70%;
        border-radius: 10px;
    }

    .vsl-unmute-title {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .vsl-unmute-icon {
        width: 36px;
        height: 36px;
        margin: 0 auto 8px;
    }

    .vsl-unmute-subtitle {
        font-size: 12px;
    }
}
