/* ===== JOHNNY TV - CSS UNIQUE OPTIMISÉ v3.0 ===== */
/* Toutes modifications incluses : Mode Cinéma + Fixes Mobile + Bouton Compte */
/* ===== EFFETS DE LUMIÈRE BACKGROUND ===== */

.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.background-effects::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
    animation: rotateLight 20s linear infinite;
}

.background-effects::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(135deg, transparent 0%, rgba(212, 175, 55, 0.03) 50%, transparent 100%),
        linear-gradient(45deg, rgba(59, 130, 246, 0.02) 0%, transparent 50%);
    animation: shiftLight 15s ease-in-out infinite;
}

@keyframes rotateLight {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes shiftLight {
    0%, 100% { 
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
    50% { 
        opacity: 0.6;
        transform: translateX(20px) translateY(-20px);
    }
}

/* ===== Z-INDEX HIÉRARCHIE ===== */

/* Contenu principal */
.tv-container,
.tv-main-content {
    position: relative;
    z-index: 1 !important;
}

/* Bottom nav mobile */
.bottom-nav {
    position: fixed;
    z-index: 1000 !important;
}

/* Dock desktop - GARDER SON POSITIONNEMENT ORIGINAL */
.dock,
#floatingDock {
    z-index: 1000 !important;
    /* ✅ PAS de position: relative */
}

/* Modals et overlays */
.party-widget,
.chat-widget,
.modal-overlay,
.user-dropdown {
    z-index: 10000 !important;
}
/* ===== VARIABLES GLOBALES ===== */
:root {
    --primary-black: #000000;
    --secondary-black: #0a0a0a;
    --dark-gray: #1a1a1a;
    --gold: #d4af37;
    --light-gold: #f0d77e;
    --dark-gold: #b8941f;
    --text-white: #ffffff;
    --text-gray: #b3b3b3;
    --purple: #6366f1;
    --purple-dark: #8b5cf6;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--primary-black);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

.container {
    max-width: 100%;  /* ✅ Utilise toute la largeur */
    margin: 0 auto;
    padding: 0 60px;  /* Marges latérales */
}

/* ===== SECTION CONTENU PLEINE LARGEUR ===== */

.tv-content-section {
    padding: 60px 5% 100px;  /* Padding directement sur la section */
    background: linear-gradient(180deg, #0a0a0a 0%, #000 100%);
}

.tv-content-grid {
    display: block;
    width: 100%;
    max-width: 100%;
}

.tv-main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 100%;
}

/* Cartes pleine largeur */
.tv-current-program-card,
.upcoming-program-card,
.tv-stats-card {
    width: 100%;
    max-width: 100%;
}

/* Mobile */
@media (max-width: 768px) {
    .tv-content-section {
        padding: 40px 15px 80px;
    }
    
    .tv-main-content {
        gap: 20px;
    }
}

/* ===== HEADER (INDEX) ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.95), rgba(0,0,0,0.7));
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(0,0,0,0.98);
    padding: 15px 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    z-index: 1002;
}

.logo-text {
    font-size: 28px;
    font-weight: bold;
    color: var(--gold);
    letter-spacing: 4px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.logo-subtitle {
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--light-gold);
    margin-top: -5px;
}

/* ===== HEADER MINIMAL (JOHNNY TV) ===== */
.header-minimal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    padding: 15px 0;
    display: block;
}

.header-minimal-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.btn-back {
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid var(--gold);
    color: var(--gold);
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: var(--gold);
    color: var(--primary-black);
    transform: translateX(-5px);
}

.logo-minimal {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.header-actions-minimal {
    display: flex;
    gap: 15px;
}

.btn-share {
    background: transparent;
    border: 2px solid rgba(212, 175, 55, 0.3);
    color: var(--text-gray);
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-share:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ===== MENU HAMBURGER PLEIN ÉCRAN ===== */
.nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, rgba(26, 26, 26, 0.98) 100%);
    backdrop-filter: blur(20px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    overflow-y: auto;
}

.nav-menu.active {
    display: flex;
    opacity: 1;
    visibility: visible;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 20px 60px;
}

.nav-link {
    color: var(--text-white);
    text-decoration: none;
    font-size: 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 20px 40px;
    width: 100%;
    max-width: 500px;
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.nav-menu.active .nav-link {
    animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-menu.active .nav-link:nth-child(1) { animation-delay: 0.1s; }
.nav-menu.active .nav-link:nth-child(2) { animation-delay: 0.15s; }
.nav-menu.active .nav-link:nth-child(3) { animation-delay: 0.2s; }
.nav-menu.active .nav-link:nth-child(4) { animation-delay: 0.25s; }
.nav-menu.active .nav-link:nth-child(5) { animation-delay: 0.3s; }

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
    transform: translateX(10px);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    position: relative;
    z-index: 1002;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 25px;
    padding: 8px 40px 8px 20px;
    color: var(--text-white);
    font-size: 14px;
    width: 200px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--gold);
    width: 250px;
}

.search-icon {
    position: absolute;
    right: 15px;
    font-size: 16px;
}

/* Menu Toggle Button */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1002;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--gold);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--dark-gray) 100%);
    margin-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--primary-black) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: 28px;
    letter-spacing: 8px;
    color: var(--text-gray);
    margin-bottom: 10px;
    animation: fadeInDown 1s ease;
}

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

