/* Video Slider Styles */

.video-slider-section {
    width: 100%;
    margin-top: 20px;
}

.tf-video-slider {
    width: 100%;
    overflow: hidden;
}

/* Desktop Video Grid - 5 columns, multiple rows */
.video-grid-desktop {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    width: 100%;
    grid-auto-rows: auto; /* Allow multiple rows */
}

.video-item {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 177.78%; /* 9:16 aspect ratio for shorts/vertical videos */
    overflow: hidden;
    border-radius: 12px;
}

.video-iframe {
    position: absolute;
    top: -60px; /* Shift up to hide top bar with channel info */
    left: 0;
    width: 100%;
    height: calc(100% + 120px); /* Extend height to compensate for shift */
    border: none;
    border-radius: 12px;
    pointer-events: none; /* Prevents clicking on the video */
}

/* Overlay to hide YouTube branding */
.video-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    pointer-events: none;
    z-index: 10;
}

/* Hide bottom YouTube logo */
.video-wrapper::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    pointer-events: none;
    z-index: 10;
}

/* Tablet View - 3 columns */
@media (max-width: 1024px) and (min-width: 769px) {
    .video-grid-desktop {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

/* Mobile View - 2 columns in rows */
@media (max-width: 768px) {
    .video-slider-section {
        margin-top: 15px;
    }
    
    .video-grid-desktop {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .video-wrapper {
        padding-bottom: 177.78%; /* Maintain 9:16 aspect ratio */
        border-radius: 8px;
    }
    
    .video-iframe {
        border-radius: 8px;
    }
    
    .video-item {
        border-radius: 8px;
    }
    
    .video-item:hover {
        transform: translateY(-3px);
    }
}

/* Small Mobile - 2 columns */
@media (max-width: 480px) {
    .video-grid-desktop {
        gap: 8px;
    }
    
    .video-wrapper {
        border-radius: 6px;
    }
    
    .video-iframe {
        border-radius: 6px;
    }
    
    .video-item {
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
}

/* No loading animation - removed to avoid conflicts with overlay */

/* Side overlays to hide any remaining YouTube branding */
.video-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: #000;
    pointer-events: none;
    z-index: 11;
}

.video-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: #000;
    pointer-events: none;
    z-index: 11;
}

