* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-primary: #000000;
    --bg-secondary: #141414;
    --bg-card: #1a1a1a;
    --bg-hover: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #6d6d6d;
    --accent: #e50914;
    --accent-hover: #ff3d3d;
    --border: #333333;
    --radius: 4px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.5); }

.navbar {
    background: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 50%, transparent 100%);
    padding: 1rem 0;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}
.navbar.scrolled { background: #000000; }

.nav-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.5px;
    cursor: pointer;
    transition: var(--transition);
}
.nav-logo h1:hover { color: var(--accent-hover); }

.nav-links { display: flex; gap: 2rem; margin-left: 3rem; }
.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    font-weight: 500;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); }

.nav-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-toggle {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    transition: var(--transition);
}
.search-toggle:hover { color: var(--accent); }

.btn-auth {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-primary);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
    font-weight: 500;
    font-family: inherit;
}
.btn-auth:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-primary);
}

.user-profile { display: flex; align-items: center; gap: 0.8rem; }
.username-display {
    font-weight: 700;
    color: var(--accent);
    font-size: 0.95rem;
    text-shadow: 0 0 10px rgba(229, 9, 20, 0.3);
    cursor: pointer;
    padding: 0.3rem 0.8rem;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: var(--transition);
}
.username-display:hover {
    border-color: var(--accent);
    background: rgba(229, 9, 20, 0.1);
}
.logout-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
    font-family: inherit;
}
.logout-btn:hover { color: var(--accent); }

/* MODALS */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}
.modal.active { display: flex; }

.modal-content {
    background: var(--bg-secondary);
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}
.modal-large { max-width: 700px; }

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.modal-header h2 { font-size: 1.5rem; font-weight: 800; color: var(--text-primary); }
.close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.3rem 0.6rem;
}
.close-modal:hover { color: var(--accent); }

.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}
.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0.6rem 0.5rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    font-family: inherit;
}
.tab-btn:hover { color: var(--text-secondary); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }

.auth-submit-btn { margin-top: 0.5rem; }

/* Account Modal */
.account-info { display: flex; flex-direction: column; gap: 0.5rem; }
.account-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.8rem; }
.account-field label { font-size: 0.85rem; color: var(--text-secondary); font-weight: 600; }
.account-field input {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: white;
    padding: 0.8rem 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}
.account-field input:focus { border-color: var(--accent); box-shadow: 0 0 10px rgba(229,9,20,0.2); }
.account-role-display {
    background: rgba(229,9,20,0.15);
    border: 1px solid rgba(229,9,20,0.3);
    padding: 0.6rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}
.danger-btn {
    background: transparent !important;
    border: 1px solid #ff4444 !important;
    color: #ff4444 !important;
}
.danger-btn:hover {
    background: rgba(255,68,68,0.1) !important;
    box-shadow: 0 5px 20px rgba(255,68,68,0.2) !important;
}

/* SEARCH OVERLAY */
.search-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 2000;
}
.search-overlay.active { opacity: 1; visibility: visible; }

.search-overlay-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 800px;
    width: 100%;
    padding: 0 2rem;
}
.search-overlay-input {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 2px solid white;
    color: white;
    font-size: 2rem;
    padding: 1rem 0;
    outline: none;
    font-weight: 300;
}
.search-overlay-input::placeholder { color: rgba(255, 255, 255, 0.5); }
.search-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}
.search-close:hover { color: var(--accent); }

/* HOME PAGE */
.empty-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}
.empty-page::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(229, 9, 20, 0.1) 0%, transparent 70%);
    pointer-events: none;
}
.empty-content { text-align: center; z-index: 1; padding: 2rem; }

.hero-logo {
    font-size: 4rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 2rem;
    letter-spacing: 2px;
    text-shadow: 0 0 50px rgba(229, 9, 20, 0.5);
}

.soon-title {
    font-size: 8rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: 10px;
    text-shadow: 0 0 100px rgba(229, 9, 20, 0.5), 0 0 200px rgba(229, 9, 20, 0.3), 0 0 300px rgba(229, 9, 20, 0.1);
    animation: glow 2s ease-in-out infinite alternate;
    margin-bottom: 2rem;
}
@keyframes glow {
    from { text-shadow: 0 0 100px rgba(229,9,20,0.5), 0 0 200px rgba(229,9,20,0.3), 0 0 300px rgba(229,9,20,0.1); }
    to { text-shadow: 0 0 150px rgba(229,9,20,0.8), 0 0 250px rgba(229,9,20,0.5), 0 0 350px rgba(229,9,20,0.3); }
}

