/* Flix Landing Page Slider Frontend Styles */

.flix-landing-slider {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
    background: #000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    cursor: grab;
    border-radius: inherit;
}

.flix-landing-slider:active {
    cursor: grabbing;
}

/* Slides Container */
.slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual Slide */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

/* Slide Image */
.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: block;
    max-width: 100%;
    max-height: 100%;
}

.slide-image.loaded {
    opacity: 1;
}

.slide-image.loading {
    opacity: 1;
    background: linear-gradient(90deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    background-size: 200% 100%;
    animation: flps-shimmer 1.5s infinite;
}

@keyframes flps-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Center Play Button (Mobile) */
.center-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #E50914;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 3px solid #E50914;
    cursor: pointer;
    z-index: 5;
    text-decoration: none;
}

.center-play-button svg {
    width: 40px;
    height: 40px;
    margin-left: 4px;
}

.center-play-button:hover {
    background: rgba(229, 9, 20, 0.2);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 6px 30px rgba(229, 9, 20, 0.4);
}

/* Overlay Gradient */
.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 80px 60px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    z-index: 2;
}

.slide-content {
    max-width: 600px;
}

.slide-category {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.slide-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9);
    letter-spacing: -1px;
    color: #fff;
}

.slide-description {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    color: rgba(255, 255, 255, 0.95);
}

/* Buttons */
.slide-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: inherit;
}

.btn svg {
    width: 24px;
    height: 24px;
}

.btn-play {
    background: #fff;
    color: #000;
}

.btn-play:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: scale(1.05);
}

.btn-info {
    background: rgba(109, 109, 110, 0.7);
    color: #fff;
}

.btn-info:hover {
    background: rgba(109, 109, 110, 0.5);
    transform: scale(1.05);
}

/* Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: 30px;
    display: none;
}

.slider-nav.next {
    right: 30px;
}

.slider-nav svg {
    width: 32px;
    height: 32px;
}

/* Dots Indicators */
.slider-dots {
    position: absolute;
    bottom: 40px;
    right: 60px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

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

.dot.active {
    background: #fff;
    width: 32px;
    border-radius: 5px;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Progress Bar */
.progress-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 15;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: #E50914;
    transition: width 0.1s linear;
}

/* Thumbnail Navigation */
.thumbnail-nav {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 15;
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.thumbnail-nav::-webkit-scrollbar {
    width: 6px;
}

.thumbnail-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.thumbnail-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.thumbnail-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.thumbnail-item {
    width: 120px;
    min-width: 120px;
    height: 68px;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
    position: relative;
}

.thumbnail-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    transition: opacity 0.3s ease;
}

.thumbnail-item:hover {
    opacity: 1;
    border-color: #fff;
    transform: scale(1.05);
}

.thumbnail-item:hover::before {
    opacity: 0;
}

.thumbnail-item.active {
    opacity: 1;
    border-color: #E50914;
    transform: scale(1.1);
}

.thumbnail-item.active::before {
    opacity: 0;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile Text Container */
.mobile-text-container {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .flix-landing-slider {
        height: auto;
        min-height: auto;
        overflow: visible;
    }

    .slides-container {
        height: 380px;
        position: relative;
    }

    .slide {
        position: absolute;
        height: 211px;
        width: 100%;
        top: 0;
        left: 0;
    }

    .slide-image {
        object-fit: contain !important;
        object-position: center center;
        width: 100%;
        height: 211px;
        display: block;
        background: #000;
    }

    .center-play-button {
        display: flex !important;
    }

    .slide-description {
        display: none !important;
    }

    .slide-buttons {
        display: flex !important;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        padding: 15px 20px;
    }

    .btn-play,
    .btn-info {
        width: 100%;
        justify-content: center;
    }

    .slider-nav {
        display: none !important;
    }

    .slider-dots {
        position: absolute;
        right: 50%;
        bottom: 15px;
        transform: translateX(50%);
        justify-content: center;
        padding: 0;
        background: transparent;
        z-index: 20;
    }

    .slide-overlay {
        position: relative;
        padding: 15px 20px;
        background: #000;
        z-index: 5;
        top: 211px;
    }

    .slide-overlay .slide-title {
        display: none !important;
    }

    .slide-overlay .slide-category {
        display: none !important;
    }

    .slide-content {
        max-width: 100% !important;
    }

    .slide:not(.active) .slide-overlay {
        display: none !important;
    }

    .slide.active .slide-overlay {
        display: block !important;
    }

    .thumbnail-nav {
        display: none;
    }

    .progress-bar-container {
        position: relative;
        order: 4;
    }

    .mobile-text-container {
        display: block;
        background: #000;
        padding: 15px 20px;
        order: 2;
    }
}
