/* VIDEO FLOATING - Base Styles */

.sslp-video-floating {
    position: fixed;
    z-index: 9998;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.sslp-video-floating[style*="opacity: 0"],
.sslp-video-floating[style*="opacity:0"] {
    transform: translateY(20px);
}

.sslp-video-floating--bottom-right { bottom: 100px; right: 20px; }
.sslp-video-floating--bottom-left { bottom: 100px; left: 20px; }
.sslp-video-floating--top-right { top: 100px; right: 20px; }
.sslp-video-floating--top-left { top: 100px; left: 20px; }

/* Tamanhos */
.sslp-video-floating--small .sslp-video-floating__trigger { width: 80px; height: 80px; }
.sslp-video-floating--medium .sslp-video-floating__trigger { width: 120px; height: 120px; }
.sslp-video-floating--large .sslp-video-floating__trigger { width: 160px; height: 160px; }
.sslp-video-floating--xlarge .sslp-video-floating__trigger { width: 200px; height: 200px; }

/* Trigger */
.sslp-video-floating__trigger {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--sslp-accent, #9CA846);
    cursor: pointer;
    background: #000;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s;
}

.sslp-video-floating__trigger:hover {
    transform: scale(1.05);
}

/* Vídeo e Thumbnail */
.sslp-video-floating__video,
.sslp-video-floating__thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.sslp-video-floating__thumb { z-index: 2; }
.sslp-video-floating__video { z-index: 1; pointer-events: none; }

/* Label com ícone play */
.sslp-video-floating__label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: rgba(13, 13, 13, 0.95);
    padding: 10px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.sslp-video-floating__label:hover {
    background: var(--sslp-accent, #9CA846);
    transform: scale(1.05);
}

.sslp-video-floating__label-icon {
    width: 16px;
    height: 16px;
}

/* Close button */
.sslp-video-floating__close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 26px;
    height: 26px;
    background: #e63946;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

.sslp-video-floating:hover .sslp-video-floating__close {
    opacity: 1;
}

/* PULSE NA BORDA - mais intenso */
.sslp-video-floating--pulse .sslp-video-floating__trigger {
    animation: sslp-glow-pulse 1.5s ease-in-out infinite;
}

@keyframes sslp-glow-pulse {
    0%, 100% { 
        border-color: var(--sslp-accent, #9CA846);
        box-shadow: 0 0 0 0 rgba(156, 168, 70, 0.6), 0 10px 40px rgba(0, 0, 0, 0.4);
    }
    50% { 
        border-color: #c5d45a;
        box-shadow: 0 0 0 15px rgba(156, 168, 70, 0), 0 10px 40px rgba(0, 0, 0, 0.4);
    }
}

/* Lightbox */
.sslp-video-floating-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.sslp-video-floating-lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
}

.sslp-video-floating-lightbox__content {
    position: relative;
    width: 100%;
    max-width: 1000px;
}

.sslp-video-floating-lightbox__close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 44px;
    height: 44px;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.sslp-video-floating-lightbox__close:hover {
    background: #fff;
    color: #000;
}

.sslp-video-floating-lightbox__player {
    position: relative;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
}

.sslp-video-floating-lightbox__player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
