/* Eollys Video Player Slider Styles */

.eollys-video-player-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.video-player-wrapper {
    display: flex;
    gap: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Layouts de playlist */
.video-player-wrapper.playlist-left {
    flex-direction: row-reverse;
}

.video-player-wrapper.playlist-right {
    flex-direction: row;
}

.video-player-wrapper.playlist-bottom {
    flex-direction: column;
}

/* Lecteur vidéo principal */
.eollys-video-player {
    flex: 1;
    position: relative;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    min-height: 400px;
}

.video-embed-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

.video-embed-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Barre de progression */
.progress-bar {
    position: absolute;
    bottom: 60px;
    left: 20px;
    right: 20px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.eollys-video-player:hover .progress-bar {
    opacity: 1;
}

.progress-bar .progress {
    height: 100%;
    background: #C19B7B;
    width: 0%;
    transition: width 0.1s ease;
    border-radius: 2px;
}

/* Contrôles vidéo */
.video-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.eollys-video-player:hover .video-controls {
    opacity: 1;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(193, 155, 123, 0.3);
    transform: scale(1.1);
}

.control-btn i {
    width: 20px !important;
    height: 20px !important;
}

.play-pause-btn i {
    width: 24px !important;
    height: 24px !important;
}

/* Pastilles de navigation */
.playlist-dots {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 15px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.playlist-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.playlist-dots .dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.playlist-dots .dot.active {
    background: #C19B7B;
    box-shadow: 0 0 0 3px rgba(193, 155, 123, 0.3);
}

.playlist-dots .dot.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

/* Playlist latérale */
.video-playlist {
    width: 350px;
    background: white;
    border-radius: 15px;
    padding: 20px;
    overflow-y: auto;
    max-height: 600px;
}

.playlist-bottom .video-playlist {
    width: 100%;
    max-height: 300px;
}

.playlist-title {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #C19B7B;
    padding-bottom: 10px;
}

.playlist-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.playlist-bottom .playlist-items {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 10px;
}

.playlist-bottom .playlist-item {
    min-width: 250px;
}

/* Éléments de playlist */
.playlist-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.playlist-item:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.playlist-item.active {
    background: rgba(193, 155, 123, 0.1);
    border-color: #C19B7B;
}

.item-thumbnail {
    position: relative;
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.playlist-item:hover .play-overlay {
    opacity: 1;
}

.play-overlay i {
    width: 24px !important;
    height: 24px !important;
    color: white;
}

.item-content {
    flex: 1;
    min-width: 0;
}

.item-title {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-description {
    margin: 0;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Informations vidéo actuelle */
.current-video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 40px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.eollys-video-player:hover .current-video-info {
    transform: translateY(0);
}

.current-video-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
}

.current-video-description {
    margin: 0 0 15px 0;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    opacity: 0.8;
}

.video-counter {
    font-weight: 600;
}

.autoplay-status {
    display: flex;
    align-items: center;
    gap: 5px;
}

.autoplay-status i {
    width: 14px !important;
    height: 14px !important;
}

/* États de chargement */
.eollys-video-player.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    margin: -25px 0 0 -25px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #C19B7B;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 100;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1024px) {
    .video-playlist {
        width: 300px;
    }
    
    .video-player-wrapper.playlist-left,
    .video-player-wrapper.playlist-right {
        flex-direction: column;
    }
    
    .video-playlist {
        width: 100%;
        max-height: 250px;
    }
    
    .playlist-items {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .playlist-item {
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .video-player-wrapper {
        gap: 15px;
        border-radius: 10px;
    }
    
    .eollys-video-player {
        min-height: 300px;
        border-radius: 10px;
    }
    
    .video-playlist {
        padding: 15px;
        max-height: 200px;
    }
    
    .video-controls {
        gap: 10px;
        padding: 8px 15px;
    }
    
    .control-btn {
        padding: 6px;
    }
    
    .control-btn i {
        width: 18px !important;
        height: 18px !important;
    }
    
    .current-video-title {
        font-size: 18px;
    }
    
    .playlist-dots {
        gap: 6px;
        padding: 6px 12px;
    }
    
    .playlist-dots .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .video-player-wrapper {
        gap: 10px;
        border-radius: 8px;
    }
    
    .eollys-video-player {
        min-height: 250px;
    }
    
    .video-playlist {
        padding: 10px;
    }
    
    .playlist-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .current-video-info {
        padding: 30px 15px 15px;
    }
    
    .current-video-title {
        font-size: 16px;
    }
    
    .current-video-description {
        font-size: 13px;
    }
}

/* Animation d'entrée */
.eollys-video-player-container {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus pour accessibilité */
.control-btn:focus,
.playlist-dots .dot:focus,
.playlist-item:focus {
    outline: 2px solid #C19B7B;
    outline-offset: 2px;
}

/* Scrollbar personnalisée pour la playlist */
.video-playlist::-webkit-scrollbar {
    width: 6px;
}

.video-playlist::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.video-playlist::-webkit-scrollbar-thumb {
    background: #C19B7B;
    border-radius: 3px;
}

.video-playlist::-webkit-scrollbar-thumb:hover {
    background: #a68660;
}