.soon-text { font-size: 1.5rem; color: var(--text-secondary); margin-bottom: 1rem; font-weight: 300; }
.soon-subtext { font-size: 1rem; color: var(--text-muted); margin-bottom: 3rem; font-weight: 300; }

.loading-animation { display: flex; gap: 1rem; justify-content: center; align-items: center; margin-bottom: 3rem; }
.loading-dot {
    width: 12px; height: 12px;
    background: var(--accent);
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite;
}
.loading-dot:nth-child(1) { animation-delay: -0.32s; }
.loading-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

.home-actions { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.home-btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    font-family: inherit;
}
.home-btn.primary { background: var(--accent); color: white; }
.home-btn.primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.4);
}
.home-btn.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-secondary);
}
.home-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

/* =========================================
   ZENFLIX HOME HERO & CAROUSEL STYLES
   ========================================= */
.home-hero {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: flex-end;
    padding: 9rem 4rem 4.5rem;
    overflow: hidden;
    background: #000;
}
.hero-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}
.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: brightness(0.95) contrast(1.05);
    transform: scale(1.03);
    transition: transform 10s ease;
}
.home-hero:hover .hero-bg-img {
    transform: scale(1);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(180deg, rgba(0,0,0,0.15) 0%, transparent 35%, transparent 70%, var(--bg-primary) 100%),
        linear-gradient(90deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.35) 48%, transparent 85%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(229, 9, 20, 0.22);
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.35);
}
.hero-title {
    font-size: 4.8rem;
    font-weight: 900;
    line-height: 1.08;
    margin-bottom: 1.2rem;
    letter-spacing: -1.5px;
    text-shadow: 0 4px 25px rgba(0,0,0,0.9);
}
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    font-weight: 600;
}
.meta-tag.match { color: #46d369; font-weight: 800; }
.meta-tag.year { color: var(--text-secondary); }
.meta-tag.quality { 
    border: 1px solid rgba(255,255,255,0.4); 
    padding: 0.15rem 0.6rem; 
    border-radius: 4px; 
    font-size: 0.75rem; 
    color: var(--text-primary);
    background: rgba(255,255,255,0.08);
}
.meta-tag.duration { color: var(--text-secondary); }

.hero-synopsis {
    font-size: 1.12rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 1.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 5px rgba(0,0,0,0.85);
}
.hero-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2.2rem;
}
.hero-genre {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    padding: 0.38rem 0.95rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.08);
}
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.95rem 2.4rem;
    font-size: 1.05rem;
    font-weight: 800;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
}
.hero-btn.primary {
    background: #ffffff;
    color: #000000;
}
.hero-btn.primary:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(255,255,255,0.2);
}
.hero-btn.secondary {
    background: rgba(109, 109, 110, 0.75);
    color: #ffffff;
    backdrop-filter: blur(10px);
}
.hero-btn.secondary:hover {
    background: rgba(109, 109, 110, 0.45);
    transform: scale(1.03);
}

/* CAROUSEL CATEGORIES SECTION */
.home-categories {
    padding: 2rem 4rem 6rem;
    position: relative;
    z-index: 5;
    margin-top: -3.5rem;
}
.category-row {
    margin-bottom: 3.5rem;
    position: relative;
}
.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2rem;
}
.category-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    letter-spacing: -0.5px;
}
.category-icon {
    color: var(--accent);
    font-size: 1.35rem;
    filter: drop-shadow(0 0 6px rgba(229, 9, 20, 0.45));
}
.category-count {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
    background: var(--bg-secondary);
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 140px;
    background: rgba(0, 0, 0, 0.82);
    border: 1px solid rgba(255,255,255,0.18);
    color: #ffffff;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    opacity: 0;
    border-radius: 6px;
    backdrop-filter: blur(6px);
}
.carousel-wrapper:hover .carousel-nav {
    opacity: 1;
}
.carousel-nav:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.5);
}
.carousel-nav.prev { left: -24px; }
.carousel-nav.next { right: -24px; }

.carousel-track {
    display: flex;
    gap: 1.4rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 1rem 0.5rem 2.5rem;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
}
.carousel-track::-webkit-scrollbar {
    display: none;
}
.carousel-track.active-drag {
    cursor: grabbing;
    scroll-behavior: auto !important;
}

