/* ========================================
   🔴 LIVE MATCHES PAGE
   ======================================== */

.live-matches-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 20px;
    padding-bottom: 100px;
}

/* ========================================
   HEADER
   ======================================== */

.live-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
}

.live-header h1 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.live-count {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
}

/* ========================================
   CONTAINER DES MATCHS
   ======================================== */

.live-matches-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ========================================
   CARTE DE MATCH
   ======================================== */

.live-match-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.live-match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff0000, #ff4444);
    animation: pulse 2s ease-in-out infinite;
}

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

.live-match-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ========================================
   BADGE LIVE
   ======================================== */

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 0, 0, 0.2);
    color: #ff4444;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

/* ========================================
   NOM DU TOURNOI
   ======================================== */

.match-event-name {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   SCORES
   ======================================== */

.match-score-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
}

.team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.team-name {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    flex: 1;
}

.team-score {
    color: #4ade80;
    font-size: 28px;
    font-weight: 700;
    min-width: 40px;
    text-align: right;
}

.score-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin: 5px 0;
}

/* ========================================
   DERNIER ÉVÉNEMENT
   ======================================== */

.match-last-event {
    background: rgba(74, 222, 128, 0.1);
    border-left: 3px solid #4ade80;
    padding: 10px 12px;
    border-radius: 8px;
    color: #4ade80;
    font-size: 13px;
    font-weight: 500;
    margin-top: 15px;
}

/* ========================================
   INFO TERRAIN
   ======================================== */

.match-field {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.match-field i {
    color: rgba(255, 255, 255, 0.3);
}

/* ========================================
   ÉTAT VIDE
   ======================================== */

.no-matches {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.empty-state {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.empty-state i {
    font-size: 64px;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.empty-state p {
    font-size: 14px;
    margin: 0;
}

/* ========================================
   LOADER
   ======================================== */

.loader {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    padding: 40px;
    grid-column: 1 / -1;
}

/* ========================================
   MESSAGE D'ERREUR
   ======================================== */

.error-message {
    text-align: center;
    color: #ff4444;
    padding: 40px;
    grid-column: 1 / -1;
}

.error-message i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

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

@media (max-width: 768px) {
    .live-matches-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
    }

    .live-header h1 {
        font-size: 24px;
    }

    .live-match-card {
        padding: 15px;
    }
}