:root {
    --primary: #2196F3;
    --primary-dark: #1976D2;
    --primary-light: #BBDEFB;
    --secondary: #4CAF50;
    --warning: #FF9800;
    --danger: #F44336;
    --live-red: #FF0000;
    --live-red-light: rgba(255, 0, 0, 0.2);
    --info: #00BCD4;
    --purple: #9C27B0;
    --pink: #E91E63;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --card-bg: #141414;
    --card-bg-hover: #1a1a1a;
    --text-main: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #999999;
    --border-radius: 16px;
    --border-radius-sm: 12px;
    --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.35);
    --accent-glow: 0 0 15px rgba(33, 150, 243, 0.4);
    --toast-success: #4CAF50;
    --toast-error: #F44336;
    --toast-warning: #FF9800;
    --toast-info: #2196F3;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.container { max-width: 1400px; margin: 0 auto; padding: 20px; }




@media (max-width: 480px) {
    .playlist-item {
        padding: 10px;
    }
    .item-time {
        width: 70px;
        font-size: 0.85rem;
        min-width: 70px;
    }
    .item-title {
        font-size: 0.9rem;
    }
}


/* ========== PROGRAMME EN COURS ========== */
.current-program-section {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-top: 35px;
    margin-bottom: 35px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .current-program-section {
        padding: 20px;
    }
}

.section-title-small {
    font-size: 1.4rem;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
    font-weight: 700;
    flex-wrap: wrap;
    gap: 15px;
}

@media (max-width: 480px) {
    .section-title-small {
        font-size: 1.1rem;
    }
}

/* ========== PROGRAMME TV TIMELINE ========== */
.program-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .program-timeline { grid-template-columns: 1fr; }
}

.program-item {
    background: var(--card-bg);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
}

.program-item.previous { opacity: 0.7; border-color: rgba(255, 255, 255, 0.1); }

.program-item.current {
    border-color: var(--primary);
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.3);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(33, 150, 243, 0.05) 100%);
    animation: highlight 2s infinite;
}

.program-item.next { border-color: rgba(33, 150, 243, 0.3); }

.program-time {
    padding: 18px;
    background: rgba(0, 0, 0, 0.4);
    color: var(--text-muted);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.program-item.current .program-time {
    background: rgba(33, 150, 243, 0.1);
    color: var(--primary);
    font-weight: 700;
}

.program-content { padding: 20px; }

.program-content .program-type {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.program-type.live {
    background: rgba(229, 9, 20, 0.2);
    color: #E50914;
}

.program-type.video {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
}

.program-type.pub {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
}

.program-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 768px) {
    .program-content h4 {
        font-size: 1.1rem;
    }
}

.program-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.program-progress-container {
    margin-top: 15px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.program-progress-bar {
    height: 100%;
    background: var(--primary);
    width: 100%;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.program-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    width: 0%;
    transition: width 1s linear;
    border-radius: 3px;
}

.program-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .program-controls {
        flex-direction: column;
    }
    .program-controls .btn {
        width: 100%;
    }
}

@keyframes highlight {
    0% { box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(33, 150, 243, 0); }
    100% { box-shadow: 0 0 0 0 rgba(33, 150, 243, 0); }
}

/* Timeline horizontale */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    width: 50%;
    padding-right: 40px;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 40px;
}