.carousel-item {
    flex: 0 0 230px;
    scroll-snap-align: start;
    position: relative;
}

/* TOP 10 RANK BADGE */
.top10-badge {
    position: absolute;
    top: -12px;
    right: -10px;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #e50914, #990000);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(229, 9, 20, 0.7);
    border: 2px solid #fff;
    z-index: 15;
}

/* CONTENT TYPE BADGE */
.content-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(229, 9, 20, 0.9);
    color: white;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.22rem 0.55rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 12;
    box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.content-type-badge.serie {
    background: rgba(67, 97, 238, 0.9);
}

/* =========================================
   SERIES SEASONS ACCORDION INTERFACE
   ========================================= */
.seasons-container {
    margin-top: 2.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.8rem;
}
.seasons-header-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.seasons-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.season-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}
.season-card:hover {
    border-color: rgba(229, 9, 20, 0.5);
}
.season-card.expanded {
    border-color: var(--accent);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}
.season-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem;
}
.season-card-title-wrap {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
.season-number-badge {
    width: 40px;
    height: 40px;
    background: rgba(229, 9, 20, 0.15);
    color: var(--accent);
    font-weight: 900;
    font-size: 1.15rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.season-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.2rem;
}
.season-short-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.season-toggle-icon {
    color: var(--text-muted);
    transition: transform 0.3s ease;
    font-size: 1.1rem;
}
.season-card.expanded .season-toggle-icon {
    transform: rotate(180deg);
    color: var(--accent);
}
.season-card-body {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    background: #121212;
}
.season-tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.season-tech-grid strong {
    color: white;
}
.season-download-full {
    width: 100%;
    margin-top: 0 !important;
}

/* =========================================
   CUSTOM TOAST NOTIFICATIONS (NO ALERTS)
   ========================================= */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
    pointer-events: none;
}
.toast-item {
    background: #181818;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 4px solid var(--accent);
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    backdrop-filter: blur(10px);
}
.toast-item.show {
    opacity: 1;
    transform: translateY(0);
}
.toast-item.toast-error { border-left-color: #ff4444; }
.toast-item.toast-error i { color: #ff4444; font-size: 1.1rem; }
.toast-item.toast-success { border-left-color: #46d369; }
.toast-item.toast-success i { color: #46d369; font-size: 1.1rem; }
.toast-item.toast-info { border-left-color: var(--accent); }
.toast-item.toast-info i { color: var(--accent); font-size: 1.1rem; }

@media (max-width: 768px) {
    .toast-container {
        top: 20px;
        bottom: auto;
        left: 16px;
        right: 16px;
        max-width: none;
    }
}

/* FILMS PAGE */
.section-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.search-section { margin-bottom: 3rem; }
.section-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 1.5rem; }
.search-box-large { display: flex; gap: 1rem; margin-bottom: 2rem; }
.search-input-large {
    flex: 1;
    background: var(--bg-card);
    border: 2px solid var(--border);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    font-size: 1.1rem;
    outline: none;
    transition: var(--transition);
}
.search-input-large:focus { border-color: var(--accent); box-shadow: 0 0 15px rgba(229, 9, 20, 0.3); }
.search-btn-large {
    background: var(--accent);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    font-family: inherit;
}
.search-btn-large:hover { background: var(--accent-hover); }

.filters-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.filter-label { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
}
.filter-btn:hover { border-color: var(--accent); color: var(--text-primary); }
.filter-btn.active { background: var(--accent); color: white; border-color: var(--accent); }

/* Add Film Button */
.add-film-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.add-film-btn:hover {
    background: var(--accent-hover);
    box-shadow: 0 5px 20px rgba(229,9,20,0.4);
}

/* FILMS GRID */
.films-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch;
}

.film-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.film-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

/* Poster : ratio fixe 2:3, cadrage identique quelle que soit la taille source */
.film-card-poster-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #0d0d0d;
    flex-shrink: 0;
}
.film-card-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.4s ease;
}
.film-card:hover .film-card-poster { transform: scale(1.05); }

.film-card-year-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    color: var(--text-primary);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    letter-spacing: 0.3px;
    z-index: 5;
}

