/* =====================================================
   NETFLIX-STYLE HEADER & FOOTER
   ===================================================== */

/* Variables Netflix */
:root {
    --netflix-red: #e50914;
    --netflix-red-hover: #f40612;
    --netflix-black: #141414;
    --netflix-dark: #0a0a0a;
    --netflix-gray: #808080;
    --netflix-light-gray: #b3b3b3;
    --netflix-white: #ffffff;
}

/* =====================================================
   HEADER NETFLIX STYLE
   ===================================================== */

header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transition: all 0.3s ease;
}

header .main-menu {
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, transparent 100%) !important;
    transition: background 0.3s ease;
}

header.scrolled .main-menu,
header:hover .main-menu {
    background: rgba(20, 20, 20, 0.98) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

header .header-section {
    padding: 10px 4% !important;
    background: transparent !important;
}

/* Logo */
header .logo img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

header .logo:hover img {
    transform: scale(1.05);
}

/* Navigation Menu */
header .vfx-item-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

header .vfx-item-nav > li > a {
    color: var(--netflix-light-gray) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 8px 15px !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

header .vfx-item-nav > li > a:hover,
header .vfx-item-nav > li > a.active {
    color: var(--netflix-white) !important;
    background: rgba(255, 255, 255, 0.1);
}

header .vfx-item-nav > li > a.active {
    color: var(--netflix-red) !important;
    font-weight: 600 !important;
}

/* Dropdown Menu */
header .mega-list {
    background: rgba(20, 20, 20, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6) !important;
    padding: 10px 0 !important;
    min-width: 200px !important;
    backdrop-filter: blur(10px);
    margin-top: 10px !important;
}

header .mega-list li a {
    color: var(--netflix-light-gray) !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
    display: block;
}

header .mega-list li a:hover {
    color: var(--netflix-white) !important;
    background: rgba(229, 9, 20, 0.2) !important;
    padding-left: 25px !important;
}

/* Search Button */
header .search-item-block .btn-default {
    background: transparent !important;
    border: none !important;
    color: var(--netflix-white) !important;
    font-size: 20px !important;
    padding: 10px !important;
    transition: all 0.3s ease !important;
}

header .search-item-block .btn-default:hover {
    color: var(--netflix-red) !important;
    transform: scale(1.1);
}

/* Subscribe Button */
header .subscribe-btn-item a {
    background: var(--netflix-red) !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    transition: all 0.3s ease !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

header .subscribe-btn-item a:hover {
    background: var(--netflix-red-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(229, 9, 20, 0.4);
}

header .subscribe-btn-item img {
    height: 20px !important;
    width: auto !important;
    filter: brightness(0) invert(1);
}

/* User Menu */
header .user-menu {
    position: relative;
}

header .user-name {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--netflix-white) !important;
    font-weight: 500;
}

header .user-name:hover {
    background: rgba(255, 255, 255, 0.1);
}

header .user-name img {
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    object-fit: cover;
    border: 2px solid var(--netflix-red);
}

header .user-name i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

header .user-menu:hover .user-name i {
    transform: rotate(180deg);
}

header .content-user {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(20, 20, 20, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6) !important;
    min-width: 200px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

header .user-menu:hover .content-user {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

header .content-user li {
    list-style: none;
}

header .content-user li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--netflix-light-gray) !important;
    font-size: 14px;
    transition: all 0.2s ease;
}

header .content-user li a:hover {
    color: var(--netflix-white) !important;
    background: rgba(229, 9, 20, 0.2);
}

header .content-user li a i {
    width: 18px;
    text-align: center;
    color: var(--netflix-red);
}

/* Login Button */
header .signup-btn-item a {
    display: flex !important;
    align-items: center;
    gap: 8px;
    background: var(--netflix-red) !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    color: var(--netflix-white) !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

header .signup-btn-item a:hover {
    background: var(--netflix-red-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(229, 9, 20, 0.4);
}

header .signup-btn-item img {
    height: 18px !important;
    width: auto !important;
    filter: brightness(0) invert(1);
}

/* Right Area */
header .right-sub-item-area {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-end;
}

/* Language Dropdown Netflix Style */
.language-dropdown .language-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px !important;
    padding: 8px 14px !important;
    color: var(--netflix-white) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.language-dropdown .language-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.language-dropdown-menu {
    background: rgba(20, 20, 20, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6) !important;
}

.language-option.active {
    background: rgba(229, 9, 20, 0.2) !important;
    color: var(--netflix-red) !important;
}

.language-option:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* =====================================================
   FOOTER NETFLIX STYLE
   ===================================================== */

footer {
    background: var(--netflix-black) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(229, 9, 20, 0.5), transparent);
}

footer .footer-area {
    background: transparent !important;
    padding: 60px 4% 40px !important;
}

footer .footer-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

/* Footer Links */
footer .footer-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
    margin-bottom: 25px;
    padding: 0;
    list-style: none;
}

footer .footer-links ul li a {
    color: var(--netflix-gray) !important;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
}

footer .footer-links ul li a:hover {
    color: var(--netflix-white) !important;
    text-decoration: underline;
}

/* Copyright */
footer .copyright-text p {
    color: var(--netflix-gray) !important;
    font-size: 13px;
    margin: 0;
}

/* Footer Headings */
footer .footer-heading {
    color: var(--netflix-white) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-bottom: 20px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

footer .footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--netflix-red);
    border-radius: 2px;
}

/* Social Links */
footer .social-links ul {
    display: flex;
    gap: 15px;
    padding: 0;
    margin: 0;
    list-style: none;
}

footer .social-links ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--netflix-light-gray) !important;
    font-size: 20px;
    transition: all 0.3s ease;
}

