/**
 * Easy Product Videos - Floating Video Bubble Circle
 */

.epv-video-bubble {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 15px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Círculo con video */
.epv-video-bubble__circle {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    background: #000;
    flex-shrink: 0;
}

.epv-video-bubble__circle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.epv-video-bubble__circle:active {
    transform: scale(0.95);
}

/* Video dentro del círculo */
.epv-video-bubble__player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Indicador de "play" overlay */
.epv-video-bubble__play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0.8;
}

.epv-video-bubble__circle:hover .epv-video-bubble__play-icon {
    opacity: 1;
    background: rgba(0,0,0,0.7);
}

/* Label "Video" debajo */
.epv-video-bubble__label {
    display: none;
}

/* Animación de pulso suave */
@keyframes epvPulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
    50% { box-shadow: 0 4px 20px rgba(231, 76, 60, 0.3); }
}

.epv-video-bubble__circle--playing {
    animation: epvPulse 3s infinite;
}

/* Thumbnail estático (cuando no se puede reproducir) */
.epv-video-bubble__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .epv-video-bubble__circle {
        width: 46px;
        height: 46px;
    }
    
    .epv-video-bubble__play-icon {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .epv-video-bubble {
        margin-left: 8px;
    }
    
    .epv-video-bubble__circle {
        width: 40px;
        height: 40px;
        border-width: 1.5px;
    }
    
    .epv-video-bubble__play-icon {
        width: 20px;
        height: 20px;
    }
}

/**
 * Easy Product Videos - Footer Video Bubble (Grande)
 */

.epv-footer-bubble {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease;
}

.epv-footer-bubble:hover {
    transform: scale(1.05);
}

/* Círculo del footer - MÁS GRANDE */
.epv-footer-bubble__circle {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 6px 30px rgba(0,0,0,0.35);
    transition: all 0.3s ease;
    background: #000;
}

.epv-footer-bubble__circle:hover {
    box-shadow: 0 8px 35px rgba(0,0,0,0.45);
}

.epv-footer-bubble__circle:active {
    transform: scale(0.95);
}

/* Video/Thumbnail dentro del círculo */
.epv-footer-bubble__player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.epv-footer-bubble__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Icono de play */
.epv-footer-bubble__play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.epv-footer-bubble__circle:hover .epv-footer-bubble__play-icon {
    opacity: 1;
    background: rgba(0,0,0,0.7);
    width: 46px;
    height: 46px;
}

/* Etiqueta debajo del círculo */
.epv-footer-bubble__label {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    text-align: center;
    background: rgba(255,255,255,0.9);
    padding: 5px 14px;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Animación de pulso */
.epv-footer-bubble__circle--playing {
    animation: epvFooterPulse 3s infinite;
}

@keyframes epvFooterPulse {
    0%, 100% { box-shadow: 0 6px 30px rgba(0,0,0,0.35); }
    50% { box-shadow: 0 6px 35px rgba(231, 76, 60, 0.5); }
}

/* Tooltip al hacer hover */
.epv-footer-bubble__tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.epv-footer-bubble__tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent rgba(0,0,0,0.85);
}

.epv-footer-bubble__circle:hover .epv-footer-bubble__tooltip {
    opacity: 1;
}

/* Modal de reproducción */
.epv-video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.epv-video-modal.active {
    display: block;
}

.epv-video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
}

.epv-video-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
}

.epv-video-modal-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    transition: transform 0.2s ease;
}

.epv-video-modal-close:hover {
    transform: scale(1.1);
}

.epv-video-modal-player {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
}

.epv-video-modal-player iframe,
.epv-video-modal-player video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

body.epv-modal-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
    .epv-footer-bubble {
        bottom: 20px;
        right: 20px;
    }
    
    .epv-footer-bubble__circle {
        width: 90px;
        height: 90px;
    }
    
    .epv-footer-bubble__play-icon {
        width: 32px;
        height: 32px;
    }
    
    .epv-footer-bubble__label {
        font-size: 11px;
        padding: 4px 10px;
    }
}

@media (max-width: 480px) {
    .epv-footer-bubble {
        bottom: 15px;
        right: 15px;
    }
    
    .epv-footer-bubble__circle {
        width: 75px;
        height: 75px;
        border-width: 2px;
    }
    
    .epv-footer-bubble__play-icon {
        width: 28px;
        height: 28px;
    }
    
    .epv-footer-bubble__label {
        display: none;
    }
    
    .epv-footer-bubble__tooltip {
        display: none;
    }
}