/* YouTube Carousel Styles - Integrated with site design */

#carousel-container {
    font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    width: 100%;
}

.carousel-wrapper {
    position: relative;
    overflow: visible;
    padding: 0 60px;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.4s ease;
    padding: 1.5rem 0;
    justify-content: center;
    flex-wrap: nowrap;
    transform: none !important;
}

.video-card {
    flex: 0 0 300px;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(185, 145, 47, 0.3);
}

.video-thumbnail {
    width: 100%;
    aspect-ratio: 9/16;
    object-fit: cover;
    background: #000;
}

.video-info {
    padding: 1rem;
    background: #1a1a1a;
}

.video-title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #ffffff !important;
    margin-bottom: 0.5rem;
}

.video-stats {
    font-size: 0.75rem;
    color: #d1d5db !important;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(185, 145, 47, 0.2);
    border: 1px solid rgba(185, 145, 47, 0.3);
    color: #e0c26e;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 10;
}

.nav-btn:hover {
    background: rgba(185, 145, 47, 0.4);
    border-color: rgba(224, 194, 110, 0.5);
    transform: translateY(-50%) scale(1.05);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
}

.nav-btn.prev {
    left: 0;
}

.nav-btn.next {
    right: 0;
}

#carousel-container .loading {
    text-align: center;
    padding: 4rem 1rem;
    font-size: 1.125rem;
    color: #9ca3af;
}

#carousel-container .error {
    text-align: center;
    padding: 4rem 1rem;
    color: #ef4444;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .carousel-wrapper {
        padding: 0 20px;
    }

    .carousel {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .video-card {
        flex: 0 0 auto;
        width: 100%;
        max-width: 300px;
    }

    .nav-btn {
        display: none;
    }
}

@media (max-width: 640px) {
    .carousel-wrapper {
        padding: 0 15px;
    }

    .video-card {
        max-width: 280px;
    }
}