footer .social-links ul li a:hover {
    background: var(--netflix-red) !important;
    border-color: var(--netflix-red);
    color: var(--netflix-white) !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.4);
}

/* App Download Links */
footer .download-app-link-item {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

footer .download-app-link-item a {
    display: inline-block;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

footer .download-app-link-item a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

footer .download-app-link-item img {
    height: 45px;
    width: auto;
}

/* Scroll to Top */
footer .scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

footer .scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

footer .scroll-icon {
    width: 50px;
    height: 50px;
    background: var(--netflix-red) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--netflix-white);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(229, 9, 20, 0.4);
}

footer .scroll-icon:hover {
    background: var(--netflix-red-hover) !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.6);
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (max-width: 991px) {
    header .header-section {
        padding: 10px 15px !important;
    }
    
    header .vfx-item-nav > li > a {
        padding: 10px !important;
        font-size: 13px !important;
    }
    
    header .right-sub-item-area {
        gap: 10px;
    }
    
    footer .footer-area {
        padding: 40px 20px 30px !important;
    }
    
    footer .footer-links ul {
        gap: 10px 20px;
    }
}

@media (max-width: 767px) {
    header .logo img {
        height: 30px;
    }
    
    /* Menu mobile hamburger */
    header .header-menu,
    header #menu,
    header .collapse,
    header .navbar-collapse {
        background: #141414 !important;
        background-color: #141414 !important;
        padding: 20px !important;
        border-radius: 0 0 10px 10px !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-top: none !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    }
    
    header .main-nav,
    header .leftnav {
        background: transparent !important;
    }
    
    header .vfx-item-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: transparent !important;
    }
    
    header .vfx-item-nav > li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background: transparent !important;
    }
    
    header .vfx-item-nav > li:last-child {
        border-bottom: none;
    }
    
    header .vfx-item-nav > li > a {
        padding: 15px 10px !important;
        display: block;
        color: #ffffff !important;
        background: transparent !important;
    }
    
    header .vfx-item-nav > li > a:hover,
    header .vfx-item-nav > li > a.active {
        color: #e50914 !important;
        background: rgba(229, 9, 20, 0.1) !important;
    }
    
    /* Sous-menu mobile */
    header .mega-list,
    header .dm-align-2,
    header ul.mega-list {
        position: static !important;
        box-shadow: none !important;
        background: #0a0a0a !important;
        background-color: #0a0a0a !important;
        margin-top: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        padding: 0 !important;
        display: none;
    }
    
    header .vfx-item-nav > li:hover .mega-list,
    header .vfx-item-nav > li.open .mega-list {
        display: block;
    }
    
    header .mega-list li {
        background: transparent !important;
    }
    
    header .mega-list li a {
        color: #b3b3b3 !important;
        padding: 12px 25px !important;
        font-size: 13px !important;
        background: transparent !important;
        border-left: 3px solid transparent;
    }
    
    header .mega-list li a:hover {
        color: #ffffff !important;
        background: rgba(229, 9, 20, 0.15) !important;
        border-left-color: #e50914 !important;
        padding-left: 30px !important;
    }
    
    /* Icône hamburger */
    header .menu-icon a,
    header .navbar-toggle {
        color: #ffffff !important;
        font-size: 24px !important;
        padding: 10px !important;
    }
    
    header .menu-icon a:hover,
    header .navbar-toggle:hover {
        color: #e50914 !important;
    }
    
    /* Arrow dropdown mobile */
    header .arrow {
        display: inline-block;
        margin-left: 8px;
        border: solid #b3b3b3;
        border-width: 0 2px 2px 0;
        padding: 3px;
        transform: rotate(45deg);
        transition: transform 0.3s ease;
    }
    
    header .vfx-item-nav > li:hover .arrow {
        transform: rotate(-135deg);
        border-color: #e50914;
    }
    
    /* Right area mobile */
    header .right-sub-item-area {
        gap: 8px;
    }
    
    header .subscribe-btn-item,
    header .signup-btn-item {
        display: none;
    }
    
    header .language-btn .lang-text {
        display: none;
    }
    
    header .user-name span {
        font-size: 12px;
    }
    
    footer .row {
        gap: 30px;
    }
    
    footer .single-footer {
        margin-bottom: 0;
    }
}

