/**
 * Front-End Premium Video Playlist Player Stylesheet
 * Custom themed with brand accent orange (#EF5922)
 * Sleek, wider, vertically centered and modern layout
 */

/* Section Wrapper */
.modern-video-section {
    padding: 80px 0;
    background-color: #fcfcfd; 
    font-family: 'Inter', 'Helvetica Neue', sans-serif;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Grid Layout - Wider and perfectly centered */
.video-container-wrapper {
    display: grid;
    grid-template-columns: 2fr 1.1fr; /* Increased ratio to make the video player bigger */
    gap: 50px;
    width: 95%;
    max-width: 1440px; /* Expanded maximum width */
    align-items: center; /* Vertically centers the video player and playlist relative to each other */
}

/* Main Video Player Area */
.main-video-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
    background-color: #0f1115;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(15, 23, 42, 0.05);
}

/* Interactive lift on the player */
.main-video-player:hover {
    box-shadow: 0 35px 60px -10px rgba(15, 23, 42, 0.25);
    transform: translateY(-3px);
}

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

/* Playlist Area */
.video-playlist {
    display: flex;
    flex-direction: column;
}

/* Header Styling */
.playlist-header {
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding-bottom: 20px;
}

.category-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #EF5922;
    margin-bottom: 10px;
    display: block;
}

.playlist-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 10px 0;
    line-height: 1.15;
    letter-spacing: -1px;
}

.playlist-description {
    font-size: 14.5px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* Playlist Items */
.playlist-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Scrollbar styling */
.playlist-items::-webkit-scrollbar {
    width: 5px;
}
.playlist-items::-webkit-scrollbar-track {
    background: transparent;
}
.playlist-items::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 4px;
}
.playlist-items::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: #ffffff;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}

/* Video Title Styling */
.playlist-item .video-title {
    font-size: 14.5px;
    font-weight: 500;
    color: #475569;
    transition: color 0.25s ease;
    line-height: 1.4;
}

/* Custom Play Icon */
.playlist-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.playlist-icon svg {
    width: 12px;
    height: 12px;
    fill: #64748b;
    transition: fill 0.3s ease;
    margin-left: 2px;
}

/* Hover State */
.playlist-item:hover:not(.active) {
    background: #f8fafc;
    border-color: #e2e8f0;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.playlist-item:hover:not(.active) .video-title {
    color: #0f172a;
}

.playlist-item:hover:not(.active) .playlist-icon {
    background: #e2e8f0;
}

.playlist-item:hover:not(.active) .playlist-icon svg {
    fill: #0f172a;
}

/* Active State (Currently Playing) - themed with #EF5922 */
.playlist-item.active {
    background: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(239, 89, 34, 0.12), 0 8px 10px -6px rgba(239, 89, 34, 0.12);
    border: 1px solid rgba(239, 89, 34, 0.2);
    border-left: 5px solid #EF5922;
    transform: scale(1.02) translateX(4px);
}

.playlist-item.active .video-title {
    color: #0f172a;
    font-weight: 600;
}

.playlist-item.active .playlist-icon {
    background: #EF5922;
    box-shadow: 0 4px 10px rgba(239, 89, 34, 0.3);
}

.playlist-item.active .playlist-icon svg {
    fill: #ffffff;
}

/* Mobile Responsive Setup */
@media (max-width: 992px) {
    .modern-video-section {
        padding: 50px 20px;
    }
    .video-container-wrapper {
        grid-template-columns: 1fr; 
        gap: 35px;
        width: 100%;
    }
    .playlist-header h2 {
        font-size: 2.2rem;
    }
    .playlist-item.active {
        transform: scale(1);
    }
    .playlist-items {
        max-height: 350px;
    }
}
