/* ================================================================
   BABIMOOD — Design Premium 2024
   Thème : Noir profond + Rouge cinéma + Or premium
   ================================================================ */

/* ── Variables globales ─────────────────────────────────────────── */
:root {
    --bg:        #070B14;
    --bg2:       #0E1420;
    --bg3:       #141B2D;
    --red:       #E8272B;
    --red-dark:  #C4181C;
    --gold:      #F5A623;
    --white:     #FFFFFF;
    --text-sub:  #8A95B0;
    --text-muted:#4A5368;
    --border:    #1C2438;
    --card-bg:   #0E1420;
    --radius:    12px;
    --radius-lg: 18px;
    --shadow:    0 8px 32px rgba(0,0,0,0.5);
    --shadow-red:0 4px 20px rgba(232,39,43,0.3);
    --transition:all 0.25s ease;
}

/* ── Reset & Base ───────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* ── Header & Navigation ────────────────────────────────────────── */
.header {
    background: rgba(7,11,20,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo h1 {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -0.5px;
}
.logo h1 span { color: var(--red); }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}
.nav-menu a {
    color: var(--text-sub);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    padding-bottom: 2px;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 2px;
    background: var(--red);
    transition: var(--transition);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--white); }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }

/* Recherche */
.nav-search { flex: 1; max-width: 320px; }
.search-form { position: relative; }
.search-input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.4rem;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--white);
    font-size: 0.85rem;
    transition: var(--transition);
}
.search-input:focus {
    outline: none;
    border-color: var(--red);
    background: var(--bg2);
    box-shadow: 0 0 0 3px rgba(232,39,43,0.1);
}
.search-input::placeholder { color: var(--text-muted); }
.search-btn {
    position: absolute;
    left: 0.8rem; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}
.search-btn:hover { color: var(--red); }

/* User menu */
.nav-user { position: relative; display: flex; align-items: center; gap: 0.8rem; }

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    background: var(--bg3);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.user-menu:hover { border-color: var(--red); background: var(--bg2); }

.user-name {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.premium-badge {
    background: linear-gradient(135deg, var(--gold), #E8911B);
    color: #000;
    font-size: 0.6rem;
    padding: 0.15rem 0.4rem;
    border-radius: 20px;
    font-weight: 700;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    box-shadow: var(--shadow);
    z-index: 200;
}
.user-menu.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1rem;
    color: var(--text-sub);
    font-size: 0.875rem;
    border-radius: 8px;
    transition: var(--transition);
}
.user-dropdown a:hover { background: var(--bg3); color: var(--white); }
.user-dropdown a i { width: 18px; color: var(--red); }
.premium-link { color: var(--gold) !important; }
.premium-link i { color: var(--gold) !important; }

/* Boutons login/register */
.btn-login {
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--red);
    color: var(--red);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}
.btn-login:hover { background: var(--red); color: var(--white); }

.btn-register {
    padding: 0.5rem 1.2rem;
    background: var(--red);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid var(--red);
}
.btn-register:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: var(--shadow-red); }

/* Menu hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--white);
    font-size: 1.1rem;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    transition: var(--transition);
}
.menu-toggle:hover { border-color: var(--red); color: var(--red); }

/* Menu mobile */
.mobile-menu {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--bg);
    z-index: 2000;
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); visibility: visible; }

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.mobile-menu-header h2 { font-size: 1.4rem; font-weight: 800; }
.mobile-menu-header h2 span { color: var(--red); }
.close-menu { background: none; border: none; color: var(--white); font-size: 1.4rem; transition: var(--transition); }
.close-menu:hover { color: var(--red); transform: rotate(90deg); }

.mobile-search { margin-bottom: 1.5rem; }
.mobile-search .search-input { width: 100%; padding: 0.8rem 1rem 0.8rem 2.5rem; }

.mobile-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1rem;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-sub);
    font-size: 0.9rem;
    transition: var(--transition);
}
.mobile-nav a:hover { background: var(--bg3); color: var(--white); border-color: var(--red); }
.mobile-nav a i { width: 22px; color: var(--red); }