/* Corps de la carte : hauteur uniforme via flex + line-clamp sur le titre */
.film-card-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.film-card-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 0.7rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.3em * 2);
}
.film-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 0.9rem;
    min-height: 1.2rem;
}
.film-card-meta span { display: flex; align-items: center; gap: 0.35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.film-card-meta i { color: var(--accent); flex-shrink: 0; }
.film-card-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    min-height: 1.8rem;
}
.film-card-genre {
    background: rgba(229, 9, 20, 0.15);
    color: var(--accent);
    padding: 0.28rem 0.7rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    white-space: nowrap;
}
.film-card-btn {
    width: 100%;
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 0.85rem;
    transition: var(--transition);
    font-family: inherit;
    margin-top: auto;
}
.film-card-btn:hover { background: var(--accent-hover); box-shadow: 0 6px 18px rgba(229, 9, 20, 0.35); }

/* =========================================
   STREAM PAGE - FULLSCREEN VIDEO PLAYER
   ========================================= */
.stream-page {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
    display: none;
    overflow: hidden;
}
.stream-page.active {
    display: flex;
    flex-direction: column;
}

.stream-bg {
    position: absolute;
    inset: 0;
    background: #000;
}

/* IFRAME - plein écran */
.stream-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
    z-index: 10;
}

/* TOP BAR - overlaid on iframe */
.stream-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, transparent 100%);
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.stream-page.show-ui .stream-top {
    opacity: 1;
    pointer-events: auto;
}

.stream-top-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.stream-btn-back {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    pointer-events: auto;
}
.stream-btn-back:hover {
    background: var(--accent);
}

.stream-top-divider {
    width: 1px;
    height: 24px;
    background: rgba(255,255,255,0.2);
}

.stream-top-title {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    max-width: 350px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stream-top-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.stream-btn-icon {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    pointer-events: auto;
}
.stream-btn-icon:hover {
    background: rgba(255,255,255,0.2);
}

/* LOADING OVERLAY */
.stream-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 50;
    background: #000;
}
.stream-loading.active {
    display: flex;
}
.stream-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.15);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spinAnim 0.7s linear infinite;
}
@keyframes spinAnim {
    to { transform: rotate(360deg); }
}
.stream-loading-text {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Floating show-controls button */
.stream-show-btn {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 90;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    color: white;
    font-size: 1.1rem;
}
.stream-show-btn.active {
    display: flex;
}
.stream-show-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(-50%) scale(1.1);
}

/* Mobile */
@media (max-width: 768px) {
    .stream-top {
        padding: 0.7rem 0.8rem;
    }
    .stream-top-title {
        font-size: 0.85rem;
        max-width: 150px;
    }
    .stream-btn-back, .stream-btn-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}

/* Streaming badge on card */
.streaming-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #1a6dd4;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    z-index: 12;
    box-shadow: 0 2px 8px rgba(26, 109, 212, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.5);
    animation: pulse-stream 2s ease-in-out infinite;
}
@keyframes pulse-stream {
    0%, 100% { box-shadow: 0 0 0 0 rgba(26, 109, 212, 0.6); }
    50% { box-shadow: 0 0 0 8px rgba(26, 109, 212, 0); }
}

/* Stream button in detail page */
.stream-btn:hover {
    background: #2180e8 !important;
    box-shadow: 0 10px 30px rgba(26, 109, 212, 0.4) !important;
    transform: translateY(-2px);
}

/* Streaming filter button active state */
.filter-btn i.fa-play {
    margin-right: 0.3rem;
    font-size: 0.75rem;
}

/* Delete film button on card */
.film-delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.75);
    color: #ff4444;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 10;
}
.film-card:hover .film-delete-btn { opacity: 1; }
.film-delete-btn:hover { background: #ff4444; color: white; }

/* FILM DETAIL */
.film-detail-container { padding: 8rem 0 4rem; }
.back-btn {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 2rem;
    transition: var(--transition);
    font-family: inherit;
}
.back-btn:hover { border-color: var(--accent); color: var(--accent); }

.film-detail-content { display: grid; grid-template-columns: 350px 1fr; gap: 4rem; }
.film-poster-large { width: 100%; border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.6); }
.film-title-large { font-size: 3rem; font-weight: 900; margin-bottom: 1rem; }
.film-meta-large { display: flex; gap: 2rem; margin-bottom: 2rem; color: var(--text-secondary); flex-wrap: wrap; }
.film-meta-large span { display: flex; align-items: center; gap: 0.5rem; }
.film-meta-large i { color: var(--accent); }
.film-description { font-size: 1.1rem; line-height: 1.8; color: var(--text-secondary); margin-bottom: 2rem; }
.film-technical-info {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}
.film-technical-info h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-primary); }
.tech-info-item { display: flex; justify-content: space-between; padding: 0.8rem 0; border-bottom: 1px solid var(--border); }
.tech-label i { color: var(--accent); margin-right: 10px; }
.reveal-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 4px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    width: 100%;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}
.reveal-btn:hover {
    background: var(--accent-hover);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.4);
}

