:root {
    --bg-primary: #000000;
    --bg-secondary: #141414;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent-bright: #e50914;
    --accent-gold: #ffd700;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Work Sans', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* NAVIGATION - TRANSPARENTE */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    gap: 20px;
    transition: all 0.4s ease;
    background: transparent !important;
    backdrop-filter: none !important;
}

.navbar.scrolled {
    background: transparent !important;
    backdrop-filter: none;
}

.logo {
    font-family: 'Bebas Neue', cursive;
    font-size: 38px;
    letter-spacing: 3px;
    color: var(--accent-bright);
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(229, 9, 20, 0.6);
    cursor: pointer;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-bright);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--accent-bright);
}

/* NAV RIGHT - GROUPE LES ÉLÉMENTS À DROITE */
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* CONTAINER DE RECHERCHE */
.search-container {
    position: relative;
}

/* BARRE DE RECHERCHE STYLE MOVIX */
.search-wrapper {
    position: relative;
}

.search-input {
    width: 240px;
    padding: 10px 40px 10px 40px;
    border-radius: 25px;
    border: solid 1px rgba(255, 255, 255, 0.2);
    background: #000 !important;
    color: white;
    transition: all .3s ease-in-out;
    outline: none;
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    fill: rgba(255, 255, 255, 0.7);
    width: 18px;
    height: 18px;
    transition: all 0.3s ease;
    pointer-events: none;
}

.search-clear {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-input:not(:placeholder-shown) + .search-icon + .search-clear {
    opacity: 1;
}

.search-clear:hover {
    color: white;
}

.search-input:focus {
    border-color: rgba(255, 255, 255, 0.4);
}

.search-input:focus + .search-icon {
    fill: var(--accent-bright);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* RÉSULTATS DE RECHERCHE */
.search-results {
    display: none;
    position: absolute;
    top: 100%;
    left: -25%;
    right: -25%;
    width: auto;
    background: rgba(20, 20, 20, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-height: 600px;
    overflow-y: auto;
    z-index: 1001;
}

.search-results.active {
    display: block;
}

.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: transparent;
}

.search-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

/* ITEM DE RÉSULTAT */
.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.search-result-poster {
    width: 50px;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    color: white;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.search-result-type {
    font-weight: 600;
    color: #888;
}

.search-result-rating {
    color: var(--accent-gold);
    font-weight: 600;
}

.search-result-year {
    color: var(--text-secondary);
}

.search-show-all {
    padding: 15px;
    text-align: center;
    color: var(--accent-bright);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.search-show-all:hover {
    color: #ff0a16;
    background-color: rgba(229, 9, 20, 0.05);
}

/* Connexion styles → voir fin du fichier */

/* BURGER MENU */
.burger {
    position: relative;
    width: 40px;
    height: 30px;
    background: transparent;
    cursor: pointer;
    display: none;
    flex-shrink: 0;
    z-index: 1001;
}

.burger input {
    display: none;
}

.burger span {
    display: block;
    position: absolute;
    height: 4px;
    width: 100%;
    background: white;
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.burger span:nth-of-type(1) {
    top: 0px;
    transform-origin: left center;
}

.burger span:nth-of-type(2) {
    top: 50%;
    transform: translateY(-50%);
    transform-origin: left center;
}

.burger span:nth-of-type(3) {
    top: 100%;
    transform-origin: left center;
    transform: translateY(-100%);
}

.burger input:checked ~ span:nth-of-type(1) {
    transform: rotate(45deg);
    top: 0px;
    left: 5px;
}

.burger input:checked ~ span:nth-of-type(2) {
    width: 0%;
    opacity: 0;
}

.burger input:checked ~ span:nth-of-type(3) {
    transform: rotate(-45deg);
    top: 28px;
    left: 5px;
}

/* MENU MOBILE */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.mobile-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.mobile-menu a:hover {
    background: rgba(229, 9, 20, 0.1);
    color: var(--accent-bright);
    padding-left: 30px;
}

.mobile-menu .btn-connexion {
    margin: 20px;
    text-align: center;
    display: block;
    background: var(--accent-bright);
    border-radius: 8px;
    padding: 15px;
    font-weight: 600;
    border: none;
}

.mobile-menu .btn-connexion:hover {
    background: #c40812;
    border-color: transparent;
}

/* RESPONSIVE NAV */
@media (min-width: 1801px) {
    .nav-links {
        display: flex !important;
    }
    .burger {
        display: none !important;
    }
}

@media (max-width: 1800px) {
    .navbar {
        padding: 15px 20px;
        gap: 15px;
    }
    .logo {
        font-size: 28px;
        flex-shrink: 0;
    }
    .nav-links {
        display: none !important;
    }
    .burger {
        display: block !important;
    }
    .navbar > .nav-right .btn-connexion {
        display: inline-flex !important;
    }
    .search-input {
        width: 220px;
        font-size: 13px;
        padding: 8px 35px 8px 35px;
    }
    .search-icon {
        width: 16px;
        height: 16px;
        left: 10px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 12px 15px;
        gap: 10px;
    }
    .logo {
        font-size: 24px;
    }
    .search-input {
        width: 100px;
    }
    .search-input:focus {
        width: 150px;
    }
}

/* HERO */
.hero {
    position: relative;
    height: 58vh;
    overflow: hidden;
}

/* Traits de navigation du hero (slider manuel) */
.hero-traits {
    position: absolute;
    bottom: 18px;
    left: 60px;
    display: flex;
    gap: 8px;
    z-index: 20;
}

.hero-trait {
    width: 36px;
    height: 3px;
    border-radius: 2px;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    overflow: hidden;
    transition: background 0.3s ease;
    position: relative;
}

.hero-trait::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
    border-radius: 2px;
}

.hero-trait.active::after {
    transform: scaleX(1);
    transition: transform 6s linear;
}

.hero-trait:hover {
    background: rgba(255,255,255,0.6);
}

.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10,10,10,0) 0%, rgba(10,10,10,0.7) 70%, rgba(10,10,10,1) 100%);
}

.hero-content {
    position: absolute;
    bottom: 50px;
    left: 60px;
    max-width: 600px;
    z-index: 10;
}

.hero-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 56px;
    line-height: 0.9;
    margin-bottom: 12px;
    letter-spacing: 3px;
    text-shadow: 4px 4px 20px rgba(0,0,0,0.9);
}