/* Bannière premium */
.premium-banner {
    background: linear-gradient(135deg, rgba(232,39,43,0.15), rgba(245,166,35,0.1));
    border-bottom: 1px solid rgba(232,39,43,0.2);
    padding: 0.55rem 1.5rem;
}
.premium-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 0.5rem;
}
.premium-banner span { font-size: 0.82rem; color: var(--text-sub); }
.premium-banner-btn {
    background: linear-gradient(135deg, var(--gold), #E8911B);
    color: #000;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    transition: var(--transition);
}
.premium-banner-btn:hover { transform: scale(1.04); box-shadow: 0 4px 15px rgba(245,166,35,0.3); }

/* ── Hero Section ───────────────────────────────────────────────── */
.hero-section {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(ellipse at 30% 50%, rgba(232,39,43,0.15) 0%, var(--bg) 65%);
    padding: 4rem 2rem;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(232,39,43,0.15)"/><circle cx="80" cy="60" r="1.5" fill="rgba(245,166,35,0.1)"/><circle cx="50" cy="80" r="1" fill="rgba(255,255,255,0.05)"/></svg>');
    pointer-events: none;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}
.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}
.hero-content h1 span { color: var(--red); }
.hero-content p {
    font-size: 1.1rem;
    color: var(--text-sub);
    margin-bottom: 2rem;
    max-width: 520px;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: var(--red);
    color: var(--white);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    border: 2px solid var(--red);
}
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: var(--shadow-red); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: rgba(255,255,255,0.07);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid var(--border);
    transition: var(--transition);
}
.btn-secondary:hover { border-color: var(--white); background: rgba(255,255,255,0.12); transform: translateY(-2px); }

.btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: linear-gradient(135deg, var(--gold), #E8911B);
    color: #000;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
}
.btn-premium:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(245,166,35,0.4); }

/* Stats hero */
.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 3rem;
}
.stat-item { text-align: left; }
.stat-num { font-size: 1.8rem; font-weight: 900; color: var(--white); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Bannière invitation ─────────────────────────────────────────── */
.invite-banner {
    background: linear-gradient(135deg, var(--bg2), var(--bg3));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
}
.invite-banner-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.invite-banner-text {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.9rem;
    color: var(--text-sub);
}
.invite-banner-text i { color: var(--gold); font-size: 1rem; }
.invite-banner-text strong { color: var(--white); }
.invite-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.3rem;
    background: var(--red);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}
.invite-banner-btn:hover { background: var(--red-dark); transform: translateY(-1px); }

/* ── Content sections ───────────────────────────────────────────── */
.content-sections {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}
.content-section { margin-bottom: 4rem; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.section-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.section-header h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 22px;
    background: var(--red);
    border-radius: 2px;
}
.view-all {
    color: var(--red);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.view-all:hover { color: var(--white); gap: 0.6rem; }

/* ── Cards ──────────────────────────────────────────────────────── */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 1.2rem;
}

.content-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}
.content-card:hover {
    transform: translateY(-6px);
    border-color: rgba(232,39,43,0.4);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.card-poster {
    position: relative;
    padding-top: 150%;
    overflow: hidden;
    background: var(--bg3);
}
.card-poster img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.content-card:hover .card-poster img { transform: scale(1.06); }

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 1rem;
    opacity: 0;
    transition: var(--transition);
}
.content-card:hover .card-overlay { opacity: 1; }

.play-icon {
    width: 48px; height: 48px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-red);
    transform: scale(0.8);
    transition: transform 0.2s ease;
}
.content-card:hover .play-icon { transform: scale(1); }

/* Badges sur la carte */
.card-badge {
    position: absolute;
    top: 0.6rem;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.card-badge-premium {
    right: 0.6rem;
    background: linear-gradient(135deg, var(--gold), #E8911B);
    color: #000;
}
.card-badge-new {
    left: 0.6rem;
    background: var(--red);
    color: var(--white);
}

.card-info { padding: 0.9rem; }
.card-info h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-meta {
    display: flex;
    gap: 0.6rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    align-items: center;
}
.card-rating {
    color: var(--gold);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}
.card-type {
    background: var(--bg3);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--text-sub);
    border: 1px solid var(--border);
}

/* Message vide */
.empty-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}
.empty-message i { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.4; display: block; }

/* ── Pages Login / Register ─────────────────────────────────────── */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    padding: 2rem;
}
.auth-container {
    width: 100%;
    max-width: 440px;
}
.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}
.auth-logo h1 { font-size: 2rem; font-weight: 900; }
.auth-logo h1 span { color: var(--red); }
.auth-logo p { color: var(--text-sub); font-size: 0.9rem; margin-top: 0.5rem; }

.auth-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}
.auth-card h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1.2rem; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-sub);
    margin-bottom: 0.4rem;
    font-weight: 500;
}
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--white);
    font-size: 0.9rem;
    transition: var(--transition);
    font-family: inherit;
}
.form-control:focus {
    outline: none;
    border-color: var(--red);
    background: var(--bg);
    box-shadow: 0 0 0 3px rgba(232,39,43,0.1);
}
.form-control::placeholder { color: var(--text-muted); }