/* SUGGESTIONS */
.suggestions-container { padding: 8rem 0 4rem; background: var(--bg-primary); }
.suggestions-header { text-align: center; margin-bottom: 4rem; }
.suggestions-title { font-size: 3rem; font-weight: 800; margin-bottom: 1rem; }
.suggestions-subtitle { font-size: 1.1rem; color: var(--text-secondary); }
/* ========================
   SUGGESTIONS - EQUAL HEIGHT + SCROLL
   ======================== */
.suggestions-content { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 4rem; 
    align-items: stretch; 
}

/* Both containers have the exact same height - CLEAN & PROFESSIONAL */
.suggestion-form-container, 
.suggestions-list-container {
    background: var(--bg-secondary);
    padding: 2.6rem 3rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    height: 780px;                    /* Balanced, elegant height */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Suggestions list: scrollable */
.suggestions-list-container {
    overflow-y: auto !important;
}

/* Form styling - clean & premium when container is taller */
.suggestion-form-container form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.suggestion-form-container .form-group {
    margin-bottom: 0;
}

.suggestion-form-container .form-group:last-child {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.suggestion-form-container label {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
}

.suggestion-form-container input,
.suggestion-form-container select,
.suggestion-form-container textarea {
    padding: 1rem 1.2rem;
    font-size: 1rem;
    border-radius: 10px;
}

.suggestion-form-container textarea {
    flex: 1;
    min-height: 160px;
    resize: vertical;
}
.suggestions-list-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 1.5rem; }

.auth-notice {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px dashed var(--border);
}
.auth-notice p { color: var(--text-secondary); font-size: 1rem; margin-bottom: 1.5rem; }
.auth-notice button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
    font-family: inherit;
}
.auth-notice button:hover {
    background: var(--accent-hover);
    box-shadow: 0 5px 20px rgba(229, 9, 20, 0.4);
}

/* FORMS */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group label { font-weight: 600; font-size: 0.9rem; color: var(--text-secondary); }
.form-group input, .form-group select, .form-group textarea {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: white;
    padding: 1rem;
    border-radius: 4px;
    outline: none;
    transition: var(--transition);
    font-size: 0.95rem;
    font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.2);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group input[type="checkbox"] { width: auto; }
.submit-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    width: 100%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-family: inherit;
    font-size: 0.95rem;
}
.submit-btn:hover {
    background: var(--accent-hover);
    box-shadow: 0 5px 20px rgba(229, 9, 20, 0.4);
}

/* Suggestion Items */
.suggestion-item {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-bottom: 1.2rem;
    transition: var(--transition);
}
.suggestion-item:hover { border-color: rgba(229, 9, 20, 0.4); }

.suggestion-author {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.suggestion-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}
.suggestion-item-title { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.suggestion-item-type {
    background: rgba(229, 9, 20, 0.2);
    color: var(--accent);
    padding: 0.2rem 0.7rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}
.suggestion-item-comment {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    line-height: 1.6;
}
.suggestion-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.suggestion-item-date { font-size: 0.8rem; color: var(--text-muted); }

.like-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: inherit;
}
.like-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.like-btn.active { color: var(--accent); border-color: var(--accent); background: rgba(229, 9, 20, 0.1); }
.like-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.delete-btn {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: inherit;
}
.delete-btn:hover:not(:disabled) { color: #ff6666; }
.delete-btn:disabled { color: var(--text-muted); cursor: not-allowed; opacity: 0.4; }

/* FOOTER */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 3rem 4rem;
    margin-top: 4rem;
    text-align: center;
}
.footer-disclaimer, .footer-author { color: var(--text-muted); font-size: 0.8rem; margin-top: 0.5rem; }

/* PAGES */
.page { display: none; animation: fadeIn 0.3s ease; }
.page.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.no-films, .no-suggestions {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem;
    font-size: 1.1rem;
}

/* =========================================
   MOBILE HAMBURGER MENU & DRAWER
   ========================================= */
.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    transition: var(--transition);
}
.mobile-menu-btn:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.08);
}