.hero-subtitle {
    font-size: 72px;
    font-weight: bold;
    background: linear-gradient(135deg, var(--gold) 0%, var(--light-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 10px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.8;
    animation: fadeIn 1s ease 0.4s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeIn 1s ease 0.6s both;
}

.btn {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
    color: var(--primary-black);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--primary-black);
    transform: translateY(-3px);
}

/* ===== SECTIONS ===== */
.section {
    padding: 60px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--gold);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
}

.see-all {
    color: var(--gold);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.see-all:hover {
    color: var(--light-gold);
    transform: translateX(5px);
}

/* ===== TV MODERNE SECTION ===== */
.tv-modern-section {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #000000 0%, #1a0a0a 100%);
    position: relative;
    overflow: hidden;
}

.tv-modern-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 25% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 75% 50%, rgba(255, 0, 0, 0.05) 0%, transparent 50%);
    animation: pulseBackground 10s ease-in-out infinite;
}

@keyframes pulseBackground {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.tv-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.tv-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(212, 175, 55, 0.2);
    border: 2px solid rgba(212, 175, 55, 0.5);
    padding: 10px 30px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.tv-title {
    font-size: 64px;
    font-weight: 900;
    background: linear-gradient(135deg, #d4af37 0%, #ff6b6b 50%, #f0d77e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    letter-spacing: 8px;
}

.tv-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 25px;
}

.tv-live-badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid #ff0000;
    border-radius: 50px;
    padding: 12px 30px;
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 0, 0, 0.5); }
    50% { box-shadow: 0 0 40px rgba(255, 0, 0, 0.8); }
}

.live-pulse {
    width: 12px;
    height: 12px;
    background: #ff0000;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

.tv-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.tv-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: var(--text-gray);
    padding: 8px 20px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* ===== CONTAINER VIDÉO ===== */
.tv-video-container {
    max-width: 1400px;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    margin: 0 auto;
    background: rgba(26, 26, 26, 0.9);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 
        0 30px 90px rgba(0, 0, 0, 0.6),
        0 0 0 3px rgba(212, 175, 55, 0.3);
    position: relative;
    transition: all 0.5s ease;
}

.tv-video-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 110px rgba(0, 0, 0, 0.7);
}

.custom-video-wrapper,
#tvVideoWrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.custom-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== OVERLAY DÉMARRAGE TV ===== */
.tv-start-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(26, 26, 26, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.tv-start-content {
    text-align: center;
    padding: 40px;
}

.tv-start-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

.tv-start-title {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, #d4af37 0%, #ff6b6b 50%, #f0d77e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.tv-start-text {
    font-size: 18px;
    color: var(--text-gray);
}

/* ===== CONTRÔLES TV ===== */
.tv-controls-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.tv-video-container:hover .tv-controls-overlay {
    opacity: 1;
    pointer-events: all;
}

.tv-controls-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tv-control-buttons {
    display: flex;
    gap: 10px;
}

.tv-control-btn {
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(212, 175, 55, 0.5);
    border-radius: 50%;
    color: var(--gold);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tv-control-btn:hover {
    background: var(--gold);
    color: var(--primary-black);
    transform: scale(1.1);
}

/* ===== SECTION CONTENU ===== */
.tv-content-section {
    padding: 60px 0 80px;
}
.tv-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.tv-main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ===== CONTENU PLEINE LARGEUR ===== */

.tv-main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    width: 100%;
}

/* Cartes en grille pour meilleure utilisation de l'espace */
@media (min-width: 1024px) {
    /* ===== LAYOUT PLEINE LARGEUR (Desktop et Mobile) ===== */

.tv-main-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    width: 100%;
}

/* Toutes les cartes prennent 100% de la largeur */
.tv-current-program-card,
.upcoming-program-card,
.tv-stats-card {
    width: 100%;
    grid-column: 1 / -1;
}

/* Mobile : une colonne */
@media (max-width: 768px) {
    .tv-content-grid {
        padding: 0 15px;
    }
    
    .tv-main-content {
        gap: 25px;
    }
}
    
    /* Programme actuel prend toute la largeur */
    .tv-current-program-card {
        grid-column: 1 / -1;
    }
}

/* Mobile : une colonne */
@media (max-width: 768px) {
    .tv-content-grid {
        padding: 0 15px;
    }
    
    .tv-main-content {
        gap: 25px;
    }
}

/* ===== CARTES ===== */
.tv-current-program-card,
.upcoming-program-card,
.tv-date-selector-card,
.tv-stats-card,
.sidebar-card,
.watch-history-card {
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--secondary-black) 100%);
    border-radius: 20px;
    padding: 30px;
    border: 2px solid rgba(212, 175, 55, 0.1);
}

.program-card-header,
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.card-title,
.sidebar-title {
    font-size: 22px;
    color: var(--gold);
    margin: 0;
    font-weight: 700;
}

.live-badge-small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid #ff0000;
    border-radius: 15px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    color: #ff0000;
}

.live-dot-small {
    width: 8px;
    height: 8px;
    background: #ff0000;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Programme actuel */
.current-program-info {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.current-program-icon {
    font-size: 60px;
    flex-shrink: 0;
}

.current-program-details h4 {
    font-size: 24px;
    color: var(--text-white);
    margin: 0 0 15px 0;
    font-weight: 700;
}

.current-program-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-gray);
}

/* ===== BADGES PROGRAMME ===== */

.program-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.25), rgba(212, 175, 55, 0.15));
    border: 2px solid var(--gold);
    border-radius: 12px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.program-category-badge:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.35), rgba(212, 175, 55, 0.25));
    border-color: var(--light-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.3);
}

/* Variantes par catégorie */
.program-category-badge.concert {
    border-color: #f59e0b;
    color: #fbbf24;
}

