/* === STYLES COMMUNS === */
.vvc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Vidéo principale (toujours affichée) */
.vvc-main-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.vvc-main-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* === CAROUSEL === */
.vvc-thumbnails-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vvc-thumbnails-wrapper {
    flex: 1;
    overflow: hidden;
}

.vvc-thumbnails {
    display: flex;
    gap: 15px;
    transition: transform 0.3s ease;
}

.vvc-thumbnail {
    flex: 0 0 200px;
    cursor: pointer;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #000;
}

.vvc-thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.vvc-thumbnail.active {
    box-shadow: 0 0 0 3px #3858e9;
}

.vvc-thumbnail img {
    width: 100%;
    height: 112px;
    object-fit: cover;
    display: block;
}

/* === GRILLE === */
.vvc-grid-wrapper {
    margin-top: 20px;
}

.vvc-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* Colonnes personnalisées */
.vvc-grid-wrapper[data-cols-desktop="1"] .vvc-grid { grid-template-columns: repeat(1, 1fr); }
.vvc-grid-wrapper[data-cols-desktop="2"] .vvc-grid { grid-template-columns: repeat(2, 1fr); }
.vvc-grid-wrapper[data-cols-desktop="3"] .vvc-grid { grid-template-columns: repeat(3, 1fr); }
.vvc-grid-wrapper[data-cols-desktop="4"] .vvc-grid { grid-template-columns: repeat(4, 1fr); }
.vvc-grid-wrapper[data-cols-desktop="6"] .vvc-grid { grid-template-columns: repeat(6, 1fr); }
.vvc-grid-wrapper[data-cols-desktop="7"] .vvc-grid { grid-template-columns: repeat(7, 1fr); }
.vvc-grid-wrapper[data-cols-desktop="8"] .vvc-grid { grid-template-columns: repeat(8, 1fr); }
.vvc-grid-wrapper[data-cols-desktop="9"] .vvc-grid { grid-template-columns: repeat(9, 1fr); }
.vvc-grid-wrapper[data-cols-desktop="10"] .vvc-grid { grid-template-columns: repeat(10, 1fr); }

.vvc-grid-item {
    cursor: pointer;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #000;
}

.vvc-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.vvc-grid-item.active {
    box-shadow: 0 0 0 3px #3858e9;
}

.vvc-grid-thumbnail {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.vvc-grid-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder commun */
.vvc-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333;
    color: #666;
    font-size: 40px;
}

.vvc-grid-thumbnail .vvc-thumbnail-placeholder {
    position: absolute;
    top: 0;
    left: 0;
}

/* Overlay play */
.vvc-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.vvc-thumbnail:hover .vvc-play-overlay,
.vvc-grid-item:hover .vvc-play-overlay {
    opacity: 1;
}

/* Titres */
.vvc-thumbnail-title,
.vvc-grid-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    font-size: 12px;
    line-height: 1.3;
}

/* Boutons navigation carousel */
.vvc-nav-btn {
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.vvc-nav-btn:hover {
    background: rgba(0,0,0,0.8);
}

.vvc-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    /* Carousel mobile */
    .vvc-thumbnail {
        flex: 0 0 150px;
    }
    
    .vvc-thumbnail img {
        height: 84px;
    }
    
    .vvc-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    /* Grille mobile */
    .vvc-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    .vvc-grid-wrapper[data-cols-mobile="1"] .vvc-grid { grid-template-columns: repeat(1, 1fr) !important; }
    .vvc-grid-wrapper[data-cols-mobile="3"] .vvc-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .vvc-grid-wrapper[data-cols-mobile="4"] .vvc-grid { grid-template-columns: repeat(4, 1fr) !important; }
}