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

.main-video-container {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.main-video-container:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.video-player-wrapper {
    position: relative;
}

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

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

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

.video-info {
    padding: 1.5rem;
}

.video-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.video-album {
    background: var(--theme-color);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

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

.video-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Video Sidebar Styles */
.video-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f0f0f0;
}

.video-list {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.video-list::-webkit-scrollbar {
    width: 4px;
}

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

.video-list::-webkit-scrollbar-thumb {
    background: var(--theme-color);
    border-radius: 2px;
}

.video-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.video-item:hover {
    background: #f8f9fa;
    border-color: var(--theme-color);
    transform: translateX(5px);
}

.video-item.active {
    background: rgba(var(--theme-color-rgb), 0.1);
    border-color: var(--theme-color);
}

.video-thumbnail {
    position: relative;
    flex-shrink: 0;
    width: 120px;
    height: 68px;
    border-radius: 6px;
    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-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

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

.video-duration {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
}

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

.video-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-item-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.video-album-name {
    font-size: 0.75rem;
    color: var(--theme-color);
    font-weight: 600;
}

.video-date {
    font-size: 0.75rem;
    color: #666;
}

/* Empty State */
.empty-video-state {
    padding: 3rem 0;
}

.empty-video-state i {
    color: #ddd;
}

.empty-video-state h4 {
    color: #333;
    margin-bottom: 1rem;
}

/* 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 var(--theme-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    .video-sidebar {
        position: static;
        margin-top: 2rem;
    }
    
    .video-list {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .video-info {
        padding: 1.25rem;
    }
    
    .video-title {
        font-size: 1.25rem;
    }
    
    .video-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .video-sidebar {
        padding: 1.25rem;
    }
    
    .video-item {
        flex-direction: column;
        text-align: center;
    }
    
    .video-thumbnail {
        width: 100%;
        height: 180px;
        margin-bottom: 0.75rem;
    }
    
    .video-item-meta {
        align-items: center;
    }
}

@media (max-width: 576px) {
    .video-info {
        padding: 1rem;
    }
    
    .video-title {
        font-size: 1.1rem;
    }
    
    .video-sidebar {
        padding: 1rem;
    }
    
    .sidebar-title {
        font-size: 1.1rem;
    }
    
    .video-thumbnail {
        height: 160px;
    }
    
    .video-item {
        padding: 0.5rem;
    }
} 