.hero-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    font-size: 15px;
}

.hero-rating {
    color: var(--accent-gold);
    font-weight: 700;
}

.hero-description {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.9);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-buttons {
    display: flex;
    gap: 18px;
}

.btn {
    padding: 16px 38px;
    border: none;
    border-radius: 6px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    font-family: 'Work Sans', sans-serif;
}

.btn-play {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-play:hover {
    background: var(--text-secondary);
    transform: scale(1.05);
}

.btn-info {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-info:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* CATEGORIES */
.categories {
    padding: 60px 60px 20px;
    position: relative;
}

.category-section {
    margin-bottom: 50px;
    position: relative;
}

.category-section:last-child {
    margin-bottom: 0;
}

.category-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 32px;
    letter-spacing: 2px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, transparent);
}

/* FLÈCHES DE CARROUSEL */
.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 50;
    pointer-events: none;
}

.carousel-btn {
    pointer-events: all;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 300;
}

.carousel-btn:hover {
    color: var(--accent-bright);
    transform: scale(1.2);
}

.carousel-btn.left {
    margin-left: -50px;
}

.carousel-btn.right {
    margin-right: -50px;
}

/* CARROUSEL CONTAINER */
.carousel-container {
    position: relative;
    overflow: visible;
}

.carousel-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 20px 0 60px; /* padding-bottom généreux pour laisser de la place au hover */
    scroll-behavior: smooth;
    scrollbar-width: none;
    transition: transform 0.4s ease;
}

.carousel-row::-webkit-scrollbar {
    display: none;
}

/* PLATFORM CARDS */
.platform-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: calc((100vw - 180px) / 4);
    min-width: 240px;
    max-width: 380px;
    height: 180px;
    flex-shrink: 0;
}

.platform-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-card:hover {
    transform: scale(1.05) translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.platform-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: opacity 0.4s ease;
}

.platform-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;   /* cover pour éviter les bandes noires */
    background: #000;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.platform-card:hover .platform-image {
    opacity: 0;
}

.platform-card:hover .platform-video {
    opacity: 1;
}

.platform-name-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 70%, rgba(0,0,0,0) 100%);
    text-align: center;
}

.platform-name {
    display: none;
}

.platform-count {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

/* ============================================================
   CARTES FILMS/SÉRIES
   ============================================================ */

/* --- REPOS : poster portrait 180×270 --- */
.movie-card {
    position: relative;
    width: 180px;
    height: 270px;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    background: var(--bg-card);
    /* Transition fluide sur toutes les propriétés animées */
    transition:
        width      0.45s cubic-bezier(0.34, 1.10, 0.64, 1),
        height     0.45s cubic-bezier(0.34, 1.10, 0.64, 1),
        transform  0.45s cubic-bezier(0.34, 1.10, 0.64, 1),
        box-shadow 0.45s ease,
        border-radius 0.45s ease;
    will-change: width, height, transform;
}

/* --- HOVER : carte élargie, infos sous l'image --- */
.movie-card:hover {
    width: 320px;
    height: auto;
    overflow: visible;
    transform: translateY(-16px) scale(1.02);
    z-index: 100;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.75),
        0  6px 20px rgba(0, 0, 0, 0.50);
    border-radius: 14px;
}

/* ---- ZONE IMAGE ---- */
.movie-media {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    overflow: hidden;
    /* Transition indépendante pour la zone image */
    transition:
        width    0.45s cubic-bezier(0.34, 1.10, 0.64, 1),
        height   0.45s cubic-bezier(0.34, 1.10, 0.64, 1),
        position 0.45s ease,
        border-radius 0.45s ease;
}

.movie-card:hover .movie-media {
    position: relative;
    width: 320px;
    height: 180px;   /* ratio 16/9 : 320 × 9/16 = 180 */
    border-radius: 14px 14px 0 0;
    overflow: hidden;
    flex-shrink: 0;
}

/* Poster (portrait) */
.movie-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: opacity 0.40s ease, transform 0.45s ease;
    transform: scale(1);
}

/* Backdrop (paysage) */
.movie-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0;
    transition: opacity 0.40s ease, transform 0.45s ease;
    transform: scale(1.06);
}

/* Au hover : poster fondu, backdrop zoom-in depuis 1.06→1 */
.movie-card:hover .movie-poster   { opacity: 0; transform: scale(1.04); }
.movie-card:hover .movie-backdrop { opacity: 1; transform: scale(1); }

/* Badge Film/Série */
.movie-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.8);
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    z-index: 10;
    backdrop-filter: blur(6px);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* ---- OVERLAY SUR L'IMAGE (boutons centrés) ---- */
