/* YouTube Video Gallery - Frontend Styles */

.video-section {
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}

.main-video {
    margin-bottom: 20px;
}

.main-video iframe {
    width: 100%;
    height: 520px;
    border-radius: 12px;
    display: block;
}

.video-carousel {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.video-carousel::-webkit-scrollbar {
    height: 8px;
}

.video-carousel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.video-carousel::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.video-carousel::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.video-item {
    position: relative;
    flex: 0 0 auto;
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.video-item img {
    width: 240px;
    height: 135px;
    display: block;
    transition: transform 0.4s ease;
    object-fit: cover;
}

.video-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.video-title {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    color: white;
    font-weight: bold;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    line-height: 1.4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 2;
}

.video-item:hover img {
    transform: scale(1.08);
}

.video-item:hover::before,
.video-item:hover .video-title {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-video iframe {
        height: 350px;
    }
    
    .video-item img {
        width: 200px;
        height: 112px;
    }
    
    .video-title {
        font-size: 12px;
        bottom: 8px;
        left: 8px;
        right: 8px;
    }
}

@media (max-width: 480px) {
    .video-section {
        padding: 10px;
    }
    
    .main-video iframe {
        height: 250px;
    }
    
    .video-item img {
        width: 160px;
        height: 90px;
    }
    
    .video-carousel {
        gap: 10px;
    }
    
    .video-title {
        font-size: 11px;
        bottom: 5px;
        left: 5px;
        right: 5px;
    }
}