/* Body padding for fixed header */
body {
    padding-top: 70px;
}

/* Pages content adjustment */
.netflix-movies-page,
.netflix-shows-page,
.netflix-sports-page,
.netflix-livetv-page,
.netflix-home {
    margin-top: -70px;
    padding-top: 0;
}

/* =====================================================
   MOBILE MENU OVERRIDE - FORCE DARK BACKGROUND
   Ces styles ont une spécificité plus élevée pour override megamenu.css
   ===================================================== */

@media only screen and (max-width: 1000px) {
    /* Force dark background on mobile menu container */
    header .header-section #menu,
    header .header-section .collapse,
    header .header-section .header-menu,
    header .header-section .collapse.show,
    header .header-section .collapse.in,
    header .header-section .navbar-collapse,
    header .header-section .navbar-collapse.show,
    header .header-section .navbar-collapse.in,
    .header-section #menu,
    .header-section .collapse,
    .header-section .header-menu,
    #menu,
    #menu.collapse,
    #menu.collapse.show,
    .collapse.header-menu,
    .header-menu {
        background: #141414 !important;
        background-color: #141414 !important;
    }
    
    /* Force dark on nav container */
    header .main-nav,
    header .main-nav.leftnav,
    header .leftnav,
    .header-section .main-nav,
    .header-section .main-nav.leftnav {
        background: transparent !important;
        background-color: transparent !important;
    }
    
    /* Force dark on menu items */
    header .vfx-item-nav,
    header .nav.vfx-item-nav,
    header ul.vfx-item-nav,
    .header-section .vfx-item-nav,
    .header-section ul.vfx-item-nav {
        background: transparent !important;
        background-color: transparent !important;
    }
    
    /* Force dark on list items */
    header .vfx-item-nav li,
    header .vfx-item-nav > li,
    .header-section .vfx-item-nav li,
    .header-section ul li {
        background: transparent !important;
        background-color: transparent !important;
    }
    
    /* Force white text on links */
    header .vfx-item-nav li a,
    header .vfx-item-nav > li > a,
    .header-section .vfx-item-nav li a,
    .header-section ul li a {
        color: #ffffff !important;
        background: transparent !important;
        background-color: transparent !important;
    }
    
    /* Force dark on dropdown submenu */
    header .mega-list,
    header ul.mega-list,
    header .dm-align-2,
    header .dm-align-2.mega-list,
    header .vfx-item-nav li ul,
    header .vfx-item-nav > li > ul,
    .header-section ul li ul,
    .header-section .mega-list,
    .header-section ul.mega-list {
        background: #0a0a0a !important;
        background-color: #0a0a0a !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    /* Force lighter gray text on submenu items */
    header .mega-list li a,
    header ul.mega-list li a,
    header .dm-align-2 li a,
    .header-section ul li ul li a,
    .header-section .mega-list li a {
        color: #b3b3b3 !important;
        background: transparent !important;
        background-color: transparent !important;
    }
    
    /* Hover state for submenu items */
    header .mega-list li a:hover,
    header ul.mega-list li a:hover,
    .header-section ul li ul li a:hover,
    .header-section .mega-list li a:hover {
        color: #ffffff !important;
        background: rgba(229, 9, 20, 0.2) !important;
        background-color: rgba(229, 9, 20, 0.2) !important;
    }
    
    /* Active state */
    header .vfx-item-nav li a.active,
    header .vfx-item-nav > li > a.active,
    .header-section .vfx-item-nav li a.active {
        color: #e50914 !important;
    }
}

/* =====================================================
   SEARCH BUTTON IN HEADER - NETFLIX STYLE
   ===================================================== */

/* Container du bouton recherche */
.search-item-block {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.search-item-block .navbar-form {
    margin: 0 !important;
    padding: 0 !important;
}

/* Bouton de recherche dans le header */
.search-item-block .btn.btn-default.open,
.search-item-block a.btn.btn-default,
.search-item-block .btn-default,
a[href="#popup1"].btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 45px !important;
    height: 45px !important;
    background: transparent !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    margin: 0 !important;
}

.search-item-block .btn.btn-default.open:hover,
.search-item-block a.btn.btn-default:hover,
a[href="#popup1"].btn:hover {
    background: #e50914 !important;
    border-color: #e50914 !important;
    transform: scale(1.1) !important;
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.5) !important;
}