.program-category-badge.clip {
    border-color: #10b981;
    color: #34d399;
}

.program-category-badge.film {
    border-color: #3b82f6;
    color: #60a5fa;
}

.program-category-badge.interview {
    border-color: #8b5cf6;
    color: #a78bfa;
}

.program-progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold) 0%, var(--light-gold) 100%);
    transition: width 1s linear;
}

/* ===== RÉACTIONS ===== */
.quick-reactions {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    margin-top: 15px;
}

.reaction-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reaction-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-3px);
}

.reaction-emoji {
    font-size: 24px;
}

.reaction-count {
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
}

/* ===== PROGRAMME À VENIR ===== */
.countdown-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

.upcoming-program-details {
    display: flex;
    gap: 15px;
    align-items: center;
}

.upcoming-thumbnail {
    font-size: 40px;
    flex-shrink: 0;
}

.upcoming-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-gray);
}

/* ===== STATISTIQUES ===== */
.tv-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-3px);
}

.stat-icon {
    font-size: 36px;
}

.stat-value {
    font-size: 28px;
    font-weight: 900;
    color: var(--gold);
}

.stat-label {
    font-size: 12px;
    color: var(--text-gray);
    text-align: center;
}

/* ===== SIDEBAR PROGRAMME ===== */
.tv-sidebar {
    display: flex;
    flex-direction: column;
}

.sidebar-card {
    max-height: 900px;
    display: flex;
    flex-direction: column;
}

.program-count {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
}

.program-list {
    flex: 1;
    overflow-y: auto;
}

.program-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(212, 175, 55, 0.03);
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.program-item:hover {
    background: rgba(212, 175, 55, 0.08);
    transform: translateX(5px);
}

.program-item.active {
    background: rgba(212, 175, 55, 0.2);
    border-left: 4px solid var(--gold);
}

.program-thumbnail {
    font-size: 40px;
    flex-shrink: 0;
}

.program-info h4 {
    font-size: 15px;
    color: var(--text-white);
    margin: 0 0 8px 0;
    font-weight: 600;
}

.program-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: var(--text-gray);
}

/* ===== HISTORIQUE ===== */
.watch-history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-item:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateX(5px);
}

.history-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.history-details h5 {
    font-size: 14px;
    color: var(--text-white);
    margin-bottom: 3px;
}

.history-details small {
    font-size: 12px;
    color: var(--text-gray);
}

/* ===== SÉLECTEUR DE SEMAINE ===== */
.week-selector-container {
    background: rgba(26, 26, 26, 0.8);
    border-radius: 15px;
    padding: 20px;
    margin: 30px 0;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.week-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.week-day-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 15px 10px;
    background: rgba(212, 175, 55, 0.05);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.week-day-button:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
    transform: translateY(-3px);
}

.week-day-button.today {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold);
}

.day-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
}

.day-date {
    font-size: 12px;
    color: var(--text-gray);
}

/* ===== MODAL PROGRAMME ===== */
.program-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.program-modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.program-modal {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(26, 26, 26, 0.95));
    border: 2px solid var(--gold);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
}

.program-modal-header {
    background: linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.program-modal-title h2 {
    font-size: 22px;
    color: var(--primary-black);
    margin: 0;
}

.program-modal-close {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 50%;
    color: var(--primary-black);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.program-modal-close:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: rotate(90deg);
}

.program-modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
}

/* ===== AUTHENTIFICATION ===== */
.floating-auth-button {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--gold), var(--dark-gold));
    border: 3px solid rgba(212, 175, 55, 0.5);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-black);
    transition: all 0.3s ease;
    z-index: 10001;
}

.floating-auth-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.6);
}

.auth-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 10px;
}

.user-profile-button {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--gold), var(--dark-gold));
    border: 3px solid rgba(212, 175, 55, 0.5);
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
    transition: all 0.3s ease;
}

.user-profile-button:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.6);
}

.user-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    color: var(--primary-black);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.98), rgba(26, 26, 26, 0.98));
    backdrop-filter: blur(20px);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    min-width: 280px;
    max-width: 320px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(212, 175, 55, 0.2);
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.user-dropdown-item:hover {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    padding-left: 25px;
}

.user-dropdown-item:hover::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, var(--gold), var(--dark-gold));
    border-radius: 0 4px 4px 0;
}

.user-dropdown-item span:first-child {
    font-size: 20px;
    flex-shrink: 0;
}

.user-dropdown-divider {
    height: 1px;
    background: rgba(212, 175, 55, 0.2);
    margin: 10px 15px;
}

.dropdown-badge-new {
    margin-left: auto;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 10px;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 8px;
    letter-spacing: 0.5px;
}

.auth-incentive-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 15px;
    padding: 20px 25px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.banner-icon {
    font-size: 36px;
}

.banner-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--purple-dark);
    margin-bottom: 5px;
}

.banner-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.banner-link {
    color: var(--purple-dark);
    font-weight: 600;
    cursor: pointer;
}

/* ===== MODAL AUTHENTIFICATION ULTRA-COMPACTE ===== */
.auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 10001;
    display: none;
    opacity: 0;
    transition: all 0.4s ease;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.auth-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.auth-modal {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.95) 0%,
        rgba(20, 20, 20, 0.98) 50%,
        rgba(0, 0, 0, 0.95) 100%
    );
    backdrop-filter: blur(30px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 25px;
    width: 95%;
    max-width: 420px;
    animation: modalSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.9),
        0 0 60px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: visible;
}