.timeline-time {
    position: absolute;
    top: 0;
    right: -100px;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.timeline-item:nth-child(even) .timeline-time {
    right: auto;
    left: -100px;
}

.timeline-content {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Live badge animé */
.live-badge {
    animation: pulse 1.5s infinite;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.live-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--live-red);
    border-radius: 50%;
    animation: livePulse 1s infinite;
}

/* Indicateur de progression */
.time-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.time-indicator progress {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.time-indicator progress::-webkit-progress-bar {
    background: rgba(255, 255, 255, 0.1);
}

.time-indicator progress::-webkit-progress-value {
    background: var(--primary);
    transition: width 0.3s ease;
}

/* Now playing overlay */
.now-playing-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(229, 9, 20, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
    animation: pulse 2s infinite;
}

/* Up next */
.up-next {
    background: rgba(33, 150, 243, 0.1);
    border-left: 4px solid #2196F3;
    padding: 15px;
    border-radius: 0 8px 8px 0;
    margin-top: 20px;
}

.up-next h4 {
    color: #2196F3;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Programme passé */
.program-past {
    opacity: 0.6;
    filter: grayscale(0.3);
}

.program-past .program-time {
    background: rgba(158, 158, 158, 0.1);
    color: #9E9E9E;
}

/* Time display */
.time-display {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: var(--primary);
}

/* ========== SECTION HEADER MOBILE ========== */
.section-header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 15px;
}

@media (max-width: 768px) {
    .section-header-mobile {
        flex-direction: column;
        align-items: flex-start;
    }
}

.auto-scroll-controls {
    display: none;
}

@media (max-width: 768px) {
    .auto-scroll-controls {
        display: block;
    }
}

.auto-scroll-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 8px 16px;
    color: var(--text-main);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auto-scroll-toggle:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* ========== NETFLIX SLIDER ========== */
.netflix-section {
    margin: 50px 0;
    position: relative;
    overflow: hidden;
}

.netflix-section .section-title {
    font-size: 3rem;
    margin-left: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

@media (max-width: 992px) {
    .netflix-section .section-title {
        font-size: 2.5rem;
        margin-left: 20px;
    }
}

@media (max-width: 768px) {
    .netflix-section .section-title {
        font-size: 2rem;
        margin-left: 15px;
        margin-bottom: 20px;
    }
}

.netflix-slider-container {
    position: relative;
    padding: 20px 40px;
}

@media (max-width: 768px) {
    .netflix-slider-container {
        padding: 10px 15px;
    }
}

.netflix-slider {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 30px 20px;
    scroll-behavior: smooth;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .netflix-slider {
        gap: 15px;
        padding: 15px 10px;
    }
}

.netflix-slider::-webkit-scrollbar { height: 6px; }
.netflix-slider::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 10px; }
.netflix-slider::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }
.netflix-slider::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

.netflix-card {
    flex: 0 0 320px;
    background: linear-gradient(135deg, rgba(25, 25, 25, 0.9) 0%, rgba(15, 15, 15, 0.95) 100%);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    position: relative;
}

@media (max-width: 992px) {
    .netflix-card { flex: 0 0 280px; }
}

@media (max-width: 768px) {
    .netflix-card { flex: 0 0 240px; }
}

@media (max-width: 480px) {
    .netflix-card { flex: 0 0 200px; }
}

.netflix-card:hover {
    transform: scale(1.1) translateY(-15px);
    z-index: 10;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .netflix-card:hover {
        transform: scale(1.05) translateY(-10px);
    }
}

.card-thumb {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    transition: transform 0.5s ease;
}

@media (max-width: 480px) {
    .card-thumb {
        height: 120px;
    }
}

.netflix-card:hover .card-thumb { transform: scale(1.1); }

.card-badge { position: absolute; top: 20px; left: 20px; z-index: 3; }

@media (max-width: 480px) {
    .card-badge {
        top: 10px;
        left: 10px;
    }
    .badge-replay {
        padding: 4px 10px;
        font-size: 0.7rem;
    }
}

.badge-replay {
    background: linear-gradient(135deg, var(--primary) 0%, #1565C0 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3);
}

.card-duration {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.9);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: white;
    font-weight: 700;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 480px) {
    .card-duration {
        padding: 3px 8px;
        font-size: 0.7rem;
        bottom: 8px;
        right: 8px;
    }
}

.card-body { padding: 25px; position: relative; z-index: 2; }

@media (max-width: 480px) {
    .card-body {
        padding: 15px;
    }
}

.card-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .card-title {
        font-size: 1.1rem;
    }
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .card-desc {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 480px) {
    .card-meta span {
        font-size: 0.75rem;
        gap: 4px;
    }
}

.card-meta i { color: var(--primary); font-size: 1rem; }

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    pointer-events: none;
}

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