.search-item-block .btn i,
.search-item-block a i,
a[href="#popup1"] i {
    font-size: 18px !important;
    color: #ffffff !important;
    margin: 0 !important;
    line-height: 1 !important;
}

/* =====================================================
   SEARCH POPUP / MODAL - NETFLIX STYLE
   ===================================================== */

/* Overlay de recherche - fond complet */
.popup-view.popup-overlay,
#popup1.popup-view,
#popup1.popup-overlay,
.popup-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.97) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    z-index: 999999 !important;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease !important;
}

.popup-view.popup-overlay:target,
#popup1:target,
.popup-overlay:target {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding-top: 80px !important;
}

/* Container de recherche centré */
.popup-view .search,
#popup1 .search,
.popup-overlay .search {
    position: relative !important;
    width: 90% !important;
    max-width: 700px !important;
    padding: 40px !important;
    background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%) !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8) !important;
    animation: modalSlideIn 0.4s ease forwards !important;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Titre "Rechercher" */
.popup-view .search .title,
#popup1 .search .title,
.search-container .title,
.popup-overlay .search .title {
    display: block !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 30px !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 3px !important;
    position: relative !important;
    padding-bottom: 15px !important;
}

.popup-view .search .title::after,
#popup1 .search .title::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 60px !important;
    height: 3px !important;
    background: #e50914 !important;
    border-radius: 2px !important;
}