@keyframes modalSlideUp {
    0% {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.auth-modal::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: orbPulse 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes orbPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.auth-modal-header {
    background: transparent;
    padding: 25px 20px 15px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.auth-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    color: var(--gold);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.auth-modal-close:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold);
    transform: rotate(90deg) scale(1.1);
}

.auth-modal-icon {
    font-size: 42px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
    animation: iconBounce 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.auth-modal-title {
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, #d4af37 50%, #f0e68c 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 5s linear infinite;
    margin: 0 0 8px 0;
    letter-spacing: 1px;
}

@keyframes titleShimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.auth-modal-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-weight: 500;
}

.auth-modal-body {
    padding: 0 20px 25px;
    position: relative;
    z-index: 2;
}

.auth-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 14px;
    padding: 3px;
}

.auth-tab {
    flex: 1;
    padding: 9px 14px;
    background: transparent;
    border: none;
    border-radius: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.auth-tab.active {
    background: linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
    color: var(--primary-black);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.auth-tab:not(.active):hover {
    background: rgba(212, 175, 55, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.auth-form {
    display: none;
    animation: fadeIn 0.3s ease;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-input {
    width: 100%;
    padding: 11px 15px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 11px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
}

.form-input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.forgot-password-link {
    text-align: right;
    margin: -6px 0 14px 0;
}

.forgot-password-link a {
    color: var(--gold);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-password-link a:hover {
    color: var(--light-gold);
    text-decoration: underline;
}

.auth-submit-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
    border: none;
    border-radius: 11px;
    color: var(--primary-black);
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
    position: relative;
    overflow: hidden;
}

.auth-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 35px rgba(212, 175, 55, 0.6);
}

.auth-submit-btn:hover::before {
    left: 100%;
}

.auth-submit-btn:active {
    transform: translateY(0) scale(0.98);
}

.forgot-password-modal {
    max-width: 400px;
}

.back-to-login {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.back-to-login a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.back-to-login a:hover {
    color: var(--gold);
    transform: translateX(-3px);
}

.auth-modal-overlay.closing .auth-modal {
    animation: modalSlideDown 0.3s ease forwards;
}

@keyframes modalSlideDown {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(30px) scale(0.95);
        opacity: 0;
    }
}

/* ===== SYSTÈME DE CHAT ===== */
.floating-chat-button {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    z-index: 998;
    transition: all 0.3s ease;
}

.floating-chat-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.chat-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 12px;
    display: none;
}

/* ===== BOUTON PARTAGE (SOUS LE CHAT) ===== */
.floating-share-button {
    position: fixed;
    bottom: 170px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #d4af37, #f0e68c);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 997;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating-share-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.6);
}

/* === BOUTONS PHASE 1 (uniquement pour connectés) === */
.floating-party-button {
    position: fixed;
    bottom: 170px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: all 0.3s ease;
    position: relative;
    animation: pulseParty 2s ease-in-out infinite;
}

.floating-party-button:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 32px rgba(255, 107, 107, 0.6);
}

.party-badge-new {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes pulseParty {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
    }
    50% {
        box-shadow: 0 8px 24px rgba(255, 107, 107, 0.7);
    }
}

.floating-effects-button {
    position: fixed;
    bottom: 250px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(155, 89, 182, 0.4);
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: all 0.3s ease;
}

.floating-effects-button:hover {
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 12px 32px rgba(155, 89, 182, 0.6);
}

.party-quick-menu {
    position: fixed;
    bottom: 240px;
    right: 30px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.98), rgba(26, 26, 26, 0.98));
    border: 2px solid #ff6b6b;
    border-radius: 15px;
    padding: 10px;
    z-index: 1000;
    display: none;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    min-width: 200px;
}

.party-quick-btn {
    background: rgba(255, 107, 107, 0.1);
    border: 2px solid rgba(255, 107, 107, 0.3);
    color: var(--text-white);
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    white-space: nowrap;
}

.party-quick-btn:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: #ff6b6b;
    transform: translateX(-5px);
}

.floating-polls-button {
    position: fixed;
    bottom: 330px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: all 0.3s ease;
}

.floating-polls-button:hover {
    transform: scale(1.15) rotate(-10deg);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.6);
}

/* ===== BOUTON MODE CINÉMA ===== */
.cinema-mode-button {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(26, 26, 26, 0.9));
    backdrop-filter: blur(20px);
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 50%;
    color: var(--gold);
    font-size: 24px;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.cinema-mode-button:hover {
    transform: translateY(-50%) scale(1.1);
    border-color: var(--gold);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, var(--gold), var(--dark-gold));
    color: var(--primary-black);
}

.cinema-mode-button:active {
    transform: translateY(-50%) scale(1.05);
}