.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mobile-nav-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 275px;
    background: #111111;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 2001;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: 25px 0 60px rgba(0,0,0,0.9);
}
.mobile-nav-drawer.active {
    transform: translateX(0);
}
.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}
.mobile-drawer-logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -0.5px;
}
.mobile-drawer-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.mobile-drawer-close:hover {
    background: var(--accent);
}
.mobile-drawer-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.12rem;
    font-weight: 600;
    padding: 0.85rem 1.2rem;
    border-radius: 8px;
    transition: var(--transition);
}
.mobile-nav-link i {
    width: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition);
}
.mobile-nav-link:hover, .mobile-nav-link.active {
    background: rgba(229, 9, 20, 0.15);
    color: white;
}
.mobile-nav-link:hover i, .mobile-nav-link.active i {
    color: var(--accent);
}
.mobile-drawer-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.82rem;
    text-align: center;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.5rem; }
    .home-categories { padding: 2rem 2rem 4rem; }
    .carousel-nav { display: none; }
}
@media (max-width: 768px) {
    .film-detail-content, .suggestions-content { grid-template-columns: 1fr; gap: 2rem; }
    .nav-links { display: none !important; }
    .mobile-menu-btn { display: flex !important; }
    .nav-container { padding: 0 1rem; }
    .nav-logo h1 { font-size: 1.5rem; }
    .btn-auth { padding: 0.45rem 0.9rem; font-size: 0.8rem; }
    
    /* Hero mobile parfait */
    .home-hero { padding: 5.5rem 1.2rem 2.5rem; min-height: 65vh; }
    .hero-title { font-size: 2.4rem; margin-bottom: 0.8rem; }
    .hero-badge { font-size: 0.75rem; padding: 0.35rem 0.85rem; }
    .hero-meta { gap: 0.8rem; font-size: 0.85rem; }
    .hero-synopsis { font-size: 0.95rem; line-height: 1.55; -webkit-line-clamp: 3; }
    .hero-actions { flex-direction: column; width: 100%; gap: 0.7rem; }
    .hero-btn { width: 100%; padding: 0.85rem 1.5rem; font-size: 0.95rem; }

    /* Carrousels et cartes mobile */
    .home-categories { padding: 1.5rem 1rem 4rem; margin-top: -1.5rem; }
    .category-title { font-size: 1.3rem; }
    .category-row { margin-bottom: 2.5rem; }
    .carousel-item { flex: 0 0 155px; }
    .carousel-track { gap: 0.85rem; padding: 0.5rem 0.2rem 1.5rem; -webkit-overflow-scrolling: touch; }
    
    /* Grilles Films & Séries 2 colonnes sur téléphone */
    .films-results {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.85rem !important;
        margin-top: 1.5rem;
    }
    .film-card-info { padding: 0.85rem; }
    .film-card-title { font-size: 0.95rem; margin-bottom: 0.4rem; }
    .film-card-meta { font-size: 0.72rem; gap: 0.5rem; margin-bottom: 0.6rem; }
    .film-card-btn { padding: 0.6rem; font-size: 0.78rem; }

    /* Recherches et Filtres mobiles */
    .search-box-large { flex-direction: column; gap: 0.7rem; }
    .search-input-large, .search-btn-large { width: 100%; padding: 0.85rem 1rem; font-size: 0.95rem; }
    .filters-bar {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.8rem;
        gap: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .filters-bar::-webkit-scrollbar { display: none; }
    .filter-btn { flex: 0 0 auto; padding: 0.45rem 0.9rem; font-size: 0.8rem; }
    
    .soon-title { font-size: 3.5rem; }
    .suggestion-form-container, .suggestions-list-container { padding: 1.2rem; }
    .film-title-large { font-size: 1.8rem; }
    .form-row { grid-template-columns: 1fr; }
    .modal-large { padding: 1.2rem; }
    
    /* Saisons mobile */
    .seasons-container { padding: 1.2rem; margin-top: 1.5rem; }
    .season-card-header { padding: 1rem; }
    .season-card-title-wrap { gap: 0.8rem; }
    .season-tech-grid { grid-template-columns: 1fr; gap: 0.6rem; }
}

@media (max-width: 400px) {
    .films-results { grid-template-columns: repeat(2, 1fr) !important; gap: 0.6rem !important; }
    .carousel-item { flex: 0 0 140px; }
    .hero-title { font-size: 2rem; }
}