.play-btn {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.4);
}

@media (max-width: 480px) {
    .play-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

.netflix-card:hover .play-btn { transform: scale(1); }

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    z-index: 3;
    pointer-events: none;
}

@media (max-width: 768px) {
    .slider-controls {
        display: none;
    }
}

.slider-btn {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1);
    pointer-events: all;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
    border-color: var(--primary);
}

/* ========== PAGINATION MOBILE ========== */
.mobile-slider-pagination {
    display: none;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .mobile-slider-pagination {
        display: flex;
    }
}

.pagination-dot {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-dot.active {
    background: var(--primary);
    width: 60px;
}

/* ========== AUTO SCROLL INDICATOR ========== */
.auto-scroll-indicator {
    position: absolute;
    bottom: 20px;
    right: 80px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 5;
    animation: fadeInOut 2s ease;
}

@media (max-width: 768px) {
    .auto-scroll-indicator {
        display: none !important;
    }
}

.auto-scroll-indicator i {
    color: var(--primary);
    animation: pulse 1.5s infinite;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(10px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

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

/* ========== HOSTS SECTION ========== */
.hosts-section {
    position: relative;
    margin: 80px 0;
    padding: 40px 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(20, 20, 20, 0.98) 100%);
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 992px) {
    .hosts-section {
        padding: 30px 0;
        margin: 60px 0;
    }
}

.section-header {
    position: relative;
    z-index: 2;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
    flex-wrap: wrap;
    gap: 20px;
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 0 20px;
    }
    .section-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

.section-title {
    font-size: 3.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    margin: 0;
}

@media (max-width: 1200px) {
    .section-title { font-size: 2.8rem; }
}

@media (max-width: 992px) {
    .section-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .section-title { font-size: 2.2rem; }
}

@media (max-width: 480px) {
    .section-title { font-size: 1.8rem; }
}

.section-actions .btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.program-controls .btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
   
}

.program-controls .btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.3);
}

.section-actions .btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.3);
}

.hosts-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 0 40px;
    margin-top: 50px;
}

@media (max-width: 1200px) {
    .hosts-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); padding: 0 30px; }
}

@media (max-width: 992px) {
    .hosts-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; padding: 0 20px; }
}

@media (max-width: 768px) {
    .hosts-grid { grid-template-columns: 1fr; padding: 0 15px; }
}

.host-card {
    position: relative;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.8) 0%, rgba(20, 20, 20, 0.9) 100%);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.host-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(33, 150, 243, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(33, 150, 243, 0.1), 0 0 30px rgba(33, 150, 243, 0.1);
}

@media (max-width: 768px) {
    .host-card:hover {
        transform: translateY(-10px) scale(1.01);
    }
}

.host-avatar-wrapper {
    position: relative;
    height: 320px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

@media (max-width: 480px) {
    .host-avatar-wrapper {
        height: 280px;
    }
}

.host-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.9);
}

.host-card:hover .host-avatar {
    transform: scale(1.15);
    filter: brightness(1.1);
}

.host-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7rem;
    font-weight: 900;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.host-badge-vedette {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a1a;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
    animation: badgeGlow 2s infinite;
}

@media (max-width: 480px) {
    .host-badge-vedette {
        padding: 5px 12px;
        font-size: 0.75rem;
        top: 10px;
        right: 10px;
    }
}

@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3); transform: scale(1); }
    50% { box-shadow: 0 6px 30px rgba(255, 215, 0, 0.6); transform: scale(1.05); }
}

.host-info { padding: 30px; position: relative; z-index: 2; }

@media (max-width: 480px) {
    .host-info {
        padding: 20px;
    }
}

.host-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 480px) {
    .host-name {
        font-size: 1.5rem;
    }
}

.host-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(33, 150, 243, 0.15);
    color: var(--primary);
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 20px;
    border: 2px solid rgba(33, 150, 243, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.host-card:hover .host-role-badge {
    background: rgba(33, 150, 243, 0.25);
    border-color: rgba(33, 150, 243, 0.5);
    transform: scale(1.05);
}

.host-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    min-height: 80px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
}