.cinema-mode-button::before {
    content: attr(data-tooltip);
    position: absolute;
    left: 70px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    color: var(--gold);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.cinema-mode-button:hover::before {
    opacity: 1;
    visibility: visible;
}


/* ===== LOADING & SPINNER ===== */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 15px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(212, 175, 55, 0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ===== TOAST ===== */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.toast {
    background: var(--dark-gray);
    border-radius: 15px;
    padding: 18px 20px;
    min-width: 300px;
    border: 2px solid;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from { transform: translateX(400px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast-success { border-color: #4ecdc4; }
.toast-error { border-color: #ff6b6b; }
.toast-info { border-color: var(--gold); }

/* ===== VIDEO GRID & CARDS ===== */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.video-card {
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--secondary-black) 100%);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.video-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--gold);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: linear-gradient(135deg, var(--secondary-black) 0%, var(--dark-gray) 100%);
    overflow: hidden;
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.video-card:hover .video-play-overlay {
    opacity: 1;
}

.play-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-black);
}

.video-info {
    padding: 12px 15px;
}

.video-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 8px;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-gray);
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(180deg, var(--secondary-black) 0%, #000000 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding: 60px 0 30px;
    margin-top: 100px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo-text {
    font-size: 32px;
    font-weight: bold;
    color: var(--gold);
    letter-spacing: 4px;
}

.footer-description {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.8;
}

.footer-title {
    color: var(--gold);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: var(--text-gray);
    font-size: 14px;
}

/* ===== DOCK BAR FLOTTANT (Desktop) ===== */
.floating-dock-bar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: none;
}

.dock-items {
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 25px;
    padding: 10px 15px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(212, 175, 55, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dock-item {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    position: relative;
}

.dock-item:hover {
    transform: translateY(-20px) scale(1.2);
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold);
    box-shadow: 
        0 20px 50px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.dock-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 10px currentColor);
}

.dock-label {
    position: absolute;
    bottom: 75px;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 10px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--gold);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

.dock-item:hover .dock-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dock-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 10px;
    font-weight: 900;
    padding: 3px 7px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.6);
    animation: badgePulse 2s ease-in-out infinite;
    display: none;
}

@keyframes badgePulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(239, 68, 68, 0.6);
    }
    50% { 
        transform: scale(1.15);
        box-shadow: 0 4px 25px rgba(239, 68, 68, 0.9);
    }
}

.dock-badge:not(:empty) {
    display: block;
}

/* Séparateur dans le dock */
.dock-separator {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(212, 175, 55, 0.3) 50%, 
        transparent 100%
    );
    margin: 0 5px;
    flex-shrink: 0;
}

/* Style spécial pour le bouton partage */
.dock-item-share {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
}

.dock-item-share:hover {
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.2), 
        rgba(212, 175, 55, 0.15)
    );
    border-color: var(--gold);
}

.dock-item-share .dock-icon {
    color: var(--gold);
}

/* Bouton compte dans le dock */
.dock-item-account {
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.15), 
        rgba(212, 175, 55, 0.08)
    );
    border-color: rgba(212, 175, 55, 0.5);
    position: relative;
}

.dock-item-account::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: radial-gradient(circle at 50% 0%, 
        rgba(212, 175, 55, 0.2) 0%, 
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dock-item-account:hover::after {
    opacity: 1;
}

.dock-item-account:hover {
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.25), 
        rgba(212, 175, 55, 0.15)
    );
    border-color: var(--gold);
    box-shadow: 
        0 20px 50px rgba(212, 175, 55, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.dock-icon-account {
    color: var(--gold);
    animation: accountPulse 3s ease-in-out infinite;
}

@keyframes accountPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.dock-icon-account.has-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--dark-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 900;
    color: var(--primary-black);
    border: 2px solid rgba(212, 175, 55, 0.5);
}

/* ===== BOTTOM NAV (Mobile) ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    border-top: 2px solid rgba(212, 175, 55, 0.3);
    z-index: 999;
    display: none;
    padding: 8px 0;
}

.bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 8px;
    border-radius: 12px;
    min-width: 60px;
}

.bottom-nav-item:active {
    transform: scale(0.95);
}

.bottom-nav-item:last-child {
    border-left: 1px solid rgba(212, 175, 55, 0.2);
    margin-left: 5px;
    padding-left: 10px;
}

.bottom-nav-icon {
    font-size: 24px;
    transition: all 0.3s ease;
    filter: grayscale(1);
}

.bottom-nav-item.active .bottom-nav-icon {
    filter: grayscale(0);
    transform: scale(1.2);
}

.bottom-nav-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
    margin-top: 4px;
}

.bottom-nav-item.active .bottom-nav-label {
    color: var(--gold);
}

.bottom-nav-badge {
    position: absolute;
    top: 5px;
    right: 10px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

#navProfile {
    background: rgba(212, 175, 55, 0.1);
}

#navProfile.active {
    background: rgba(212, 175, 55, 0.2);
}

#navProfile .bottom-nav-icon {
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
}

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

/* Fix vidéo mobile */
@media (max-width: 768px) {
    .tv-video-container {
        padding-bottom: 75% !important;
        border-radius: 15px;
    }
    
    .tv-video-section {
        padding: 0;
    }
    
    .container-full {
        padding: 0 10px;
    }
    
    /* Dropdown mobile centré */
    .user-dropdown {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) scale(0.95);
        min-width: 280px;
        max-width: 90vw;
        z-index: 10002;
    }
    
    .user-dropdown.active {
        transform: translate(-50%, -50%) scale(1);
    }
    
    .user-dropdown::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.8);
        z-index: -1;
    }
    
    /* Header mobile */
    .header-minimal {
        padding: 10px 0;
    }
    
    .header-minimal-content {
        padding: 0 15px;
    }
    
    .btn-back,
    .btn-share {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .logo-minimal .logo-text {
        font-size: 18px;
        letter-spacing: 2px;
    }
    
    .logo-minimal .logo-subtitle {
        font-size: 7px;
        letter-spacing: 2px;
    }
    
    /* Bouton partage mobile */
    .floating-share-button {
        bottom: 100px;
        right: 15px;
        width: 54px;
        height: 54px;
        box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    }
    
    .share-icon {
        font-size: 24px;
    }
    
    /* Bouton cinéma mobile */
    .cinema-mode-button {
        width: 50px;
        height: 50px;
        font-size: 22px;
        left: 15px;
    }
    
    .cinema-mode-button::before {
        left: 60px;
        font-size: 12px;
        padding: 6px 12px;
    }
    
    /* Bottom nav visible */
    .bottom-nav {
        display: block;
    }
    
    /* Profil buttons mobile */
    .user-profile-button,
    .floating-auth-button {
        top: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    
    .user-avatar {
        width: 50px;
        height: 50px;
        font-size: 20px;
        border-width: 2px;
    }
    
    .floating-auth-button {
        font-size: 24px;
        border-width: 2px;
    }
    
    /* Zone de tap plus grande */
    .bottom-nav-item,
    .floating-share-button,
    .user-profile-button,
    .floating-auth-button,
    .cinema-mode-button {
        position: relative;
    }
    
    .bottom-nav-item::before,
    .floating-share-button::before,
    .cinema-mode-button::before {
        content: '';
        position: absolute;
        inset: -10px;
        z-index: -1;
    }
    
    /* Content mobile */
    .tv-content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }
    
    .tv-current-program-card,
    .upcoming-program-card,
    .tv-stats-card,
    .sidebar-card {
        padding: 25px;
        border-radius: 20px;
    }
    
    .tv-stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Boutons Phase 1 mobile */
    .floating-party-button {
        width: 50px;
        height: 50px;
        right: 20px;
        bottom: 140px;
        font-size: 22px;
    }
    
    .floating-effects-button {
        width: 50px;
        height: 50px;
        right: 20px;
        bottom: 210px;
        font-size: 22px;
    }
    
    .party-quick-menu {
        right: 20px;
        bottom: 200px;
        min-width: 180px;
    }
    
    /* Auth modal mobile */
    .auth-modal-overlay {
        padding: 12px;
    }
    
    .auth-modal {
        max-width: 380px;
    }
    
    .auth-modal-header {
        padding: 22px 18px 12px;
    }
    
    body {
        padding-bottom: 80px;
    }
}