/* Container input */
.popup-view .search-container,
#popup1 .search-container,
.search-container.has-results,
.popup-overlay .search-container {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Zone de saisie */
.popup-view .search-input,
#popup1 .search-input,
.popup-overlay .search-input {
    position: relative !important;
    margin-bottom: 25px !important;
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
}

/* Input de recherche */
.popup-view .search-input input,
#popup1 .search-input input,
.search-container-input,
input#search_box,
.popup-overlay .search-input input {
    flex: 1 !important;
    width: 100% !important;
    padding: 18px 25px !important;
    font-size: 1.1rem !important;
    background: #1a1a1a !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    outline: none !important;
    transition: all 0.3s ease !important;
    font-family: inherit !important;
}

.popup-view .search-input input:focus,
#popup1 .search-input input:focus,
input#search_box:focus,
.popup-overlay .search-input input:focus {
    border-color: #e50914 !important;
    background: #222222 !important;
    box-shadow: 0 0 30px rgba(229, 9, 20, 0.3), inset 0 0 0 1px rgba(229, 9, 20, 0.3) !important;
}

.popup-view .search-input input::placeholder,
input#search_box::placeholder,
.popup-overlay .search-input input::placeholder {
    color: #888888 !important;
    font-weight: 400 !important;
}

/* Bouton de recherche dans le popup */
.search-submit-btn,
.popup-view .search-submit-btn,
#popup1 .search-submit-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    background: #e50914 !important;
    border: none !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
}

.search-submit-btn:hover,
.popup-view .search-submit-btn:hover {
    background: #f40612 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 0 25px rgba(229, 9, 20, 0.5) !important;
}

.search-submit-btn i,
.popup-view .search-submit-btn i {
    font-size: 22px !important;
    color: #ffffff !important;
}

.search-submit-btn.loading {
    pointer-events: none !important;
    opacity: 0.7 !important;
}

.search-submit-btn.loading i::before {
    content: "\f110" !important;
    animation: spin 1s linear infinite !important;
}

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

/* Bouton fermer X */
.popup-view .close,
#popup1 .close,
.popup-overlay .close,
a.close[href="#"] {
    position: fixed !important;
    top: 25px !important;
    right: 25px !important;
    width: 55px !important;
    height: 55px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    z-index: 1000001 !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.popup-view .close:hover,
#popup1 .close:hover,
.popup-overlay .close:hover,
a.close[href="#"]:hover {
    background: #e50914 !important;
    border-color: #e50914 !important;
    transform: rotate(90deg) scale(1.1) !important;
    box-shadow: 0 0 25px rgba(229, 9, 20, 0.5) !important;
}

.popup-view .close i,
#popup1 .close i,
.popup-overlay .close i,
a.close i {
    font-size: 26px !important;
    color: #ffffff !important;
    line-height: 1 !important;
}

/* Résultats de recherche */
.popup-view .search-results,
#popup1 .search-results,
#search_output,
.popup-overlay .search-results {
    max-height: 45vh !important;
    overflow-y: auto !important;
    padding: 15px 0 !important;
    margin-top: 10px !important;
}

/* Scrollbar custom pour résultats */
.popup-view .search-results::-webkit-scrollbar,
#search_output::-webkit-scrollbar,
.popup-overlay .search-results::-webkit-scrollbar {
    width: 6px !important;
}

.popup-view .search-results::-webkit-scrollbar-track,
#search_output::-webkit-scrollbar-track,
.popup-overlay .search-results::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 3px !important;
}

.popup-view .search-results::-webkit-scrollbar-thumb,
#search_output::-webkit-scrollbar-thumb,
.popup-overlay .search-results::-webkit-scrollbar-thumb {
    background: #e50914 !important;
    border-radius: 3px !important;
}

/* Items de résultat */
.popup-view .search-results .search-item,
#search_output .search-item,
#search_output a,
#search_output > div,
.popup-overlay .search-results a {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    padding: 12px 15px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 10px !important;
    margin-bottom: 10px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    color: #ffffff !important;
    border: 1px solid transparent !important;
}