.btn-auth {
    width: 100%;
    padding: 0.85rem;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
}
.btn-auth:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: var(--shadow-red); }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.2rem 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.social-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    margin-bottom: 0.6rem;
}
.social-btn:hover { border-color: var(--red); background: var(--bg2); }
.social-btn .fab { font-size: 1.1rem; }
.fa-google { color: #EA4335; }
.fa-facebook-f { color: #1877F2; }

.auth-footer {
    text-align: center;
    margin-top: 1.2rem;
    font-size: 0.875rem;
    color: var(--text-sub);
}
.auth-footer a { color: var(--red); font-weight: 600; }
.auth-footer a:hover { color: var(--white); }

.alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.alert-error { background: rgba(232,39,43,0.12); border: 1px solid rgba(232,39,43,0.3); color: #ff6b6b; }
.alert-success { background: rgba(39,174,96,0.12); border: 1px solid rgba(39,174,96,0.3); color: #55d98d; }

/* ── Player ──────────────────────────────────────────────────────── */
.player-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.video-wrapper {
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: relative;
}
.video-wrapper video {
    width: 100%;
    display: block;
    max-height: 70vh;
}

.player-info {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-top: 1.5rem;
}
.player-info h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.8rem; }
.player-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--text-sub);
    margin-bottom: 1rem;
}
.player-meta span { display: flex; align-items: center; gap: 0.3rem; }
.player-meta i { color: var(--red); }

.player-actions {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn-favorite, .btn-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.2rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--bg3);
    color: var(--white);
}
.btn-favorite:hover, .btn-action:hover { border-color: var(--red); color: var(--red); }
.btn-favorite.active { background: var(--red); border-color: var(--red); color: var(--white); }

/* Qualité vidéo */
.quality-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.quality-btn {
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--bg3);
    color: var(--text-sub);
    cursor: pointer;
    transition: var(--transition);
}
.quality-btn:hover, .quality-btn.active { border-color: var(--red); color: var(--red); background: rgba(232,39,43,0.08); }

/* Publicité */
.ad-container {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    margin: 1rem 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}
.ad-container .ad-label { margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 1px; font-size: 0.7rem; }

/* ── Page Premium ────────────────────────────────────────────────── */
.premium-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}
.premium-hero {
    text-align: center;
    margin-bottom: 3rem;
}
.premium-hero h1 { font-size: 2.2rem; font-weight: 900; margin-bottom: 1rem; }
.premium-hero h1 i { color: var(--gold); }
.premium-hero p { color: var(--text-sub); font-size: 1rem; }

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.plan-card {
    background: var(--bg2);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    transition: var(--transition);
}
.plan-card:hover { border-color: var(--red); transform: translateY(-4px); }
.plan-card.featured {
    border-color: var(--gold);
    background: linear-gradient(135deg, var(--bg2), rgba(245,166,35,0.05));
}
.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gold), #E8911B);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.8rem;
    border-radius: 20px;
    white-space: nowrap;
}
.plan-icon { font-size: 2rem; color: var(--red); margin-bottom: 1rem; }
.plan-card.featured .plan-icon { color: var(--gold); }
.plan-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.plan-price { margin-bottom: 1.2rem; }
.plan-price .amount { font-size: 2.2rem; font-weight: 900; color: var(--white); }
.plan-price .currency { font-size: 0.9rem; color: var(--text-sub); margin-left: 0.3rem; }
.plan-price .period { font-size: 0.8rem; color: var(--text-muted); display: block; }
.plan-features { list-style: none; margin-bottom: 1.5rem; }
.plan-features li {
    padding: 0.4rem 0;
    font-size: 0.875rem;
    color: var(--text-sub);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.plan-features li:last-child { border: none; }
.btn-subscribe {
    width: 100%;
    padding: 0.85rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid var(--red);
    background: transparent;
    color: var(--red);
    cursor: pointer;
    transition: var(--transition);
}
.btn-subscribe:hover { background: var(--red); color: var(--white); box-shadow: var(--shadow-red); }
.plan-card.featured .btn-subscribe {
    background: linear-gradient(135deg, var(--gold), #E8911B);
    border-color: var(--gold);
    color: #000;
}
.plan-card.featured .btn-subscribe:hover { box-shadow: 0 4px 20px rgba(245,166,35,0.4); }

/* ── Movie/Serie Detail ──────────────────────────────────────────── */
.detail-hero {
    position: relative;
    height: 450px;
    overflow: hidden;
}
.detail-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(2px) brightness(0.3);
    transform: scale(1.05);
}
.detail-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(7,11,20,0.95) 40%, transparent 100%),
                linear-gradient(to top, var(--bg) 0%, transparent 30%);
}
.detail-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    height: 100%;
    display: flex;
    align-items: flex-end;
    gap: 2rem;
}
.detail-poster {
    width: 160px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--border);
    box-shadow: var(--shadow);
}
.detail-poster img { width: 100%; display: block; }
.detail-info { flex: 1; }
.detail-info h1 { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 900; margin-bottom: 0.8rem; }
.detail-meta { display: flex; gap: 0.8rem; flex-wrap: wrap; font-size: 0.875rem; color: var(--text-sub); margin-bottom: 1rem; align-items: center; }
.detail-meta .rating { color: var(--gold); font-weight: 700; display: flex; align-items: center; gap: 0.2rem; }
.detail-meta .genre {
    background: rgba(232,39,43,0.12);
    border: 1px solid rgba(232,39,43,0.2);
    color: var(--red);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
}
.detail-desc { color: var(--text-sub); font-size: 0.9rem; line-height: 1.7; max-width: 550px; margin-bottom: 1.2rem; }
.detail-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ── Profile ─────────────────────────────────────────────────────── */
.profile-page {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}
.profile-header {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.profile-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    color: var(--white);
    flex-shrink: 0;
}
.profile-name { font-size: 1.3rem; font-weight: 800; }
.profile-email { color: var(--text-sub); font-size: 0.875rem; margin-top: 0.2rem; }