.movie-hover-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0.10) 0%,
        rgba(0,0,0,0.30) 60%,
        rgba(0,0,0,0.55) 100%);
    opacity: 0;
    transition: opacity 0.30s ease 0.10s;
    border-radius: 14px;
}
/* Les boutons surgissent légèrement du bas */
.movie-hover-overlay .movie-icon-btn {
    transform: translateY(8px) scale(0.88);
    transition:
        transform  0.35s cubic-bezier(0.34, 1.20, 0.64, 1) 0.12s,
        box-shadow 0.25s ease,
        background 0.20s ease,
        border-color 0.20s ease;
}
.movie-card:hover .movie-hover-overlay { opacity: 1; }
.movie-card:hover .movie-hover-overlay .movie-icon-btn {
    transform: translateY(0) scale(1);
}

/* Boutons modernes sur l'image */
.movie-icon-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    flex-shrink: 0;
    position: relative;
}

/* Tooltip au-dessus du bouton */
.movie-icon-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(0,0,0,0.85);
    color: white;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Work Sans', sans-serif;
    white-space: nowrap;
    padding: 5px 9px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 50;
}

.movie-icon-btn:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Watchlist : bleu au hover */
.movie-icon-btn.watchlist-btn {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255,255,255,0.5);
    color: white;
}
.movie-icon-btn.watchlist-btn:hover {
    background: rgba(33, 150, 243, 0.75);
    border-color: #2196f3;
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.5);
    transform: scale(1.12);
}
.movie-icon-btn.watchlist-btn.added {
    background: rgba(33, 150, 243, 0.6);
    border-color: #2196f3;
}
.movie-icon-btn.watchlist-btn svg { width: 20px; height: 20px; }

/* Plus d'infos : vert au hover uniquement */
.movie-icon-btn.poster-btn {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255,255,255,0.5);
    color: white;
}
.movie-icon-btn.poster-btn:hover {
    background: rgba(39, 174, 96, 0.75);
    border-color: #2ecc71;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.5);
    transform: scale(1.12);
}
.movie-icon-btn.poster-btn svg { width: 20px; height: 20px; }


/* ---- SECTION INFOS sous l'image ---- */
.movie-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #181818;
    padding: 16px 18px;
    border-radius: 0 0 14px 14px;
    opacity: 0;
    transform: translateY(-8px);
    /* Léger délai pour laisser la carte s'ouvrir avant d'afficher les infos */
    transition:
        opacity   0.30s ease 0.15s,
        transform 0.35s cubic-bezier(0.34, 1.10, 0.64, 1) 0.12s;
    pointer-events: none;
    /* Ligne de séparation subtile entre image et infos */
    border-top: 1px solid rgba(255,255,255,0.06);
}
.movie-card:hover .movie-info {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.movie-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.movie-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    opacity: 0.85;
}

.movie-rating {
    color: var(--accent-gold);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.movie-year { color: var(--text-secondary); }

.movie-description {
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Compatibilité — plus utilisé mais on neutralise */
.movie-info-header { display: none; }
.movie-actions     { display: none; }
.btn-circle        { display: none; }

/* LOADING */
.loading-card {
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: loading 1.8s infinite;
    border-radius: 14px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    overflow-y: auto;
}

.modal.active {
    display: block;
}

.modal-content {
    max-width: 950px;
    margin: 80px auto;
    background: var(--bg-secondary);
    border-radius: 15px;
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 26px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--accent-bright);
    transform: rotate(90deg);
}

.modal-hero {
    position: relative;
    height: 500px;
}

.modal-hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.modal-hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to bottom, rgba(20,20,20,0) 0%, rgba(20,20,20,1) 100%);
}

.modal-hero-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
}

.modal-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 58px;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.modal-meta {
    display: flex;
    gap: 20px;
    font-size: 16px;
}

.modal-info {
    padding: 45px;
}