.popup-view .search-results .search-item:hover,
#search_output .search-item:hover,
#search_output a:hover,
#search_output > div:hover,
.popup-overlay .search-results a:hover {
    background: rgba(229, 9, 20, 0.15) !important;
    border-color: rgba(229, 9, 20, 0.3) !important;
    transform: translateX(8px) !important;
}

/* Image du résultat */
#search_output img,
.popup-overlay .search-results img {
    width: 80px !important;
    height: 50px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    flex-shrink: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Texte du résultat */
#search_output .search-item-title,
#search_output span,
#search_output .title,
.popup-overlay .search-results span {
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: #ffffff !important;
}

/* Message aucun résultat */
#search_output .no-results,
.popup-overlay .no-results {
    text-align: center !important;
    color: #808080 !important;
    font-size: 1.1rem !important;
    padding: 40px 20px !important;
}

/* =====================================================
   RESPONSIVE - MOBILE SEARCH
   ===================================================== */
@media (max-width: 991px) {
    /* Bouton recherche header mobile */
    .search-item-block .btn.btn-default.open,
    .search-item-block a.btn.btn-default,
    a[href="#popup1"].btn {
        width: 40px !important;
        height: 40px !important;
    }
    
    .search-item-block .btn i,
    a[href="#popup1"] i {
        font-size: 16px !important;
    }
}

@media (max-width: 767px) {
    /* Modal search en mobile */
    .popup-view.popup-overlay:target,
    #popup1:target,
    .popup-overlay:target {
        padding-top: 60px !important;
        align-items: flex-start !important;
    }
    
    .popup-view .search,
    #popup1 .search,
    .popup-overlay .search {
        width: 95% !important;
        padding: 25px 20px !important;
        margin: 0 auto !important;
        border-radius: 12px !important;
    }
    
    .popup-view .search .title,
    #popup1 .search .title {
        font-size: 1.3rem !important;
        margin-bottom: 20px !important;
        letter-spacing: 2px !important;
        padding-bottom: 12px !important;
    }
    
    .popup-view .search-input input,
    input#search_box,
    .popup-overlay .search-input input {
        padding: 15px 18px !important;
        font-size: 1rem !important;
        border-radius: 10px !important;
    }
    
    /* Bouton recherche popup mobile */
    .search-submit-btn,
    .popup-view .search-submit-btn {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        border-radius: 10px !important;
    }
    
    .search-submit-btn i {
        font-size: 18px !important;
    }
    
    .popup-view .close,
    #popup1 .close,
    .popup-overlay .close {
        top: 12px !important;
        right: 12px !important;
        width: 45px !important;
        height: 45px !important;
    }
    
    .popup-view .close i,
    #popup1 .close i {
        font-size: 22px !important;
    }
    
    #search_output img {
        width: 65px !important;
        height: 40px !important;
    }
    
    .popup-view .search-results,
    #search_output {
        max-height: 55vh !important;
    }
    
    /* Bouton recherche header mobile */
    .search-item-block .btn.btn-default.open,
    a[href="#popup1"].btn {
        width: 38px !important;
        height: 38px !important;
    }
    
    .search-item-block .btn i {
        font-size: 15px !important;
    }
}

@media (max-width: 480px) {
    .popup-view.popup-overlay:target,
    #popup1:target {
        padding-top: 50px !important;
    }
    
    .popup-view .search,
    #popup1 .search {
        width: 96% !important;
        padding: 20px 15px !important;
    }
    
    .popup-view .search .title,
    #popup1 .search .title {
        font-size: 1.1rem !important;
        margin-bottom: 15px !important;
    }
    
    /* Bouton recherche popup petit mobile */
    .search-submit-btn,
    .popup-view .search-submit-btn {
        width: 45px !important;
        height: 45px !important;
        min-width: 45px !important;
    }
    
    .search-submit-btn i {
        font-size: 16px !important;
    }
    
    .popup-view .close,
    #popup1 .close {
        top: 10px !important;
        right: 10px !important;
        width: 40px !important;
        height: 40px !important;
    }
    
    .popup-view .close i {
        font-size: 20px !important;
    }
    
    #search_output img {
        width: 55px !important;
        height: 35px !important;
    }
    
    #search_output a,
    #search_output > div {
        padding: 10px 12px !important;
        gap: 12px !important;
    }
    
    #search_output span,
    #search_output .title {
        font-size: 0.9rem !important;
    }
}