@media (max-width: 480px) {
    .tv-video-container {
        padding-bottom: 85% !important;
        border-radius: 10px;
    }
    
    .floating-share-button {
        bottom: 95px;
        right: 15px;
        width: 52px;
        height: 52px;
    }
    
    .share-icon {
        font-size: 24px;
    }
    
    .cinema-mode-button {
        width: 46px;
        height: 46px;
        font-size: 20px;
        left: 12px;
    }
    
    .user-profile-button,
    .floating-auth-button {
        top: 12px;
        right: 12px;
        width: 46px;
        height: 46px;
    }
    
    .user-avatar {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }
    
    .floating-auth-button {
        font-size: 22px;
    }
    
    .user-dropdown {
        min-width: 220px;
    }
    
    .floating-party-button {
        bottom: 120px;
    }
    
    .floating-effects-button {
        bottom: 185px;
    }
    
    .party-quick-menu {
        bottom: 175px;
    }
}

/* Mode paysage mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .tv-video-container {
        padding-bottom: 100vh !important;
        border-radius: 0;
    }
    
    .tv-video-section {
        padding: 0;
        margin: 0;
    }
    
    .header-minimal,
    .bottom-nav,
    .floating-share-button,
    .cinema-mode-button {
        display: none !important;
    }
}

/* Desktop specific */
@media (min-width: 769px) {
    .bottom-nav {
        display: none !important;
    }
    
    .floating-dock-bar {
        display: block;
    }
    
    .dock-item-account {
        display: flex !important;
    }
    
    /* Dropdown depuis le dock */
    .user-dropdown.from-dock {
        bottom: 120px;
        left: 50%;
        right: auto;
        top: auto;
        transform: translateX(-50%) translateY(10px);
    }
    
    .user-dropdown.from-dock.active {
        transform: translateX(-50%) translateY(0);
    }
    
    /* Dropdown depuis top-right */
    .user-dropdown.from-top {
        top: 90px;
        right: 20px;
        left: auto;
        bottom: auto;
        transform: translateY(-10px);
    }
    
    .user-dropdown.from-top.active {
        transform: translateY(0);
    }
	
	.user-dropdown {
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .user-dropdown::-webkit-scrollbar {
        width: 6px;
    }
    
    .user-dropdown::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
    }
    
    .user-dropdown::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, var(--gold), var(--dark-gold));
        border-radius: 10px;
    }
}

@media (max-width: 1024px) {
    .tv-content-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 56px;
        letter-spacing: 6px;
    }
    
    .tv-title {
        font-size: 42px;
        letter-spacing: 4px;
    }
    
    .search-box {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-subtitle {
        font-size: 42px;
        letter-spacing: 4px;
    }
    
    .tv-title {
        font-size: 32px;
        letter-spacing: 2px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* Bouton compte non connecté : style spécial */
.dock-item-account:not(.has-avatar) {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.15), 
        rgba(139, 92, 246, 0.1)
    );
    border-color: rgba(99, 102, 241, 0.4);
}

.dock-item-account:not(.has-avatar):hover {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.25), 
        rgba(139, 92, 246, 0.2)
    );
    border-color: var(--purple);
}

.dock-item-account:not(.has-avatar) .dock-icon {
    color: var(--purple);
}

