:root {
    --primary-color: #f4e4ca;
    --secondary-color: #c0923b;
    --background-color: #f8f9fa;
    --text-color: #2a304c;
}

/* Video Player Section Styles */
.video-player-section {
        width: 97%;
        min-height: 100vh;
        background: transparent;
        padding: 0px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

.video-player-container {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    margin: 0 auto;
}

.main-video-wrapper {
    position: relative;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    display: block;
}

.main-video-player {
    width: 100%;
    height: 75vh;
    object-fit: contain;
    display: block;
    background: #000;
}

.video-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    padding: 30px 20px 15px;
    pointer-events: none;
}

.video-title-overlay h3 {
    color: var(--text-color);
    font-size: 24px;
    margin: 0;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Playlist Styles */
.video-playlist {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: fit-content;
    max-height: 75vh;
    overflow-y: auto;
}

.playlist-title {
    color: var(--text-color);
    font-size: 20px;
    margin: 0 0 20px 0;
    font-weight: 600;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.playlist-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.playlist-item {
    display: flex;
    gap: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    align-items: center; /* centra verticalmente thumbnail y título */
}

.playlist-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.playlist-item.active {
    background: rgba(192, 146, 59, 0.2);
    border-color: var(---color);
}

.playlist-thumbnail {
    width: 80px;
    height: 60px;
    background: linear-gradient(135deg, #c0923b 0%, #d4a850 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.playlist-thumbnail i {
    font-size: 24px;
    color: #fff;
}

.playlist-item.active .playlist-thumbnail {
    background: linear-gradient(135deg, #d4a850 0%, #e6b960 100%);
}

.playlist-item.active .playlist-thumbnail i {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.playlist-info {
    flex: 1;
    min-width: 0;
    text-align: center;
    display: flex;
    align-items: center;   /* centra verticalmente el título dentro del bloque */
    justify-content: center; /* centra horizontalmente el título dentro del bloque */
}

.playlist-info h4 {
    color: var(--text-color);
    font-size: 18px; /* aumenta tamaño de letra del título */
    margin: 0 0 5px 0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-info p {
    color: rgba(42, 48, 76, 0.6);
    font-size: 13px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-item.active .playlist-info h4 {
    color: var(--text-color);
}

/* Scrollbar personalizado para playlist */
.video-playlist::-webkit-scrollbar {
    width: 8px;
}

.video-playlist::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.video-playlist::-webkit-scrollbar-thumb {
    background: rgba(192, 146, 59, 0.5);
    border-radius: 10px;
}

.video-playlist::-webkit-scrollbar-thumb:hover {
    background: rgba(192, 146, 59, 0.7);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .video-player-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .video-playlist {
        max-height: 400px;
    }

    .main-video-player {
        height: 60vh;
    }
}

@media (max-width: 768px) {
    .video-player-section {
        padding: 40px 15px;
        min-height: auto;
    }

    .main-video-player {
        height: 50vh;
    }

    .video-title-overlay h3 {
        font-size: 18px;
    }

    .playlist-title {
        font-size: 18px;
    }

    .playlist-thumbnail {
        width: 60px;
        height: 45px;
    }

    .playlist-thumbnail i {
        font-size: 18px;
    }

    .playlist-info h4 {
        font-size: 14px;
    }

    .playlist-info p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .main-video-player {
        height: 40vh;
    }

    .video-player-section {
        padding: 30px 10px;
    }

    .video-playlist {
        padding: 15px;
    }
}