/* =====================================================
   COLLECTIONS PAGE - NETFLIX STYLE
   ===================================================== */

/* Breadcrumb section */
.breadcrumb-section.bg-xs {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.95) 100%) !important;
    padding: 80px 0 40px !important;
    position: relative !important;
}

.breadcrumb-section.bg-xs::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.1) 0%, transparent 50%) !important;
    pointer-events: none !important;
}

.breadcrumb-section h2 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    margin-bottom: 15px !important;
    position: relative !important;
}

.breadcrumb-section h2::after {
    content: '' !important;
    display: block !important;
    width: 80px !important;
    height: 4px !important;
    background: #e50914 !important;
    margin-top: 15px !important;
    border-radius: 2px !important;
}

#breadcrumbs ul {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#breadcrumbs ul li {
    color: #999999 !important;
    font-size: 0.95rem !important;
}

#breadcrumbs ul li a {
    color: #e50914 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

#breadcrumbs ul li a:hover {
    color: #ffffff !important;
}

#breadcrumbs ul li:not(:last-child)::after {
    content: '/' !important;
    margin-left: 10px !important;
    color: #666666 !important;
}

/* Collections Grid */
.view-all-video-area.vfx-item-ptb {
    background: linear-gradient(to bottom, #0a0a0a 0%, #141414 100%) !important;
    padding: 50px 0 !important;
    min-height: 60vh !important;
}

.view-all-video-area .single-video {
    margin-bottom: 25px !important;
    transition: all 0.3s ease !important;
}

.view-all-video-area .single-video:hover {
    transform: translateY(-8px) !important;
}

.view-all-video-area .single-video .video-img {
    position: relative !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5) !important;
}

.view-all-video-area .single-video .video-img img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 2/3 !important;
    object-fit: cover !important;
    transition: transform 0.4s ease !important;
}

.view-all-video-area .single-video:hover .video-img img {
    transform: scale(1.05) !important;
}

.view-all-video-area .single-video .video-img::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 50% !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%) !important;
    pointer-events: none !important;
}

.view-all-video-area .single-video .video-item-content {
    position: absolute !important;
    bottom: 15px !important;
    left: 15px !important;
    right: 15px !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    z-index: 2 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
    line-height: 1.3 !important;
}

.view-all-video-area .single-video .vid-lab-premium {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 5 !important;
    background: linear-gradient(135deg, #e50914 0%, #b20710 100%) !important;
    padding: 5px 10px !important;
    border-radius: 4px !important;
}

.view-all-video-area .single-video .vid-lab-premium img {
    width: 20px !important;
    height: auto !important;
    filter: brightness(0) invert(1) !important;
}

/* Responsive Collections */
@media (max-width: 767px) {
    .breadcrumb-section.bg-xs {
        padding: 60px 15px 30px !important;
    }
    
    .breadcrumb-section h2 {
        font-size: 1.8rem !important;
    }
    
    .view-all-video-area.vfx-item-ptb {
        padding: 30px 0 !important;
    }
    
    .view-all-video-area .single-video .video-item-content {
        font-size: 0.85rem !important;
        bottom: 10px !important;
        left: 10px !important;
        right: 10px !important;
    }
}

@media (max-width: 480px) {
    .breadcrumb-section h2 {
        font-size: 1.5rem !important;
    }
    
    .breadcrumb-section h2::after {
        width: 60px !important;
        height: 3px !important;
    }
}
