/* Reset and base */
*, *::before, *::after {
    box-sizing: border-box;
}
body {
    margin: 0; 
    font-family: 'Poppins', sans-serif; 
    color: white;
    scroll-behavior: smooth; 
    min-height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background: url('/media-content/videos-media/background.jpg') no-repeat top center;
}
a {
    color: inherit; text-decoration: none;
}
a:hover, a:focus {
    text-decoration: underline;
}
h2 {
    margin: 0 0 4rem 0; font-weight: 700; text-transform: uppercase;
}
p {
    margin: 0 0 1rem 0;
}
/* Container */
.container {
    max-width: 1200px; margin: 0 auto; padding: 0 1rem;
}
/* Main content */
main {
    max-width: 90%;
    padding-top: 3rem;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    padding-bottom: 3rem;
    background: rgba(0,0,0,0.6);
    border-radius: 4px;
    margin: 8rem auto 4rem auto;
    
}
main h2.section-title {
    margin: 0;
    border-radius: 4px;
    font-size: 2rem;
    text-align: center;
    max-width: 100%;
}
main p.loading-note {
    color: #eee;
    font-size: 0.9rem;
    text-align: center;
    margin-top: -1rem;
    margin-bottom: 2rem;
}
/* Playlist Carousel sections */
section.playlist-section {
    width: 100%;
    max-width: 900px;
    padding: 1rem 1rem 2rem 1rem;
    border-radius: 6px;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.carousel-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: 8px;
    width: 100%;
    position: relative;
    touch-action: pan-y;
    cursor: grab;
}

.carousel-wrapper:active {
    cursor: grabbing;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

.carousel-slide iframe {
    width: 100%;
    max-width: 560px;
    height: 315px;
    border: none;
    border-radius: 4px;
    margin: 0 auto;
    display: block;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    z-index: 10;
    user-select: none;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.carousel-btn:disabled:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Mobile navigation buttons */
.mobile-nav-buttons {
    display: none;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 0 1rem;
}

.mobile-nav-btn {
    background: linear-gradient(45deg, #900, #b00);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.mobile-nav-btn:hover {
    background: linear-gradient(45deg, #b00, #d00);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.mobile-nav-btn:disabled {
    background: #555;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.mobile-nav-btn:disabled:hover {
    transform: none;
    background: #555;
}

/* Dots indicator */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

/* Mobile responsive */
@media (max-width: 768px) {
    section.playlist-section {
        padding: 1rem 0.5rem 2rem 0.5rem; /* Reduce side padding */
    }
    
    .carousel-container {
        gap: 0;
    }
    
    .carousel-btn {
        display: none; /* Hide side buttons on mobile */
    }
    
    .mobile-nav-buttons {
        display: flex; /* Show mobile buttons */
    }
    
    .carousel-wrapper {
        width: 100%;
        position: relative;
        overflow: hidden;
    }
    
    .carousel-track {
        transition: transform 0.3s ease;
    }
    
    .carousel-slide {
        padding: 0; /* Remove padding to prevent video cutoff */
        display: flex;
        justify-content: center;
    }
    
    .carousel-slide iframe {
        width: 95%; /* Slight margin to prevent edge cutoff */
        max-width: 95%;
        height: auto;
        min-height: 200px;
        aspect-ratio: 16 / 9;
    }
    
    .carousel-dots {
        margin-top: 1rem;
    }
    
    .carousel-dot {
        width: 12px;
        height: 12px;
    }
}

/* Video sections */
section.videos-section {
    width: 100%;
    max-width: 900px;
    padding: 1rem 1rem 2rem 1rem;
    border-radius: 6px;
}
section.videos-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 4rem;
}
.videos-grid iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: 4px;
}
.signup-btn {
    display: inline-block;
    background: #900;
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 1rem 0 0.5rem 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.signup-btn:hover,
.signup-btn:focus {
    background: #b00;
}
/* Responsive adjustments */
@media (max-width: 1010px) {
    body {
        background-position: top right;
    }
    main {
        padding: 3rem 1rem 2rem 1rem;
    }
    section.videos-section {
        max-width: 100%;
        padding: 1rem 0.5rem 1.5rem 0.5rem;
    }
}