/* Statistiques en grille 2x2 */
.tv-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (min-width: 1024px) {
    /* Desktop : 4 colonnes si sidebar supprimée */
    .tv-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    /* Petit mobile : 1 colonne */
    .tv-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== TITRES RESPONSIVE (Desktop vs Mobile) ===== */

.card-title-mobile {
    display: none;
}

@media (max-width: 768px) {
    .card-title-desktop {
        display: none;
    }
    
    .card-title-mobile {
        display: inline;
    }
    
 
.screenshot-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.screenshot-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    border-color: #8b5cf6;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.screenshot-btn:active {
    transform: translateY(0);
}

/* ===== CARTE RÉACTIONS ===== */

.tv-reactions-card {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 18px;
    padding: 20px;
    transition: all 0.3s ease;
}

.tv-reactions-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.05);
}

.tv-reactions-card .card-title {
    margin-bottom: 15px;
}

/* ===== BOUTONS RÉACTIONS AVEC LUEUR DORÉE ===== */

.reactions-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.reaction-btn {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    
    /* ✅ LUEUR DORÉE PERMANENTE */
    box-shadow: 
        0 0 15px rgba(212, 175, 55, 0.3),
        0 0 30px rgba(212, 175, 55, 0.15),
        inset 0 0 20px rgba(212, 175, 55, 0.1);
    
    /* ✅ ANIMATION PULSATION */
    animation: reactionPulse 2s ease-in-out infinite;
}

@keyframes reactionPulse {
    0%, 100% {
        box-shadow: 
            0 0 15px rgba(212, 175, 55, 0.3),
            0 0 30px rgba(212, 175, 55, 0.15),
            inset 0 0 20px rgba(212, 175, 55, 0.1);
    }
    50% {
        box-shadow: 
            0 0 25px rgba(212, 175, 55, 0.5),
            0 0 50px rgba(212, 175, 55, 0.25),
            inset 0 0 30px rgba(212, 175, 55, 0.15);
    }
}

.reaction-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(212, 175, 55, 0.3), 
        transparent, 
        rgba(212, 175, 55, 0.3), 
        transparent);
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.reaction-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
    transform: scale(1.15) rotate(5deg);
    
    /* ✅ LUEUR PLUS INTENSE AU HOVER */
    box-shadow: 
        0 0 25px rgba(212, 175, 55, 0.6),
        0 0 50px rgba(212, 175, 55, 0.3),
        0 0 75px rgba(212, 175, 55, 0.15),
        inset 0 0 30px rgba(212, 175, 55, 0.2);
    
    /* Arrêter l'animation au hover */
    animation: none;
}

.reaction-btn:hover::before {
    opacity: 1;
    animation: rotateGlow 3s linear infinite;
}

@keyframes rotateGlow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.reaction-btn:active {
    transform: scale(1.05);
}

/* ===== RESPONSIVE RÉACTIONS ===== */

@media (max-width: 768px) {
    .reactions-buttons {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .reaction-btn {
        font-size: 28px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .reactions-buttons {
        gap: 8px;
    }
    
    .reaction-btn {
        font-size: 24px;
    }
}

/* ===== LUEUR DORÉE AUTOUR DE TOUTES LES CARTES ===== */

.tv-current-program-card,
.upcoming-program-card,
.tv-date-selector-card,
.tv-stats-card,
.tv-reactions-card,
.sidebar-card,
.watch-history-card {
    background: linear-gradient(135deg, var(--dark-gray) 0%, var(--secondary-black) 100%);
    border-radius: 20px;
    padding: 30px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    position: relative;
    
    /* ✅ LUEUR DORÉE PERMANENTE */
    box-shadow: 
        0 0 20px rgba(212, 175, 55, 0.3),
        0 0 40px rgba(212, 175, 55, 0.15),
        0 0 60px rgba(212, 175, 55, 0.08),
        inset 0 0 30px rgba(212, 175, 55, 0.05);
    
    transition: all 0.5s ease;
    
    /* ✅ ANIMATION PULSATION */
    animation: cardGlow 3s ease-in-out infinite;
}

@keyframes cardGlow {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(212, 175, 55, 0.3),
            0 0 40px rgba(212, 175, 55, 0.15),
            0 0 60px rgba(212, 175, 55, 0.08),
            inset 0 0 30px rgba(212, 175, 55, 0.05);
        border-color: rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(212, 175, 55, 0.5),
            0 0 60px rgba(212, 175, 55, 0.25),
            0 0 90px rgba(212, 175, 55, 0.12),
            inset 0 0 40px rgba(212, 175, 55, 0.08);
        border-color: rgba(212, 175, 55, 0.5);
    }
}

/* ✅ EFFET HALO TOURNANT */
.tv-current-program-card::before,
.upcoming-program-card::before,
.tv-date-selector-card::before,
.tv-stats-card::before,
.tv-reactions-card::before,
.sidebar-card::before,
.watch-history-card::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(212, 175, 55, 0.4) 25%, 
        transparent 50%, 
        rgba(212, 175, 55, 0.4) 75%, 
        transparent 100%
    );
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    animation: rotateHalo 4s linear infinite;
}

@keyframes rotateHalo {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ✅ AU HOVER : LUEUR INTENSE */
.tv-current-program-card:hover,
.upcoming-program-card:hover,
.tv-date-selector-card:hover,
.tv-stats-card:hover,
.tv-reactions-card:hover,
.sidebar-card:hover,
.watch-history-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    
    box-shadow: 
        0 0 35px rgba(212, 175, 55, 0.6),
        0 0 70px rgba(212, 175, 55, 0.4),
        0 0 105px rgba(212, 175, 55, 0.2),
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 0 50px rgba(212, 175, 55, 0.15);
    
    /* Arrêter l'animation pulsation */
    animation: none;
}