.host-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

@media (max-width: 480px) {
    .host-stats-grid {
        padding: 15px;
        gap: 10px;
    }
}

.host-stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    transition: all 0.3s ease;
}

@media (max-width: 480px) {
    .host-stat-item {
        padding: 10px;
        gap: 10px;
    }
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    .stat-value {
        font-size: 1.3rem;
    }
}

.host-card:hover .host-stat-item {
    background: rgba(33, 150, 243, 0.1);
    transform: translateY(-3px);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.2) 0%, rgba(33, 150, 243, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.4rem;
    border: 1px solid rgba(33, 150, 243, 0.2);
}

.stat-content { flex: 1; }

.stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.host-action .btn {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.host-action .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(33, 150, 243, 0.4);
}

/* ========== FEATURED SECTION ========== */
.featured-section {
    margin: 50px 0;
    position: relative;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

@media (max-width: 992px) {
    .featured-section {
        padding: 30px 20px;
        margin: 60px 0;
    }
}

.featured-section .section-title {
    font-size: 3rem;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .featured-section .section-title {
        font-size: 2rem;
        margin-left: 20px;
        margin-bottom: 30px;
    }
}

.featured-section .section-title i {
    color: #E91E63;
    font-size: 2.8rem;
    margin-right: 20px;
}

.content-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 35px;
    margin-bottom: 60px;
}

@media (max-width: 1200px) {
    .content-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
}

@media (max-width: 992px) {
    .content-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; }
}

@media (max-width: 768px) {
    .content-grid { grid-template-columns: 1fr; padding: 0 15px; }
}

.card {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.8) 0%, rgba(20, 20, 20, 0.9) 100%);
    border-radius: 25px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.card:hover {
    transform: translateY(-12px);
    border-color: rgba(76, 175, 80, 0.3);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(76, 175, 80, 0.1), 0 0 40px rgba(76, 175, 80, 0.1);
}

.card-thumb {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 480px) {
    .card-thumb {
        height: 180px;
    }
}

.card:hover .card-thumb { transform: scale(1.08); }

.card-badge { position: absolute; top: 20px; left: 20px; z-index: 2; }

.badge-article {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

@media (max-width: 480px) {
    .badge-article {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

.card-body { padding: 30px; position: relative; }

@media (max-width: 480px) {
    .card-body {
        padding: 20px;
    }
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

@media (max-width: 480px) {
    .card-meta span {
        font-size: 0.8rem;
        gap: 5px;
    }
}

.card-meta i { color: #4CAF50; font-size: 1.1rem; }

.card-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 15px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .card-title {
        font-size: 1.3rem;
    }
}

.card-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
}

@media (max-width: 768px) {
    .card-desc {
        font-size: 0.9rem;
    }
}

/* ========== LOAD MORE BUTTON ========== */
.load-more-container {
    text-align: center;
    margin-top: 40px;
}

.btn-load-more {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-load-more:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* ========== MODAL ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    overflow: auto;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--card-bg);
    margin: 5% auto;
    padding: 30px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 1000px;
    box-shadow: var(--shadow-hover);
    color: var(--text-main);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.4s ease-out;
}

@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
}

.host-modal-content { max-width: 1200px; }

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

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    z-index: 1001;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .modal-header {
        flex-direction: column;
        text-align: center;
    }
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

@media (max-width: 480px) {
    .modal-title {
        font-size: 1.4rem;
    }
}

.modal-thumbnail img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.modal-info .modal-description {
    margin-bottom: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.modal-time {
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.host-modal-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin-right: 30px;
    border: 4px solid var(--primary);
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .host-modal-avatar {
        margin-right: 0;
        margin-bottom: 20px;
    }
    .host-modal-stats {
        justify-content: center;
    }
}

.host-modal-info { flex: 1; }
.host-modal-role { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 15px; }
.host-modal-stats { display: flex; gap: 30px; }
.host-stat { text-align: center; }
.host-stat-value { font-size: 1.5rem; font-weight: bold; color: var(--primary); display: block; }
.host-stat-label { font-size: 0.9rem; color: var(--text-muted); }

.host-content-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 480px) {
    .host-content-section h3 {
        font-size: 1.2rem;
    }
}

.host-contents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    max-height: 500px;
    overflow-y: auto;
        padding: 10px;
}

