/* Sorti de resources/views/pages/movies/list.blade.php le 10/11/2026 (gabarit allégé) : copie exacte du bloc <style>, servie par Apache
   et gardée par le navigateur. Le modifier ici, plus dans la vue. */
            /* Barre de progression de visionnage (bas de la vignette) */
            .video-img { font-size: 0; }
            .video-img .lazy-container { position: relative; display: block; }
            .video-img .lazy-img { display: block; }
            .video-img .label-badge-mini,
            .video-img .video-item-content { font-size: 15px; }
            .px-progress {
                position: absolute;
                bottom: 0;
                left: 0;
                right: 0;
                height: 6px;
                background: var(--progress-bg-color, var(--primary-text-color));
                z-index: 4;
            }
            .px-progress__fill {
                height: 100%;
                border-radius: 0 2px 2px 0;
                background: var(--progress-fill-color, var(--primary-color));
            }
            .px-progress--done .px-progress__fill { background: var(--secondary-color); }

            /* ========================================
        RECHERCHE INTELLIGENTE - DESIGN ÉPURÉ
        ======================================== */

            #intelligent-search-container {
                background: transparent;
                padding: 0;
                margin-bottom: 20px;
            }

            .intelligent-search-box {
                max-width: 900px;
                margin: 0 auto;
            }

            .search-input-wrapper {
                position: relative;
                display: flex;
                align-items: center;
                background: white;
                border: 1px solid #ddd;
                border-radius: 20px;
                transition: all 0.2s ease;
                box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
            }

            .search-input-wrapper:focus-within {
                border-color: #4a90e2;
                box-shadow: 0 2px 8px rgba(74, 144, 226, 0.15);
            }

            .search-icon {
                position: absolute;
                left: 14px;
                color: #999;
                font-size: 16px;
                pointer-events: none;
                z-index: 1;
            }

            .intelligent-search-input {
                flex: 1;
                padding: 12px 140px 12px 45px;
                font-size: 15px;
                border: none;
                background: transparent;
                outline: none;
            }

            .intelligent-search-input::placeholder {
                color: #999;
            }

            .clear-search-btn {
                position: absolute;
                right: 120px;
                background: transparent;
                border: none;
                color: #999;
                cursor: pointer;
                padding: 8px 10px;
                font-size: 16px;
                transition: color 0.2s;
                border-radius: 3px;
            }

            .clear-search-btn:hover {
                color: #333;
                background: #f5f5f5;
            }

            .search-submit-btn {
                position: absolute;
                right: 60px;
                background: transparent;
                border: none;
                border-left: 1px solid #eee;
                color: #ffffff;
                background-color: var(--primary-color);
                border-radius: 20px;
                cursor: pointer;
                padding: 10px 15px;
                font-size: 16px;
                transition: all 0.2s;
            }



            .toggle-filters-btn {
                position: absolute;
                right: 8px;
                /* background: transparent; */
                border: none;
                border-radius: 20px;
                color: var(--primary-text-color);
                cursor: pointer;
                padding: 10px 15px;
                font-size: 16px;
                transition: all 0.2s;
            }

            .toggle-filters-btn:hover {
                color: #333;
                background: #f8f9fa;
            }

            /* FILTRES EXTRAITS */
            .extracted-filters-preview {
                margin-top: 12px;
                padding: 10px 15px;
                background: #f8f9fa;
                border-radius: 4px;
                animation: slideDown 0.2s ease;
                max-width: 900px;
                margin-left: auto;
                margin-right: auto;
            }

            @keyframes slideDown {
                from {
                    opacity: 0;
                    transform: translateY(-5px);
                }

                to {
                    opacity: 1;
                    transform: translateY(0);
                }
            }

            .extracted-filters-preview small {
                color: #666;
                font-size: 12px;
                display: block;
                margin-bottom: 8px;
                font-weight: 500;
            }

            #extractedFiltersTags {
                display: flex;
                flex-wrap: wrap;
                gap: 6px;
            }

            .filter-tag {
                display: inline-flex;
                align-items: center;
                padding: 4px 10px;
                background: white;
                color: #333;
                border: 1px solid #ddd;
                border-radius: 16px;
                font-size: 12px;
                font-weight: 400;
            }

            .filter-tag strong {
                font-weight: 600;
                margin-right: 4px;
            }

            /* ÉTAT DE CHARGEMENT */
            .search-loading .search-submit-btn {
                opacity: 0.6;
                pointer-events: none;
            }

            .search-loading .search-submit-btn::after {
                content: '';
                display: inline-block;
                width: 10px;
                height: 10px;
                margin-left: 6px;
                border: 2px solid var(--primary-color);
                border-top-color: transparent;
                border-radius: 50%;
                animation: spin 0.6s linear infinite;
            }

            @keyframes spin {
                to {
                    transform: rotate(360deg);
                }
            }

            /* BOUTON RETOUR RECHERCHE SIMPLE */
            /* #backToSimpleSearchBtn {
            padding: 10px 20px;
            font-size: 14px;
            border-radius: 4px;
            border: 1px solid #ddd;
            color: #666;
            font-weight: 500;
            transition: all 0.2s ease;
            background: white;
        } */

            /* #backToSimpleSearchBtn:hover {
            background: #f8f9fa;
            border-color: var(--primary-color);
            color: var(--primary-color);
        } */


            /* ========================================
           BOUTON RETOUR RECHERCHE SIMPLE - INLINE
           ======================================== */

            /* BOUTON RETOUR RECHERCHE SIMPLE */
            .link-back-simple {
                display: inline-flex;
                align-items: center;
                gap: 10px;
                padding: 10px 20px;
                height: 38px;
                font-size: 14px;
                font-weight: 500;
                color: var(--primary-text-color);
                background: rgba(255, 255, 255, 0.1);
                border: 1px solid rgba(255, 255, 255, 0.2);
                border-radius: 20px;
                text-decoration: none;
                transition: all 0.3s ease;
                backdrop-filter: blur(10px);
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
                white-space: nowrap;
            }

            .link-back-simple:hover {
                color: white;
                background: var(--primary-color);
                border-color: var(--primary-color);
                text-decoration: none;
                transform: translateY(-2px);
            }



            /* Alignement de l'input-group */
            /* .input-group {
            display: flex;
            align-items: center;
            flex-wrap: nowrap;
        } */

            /* RESPONSIVE */
            @media (max-width: 768px) {
                .link-back-simple {
                    margin-left: 0 !important;
                    margin-top: 10px;
                    padding: 8px 16px;
                    font-size: 13px;
                    height: auto;
                }

                .input-group {
                    flex-wrap: wrap;
                }
            }

            /* RESPONSIVE */
            @media (max-width: 768px) {
                .link-back-simple {
                    padding: 10px 20px;
                    font-size: 13px;
                }
            }


            /* RESPONSIVE */
            @media (max-width: 768px) {
                .intelligent-search-input {
                    padding: 12px 120px 12px 40px;
                    font-size: 14px;
                }

                .search-icon {
                    left: 12px;
                    font-size: 14px;
                }

                .clear-search-btn {
                    right: 80px;
                    padding: 6px 8px;
                }

                .search-submit-btn,
                .toggle-filters-btn {
                    padding: 8px 12px;
                    font-size: 14px;
                }

                .search-submit-btn {
                    right: 42px;
                }
            }

            /* ========================================
                    ANCIEN CODE CSS
                    ======================================== */
            #search_options {
                max-height: 0;
                opacity: 0;
                overflow: hidden;
                transition: all 1s ease;
            }

            #search_options.show {
                max-height: 300px;
                opacity: 1;
            }

            .filter-control-select {
                display: inline-block !important;
                background: #f6e0e3;
                border-radius: 10px;
                border: none;
                padding: 5px;
                font-weight: bold;
            }

            .nice-select.filter-control-select {
                display: none !important;
            }








            /* ========================================
           SKELETON LOADER STYLE YOUTUBE
           ======================================== */

            .skeleton-container {
                animation: fadeIn 0.3s ease;
            }

            @keyframes fadeIn {
                from {
                    opacity: 0;
                }

                to {
                    opacity: 1;
                }
            }

            /* Carte skeleton (même structure que .single-video) */
            .skeleton-video-card {
                position: relative;
                overflow: hidden;
                background: transparent;
                margin-bottom: 20px;
                /* Espacement entre les lignes */
            }

            .skeleton-video-card .video-img {
                position: relative;
                border-radius: 8px;
                overflow: hidden;
                background: #f0f0f0;
            }

            /* Image skeleton (aspect ratio 16:9 comme vos vraies images) */
            .skeleton-img {
                width: 100%;
                padding-bottom: 56.25%;
                /* 16:9 ratio */
                background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
                background-size: 200% 100%;
                animation: shimmer 1.5s infinite;
                border-radius: 8px 8px 0 0;
            }

            /* Titre skeleton (dans .video-item-content) */
            .skeleton-video-card .video-item-content {
                display: block;
                padding: 8px;
                background: #f9f9f9;
                border-radius: 0 0 8px 8px;
            }

            .skeleton-title {
                height: 14px;
                background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
                background-size: 200% 100%;
                animation: shimmer 1.5s infinite;
                border-radius: 4px;
                margin-bottom: 6px;
                width: 90%;
            }

            .skeleton-title-short {
                width: 60%;
                height: 12px;
                margin-bottom: 0;
            }

            /* Animation shimmer */
            @keyframes shimmer {
                0% {
                    background-position: 200% 0;
                }

                100% {
                    background-position: -200% 0;
                }
            }

            /* Effet blur sur les résultats existants */
            .results-loading {
                opacity: 0.5;
                pointer-events: none;
                filter: blur(4px);
                transition: all 0.3s ease;
            }

            /* Badge "Chargement..." */
            .loading-overlay {
                position: fixed;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                background: rgba(0, 0, 0, 0.85);
                color: white;
                padding: 15px 30px;
                border-radius: 25px;
                font-size: 14px;
                font-weight: 500;
                z-index: 9999;
                display: flex;
                align-items: center;
                gap: 12px;
                box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
                animation: slideDown 0.3s ease;
            }

            @keyframes slideDown {
                from {
                    opacity: 0;
                    transform: translate(-50%, -60%);
                }

                to {
                    opacity: 1;
                    transform: translate(-50%, -50%);
                }
            }

            .loading-spinner {
                width: 18px;
                height: 18px;
                border: 2px solid rgba(255, 255, 255, 0.3);
                border-top-color: white;
                border-radius: 50%;
                animation: spin 0.8s linear infinite;
            }

            @keyframes spin {
                to {
                    transform: rotate(360deg);
                }
            }

            /* Responsive - adaptation des colonnes */
            @media (max-width: 1200px) {
                /* col-lg-2 devient col-md-3 */
            }

            @media (max-width: 992px) {
                /* col-md-3 devient col-sm-4 */
            }

            @media (max-width: 768px) {

                /* col-sm-4 devient col-xs-12 ou col-6 */
                .skeleton-title {
                    height: 12px;
                }

                .skeleton-title-short {
                    height: 10px;
                }
            }
        
