/* Responsive adjustments for mobile */
@media (max-width: 767.98px) {
    .header-custom {
        padding: 20px 5px;
        font-size: 1.2em;
    }
    .card-custom {
        padding: 10px 5px !important;
        border-radius: 8px;
    }
    .table-responsive {
        overflow-x: auto;
    }
    #rankingTable th, #rankingTable td {
        font-size: 13px;
        padding: 6px 4px;
        white-space: nowrap;
    }
    .th-rank-width {
        width: 48px;
        min-width: 48px;
    }
    .flag, .flag-sm {
        width: 32px;
        height: 20px;
        min-width: 32px;
        min-height: 20px;
    }
    .match-pills {
        flex-wrap: wrap;
        gap: 2px;
    }
    .match-item {
        padding: 2px 2px;
        font-size: 11px;
    }
    .btn-more, .btn, .btn-lg, .btn-primary {
        font-size: 14px !important;
        padding: 8px 12px !important;
        border-radius: 20px !important;
    }
    .navbar-brand {
        font-size: 1em;
    }
    .points-strong {
        font-size: 1em;
    }
    .fs-5 {
        font-size: 1.1em !important;
    }
    .gap-3, .gap-2 {
        gap: 0.5rem !important;
    }
    .row.g-3 > [class^="col-"] {
        margin-bottom: 10px;
    }
}
/* Custom width for Rank (Live) column in ranking table */
.th-rank-width {
    width: 80px;
}
/* Styles personnalisés */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --dark-color: #1a237e;
    --success-color: #4caf50;
    --danger-color: #f44336;
}

body {
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
    padding: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
}

.muted { color: #666; font-size: 0.9em; }
.nowrap { white-space: nowrap; }
.delta-up { color: #10b981; font-weight: 700; background: #d1fae5; padding: 2px 8px; border-radius: 12px; font-size: 0.85em; }
.delta-down { color: #ef4444; font-weight: 700; background: #fee2e2; padding: 2px 8px; border-radius: 12px; font-size: 0.85em; }

.container-main {
    max-width: 1400px;
}

.card-header-custom {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    color: white;
}

.table-custom {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: white;
    border: none;
}

.table-custom thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.table-custom tbody {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
}

.table-custom tbody tr:hover {
    background-color: #e3f2fd !important;
    transform: scale(1.01);
    transition: all 0.2s ease;
}

.table-custom td {
    border-bottom: 1px solid #e0e0e0;
}

.rank-badge {
    display: inline-block;
    width: 42px;
    height: 42px;
    line-height: 42px;
    text-align: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1em;
}
.rank-1{background:linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);color:#854d0e;box-shadow:0 4px 12px rgba(255,215,0,0.5)}
.rank-2{background:linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);color:#374151;box-shadow:0 4px 12px rgba(192,192,192,0.5)}
.rank-3{background:linear-gradient(135deg, #cd7f32 0%, #e6a85c 100%);color:#fff;box-shadow:0 4px 12px rgba(205,127,50,0.5)}
.rank-other{background:linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);color:#fff}

.tag-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #e3f2fd;
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.btn-more {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    color: white;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    color: white;
}

.matches-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.match-item {
    padding: 2px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.match-item:hover {
    background-color: #f8f9fa;
}

.match-item:last-child {
    border-bottom: none;
}

.match-score {
    font-weight: 700;
    font-size: 18px;
    color: var(--dark-color);
}

.match-team {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 12px;
}

.match-delta-positive {
    color: var(--success-color);
}

.match-delta-negative {
    color: var(--danger-color);
}

.navbar-custom{background:linear-gradient(90deg, #667eea 0%, #764ba2 100%);box-shadow:0 4px 12px rgba(0,0,0,0.15)}
.card-custom{background:#fff;border-radius:16px;box-shadow:0 8px 24px rgba(0,0,0,0.12);overflow:hidden}
.table-custom thead{background:linear-gradient(135deg, #667eea 0%, #764ba2 100%);color:#fff}
.table-custom tbody tr{transition:all 0.2s ease}
.table-custom tbody tr:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(102,126,234,0.2)}
.btn-match{background:linear-gradient(135deg, #f59e0b 0%, #f97316 100%);color:#fff;border:none;padding:8px 16px;border-radius:20px;font-weight:600;box-shadow:0 4px 8px rgba(245,158,11,0.3);transition:all 0.2s}
.btn-match:hover{transform:translateY(-2px);box-shadow:0 6px 12px rgba(245,158,11,0.4)}
.match-pills{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.match-item-inline{display:flex;align-items:center;gap:2px}
.pill{width:16px;height:16px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-size:10px;font-weight:700;line-height:1}
.pill.win{background:#16a34a}
.pill.lose{background:#dc2626}
.pill.draw{background:#6b7280}
.pill.empty{background:#e5e7eb;color:#9ca3af}
.pill:hover{transform:scale(1.05)}
.delta-text{font-size:10px;color:#666;font-weight:600}
.delta-text.positive{color:#16a34a}
.delta-text.negative{color:#dc2626}
.flag{width:56px;height:36px;object-fit:cover;border:1px solid #e5e7eb}
.flag-sm{width:28px;height:20px;object-fit:cover;border-radius:3px;border:1px solid #e5e7eb}
.text-dark-700{color:#1f2937}
.points-strong{color:#1f2937;font-size:1.05em;font-weight:700}
.delta-inline{font-size:0.85em;margin-left:4px}
.lang-btn{width:34px;height:26px;text-align:center;padding:2px;border-radius:6px}

.header-custom {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.header-custom h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 10px;
}

.header-custom p {
    font-size: 1.1em;
    opacity: 0.9;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