@media (max-width: 480px) {
    .host-contents-grid {
        grid-template-columns: 1fr;
    }
}

.host-content-item {
    background: var(--card-bg);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.4s ease;
}

.host-content-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.host-content-thumb {
    height: 140px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.host-content-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.host-content-badge.video { background: rgba(33, 150, 243, 0.9); }
.host-content-badge.article { background: rgba(76, 175, 80, 0.9); }
.host-content-badge.live { background: var(--live-red); }

.host-content-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    padding: 3px 8px;
    border-radius: 15px;
    font-size: 0.75rem;
    color: white;
    font-weight: bold;
}

.host-content-info { padding: 15px; }

.host-content-title {
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--text-main);
    font-weight: 600;
}

.host-content-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.host-content-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ========== BADGES ========== */
.program-type-badge, .item-type, .program-type, .badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.program-type-badge.video, .item-type.video, .program-type.video {
    background: rgba(33, 150, 243, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.program-type-badge.live, .item-type.live, .program-type.live, .badge-live {
    background: var(--live-red-light);
    color: var(--live-red);
    border: 1px solid var(--live-red);
}

.program-type-badge.pub, .item-type.pub, .program-type.pub {
    background: rgba(255, 193, 7, 0.15);
    color: #FFD700;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.item-type.pause, .program-type.pause {
    background: rgba(158, 158, 158, 0.15);
    color: var(--text-muted);
    border: 1px solid rgba(158, 158, 158, 0.3);
}

/* ========== SYNC STATUS ========== */
.sync-status {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.85rem;
    z-index: 100;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

@media (max-width: 480px) {
    .sync-status {
        top: 10px;
        right: 10px;
        padding: 4px 10px;
        font-size: 0.7rem;
    }
}

.sync-status.active {
    background: rgba(76, 175, 80, 0.9);
    animation: fadeIn 0.3s ease;
}

.sync-status.warning { background: rgba(255, 193, 7, 0.9); }
.sync-status.error { background: rgba(244, 67, 54, 0.9); }

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

/* ========== TOAST ========== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

@media (max-width: 480px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    .toast {
        min-width: auto;
        max-width: none;
        width: calc(100% - 20px);
    }
}

.toast {
    min-width: 300px;
    max-width: 450px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border-left: 4px solid var(--toast-info);
    color: white;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideInRight 0.3s ease;
    pointer-events: all;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast.success { border-left-color: var(--toast-success); }
.toast.error { border-left-color: var(--toast-error); }
.toast.warning { border-left-color: var(--toast-warning); }
.toast.info { border-left-color: var(--toast-info); }

.toast-icon { font-size: 1.5rem; flex-shrink: 0; }
.toast.success .toast-icon { color: var(--toast-success); }
.toast.error .toast-icon { color: var(--toast-error); }
.toast.warning .toast-icon { color: var(--toast-warning); }
.toast.info .toast-icon { color: var(--toast-info); }

.toast-content { flex: 1; }
.toast-title { font-weight: 700; margin-bottom: 4px; font-size: 1rem; }
.toast-message { font-size: 0.9rem; color: var(--text-secondary); }

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.toast-close:hover { color: white; }

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

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.host-card:nth-child(1) { animation-delay: 0.1s; }
.host-card:nth-child(2) { animation-delay: 0.2s; }
.host-card:nth-child(3) { animation-delay: 0.3s; }
.host-card:nth-child(4) { animation-delay: 0.4s; }
.host-card:nth-child(5) { animation-delay: 0.5s; }
.host-card:nth-child(6) { animation-delay: 0.6s; }

.netflix-card:nth-child(1) { animation-delay: 0.1s; }
.netflix-card:nth-child(2) { animation-delay: 0.2s; }
.netflix-card:nth-child(3) { animation-delay: 0.3s; }
.netflix-card:nth-child(4) { animation-delay: 0.4s; }
.netflix-card:nth-child(5) { animation-delay: 0.5s; }

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

/* ========== NO CONTENT ========== */
.no-content {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1 / -1;
    color: var(--text-muted);
}

.no-content i { font-size: 5rem; margin-bottom: 25px; opacity: 0.3; }
.no-content h3 { color: var(--text-secondary); margin-bottom: 15px; font-size: 1.5rem; }
.no-content p { color: var(--text-muted); font-size: 1.05rem; }

@media (max-width: 480px) {
    .no-content {
        padding: 40px 15px;
    }
    .no-content i {
        font-size: 3rem;
    }
    .no-content h3 {
        font-size: 1.2rem;
    }
}

/* ========== ADS ========== */
.ad-placement { margin: 30px 0; text-align: center; position: relative; }

.ad-container {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    max-width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.ad-container:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 480px) {
    .ad-container {
        padding: 10px;
    }
}

.debug-error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 15px;
    margin: 20px;
    border-radius: 8px;
    font-family: monospace;
    white-space: pre-wrap;
}

/* ========== BOUTON ACTIVATION SON ========== */
#unmuteBtn {
    background: var(--primary);
    border: none;
    animation: pulseButton 1.5s infinite;
}

#unmuteBtn i {
    animation: shakeIcon 1s infinite;
}