/* ── Search Page ─────────────────────────────────────────────────── */
.search-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}
.search-hero {
    text-align: center;
    margin-bottom: 2.5rem;
}
.search-hero h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 0.5rem; }
.search-hero p { color: var(--text-sub); }
.search-big {
    display: flex;
    max-width: 600px;
    margin: 1.5rem auto 0;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
    transition: var(--transition);
}
.search-big:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(232,39,43,0.1); }
.search-big input {
    flex: 1;
    padding: 0.9rem 1.2rem;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1rem;
    outline: none;
    font-family: inherit;
}
.search-big input::placeholder { color: var(--text-muted); }
.search-big button {
    padding: 0.7rem 1.5rem;
    background: var(--red);
    color: var(--white);
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}
.search-big button:hover { background: var(--red-dark); }

/* Filtres */
.filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.filter-btn {
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-size: 0.825rem;
    font-weight: 500;
    border: 1px solid var(--border);
    background: var(--bg2);
    color: var(--text-sub);
    cursor: pointer;
    transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active { border-color: var(--red); color: var(--red); background: rgba(232,39,43,0.08); }

/* ── Favorites / History ─────────────────────────────────────────── */
.page-header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem 0;
}
.page-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.page-header h1 i { color: var(--red); }
.page-header p { color: var(--text-sub); font-size: 0.9rem; }

/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    margin-top: 5rem;
    padding: 3rem 0 0;
}
.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}
.footer-brand h3 {
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 0.8rem;
}
.footer-brand h3 span { color: var(--red); }
.footer-brand p { color: var(--text-sub); font-size: 0.875rem; line-height: 1.7; max-width: 280px; }
.footer-section h4 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 0.6rem; }
.footer-section a { color: var(--text-sub); font-size: 0.875rem; transition: var(--transition); }
.footer-section a:hover { color: var(--white); padding-left: 4px; }
.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ── Loader / Spinner ────────────────────────────────────────────── */
.loader {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}
.spinner {
    width: 36px; height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Notifications / Toasts ──────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    box-shadow: var(--shadow);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideIn 0.3s ease;
}
.toast.success { border-color: rgba(39,174,96,0.3); }
.toast.error { border-color: rgba(232,39,43,0.3); }
.toast i { font-size: 1.1rem; }
.toast.success i { color: #55d98d; }
.toast.error i { color: var(--red); }
@keyframes slideIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .footer-content { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .nav-menu, .nav-search, .btn-login, .btn-register { display: none; }
    .menu-toggle { display: flex; }

    .hero-section { padding: 2.5rem 1.2rem; min-height: 380px; }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-stats { gap: 1.5rem; }
    .stat-num { font-size: 1.4rem; }

    .content-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.8rem; }
    .content-sections { padding: 2rem 1rem; }

    .detail-hero { height: auto; }
    .detail-content { flex-direction: column; padding: 1.5rem; }
    .detail-poster { width: 120px; }

    .footer-content { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer { margin-top: 3rem; }

    .player-container { padding: 0 1rem; }
    .plans-grid { grid-template-columns: 1fr; }

    .premium-hero h1 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    .nav-container { padding: 0.7rem 1rem; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons a { text-align: center; justify-content: center; }
    .hero-stats { display: none; }
    .content-grid { grid-template-columns: repeat(2, 1fr); }
    .auth-card { padding: 1.5rem; }
    .detail-content { align-items: flex-start; }
    .invite-banner-content { flex-direction: column; text-align: center; }
}
