/*==============================
Video Section (BBC/YouTube Style) Styles
==============================*/

/* Main Container */
.video-section-row {
    display: flex;
    gap: 24px;
    align-items: stretch;
    margin-top: 2rem;
}

/* Main Video Player - BBC Style */
.main-video-container {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: fit-content;
    min-height: 600px;
}

.main-video-container:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.video-player-wrapper {
    position: relative;
    background: #000;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.video-embed {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
}

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

.video-upload {
    object-fit: cover;
}

/* Video Info Section - BBC Style */
.video-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.video-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.3;
    font-family: 'Georgia', serif;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.video-album {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.video-date {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.video-description {
    color: #444;
    line-height: 1.7;
    margin-bottom: 0;
    font-size: 1rem;
    flex: 1;
}

/* Video Sidebar - YouTube Style */
.video-sidebar {
    width: 400px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: fit-content;
    min-height: 600px;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    padding: 20px 20px 16px 20px;
    border-bottom: 1px solid #e5e5e5;
    background: #fafafa;
    font-family: 'Georgia', serif;
}

.video-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
    max-height: 500px;
}

/* YouTube-style Video Items */
.video-item {
    display: flex;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.video-item:hover {
    background: #f8f9fa;
}

.video-item.active {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
}

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

/* Thumbnail Container */
.video-thumbnail {
    position: relative;
    flex-shrink: 0;
    width: 168px;
    height: 94px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.05);
}

/* Play Button Overlay */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.video-item:hover .play-overlay {
    background: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Video Duration Badge */
.video-duration {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* Video Content */
.video-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.video-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
}

.video-item-title:hover {
    color: #2196f3;
}

.video-item-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.video-album-name {
    font-size: 12px;
    color: #606060;
    font-weight: 500;
}

.video-date {
    font-size: 12px;
    color: #909090;
}

/* Sidebar Footer */
.video-sidebar .text-center {
    padding: 20px;
    border-top: 1px solid #e5e5e5;
    background: #fafafa;
}

/* Empty State */
.empty-video-state {
    padding: 60px 20px;
    text-align: center;
}

.empty-video-state i {
    color: #ddd;
    margin-bottom: 20px;
}

.empty-video-state h4 {
    color: #333;
    margin-bottom: 12px;
    font-weight: 600;
}

.empty-video-state p {
    color: #666;
    margin-bottom: 24px;
}

/* Loading Animation */
.video-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.video-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2196f3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Custom Scrollbar */
.video-list::-webkit-scrollbar {
    width: 6px;
}

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

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

.video-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .video-section-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .video-sidebar {
        width: 100%;
        min-height: auto;
    }
    
    .video-list {
        max-height: 400px;
    }
    
    .main-video-container {
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .video-info {
        padding: 20px;
    }
    
    .video-title {
        font-size: 1.5rem;
    }
    
    .video-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .video-sidebar {
        border-radius: 8px;
    }
    
    .sidebar-title {
        padding: 16px 16px 12px 16px;
        font-size: 1.1rem;
    }
    
    .video-item {
        padding: 10px 16px;
    }
    
    .video-thumbnail {
        width: 140px;
        height: 78px;
    }
    
    .video-item-title {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .video-info {
        padding: 16px;
    }
    
    .video-title {
        font-size: 1.25rem;
    }
    
    .video-sidebar {
        border-radius: 6px;
    }
    
    .sidebar-title {
        padding: 12px 12px 8px 12px;
        font-size: 1rem;
    }
    
    .video-item {
        padding: 8px 12px;
        flex-direction: column;
        text-align: center;
    }
    
    .video-thumbnail {
        width: 100%;
        height: 180px;
        margin-bottom: 12px;
    }
    
    .video-item-meta {
        align-items: center;
    }
    
    .video-item-title {
        font-size: 14px;
        text-align: center;
    }
}

/* BBC/YouTube Combined Style Enhancements */
.video-section-row {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    border-radius: 16px;
    margin: 30px 0;
}

.main-video-container {
    border: 1px solid #e9ecef;
}

.video-sidebar {
    border: 1px solid #e9ecef;
}

/* Enhanced hover effects */
.video-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.video-item.active {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #1976d2;
}

/* Professional typography */
.video-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: -0.5px;
}

.sidebar-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    letter-spacing: -0.3px;
}

/* Smooth transitions */
* {
    transition: all 0.2s ease;
}

/* Enhanced shadows */
.main-video-container,
.video-sidebar {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.main-video-container:hover,
.video-sidebar:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.15);
} 