.modal-details {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.modal-detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modal-detail-label {
    font-size: 13px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-detail-value {
    font-size: 17px;
    font-weight: 600;
}

.modal-description {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 35px;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

/* PLAYER */
.player {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 3000;
}

.player.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-close-btn {
    position: absolute;
    top: 35px;
    right: 35px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 14px 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.player-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.video-placeholder {
    width: 85%;
    max-width: 1400px;
    aspect-ratio: 16/9;
    background: #1a1a1a;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
}

.play-icon-large {
    width: 90px;
    height: 90px;
    background: var(--accent-bright);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 25px;
    }

    .logo {
        font-size: 28px;
    }

    .search-input {
        width: 120px;
        padding: 8px 35px 8px 35px;
        font-size: 13px;
    }

    .search-input:focus {
        width: 280px;
    }

    .search-results {
        width: 280px;
        right: -60px;
    }

    .hero {
        height: 70vh;
    }

    .hero-content {
        bottom: 80px;
        left: 25px;
        max-width: calc(100% - 50px);
    }

    .hero-title {
        font-size: 48px;
    }

    .categories {
        padding: 40px 25px 80px;
    }

    .category-title {
        font-size: 24px;
    }

    .platform-link {
        min-width: 250px;
        height: 140px;
    }

    .movie-card {
        width: 160px;
        height: 240px;
    }

    .movie-card:hover {
        width: 280px;
        height: 280px;
    }

    .carousel-btn {
        display: none;
    }
}

/* Style pour les étoiles dans le texte */
.star-rating {
    color: var(--accent-gold);
    font-weight: 600;
}

/* FOOTER */
.footer {
    background: black;
    padding: 30px 30px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 100px;
}

.footer-main {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
    margin-bottom: 20px;
    align-items: start;
}

.footer-left {
    padding-right: 40px;
}

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.footer-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

/* Grille des icônes (5 colonnes) */
.footer-icons-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    justify-items: center;
    align-items: center;
}

/* Style de base pour chaque icône */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: transparent;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    transition: filter 0.2s ease;
}

/* Couleurs de survol spécifiques */
.social-icon.github:hover { background-color: #24292e; }
.social-icon.discord:hover { background-color: #5865F2; }
.social-icon.telegram:hover { background-color: #0088cc; }
.social-icon.link:hover { background-color: #666666; }
.social-icon.trustpilot:hover { background-color: #00B67A; }
.social-icon.coffee:hover { background-color: #FFDD00; }
.social-icon.beacons:hover { background-color: #8B5CF6; }
.social-icon.dmca:hover { background-color: #e50914; }
.social-icon.extension:hover { background-color: #FF7139; }
.social-icon.info:hover { background-color: #0078D7; }

/* Optionnel : rendre l'image blanche au survol */
.social-icon:hover img {
    filter: brightness(0) invert(1);
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 13px;
    opacity: 0.9;
}

.footer-author {
    color: var(--accent-bright);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.footer-author:hover {
    color: #ff0a16;
}

/* Responsive footer */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .footer-left {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 50px 25px 25px;
    }
    .footer-main {
        gap: 40px;
    }
    .footer-title {
        text-align: center;
    }
    .footer-text {
        text-align: center;
    }
    .footer-icons-grid {
        gap: 15px;
    }
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
  background: transparent;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  border: none;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.search-results::-webkit-scrollbar,
.mobile-menu::-webkit-scrollbar {
  width: 4px;
}

.search-results::-webkit-scrollbar-thumb,
.mobile-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
}

.search-container { position:relative; }
.search-wrapper { position:relative; }
.search-input {
    width:240px; padding:10px 40px 10px 40px;
    border-radius:25px; border:solid 1px rgba(255,255,255,0.2);
    background:#000 !important; color:white;
    transition:all .3s ease-in-out; outline:none;
    font-family:'Work Sans',sans-serif; font-size:14px;
}
.search-icon {
    position:absolute; top:50%; left:12px;
    transform:translateY(-50%); fill:rgba(255,255,255,0.7);
    width:18px; height:18px; transition:all 0.3s ease; pointer-events:none;
}
.search-clear {
    position:absolute; top:50%; right:12px;
    transform:translateY(-50%); background:transparent; border:none;
    color:rgba(255,255,255,0.7); font-size:20px; cursor:pointer;
    padding:0; width:20px; height:20px;
    display:flex; align-items:center; justify-content:center;
    opacity:0; transition:opacity 0.3s ease;
}
.search-input:not(:placeholder-shown) + .search-icon + .search-clear { opacity:1; }
.search-clear:hover { color:white; }
.search-input:focus { border-color:rgba(255,255,255,0.4); }
.search-input:focus + .search-icon { fill:var(--accent-bright); }
.search-input::placeholder { color:rgba(255,255,255,0.6); }
.search-results {
    display:none; position:absolute; top:100%; left:0; width:100%;
    background:rgba(20,20,20,0.98); backdrop-filter:blur(20px);
    border-radius:0 0 10px 10px; margin-top:5px;
    box-shadow:0 10px 30px rgba(0,0,0,0.7);
    border:1px solid rgba(255,255,255,0.1); border-top:none;
    max-height:600px; overflow-y:auto; z-index:1001;
}
.search-results.active { display:block; }
.search-results::-webkit-scrollbar { width:4px; }
.search-results::-webkit-scrollbar-track { background:transparent; }
.search-results::-webkit-scrollbar-thumb { background:rgba(255,255,255,0.15); border-radius:3px; }
.search-result-item {
    display:flex; align-items:center; gap:12px;
    padding:10px 14px; border-bottom:1px solid rgba(255,255,255,0.05);
    cursor:pointer; transition:background 0.2s ease;
}
.search-result-item:hover { background:rgba(255,255,255,0.05); }
.search-result-poster {
    width:42px; height:63px; object-fit:cover; border-radius:4px; flex-shrink:0;
}
.search-result-info { flex:1; min-width:0; }
.search-result-title {
    font-size:14px; font-weight:600; color:#fff;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-bottom:4px;
}
.search-result-meta {
    display:flex; align-items:center; gap:6px;
    font-size:12px; color:var(--text-secondary, #b3b3b3); flex-wrap:nowrap;
}
.search-result-type { font-weight:700; }
.result-type-film   { color:#e50914 !important; }
.result-type-serie  { color:#2196f3 !important; }
.search-result-rating { color:#ffd700; font-weight:600; }
.search-result-year   { color:var(--text-secondary, #b3b3b3); }
.search-result-empty {
    padding:16px; text-align:center; color:#888; font-size:13px;
}
.search-show-all {
    padding:12px; text-align:center; color:var(--accent-bright, #e50914);
    font-weight:600; font-size:13px; cursor:pointer;
    border-top:1px solid rgba(255,255,255,0.05); transition:background 0.2s ease;
}
.search-show-all:hover { background:rgba(229,9,20,0.08); }

/* ============================================================
   CARROUSEL TOP 10
   ============================================================ */
#top10 { gap: 20px; padding-left: 0; }

/* ============================================================
   TOP 10 — STYLE NETFLIX (numéros géants, outline)
   Même logique que films.css / series.css
   ============================================================ */

/* Titre — même police/taille que .category-title */
.top10-title-label {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}
.top10-subtitle {
    font-family: 'Bebas Neue', cursive;
    font-size: 32px;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.55);
    font-weight: 400;
}

/* Rangée — overflow-y visible pour les grands numéros,
   overflow-x hérité de .carousel-row (auto) pour le scroll */
.top10-row {
    gap: 0;
    padding: 20px 4px 80px 30px;
    align-items: flex-end;
    overflow-y: visible;
}

/* Wrapper item */
.top10-item {
    position: relative;
    display: flex;
    align-items: flex-end;
    flex-shrink: 0;
    cursor: pointer;
    animation: top10FadeIn 0.4s ease both;
}
.top10-item:nth-child(1)  { animation-delay: 0.05s; }
.top10-item:nth-child(2)  { animation-delay: 0.10s; }
.top10-item:nth-child(3)  { animation-delay: 0.15s; }
.top10-item:nth-child(4)  { animation-delay: 0.20s; }
.top10-item:nth-child(5)  { animation-delay: 0.25s; }
.top10-item:nth-child(6)  { animation-delay: 0.30s; }
.top10-item:nth-child(7)  { animation-delay: 0.35s; }
.top10-item:nth-child(8)  { animation-delay: 0.40s; }
.top10-item:nth-child(9)  { animation-delay: 0.45s; }
.top10-item:nth-child(10) { animation-delay: 0.50s; }

@keyframes top10FadeIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Numéro géant hollow */
.top10-rank-num {
    --stroke: var(--accent-bright);
    --shadow: rgba(229,9,20,0.35);
    --glow:   #ff3030;

    font-family: 'Bebas Neue', cursive;
    font-size: 165px;
    line-height: 0.85;
    letter-spacing: -4px;

    color: transparent;
    -webkit-text-stroke: 2.5px var(--stroke);
    text-stroke: 2.5px var(--stroke);

    flex-shrink: 0;
    width: 88px;
    text-align: right;
    overflow: visible;
    align-self: flex-end;
    margin-right: -22px;
    z-index: 0;

    pointer-events: none;
    user-select: none;

    filter: drop-shadow(0 4px 12px var(--shadow));
    transition: filter 0.3s ease, -webkit-text-stroke 0.3s ease;
}

/* La carte passe devant le numéro */
.top10-item .movie-card {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* Hover */
.top10-item:hover .top10-rank-num {
    filter: drop-shadow(0 0 18px var(--glow)) drop-shadow(0 4px 16px var(--shadow));
    -webkit-text-stroke-width: 2px;
}
.top10-item:hover .movie-card {
    transform: scale(1.04) translateY(-6px);
    box-shadow: 0 20px 55px rgba(0,0,0,0.8);
    z-index: 2;
}

/* Rang 1 — Or */
.top10-item[data-rank="1"] .top10-rank-num {
    font-size: 185px;
    width: 95px;
    --stroke: #FFD700;
    --shadow: rgba(255,215,0,0.6);
    --glow:   #ffe14d;
}
/* Rang 2 — Argent */
.top10-item[data-rank="2"] .top10-rank-num {
    font-size: 175px;
    width: 91px;
    --stroke: #C8C8C8;
    --shadow: rgba(200,200,200,0.45);
    --glow:   #e0e0e0;
}
/* Rang 3 — Bronze */
.top10-item[data-rank="3"] .top10-rank-num {
    font-size: 170px;
    width: 90px;
    --stroke: #CD7F32;
    --shadow: rgba(205,127,50,0.5);
    --glow:   #e6963d;
}
/* Rang 10 — deux chiffres, légèrement plus compact */
.top10-item[data-rank="10"] .top10-rank-num {
    font-size: 130px;
    width: 130px;
    letter-spacing: -2px;
    margin-right: -28px;
}

/* Responsive */
@media (max-width: 900px) {
    .top10-rank-num                             { font-size: 110px; width: 60px; }
    .top10-item[data-rank="1"]  .top10-rank-num { font-size: 125px; width: 64px; }
    .top10-item[data-rank="2"]  .top10-rank-num { font-size: 118px; width: 62px; }
    .top10-item[data-rank="3"]  .top10-rank-num { font-size: 115px; width: 61px; }
    .top10-item[data-rank="10"] .top10-rank-num { font-size: 90px;  width: 90px; letter-spacing: -1px; }
}

/* ── Suppression de l'ancien stub ── */
.trending-number { display: none; }



/* ============================================================
   CONNEXION — BOUTON NAVBAR
   ============================================================ */
.cx-wrapper { position: relative; }

.btn-connexion {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 8px;
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Work Sans', sans-serif;
    transition: background 0.2s, border-color 0.2s;
    max-width: 220px;
}
.btn-connexion:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.35); }

.connexion-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.3);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; flex-shrink: 0;
}
.connexion-avatar svg  { width: 18px; height: 18px; fill: white; }
.connexion-avatar img  { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.connexion-text { overflow: hidden; text-overflow: ellipsis; max-width: 140px; }

/* Overlay fermeture */
.dropdown-overlay { display: none; position: fixed; inset: 0; z-index: 2999; }
.dropdown-overlay.active { display: block; }

/* ============================================================
   CX-DROPDOWN — conteneur principal
   ============================================================ */
.cx-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 300px;
    background: #1e1f22;
    border-radius: 14px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 24px 64px rgba(0,0,0,0.85);
    z-index: 3000;
    flex-direction: column;
    gap: 6px;
    animation: cxDropIn 0.18s ease;
}
.cx-wrapper.open .cx-dropdown { display: flex; }

@keyframes cxDropIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* ── Texte intro (état déconnecté) ── */
.cx-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    line-height: 1.5;
    padding: 2px 4px 8px;
}

/* ── Boutons génériques ── */
.cx-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 16px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Work Sans', sans-serif;
    cursor: pointer;
    color: white;
    transition: filter 0.15s, transform 0.12s;
    text-align: center;
    margin-top: 4px;
}
.cx-btn:hover  { filter: brightness(1.12); transform: translateY(-1px); }
.cx-btn:active { transform: translateY(0); }

.cx-discord { background: #5865F2; }
.cx-google  { background: #ffffff; color: #1f1f1f; }
.cx-secret  { background: #2d6a4f; }
.cx-settings { background: #2b2d31; color: rgba(255,255,255,0.85); }
.cx-vip { background: linear-gradient(135deg, #6c3fc5, #8b5cf6, #4f6fd4); }
.cx-logout  { background: #da373c; margin-top: 4px; }

/* ── Phrase secrète : formulaire ── */
.cx-secret-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 2px;
}
.cx-secret-input-wrap { position: relative; }
.cx-secret-input {
    width: 100%;
    padding: 11px 40px 11px 14px;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 9px;
    color: white;
    font-size: 13px;
    font-family: 'Work Sans', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}
.cx-secret-input::placeholder { color: rgba(255,255,255,0.3); }
.cx-secret-input:focus { border-color: rgba(229,9,20,0.6); }
.cx-secret-eye {
    position: absolute; top: 50%; right: 10px; transform: translateY(-50%);
    background: transparent; border: none;
    color: rgba(255,255,255,0.4); cursor: pointer; padding: 4px;
    display: flex; align-items: center; transition: color 0.2s;
}
.cx-secret-eye:hover { color: rgba(255,255,255,0.8); }
.cx-secret-submit { background: #2d6a4f; margin-top: 0; }

/* ── Alert dans le dropdown ── */
.cx-alert {
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    background: rgba(255,69,58,0.12);
    color: #ff453a;
    border: 1px solid rgba(255,69,58,0.25);
}
.cx-alert.success { background: rgba(52,211,153,0.12); color: #34d399; border-color: rgba(52,211,153,0.3); }

/* ============================================================
   ÉTAT CONNECTÉ
   ============================================================ */

/* Header utilisateur */
.cx-user-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 6px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 8px;
}
.cx-user-avatar {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    overflow: hidden; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.cx-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cx-user-name { font-size: 15px; font-weight: 700; color: white; }
.cx-user-status { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 2px; }

/* ═══════════════════════════════════════════════════════════════
   BLOC PROFILS — sélecteur complet dans le dropdown connecté
   ═══════════════════════════════════════════════════════════════ */
.cx-profiles-block {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

/* Profil actif */
.cx-profile-active {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(229,9,20,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative;
}
.cx-profile-active-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    overflow: hidden; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(229,9,20,0.5);
}
.cx-profile-active-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.cx-profile-active-info { flex: 1; min-width: 0; }
.cx-profile-active-name {
    font-size: 13px; font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cx-profile-active-label {
    font-size: 10px; color: rgba(229,9,20,0.9);
    text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700;
    margin-top: 1px;
}
.cx-profile-active-edit {
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.cx-profile-active-edit:hover { background: rgba(255,255,255,0.12); color: white; }

/* Autres profils */
.cx-profiles-others {
    display: flex;
    flex-direction: column;
}
.cx-profile-other-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    cursor: pointer;
    transition: background 0.15s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    color: white;
    font-family: 'Work Sans', sans-serif;
    border-top: 1px solid rgba(255,255,255,0.04);
}
.cx-profile-other-item:hover { background: rgba(255,255,255,0.05); }
.cx-profile-other-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    overflow: hidden; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.12);
}
.cx-profile-other-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.cx-profile-other-name {
    font-size: 13px; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    flex: 1;
}
.cx-profile-other-switch {
    font-size: 10px; color: rgba(255,255,255,0.3);
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
    flex-shrink: 0;
}
.cx-profile-other-item:hover .cx-profile-other-switch { color: rgba(229,9,20,0.8); }

/* Gérer les profils */
.cx-profiles-manage {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    color: rgba(255,255,255,0.4);
    font-size: 12px; font-weight: 600;
    text-decoration: none;
    border-top: 1px solid rgba(255,255,255,0.06);
    transition: color 0.15s, background 0.15s;
}
.cx-profiles-manage:hover { color: white; background: rgba(255,255,255,0.04); }
.cx-profiles-manage svg { flex-shrink: 0; }

/* Menu items */
.cx-menu {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-bottom: 8px;
}
.cx-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 10px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    font-weight: 500;
    font-family: 'Work Sans', sans-serif;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}
.cx-menu-item:hover { background: rgba(255,255,255,0.06); color: white; }
.cx-menu-item svg   { flex-shrink: 0; fill: rgba(255,255,255,0.5); transition: fill 0.15s; }
.cx-menu-item:hover svg { fill: rgba(255,255,255,0.9); }
/* ── CATEGORY TITLE LINKS (redirect to profile) ─── */
.category-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
}
.category-title-link:hover {
    color: #e50914;
}
.category-title-link::after {
    font-size: 0.6em;
    opacity: 0;
    transition: opacity 0.2s;
    vertical-align: middle;
}
.category-title:hover .category-title-link::after {
    opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════════
   CARROUSEL HISTORIQUE — Titre + bouton "Tout supprimer"
   ═══════════════════════════════════════════════════════════════ */
.history-title {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.history-title-text { flex: 1; }

.history-clear-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    background: rgba(229,9,20,0.1);
    border: 1.5px solid rgba(229,9,20,0.35);
    color: rgba(229,9,20,0.85);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Work Sans', sans-serif;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
    flex-shrink: 0;
}
.history-clear-all-btn:hover {
    background: rgba(229,9,20,0.2);
    border-color: rgba(229,9,20,0.7);
    color: #ff2d2d;
    transform: translateY(-1px);
}
.history-clear-all-btn:active { transform: translateY(0); }
.history-clear-all-btn svg { flex-shrink: 0; }

/* Bouton poubelle sur chaque fiche d'historique */
.movie-card .history-remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(229,9,20,0.85);
    border: 1.5px solid rgba(255,255,255,0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.2s, transform 0.2s, background 0.15s;
    backdrop-filter: blur(6px);
}
/* Visible au hover de la carte ET toujours visible sur mobile */
.movie-card:hover .history-remove-btn {
    opacity: 1;
    transform: scale(1);
}
.movie-card .history-remove-btn:hover {
    background: #e50914;
    transform: scale(1.12);
    box-shadow: 0 0 14px rgba(229,9,20,0.6);
}
.movie-card .history-remove-btn svg { width: 14px; height: 14px; }

/* Animation de suppression d'une fiche */
@keyframes historyCardOut {
    0%   { opacity: 1; transform: scale(1); }
    40%  { opacity: 0.6; transform: scale(1.05); }
    100% { opacity: 0; transform: scale(0.8) translateY(-10px); width: 0; min-width: 0; padding: 0; margin: 0; }
}
.movie-card.removing {
    animation: historyCardOut 0.35s ease forwards;
    pointer-events: none;
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   MODAL CONFIRMATION — Vider l'historique
   ═══════════════════════════════════════════════════════════════ */
.history-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.78);
    backdrop-filter: blur(8px);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInOverlay 0.2s ease;
}
@keyframes fadeInOverlay {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.history-confirm-box {
    background: #1e1f22;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 32px 36px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0,0,0,0.9);
    animation: confirmBoxIn 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes confirmBoxIn {
    from { opacity: 0; transform: scale(0.88) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.history-confirm-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: rgba(229,9,20,0.15);
    border: 2px solid rgba(229,9,20,0.3);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
    color: #e50914;
}
.history-confirm-title {
    font-size: 20px; font-weight: 800;
    color: white; margin-bottom: 8px;
}
.history-confirm-sub {
    font-size: 14px; color: rgba(255,255,255,0.5);
    line-height: 1.5; margin-bottom: 26px;
}
.history-confirm-actions {
    display: flex; flex-direction: column; gap: 10px;
}
.history-confirm-yes {
    padding: 13px;
    background: #e50914;
    color: white;
    font-family: 'Work Sans', sans-serif;
    font-size: 15px; font-weight: 800;
    border: none; border-radius: 10px; cursor: pointer;
    transition: background 0.15s, transform 0.12s;
}
.history-confirm-yes:hover { background: #c4070f; }
.history-confirm-yes:active { transform: scale(0.98); }
.history-confirm-no {
    padding: 10px;
    background: transparent;
    color: rgba(255,255,255,0.45);
    font-family: 'Work Sans', sans-serif;
    font-size: 14px; font-weight: 600;
    border: none; cursor: pointer;
    transition: color 0.15s;
}
.history-confirm-no:hover { color: white; }

/* Mobile : bouton poubelle toujours visible */
@media (max-width: 768px) {
    .movie-card .history-remove-btn {
        opacity: 1;
        transform: scale(1);
    }
    .history-clear-all-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* ════════════════════════════════════════════════════════
   EFFETS VIP — Animations des noms de profil
   Utilisés par applyNameEffect() dans main.js
   ════════════════════════════════════════════════════════ */

@keyframes effectRainbow {
    0%   { background-position: 0% center; }
    100% { background-position: 200% center; }
}
@keyframes effectShimmer {
    0%   { background-position: 200% center; }
    100% { background-position: 0% center; }
}
@keyframes effectFire {
    0%   { filter: brightness(1) saturate(1); }
    100% { filter: brightness(1.3) saturate(1.6); }
}
@keyframes effectNeon {
    0%   { text-shadow: 0 0 8px #00fff7, 0 0 20px #00fff7; opacity: 1; }
    100% { text-shadow: 0 0 4px #00fff7, 0 0 40px #00fff7, 0 0 60px #00aaf7; opacity: 0.85; }
}

/* Éléments portant un effet — nécessaires pour background-clip */
.connexion-text[data-effect],
.cx-profile-active-name[data-effect],
.cx-profile-other-name[data-effect] {
    display: inline-block;
}

/* Bouton connexion avec effet — empêcher le clip de déborder */
.btn-connexion .connexion-text[data-effect] {
    line-height: 1.2;
}

/* Badge VIP dans le dropdown quand connecté */
.cx-vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 20px;
    background: linear-gradient(135deg, #b8860b, #ffd700);
    color: #000;
    margin-left: 6px;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ============================================================
   Grizzly Stream — Animations pseudonyme VIP
   À inclure dans votre fichier CSS principal (main/style.css)
   v5.1 — Couvre tous les effets de applyNameEffect()
   ============================================================ */

/* ── Rainbow ─────────────────────────────────────────────── */
@keyframes effectRainbow {
    from { background-position: 0% center; }
    to   { background-position: 300% center; }
}

/* ── Shimmer (gold & silver) ─────────────────────────────── */
@keyframes effectShimmer {
    from { background-position: 200% center; }
    to   { background-position: 0% center; }
}

/* ── Fire ────────────────────────────────────────────────── */
@keyframes effectFirePos {
    from { background-position: 0% 100%; }
    to   { background-position: 0% 0%; }
}

/* ── Neon ────────────────────────────────────────────────── */
@keyframes effectNeon {
    from {
        text-shadow: 0 0 8px #00fff7, 0 0 20px #00fff7;
        opacity: 1;
    }
    to {
        text-shadow: 0 0 4px #00fff7, 0 0 40px #00fff7, 0 0 70px #00aaf7;
        opacity: 0.88;
    }
}

/* ── Glace ───────────────────────────────────────────────── */
@keyframes effectGlace {
    from { background-position: 0% center; }
    to   { background-position: 200% center; }
}

/* ── Plasma ──────────────────────────────────────────────── */
@keyframes effectPlasma {
    from { background-position: 0% center; }
    to   { background-position: 300% center; }
}

/* ── Glitch ──────────────────────────────────────────────── */
@keyframes effectGlitch {
    0%,  88%, 100% { text-shadow: none; transform: none; }
    90%            { text-shadow: -2px 0 #ff0040, 2px 0 #00ffff; transform: skewX(-6deg) translateX(-1px); }
    92%            { text-shadow:  2px 0 #ff0040,-2px 0 #00ffff; transform: skewX( 4deg) translateX( 1px); }
    94%            { text-shadow: -1px 0 #ff0040, 1px 0 #00ffff; transform: translateX(2px); }
    96%            { text-shadow: none; transform: none; }
}

/* ── Pulse ───────────────────────────────────────────────── */
@keyframes effectPulse {
    0%,  100% { opacity: 1;    text-shadow: 0 0  6px rgba(255, 68, 136, 0.6); }
    50%        { opacity: 0.55; text-shadow: 0 0 18px rgba(255, 68, 136, 0.9); }
}

/* ── Nebula ──────────────────────────────────────────────── */
@keyframes effectNebula {
    from { background-position: 0% center; }
    to   { background-position: 400% center; }
}

/* ── Diamond ─────────────────────────────────────────────── */
@keyframes effectDiamond {
    0%,  60%, 100% { background-position: 200% center; }
    35%            { background-position: 0% center; }
}

/* ── Eclipse ─────────────────────────────────────────────── */
@keyframes effectEclipse {
    0%   { filter: drop-shadow(0 0 6px rgba(255,   0,   0, 0.95)); }
    14%  { filter: drop-shadow(0 0 8px rgba(255, 140,   0, 0.95)); }
    28%  { filter: drop-shadow(0 0 6px rgba(255, 255,   0, 0.95)); }
    42%  { filter: drop-shadow(0 0 8px rgba( 50, 255,  50, 0.95)); }
    57%  { filter: drop-shadow(0 0 6px rgba(  0, 150, 255, 0.95)); }
    71%  { filter: drop-shadow(0 0 8px rgba(160,   0, 255, 0.95)); }
    85%  { filter: drop-shadow(0 0 6px rgba(255,   0, 180, 0.95)); }
    100% { filter: drop-shadow(0 0 6px rgba(255,   0,   0, 0.95)); }
}

/* ── Aqua ────────────────────────────────────────────────── */
@keyframes effectAqua {
    from { background-position: 0% 100%; }
    to   { background-position: 0% 0%; }
}

/* ── Toxic ───────────────────────────────────────────────── */
@keyframes effectToxic {
    0%,  100% { opacity: 1;    text-shadow: 0 0  6px #39FF14, 0 0 18px #39FF14, 0 0 32px #39FF14; }
    20%        { opacity: 0.88; text-shadow: 0 0  3px #39FF14; }
    40%        { opacity: 1;    text-shadow: 0 0 12px #39FF14, 0 0 30px #39FF14; }
    60%        { opacity: 0.72; text-shadow: 0 0  2px #39FF14; }
    80%        { opacity: 1;    text-shadow: 0 0  7px #39FF14, 0 0 20px #39FF14; }
}

/* ── Encre ───────────────────────────────────────────────── */
@keyframes effectEncre {
    0%,  100% { opacity: 0.92; text-shadow: 0  0   4px rgba(220, 220, 255, 0.45); }
    25%        { opacity: 0.65; text-shadow: 0 -6px  8px rgba(220, 220, 255, 0.70); }
    55%        { opacity: 0.87; text-shadow: 0 -3px  6px rgba(220, 220, 255, 0.40); }
    75%        { opacity: 0.70; text-shadow: 0 -5px 10px rgba(210, 210, 255, 0.60); }
}

/* ════════════════════════════════════════════════════════════
   COLLECTIONS INCONTOURNABLES
   ════════════════════════════════════════════════════════════ */

/* Section globale collections */
#iconicCollectionsSection {
    /* pas de style spécial — hérite de .categories */
}

/* Titre de collection avec badge coloré */
.collection-title {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'Bebas Neue', cursive;
    font-size: 28px;
    letter-spacing: 2px;
    margin-bottom: 22px;
}

.collection-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Work Sans', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(229,9,20,0.25), rgba(229,9,20,0.08));
    border: 1px solid rgba(229,9,20,0.35);
    color: #e50914;
    white-space: nowrap;
}

/* Wrapper de la section collections — séparateur visuel subtil */
.iconic-collections-wrapper {
    padding-top: 10px;
    padding-bottom: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 20px;
}

/* Titre principal "Collections incontournables" */
.iconic-main-title {
    font-family: 'Bebas Neue', cursive;
    font-size: 36px;
    letter-spacing: 3px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #fff;
}

.iconic-main-title span.iconic-icon {
    font-size: 32px;
    line-height: 1;
}

.iconic-main-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, rgba(229,9,20,0.5), transparent);
    border-radius: 1px;
}

/* Chaque sous-section collection */
.iconic-collection-block {
    margin-bottom: 50px;
}

.iconic-collection-block:last-child {
    margin-bottom: 0;
}

/* Label de la saga */
.iconic-collection-label {
    font-family: 'Bebas Neue', cursive;
    font-size: 26px;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.92);
    position: relative;
    padding-left: 14px;
}

/* Trait vertical coloré à gauche du titre */
.iconic-collection-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(to bottom, #e50914, rgba(229,9,20,0.3));
}

/* Lien titre collection */
.iconic-collection-label a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.iconic-collection-label a:hover {
    color: #e50914;
}