/* ═══════════════════════════════════════════════════════════════
   UMU Videos Slider – Stylesheet v1.0.0
   YouTube Videos Carousel
═══════════════════════════════════════════════════════════════ */

.umu-videos-slider-wrapper {
    font-family: inherit;
    max-width: 1100px;
    margin: 50px auto;
    padding: 0;
    background: #ffffff;
    border: 2px solid #000000;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 6px 28px rgba(255, 0, 0, 0.15);
}

.umu-videos-title {
    font-size: 1.1rem;
    font-weight: 900;
    color: #ffffff;
    background: #000000;
    margin: 0;
    padding: 14px 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Slider Container */
.umu-videos-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000000;
}

/* Main Slider Wrapper */
.umu-videos-slider-main {
    position: relative;
    width: 100%;
}

/* Slider Track */
.umu-videos-slider {
    display: flex;
    align-items: center;
    gap: 0;
    transition: none;
    height: auto;
    aspect-ratio: 16/9;
    width: 100%;
    position: relative;
}

/* Individual Slide */
.umu-video-slide {
    flex: 0 0 100%;
    display: none;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.umu-video-slide.active {
    display: flex;
    animation: slideInRight 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideFromInside {
    from {
        opacity: 0;
        transform: scaleX(0);
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

.umu-video-slide.active .umu-video-thumbnail {
    display: flex;
}

.umu-video-slide.active .umu-video-iframe-wrapper {
    display: flex !important;
}

/* Video Thumbnail */
.umu-video-thumbnail {
    width: 100%;
    height: 100%;
    position: relative;
    display: none;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
}

.umu-video-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.umu-play-icon {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 2;
}

.umu-video-slide:hover .umu-play-icon {
    background: #ff0000;
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.6);
}

/* Video Iframe Wrapper */
.umu-video-iframe-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    background: #000;
    z-index: 10;
    display: none;
    align-items: center;
    justify-content: center;
}

.umu-video-slide.active .umu-video-iframe-wrapper {
    display: flex !important;
}

.umu-video-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
}

/* Close Button */
.umu-close-video {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 0, 0, 0.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Navigation Arrows */
.umu-slider-nav {
    display: none;
}

/* Thumbnails Sidebar */
.umu-videos-sidebar {
    display: flex;
    gap: 12px;
    padding: 20px;
    background: #000000;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    align-items: center;
}

.umu-videos-sidebar::-webkit-scrollbar {
    height: 4px;
}

.umu-videos-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.umu-videos-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.umu-videos-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.umu-video-thumbnail-sidebar {
    flex: 0 0 auto;
    width: 100px;
    height: 70px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    background: #222;
    animation: slideFromInside 0.6s ease-out forwards;
}

.umu-video-thumbnail-sidebar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.umu-video-thumbnail-sidebar:hover {
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.umu-video-thumbnail-sidebar.active {
    border-color: #ff0000;
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.6);
}

.umu-video-thumbnail-sidebar:nth-child(2) {
    animation-delay: 0.1s;
}

.umu-video-thumbnail-sidebar:nth-child(3) {
    animation-delay: 0.2s;
}

.umu-video-thumbnail-sidebar:nth-child(4) {
    animation-delay: 0.3s;
}

.umu-video-thumbnail-sidebar:nth-child(5) {
    animation-delay: 0.4s;
}

/* Dots Pagination */
.umu-slider-pagination {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 32px;
}

.umu-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.5s ease;
    padding: 0;
}

.umu-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

.umu-dot.active {
    width: 48px;
    height: 12px;
    border-radius: 32px;
    background: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */

@media (max-width: 900px) {
    .umu-videos-slider {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 600px) {
    .umu-videos-slider-wrapper {
        margin: 30px auto;
    }

    .umu-videos-title {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }

    .umu-videos-slider {
        aspect-ratio: 16/9;
    }

    .umu-play-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .umu-close-video {
        width: 40px;
        height: 40px;
        font-size: 24px;
        top: 10px;
        right: 10px;
    }

    .umu-slider-pagination {
        bottom: 20px;
        gap: 8px;
        padding: 8px 16px;
    }

    .umu-videos-sidebar {
        padding: 12px;
        gap: 8px;
        overflow-x: auto;
    }

    .umu-video-thumbnail-sidebar {
        width: 80px;
        height: 56px;
    }
}
