/* Container de vídeos da galeria de thumbnails */
.wc-pv-video-gallery-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-top: 10px;
}

/* Item de vídeo */
.wc-pv-gallery-video {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: #000;
    cursor: pointer;
}

.wc-pv-gallery-video:hover {
    border-color: #999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.wc-pv-video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.wc-pv-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wc-pv-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: none;
}

.wc-pv-gallery-video:hover .wc-pv-video-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.wc-pv-play {
    font-size: 20px;
    color: white;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
}

.wc-pv-gallery-video:hover .wc-pv-play {
    font-size: 24px;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.7);
}

/* Botão fullscreen nos thumbnails */
.wc-pv-fullscreen-btn {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.6) !important;
    border: none !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    opacity: 0;
    pointer-events: auto !important;
    padding: 0 !important;
    z-index: 6;
    transition: opacity 0.2s ease;
}

.wc-pv-gallery-video:hover .wc-pv-fullscreen-btn {
    opacity: 1;
}

.wc-pv-fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.8) !important;
}

/* ==== VÍDEO PRINCIPAL ==== */

.wc-pv-main-video-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    background: #000;
    display: block;
    overflow: hidden;
}

.wc-pv-main-video-player {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
}

.wc-pv-main-fullscreen-btn {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    background: rgba(0, 0, 0, 0.7) !important;
    border: none !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    padding: 0 !important;
    z-index: 10 !important;
    transition: all 0.2s ease;
}

.wc-pv-main-fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.9) !important;
    transform: scale(1.1);
}

/* ==== FULLSCREEN ==== */

.wc-pv-fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    animation: wcpvFadeIn 0.3s ease-in;
}

.wc-pv-fullscreen-content {
    position: relative;
    width: 100%;
    max-width: 90vw;
    height: 90vh;
}

.wc-pv-fullscreen-modal video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wc-pv-fullscreen-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 3px;
    padding: 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.wc-pv-fullscreen-close:hover {
    background: #f0f0f0;
}

@keyframes wcpvFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .wc-pv-gallery-video {
        width: 70px;
        height: 70px;
    }
    
    .wc-pv-fullscreen-btn {
        width: 24px !important;
        height: 24px !important;
    }
}

@media (max-width: 480px) {
    .wc-pv-gallery-video {
        width: 60px;
        height: 60px;
    }
    
    .wc-pv-fullscreen-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .wc-pv-fullscreen-content {
        max-width: 100vw;
        height: 70vh;
    }
}