@keyframes pulseButton {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(33, 150, 243, 0);
    }
}

@keyframes shakeIcon {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

/* ========== MESSAGE DIRECT ========== */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    background: var(--live-red);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    animation: liveTextPulse 1s infinite;
}

.live-indicator i {
    font-size: 0.6rem;
    animation: liveDotPulse 1s infinite;
}

@keyframes liveTextPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

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

/* ========== FALLBACK MESSAGE ========== */
.fallback-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    background: rgba(0, 0, 0, 0.9);
    padding: 40px;
    border-radius: 20px;
    z-index: 50;
}

@media (max-width: 480px) {
    .fallback-message {
        padding: 20px;
        width: 90%;
    }
    .fallback-message i {
        font-size: 2.5rem;
    }
    .fallback-message h3 {
        font-size: 1.2rem;
    }
    .fallback-message .countdown {
        font-size: 1.5rem;
    }
}

.fallback-message i {
    font-size: 4rem;
    color: var(--warning);
    margin-bottom: 20px;
}

.fallback-message h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.fallback-message p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.fallback-message .countdown {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

/* ==================== */
/* STYLES DU FOOTER (de style.css) */
/* ==================== */

.site-footer {
    background: #0f0f0f;
    color: #ddd;
    padding: 2rem 0 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.6rem;
}

.footer-col ul li a,
.footer-col address a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover,
.footer-col address a:hover {
    color: var(--primary);
}

.footer-col address {
    font-style: normal;
    line-height: 1.6;
}

.footer-col address i {
    width: 18px;
    text-align: center;
    margin-right: 8px;
    color: var(--primary);
}

.footer-logo img {
    margin-bottom: 1rem;
    display: block;
}

.footer-slogan {
    opacity: 0.8;
    margin: 0.8rem 0 1.2rem;
    line-height: 1.5;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.stats-items {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.stat-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.stat-item i {
    color: var(--primary);
    margin-top: 4px;
}

/* Bas de page */
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
    color: #aaa;
}

.footer-legal a {
    color: #bbb;
    text-decoration: none;
    margin-left: 1.2rem;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--primary);
}

.footer-legal a:first-child {
    margin-left: 0;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem;
    }
    
    .footer-legal a {
        margin: 0;
    }
}

/* Timeline responsive */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding-left: 40px;
        padding-right: 0;
    }
    
    .timeline-time {
        left: -10px !important;
        right: auto !important;
        top: -10px;
    }
    
    .program-grid {
        grid-template-columns: 1fr;
    }
}

/* Program grid */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.program-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition);
}

.program-card.current {
    border-color: var(--primary);
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.3);
    animation: highlight 2s infinite;
}