/* ============================================
   VIDEO SECTION STYLES
   ============================================ */

.video-section {
    background-color: #0f172a; /* Deep dark blue for a premium look */
    color: var(--color-white);
    padding: var(--spacing-2xl) 0;
    margin: var(--spacing-2xl) 0;
}

.video-section .section-title {
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.2);
}

.video-section .section-title::after {
    background-color: var(--color-accent);
}

.video-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

/* Main Video Display */
.video-main {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.video-main-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
}

.video-main-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.video-main:hover .video-main-thumb img {
    transform: scale(1.03);
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--spacing-xl);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 70%);
    cursor: pointer;
}

.play-btn-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 2rem;
    transition: all var(--transition-base);
    box-shadow: 0 0 0 0 rgba(196, 30, 58, 0.4);
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% { box-shadow: 0 0 0 0 rgba(196, 30, 58, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(196, 30, 58, 0); }
    100% { box-shadow: 0 0 0 0 rgba(196, 30, 58, 0); }
}

.video-main:hover .play-btn-large {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: var(--color-accent-light);
}

.video-main-info h3 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-white);
}

.video-meta {
    display: flex;
    gap: var(--spacing-md);
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Sidebar Videos */
.video-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.video-sidebar-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: var(--spacing-sm);
    padding: var(--spacing-xs);
    border-radius: 8px;
    transition: background-color var(--transition-fast);
    cursor: pointer;
}

.video-sidebar-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.video-sidebar .item-thumb {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.video-sidebar .item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-sidebar .play-btn-small {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background-color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.video-sidebar-item:hover .play-btn-small {
    opacity: 1;
}

.video-sidebar .item-content h4 {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 4px;
    color: var(--color-white);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.video-sidebar .item-duration {
    font-size: 0.75rem;
    opacity: 0.6;
}

/* --- Video Modal Styles --- */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.video-modal.active {
    display: flex;
    opacity: 1;
}

.video-modal-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.video-modal-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 10;
    transform: scale(0.9);
    transition: transform var(--transition-base);
}

.video-modal.active .video-modal-container {
    transform: scale(1);
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.video-modal-close:hover {
    color: var(--color-accent);
}

.video-iframe-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive Breakpoints */

/* Tablet & Smaller Laptops */
@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .video-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .video-section {
        padding: var(--spacing-xl) 0;
    }

    .video-play-overlay {
        padding: var(--spacing-lg);
    }

    .play-btn-large {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .video-main-info h3 {
        font-size: 1.5rem;
    }

    .video-sidebar {
        grid-template-columns: 1fr;
    }

    .video-modal-container {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .video-main-info h3 {
        font-size: 1.15rem;
    }

    .video-meta {
        font-size: 0.75rem;
        gap: var(--spacing-sm);
    }

    .video-sidebar-item {
        grid-template-columns: 100px 1fr;
        gap: var(--spacing-xs);
    }

    .video-sidebar .item-content h4 {
        font-size: 0.85rem;
    }

    .video-modal-close {
        top: 10px;
        right: 10px;
        background: rgba(0, 0, 0, 0.7);
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    }
}