.tv-current-program-card:hover::before,
.upcoming-program-card:hover::before,
.tv-date-selector-card:hover::before,
.tv-stats-card:hover::before,
.tv-reactions-card:hover::before,
.sidebar-card:hover::before,
.watch-history-card:hover::before {
    opacity: 1;
}

/* ✅ LUEUR SPÉCIALE POUR LA CARTE PROGRAMME EN COURS */
.tv-current-program-card {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 
        0 0 25px rgba(212, 175, 55, 0.4),
        0 0 50px rgba(212, 175, 55, 0.2),
        0 0 75px rgba(212, 175, 55, 0.1),
        inset 0 0 35px rgba(212, 175, 55, 0.08);
}

@keyframes currentProgramGlow {
    0%, 100% {
        box-shadow: 
            0 0 25px rgba(212, 175, 55, 0.4),
            0 0 50px rgba(212, 175, 55, 0.2),
            0 0 75px rgba(212, 175, 55, 0.1),
            inset 0 0 35px rgba(212, 175, 55, 0.08);
    }
    50% {
        box-shadow: 
            0 0 35px rgba(212, 175, 55, 0.6),
            0 0 70px rgba(212, 175, 55, 0.3),
            0 0 105px rgba(212, 175, 55, 0.15),
            inset 0 0 45px rgba(212, 175, 55, 0.12);
    }
}

.tv-current-program-card {
    animation: currentProgramGlow 3s ease-in-out infinite;
}

/* ✅ RESPONSIVE : LUEUR PLUS LÉGÈRE SUR MOBILE */
@media (max-width: 768px) {
    .tv-current-program-card,
    .upcoming-program-card,
    .tv-date-selector-card,
    .tv-stats-card,
    .tv-reactions-card,
    .sidebar-card,
    .watch-history-card {
        box-shadow: 
            0 0 15px rgba(212, 175, 55, 0.25),
            0 0 30px rgba(212, 175, 55, 0.12),
            inset 0 0 20px rgba(212, 175, 55, 0.04);
    }
    
    .tv-current-program-card:hover,
    .upcoming-program-card:hover,
    .tv-date-selector-card:hover,
    .tv-stats-card:hover,
    .tv-reactions-card:hover,
    .sidebar-card:hover,
    .watch-history-card:hover {
        transform: translateY(-3px);
        box-shadow: 
            0 0 25px rgba(212, 175, 55, 0.4),
            0 0 50px rgba(212, 175, 55, 0.2),
            0 5px 20px rgba(0, 0, 0, 0.4);
    }
}

/* Animation pulse pour le logo de chargement */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* ===== BOUTON PAUSE PERSONNALISÉ (STYLE VIMEO) ===== */
.custom-play-pause-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.7);
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.2s ease;
    pointer-events: none;
}

.custom-play-pause-btn.show {
    opacity: 1;
    pointer-events: auto;
}

.custom-play-pause-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(0, 0, 0, 0.85);
}

.custom-play-pause-btn:active {
    transform: translate(-50%, -50%) scale(0.95);
}

/* Icône Play */
.custom-play-pause-btn.paused::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent #fff;
    margin-left: 5px;
}

/* Icône Pause */
.custom-play-pause-btn.playing::before {
    content: '';
    width: 20px;
    height: 30px;
    background: linear-gradient(to right, 
        #fff 0%, #fff 35%, 
        transparent 35%, transparent 65%, 
        #fff 65%, #fff 100%);
}

/* Masquer contrôles YouTube */
.custom-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.custom-video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none; /* Désactive les contrôles YouTube */
}

/* Zone de détection du survol */
.video-hover-zone {
    position: absolute;
    inset: 0;
    z-index: 50;
    cursor: pointer;
}

/* ===== BOUTONS CONTRÔLE PERSONNALISÉS ===== */
.video-controls-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 12px;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.custom-video-wrapper:hover .video-controls-overlay,
.video-controls-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.video-control-btn {
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    font-size: 20px;
    backdrop-filter: blur(10px);
}

.video-control-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: var(--gold, #FFD700);
    transform: scale(1.1);
}

.video-control-btn:active {
    transform: scale(0.95);
}

/* Icônes des boutons */
.video-control-btn.fullscreen-btn::before {
    content: '⛶';
    font-size: 24px;
}

.video-control-btn.cast-btn::before {
    content: '📡';
    font-size: 22px;
}

/* Mobile : boutons plus petits */
@media (max-width: 768px) {
    .video-controls-overlay {
        bottom: 10px;
        right: 10px;
        gap: 8px;
    }
    
    .video-control-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* ===== BOUTON PAUSE CENTRAL ===== */
.custom-play-pause-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.7);
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.2s ease;
    pointer-events: none;
    backdrop-filter: blur(10px);
}

.custom-play-pause-btn.show {
    opacity: 1;
    pointer-events: auto;
}

.custom-play-pause-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(0, 0, 0, 0.85);
    border-color: var(--gold, #FFD700);
}

.custom-play-pause-btn:active {
    transform: translate(-50%, -50%) scale(0.95);
}

/* Icône Play */
.custom-play-pause-btn.paused::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent #fff;
    margin-left: 5px;
}

/* Icône Pause */
.custom-play-pause-btn.playing::before {
    content: '';
    width: 20px;
    height: 30px;
    background: linear-gradient(to right, 
        #fff 0%, #fff 35%, 
        transparent 35%, transparent 65%, 
        #fff 65%, #fff 100%);
}

/* Zone de survol */
.video-hover-zone {
    position: absolute;
    inset: 0;
    z-index: 50;
    cursor: pointer;
}

.custom-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.custom-video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none;
}