
/* --- LATEST VIDEOS SECTION --- */
.videos-section {
    background-color: #020810; /* Very Dark Blue, almost black */
    color: white;
    padding: 80px 0;
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.video-section-header {
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.video-section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    margin: 0;
    line-height: 1;
    letter-spacing: 1px;
}

.video-section-header h2 i {
    font-size: 1.5rem;
    color: var(--highlight);
    margin-left: 10px;
    vertical-align: middle;
}

/* Layout Container */
.video-player-layout {
    display: flex;
    gap: 0;
    background: #0f172a; /* Slate 900 */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Main Player (Left) */
.main-player-container {
    flex: 7; /* 70% width */
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: black;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.main-video-info {
    padding: 30px;
    background: linear-gradient(to bottom, #0f172a, #0b1120);
}

.main-video-info h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: white;
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.main-video-info p {
    color: #94a3b8; /* Slate 400 */
    font-size: 1rem;
    line-height: 1.6;
    max-width: 90%;
    margin: 0;
}

/* Playlist (Right) */
.video-playlist {
    flex: 3; /* 30% width */
    display: flex;
    flex-direction: column;
    background: #1e293b; /* Slate 800 */
    max-height: 600px; /* Match approximate height of video + info */
    overflow-y: auto;
}

/* Custom Scrollbar */
.video-playlist::-webkit-scrollbar {
    width: 6px;
}
.video-playlist::-webkit-scrollbar-track {
    background: #0f172a;
}
.video-playlist::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 3px;
}
.video-playlist::-webkit-scrollbar-thumb:hover {
    background: var(--highlight);
}

.playlist-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    cursor: pointer;
    transition: 0.3s;
    gap: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
}

.playlist-item:last-child {
    border-bottom: none;
}

.playlist-item:hover {
    background: #334155; /* Slate 700 */
}

.playlist-item.active {
    background: #1e293b;
    background: linear-gradient(to right, rgba(0, 212, 255, 0.1), transparent);
}

.playlist-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--highlight);
    box-shadow: 0 0 10px var(--highlight);
}

.pl-content {
    flex: 1;
}

.pl-content h4 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    color: #e2e8f0; /* Slate 200 */
    margin: 0 0 5px 0;
    transition: 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.playlist-item:hover .pl-content h4 {
    color: var(--highlight);
}

.playlist-item.active .pl-content h4 {
    color: var(--highlight);
}

.pl-thumbnail {
    width: 110px;
    flex-shrink: 0;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.pl-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s;
    opacity: 0.8;
}

.playlist-item:hover .pl-thumbnail img,
.playlist-item.active .pl-thumbnail img {
    opacity: 1;
    transform: scale(1.1);
}

.pl-thumbnail .duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0,0,0,0.85);
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Play Icon Overlay for Active Item */
.playlist-item.active .pl-thumbnail::after {
    content: '\f04b'; /* FontAwesome Play */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    color: white;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    pointer-events: none;
}

/* Responsive */
@media (max-width: 992px) {
    .video-player-layout {
        flex-direction: column;
        border-radius: 8px;
    }
    
    .main-player-container {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .video-playlist {
        max-height: 400px;
    }
    
    .video-section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .video-section-header h2 {
        font-size: 1.5rem;
    }
    
    .main-video-info h3 {
        font-size: 1.5rem;
    }
    
    .playlist-item {
        padding: 15px;
    }
    
    .pl-thumbnail {
        width: 90px;
    }
}
