/* ===================================
   FIFA WORLD CUP 2026 - STYLESHEET v2
   Professional Dark Theme
   =================================== */

/* ===== IMPORTS & RESETS ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-dark:       #070B14;
    --bg-card:       #0F1624;
    --bg-card-alt:   #162034;
    --bg-surface:    #1E2D45;
    --primary:       #1A56DB;
    --primary-light: #2E70F5;
    --secondary:     #00D4FF;
    --accent-green:  #00E676;
    --accent-red:    #FF3D5C;
    --accent-blue:   #5B8AF7;
    --text:          #EEF2FF;
    --text-muted:    #5B7FA6;
    --border:        #1A3255;
    --font-main:    'Montserrat', sans-serif;
    --font-condensed:'Roboto Condensed', sans-serif;

    /* Group colours */
    --group-a: #FF4D6D; --group-b: #4CC9F0; --group-c: #06D6A0;
    --group-d: #FFD166; --group-e: #F8961E; --group-f: #4895EF;
    --group-g: #9D4EDD; --group-h: #118AB2; --group-i: #84CC16;
    --group-j: #FF595E; --group-k: #FFCA3A; --group-l: #C77DFF;
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg-dark);
    color: var(--text);
    font-family: var(--font-main);
    line-height: 1.5;
    min-height: 100vh;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* ===== HEADER ===== */
.main-header {
    background: linear-gradient(135deg, #060A12 0%, #0D1E3A 100%);
    position: relative;
    overflow: hidden;
}

.header-bg {
    padding: 24px 30px;
    position: relative;
    z-index: 1;
}

.header-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0,212,255,0.07) 0%, transparent 55%),
                radial-gradient(circle at 80% 50%, rgba(26,86,219,0.1) 0%, transparent 50%);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centre tout horizontalement */
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.logo-section .title-block {
    flex: 1;
    min-width: 0;        /* permet au flex child de rétrécir sous son contenu */
    text-align: center;
    overflow: hidden;
}

.trophy-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    text-shadow: 0 0 20px rgba(196,164,74,0.4);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.title-block {
    text-align: center;
    width: 100%;
}

.title-block .mega-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 8px;
    text-transform: uppercase;
    /* background: linear-gradient(135deg, #00D4FF, #5B8AF7); */
    /* -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; */
    color: #fff; /* <-- couleur blanche */
    margin-bottom: 2px;
}

.title-block h1 {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.6);
    -webkit-text-fill-color: rgba(255,255,255,0.6);
    background: none;
    text-transform: uppercase;
}

.title-block .subtitle {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-top: 4px;
}

.title-block .dates {
    font-size: 0.75rem;
    color: var(--secondary);
    letter-spacing: 3px;
    margin-top: 2px;
}

/* Header Countdown */
.header-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    background: rgba(0,0,0,0.3);
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid rgba(196, 164, 74, 0.25);
    display: inline-flex;
}

.hc-item {
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.hc-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--secondary);
}

.hc-unit {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.5);
}

.hc-sep {
    color: rgba(255,255,255,0.2);
    font-size: 0.9rem;
    font-weight: 300;
    margin: 0 2px;
}

.hc-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.4);
    margin-right: 6px;
}

/* ===== NAVIGATION ===== */
.main-nav {
    background: var(--bg-card);
    border-bottom: 2px solid var(--secondary);
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-btn {
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
    color: var(--text-muted);
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-btn:hover {
    background: var(--bg-surface);
    color: var(--text);
}

.nav-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    box-shadow: 0 2px 14px rgba(26,86,219,0.45);
}

.print-btn {
    margin-left: 8px;
    border-left: 1px solid var(--border);
    padding-left: 20px;
}

.print-btn:hover { color: var(--secondary); }

/* ===== MAIN CONTENT ===== */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 16px;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.section-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i { font-size: 1.1rem; }

/* ===== GROUPS GRID ===== */
.groups-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.group-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.group-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.group-header {
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    text-transform: uppercase;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.group-header-count {
    font-size: 0.65rem;
    opacity: 0.8;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.group-teams { padding: 6px 0; }

.group-team-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    transition: background 0.15s;
}

.group-team-row:hover { background: var(--bg-surface); }

.group-team-pos {
    font-weight: 800;
    color: var(--secondary);
    width: 20px;
    text-align: center;
    font-size: 0.85rem;
}

.team-flag {
    width: 28px;
    height: 19px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.team-name {
    flex: 1;
    font-weight: 600;
    font-size: 0.85rem;
}

.team-code {
    font-family: var(--font-condensed);
    font-weight: 700;
    font-size: 0.7rem;
    color: var(--text-muted);
    background: var(--bg-surface);
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 1px;
}

/* Group colour classes */
.group-a { background: var(--group-a); }
.group-b { background: var(--group-b); }
.group-c { background: var(--group-c); }
.group-d { background: var(--group-d); color: #1a1a1a; }
.group-e { background: var(--group-e); color: #1a1a1a; }
.group-f { background: var(--group-f); }
.group-g { background: var(--group-g); }
.group-h { background: var(--group-h); }
.group-i { background: var(--group-i); color: #1a1a1a; }
.group-j { background: var(--group-j); }
.group-k { background: var(--group-k); color: #1a1a1a; }
.group-l { background: var(--group-l); }

/* ===== TIMEZONE BADGE ===== */
.timezone-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(26,86,219,0.2), rgba(0,212,255,0.08));
    border: 1px solid rgba(26,86,219,0.4);
    border-radius: 8px;
    padding: 8px 16px;
    margin-bottom: 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #7dd3fc;
    letter-spacing: 0.3px;
}
.timezone-badge i {
    color: var(--secondary);
    font-size: 0.9rem;
}

/* ===== KNOCKOUT HEADER BAR & PRINT BUTTON ===== */
.knockout-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.knockout-header-bar .section-title {
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
}

.btn-print-knockout {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border: 2px solid var(--secondary);
    background: linear-gradient(135deg, rgba(196,164,74,0.25), rgba(196,164,74,0.1));
    color: var(--secondary);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(196,164,74,0.2);
    animation: pulseGold 2s ease-in-out infinite;
}

@keyframes pulseGold {
    0%, 100% { box-shadow: 0 2px 10px rgba(0,212,255,0.2); }
    50% { box-shadow: 0 2px 22px rgba(0,212,255,0.5); }
}

.btn-print-knockout:hover {
    background: var(--secondary);
    color: var(--bg-dark);
    box-shadow: 0 4px 20px rgba(196,164,74,0.5);
    transform: translateY(-2px);
    animation: none;
}

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

.btn-print-knockout i {
    font-size: 1.1rem;
}

/* Hide knockout print view on screen */
.knockout-print-only {
    display: none;
}

/* ===== FILTER BAR ===== */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.filter-select {
    font-family: var(--font-main);
    font-size: 0.8rem;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.2s;
}

.filter-select:focus {
    outline: none;
    border-color: var(--secondary);
}

/* ===== MATCHES ===== */
.matches-day {
    margin-bottom: 18px;
}

.day-header {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
}

.day-header i { margin-right: 6px; }

.matches-day-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.match-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    position: relative;
}

.match-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    border-color: var(--secondary);
}

.match-card.played {
    border-left: 3px solid var(--accent-green);
}

.match-number {
    font-family: var(--font-condensed);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    writing-mode: vertical-lr;
    text-orientation: mixed;
    letter-spacing: 1px;
}

.match-team {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.85rem;
}

.match-team.right {
    justify-content: flex-end;
    text-align: right;
}

.match-team .team-flag {
    width: 24px;
    height: 16px;
}

.match-center {
    text-align: center;
    min-width: 80px;
}

.match-score {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--secondary);
}

.match-time {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-blue);
}

.match-venue {
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-group-tag {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

/* Group border left colors for match cards */
.border-a { border-left: 3px solid var(--group-a); }
.border-b { border-left: 3px solid var(--group-b); }
.border-c { border-left: 3px solid var(--group-c); }
.border-d { border-left: 3px solid var(--group-d); }
.border-e { border-left: 3px solid var(--group-e); }
.border-f { border-left: 3px solid var(--group-f); }
.border-g { border-left: 3px solid var(--group-g); }
.border-h { border-left: 3px solid var(--group-h); }
.border-i { border-left: 3px solid var(--group-i); }
.border-j { border-left: 3px solid var(--group-j); }
.border-k { border-left: 3px solid var(--group-k); }
.border-l { border-left: 3px solid var(--group-l); }

/* Group tag colors */
.tag-a { background: var(--group-a); }
.tag-b { background: var(--group-b); }
.tag-c { background: var(--group-c); }
.tag-d { background: var(--group-d); color:#1a1a1a; }
.tag-e { background: var(--group-e); color:#1a1a1a; }
.tag-f { background: var(--group-f); }
.tag-g { background: var(--group-g); }
.tag-h { background: var(--group-h); }
.tag-i { background: var(--group-i); color:#1a1a1a; }
.tag-j { background: var(--group-j); }
.tag-k { background: var(--group-k); color:#1a1a1a; }
.tag-l { background: var(--group-l); }

/* ===== KNOCKOUT BRACKET ===== */
.knockout-bracket {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.knockout-round {
    margin-bottom: 8px;
}

.round-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 10px 16px;
    background: var(--bg-card);
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
    margin-bottom: 12px;
}

.round-title.final-title {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 1.3rem;
    border-left: none;
    text-align: center;
    border-radius: 10px;
    padding: 14px 16px;
    letter-spacing: 4px;
}

.knockout-matches {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.knockout-matches.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.knockout-matches.cols-1 {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
}

.knockout-match {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.knockout-match:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.knockout-match-header {
    display: flex;
    justify-content: space-between;
    padding: 6px 10px;
    background: var(--bg-surface);
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
}

.knockout-team-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.knockout-team-row:last-child { border-bottom: none; }

.knockout-team-row.winner {
    background: rgba(0,166,81,0.1);
}

.knockout-team-row .team-flag {
    width: 22px;
    height: 15px;
}

.knockout-team-name {
    flex: 1;
    font-weight: 600;
    font-size: 0.85rem;
}

.knockout-team-name.tbd {
    color: var(--text-muted);
    font-style: italic;
    font-weight: 400;
}

.knockout-team-score {
    font-weight: 800;
    font-size: 1rem;
    color: var(--secondary);
    min-width: 20px;
    text-align: center;
}

.knockout-team-pen {
    font-size: 0.7rem;
    color: var(--accent-blue);
    font-weight: 600;
}

/* ===== STANDINGS INFO BANNER ===== */
.standings-info-banner {
    display: flex;
    align-items: center;
    background: rgba(0, 180, 216, 0.08);
    border: 1px solid rgba(0, 180, 216, 0.25);
    border-left: 4px solid #00b4d8;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 20px;
    overflow: hidden;
}

.standings-info-marquee-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    overflow: hidden;
}

.standings-info-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.standings-info-marquee {
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
}

.standings-info-marquee span {
    display: inline-block;
    font-size: 0.78rem;
    color: #a0c4d8;
    animation: standingsScroll 55s linear infinite;
}

.standings-info-marquee span strong {
    color: #00b4d8;
}

.standings-info-marquee:hover span {
    animation-play-state: paused;
}

@keyframes standingsScroll {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ===== STANDINGS ===== */
.standings-abbr-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    align-items: center;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 8px;
    padding: 8px 14px;
    margin-bottom: 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.standings-abbr-legend strong {
    color: var(--secondary);
    margin-right: 3px;
}
.standings-legend-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #5b7fa6;
    margin-right: 6px;
    font-weight: 700;
    flex-basis: 100%;
}
@media (min-width: 600px) {
    .standings-legend-title { flex-basis: auto; }
}

.standings-legend {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 3px;
}

.legend-qualified { background: rgba(0,166,81,0.25); border: 1px solid var(--accent-green); }
.legend-third { background: rgba(0,114,206,0.2); border: 1px solid var(--accent-blue); }
.legend-eliminated { background: rgba(193,39,45,0.15); border: 1px solid var(--accent-red); }

.standings-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.standings-table-wrapper {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.standings-group-header {
    padding: 8px 12px;
    color: white;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}

.standings-table th {
    padding: 6px 4px;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
}

.standings-table td {
    padding: 6px 4px;
    text-align: center;
    border-bottom: 1px solid rgba(58,52,80,0.3);
    font-size: 0.78rem;
}

.standings-table tr.qualified {
    background: rgba(0,166,81,0.08);
    border-left: 3px solid var(--accent-green);
}

.standings-table tr.third-place {
    background: rgba(0,114,206,0.08);
    border-left: 3px solid var(--accent-blue);
}

.standings-pos {
    font-weight: 800;
    color: var(--secondary);
}

.standings-team {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    white-space: nowrap;
}

.standings-team .team-flag {
    width: 18px;
    height: 12px;
}

.form-badge {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 0.55rem;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
    color: white;
}

.form-w { background: var(--accent-green); }
.form-d { background: var(--accent-blue); }
.form-l { background: var(--accent-red); }

/* ===== MUSIC PLAYER ===== */
#musicToggle {
    position: fixed;
    bottom: 88px;
    right: 22px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1.5px solid rgba(196,164,74,0.35);
    background: linear-gradient(135deg,#12102a,#1e1040);
    color: #C4A44A;
    font-size: 19px;
    cursor: pointer;
    z-index: 950;
    box-shadow: 0 4px 18px rgba(0,0,0,0.5);
    transition: transform .22s, box-shadow .22s, border-color .22s, background .22s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
#musicToggle:hover {
    transform: scale(1.12);
    border-color: rgba(196,164,74,0.75);
    box-shadow: 0 6px 22px rgba(196,164,74,0.22);
}
#musicToggle.music-on {
    background: linear-gradient(135deg,#0d2416,#0a3020);
    border-color: rgba(46,204,113,0.55);
    color: #2ecc71;
    box-shadow: 0 4px 18px rgba(46,204,113,0.18);
}
#musicToggle .music-icon { pointer-events: none; line-height: 1; }

/* ===== SCORE MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--secondary);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--secondary);
}

.modal-header h3 {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.modal-close:hover { opacity: 1; }

.modal-body { padding: 20px; }

.score-input-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.team-score {
    text-align: center;
    flex: 1;
}

.modal-flag {
    width: 48px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    margin-bottom: 6px;
}

.modal-team-name {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: var(--text);
}

.vs-separator {
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--secondary);
}

.score-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.score-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-surface);
    color: var(--text);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.score-btn:hover {
    background: var(--secondary);
    color: var(--bg-dark);
}

.score-input {
    width: 52px;
    height: 42px;
    text-align: center;
    font-family: var(--font-main);
    font-size: 1.4rem;
    font-weight: 800;
    border: 2px solid var(--secondary);
    border-radius: 10px;
    background: var(--bg-dark);
    color: var(--secondary);
}

.score-input:focus { outline: none; }

.penalty-section {
    margin-top: 16px;
    text-align: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
}

.penalty-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.pen-input {
    width: 44px;
    height: 36px;
    font-size: 1.1rem;
}

.modal-footer {
    display: flex;
    gap: 8px;
    padding: 12px 20px;
    justify-content: flex-end;
    border-top: 1px solid var(--border);
}

.btn {
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-cancel { background: var(--bg-surface); color: var(--text-muted); }
.btn-cancel:hover { color: var(--text); }
.btn-reset { background: rgba(193,39,45,0.15); color: var(--accent-red); }
.btn-reset:hover { background: rgba(193,39,45,0.3); }
.btn-save { background: linear-gradient(135deg, var(--accent-green), #00C868); color: white; }
.btn-save:hover { box-shadow: 0 4px 12px rgba(0,166,81,0.4); }

/* ===== STATISTICS ===== */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    transition: transform 0.2s;
}

.stat-card:hover { transform: translateY(-2px); }

.stat-card.gold   { border-color: var(--secondary);    }
.stat-card.blue   { border-color: var(--accent-blue);  }
.stat-card.green  { border-color: var(--accent-green);  }
.stat-card.red    { border-color: var(--accent-red);    }
.stat-card.purple { border-color: #6A4C93; }

.stat-card-icon {
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.stat-card.gold   .stat-card-icon { color: var(--secondary);   }
.stat-card.blue   .stat-card-icon { color: var(--accent-blue); }
.stat-card.green  .stat-card-icon { color: var(--accent-green);}
.stat-card.red    .stat-card-icon { color: var(--accent-red);  }
.stat-card.purple .stat-card-icon { color: #6A4C93; }

.stat-card-value {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text);
}

.stat-card-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.stats-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
}

.stats-subtitle {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-subtitle i { font-size: 0.9rem; }

.stats-two-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stats-two-col > .stats-section {
    margin-bottom: 0;
}

.stats-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.stats-empty i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--border);
}

.stats-empty .hint {
    font-size: 0.85rem;
    margin-top: 8px;
}

/* Bar chart rows */
.bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.bar-label {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 140px;
    font-size: 0.8rem;
    font-weight: 600;
}

.bar-label img {
    width: 20px;
    height: 14px;
    border-radius: 2px;
}

.bar-track {
    flex: 1;
    height: 22px;
    background: var(--bg-surface);
    border-radius: 6px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    min-width: 30px;
    transition: width 0.6s ease;
}

.bar-fill.attack { background: linear-gradient(90deg, var(--primary), var(--accent-red)); }
.bar-fill.defense { background: linear-gradient(90deg, var(--accent-blue), #00C8FF); }
.bar-fill.venue { background: linear-gradient(90deg, var(--accent-green), #00E676); }

.bar-value {
    font-size: 0.7rem;
    color: var(--text-muted);
    min-width: 60px;
    text-align: right;
}

/* Stats lists */
.stats-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

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

.stats-list-rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-surface);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.stats-list-rank.gold { background: var(--secondary); color: var(--bg-dark); }
.stats-list-rank.silver { background: #C0C0C0; color: var(--bg-dark); }
.stats-list-rank.bronze { background: #CD7F32; color: white; }

.stats-list-teams {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    flex-wrap: wrap;
}

.stats-list-teams img {
    width: 18px;
    height: 12px;
    border-radius: 2px;
}

.stats-list-score {
    font-size: 1rem;
    font-weight: 900;
    color: var(--secondary);
    min-width: 50px;
    text-align: center;
}

.stats-list-meta {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: right;
    min-width: 50px;
}

/* Distribution circles */
.stats-distribution {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 16px;
    padding: 10px 0;
}

.dist-item { text-align: center; }

.dist-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    border: 3px solid;
}

.dist-circle.wins   { border-color: var(--accent-green); background: rgba(0,166,81,0.1);  }
.dist-circle.draws  { border-color: var(--accent-blue);  background: rgba(0,114,206,0.1); }
.dist-circle.home   { border-color: var(--secondary);    background: rgba(196,164,74,0.1);}
.dist-circle.away   { border-color: var(--accent-red);   background: rgba(193,39,45,0.1); }

.dist-circle-value { font-size: 1.4rem; font-weight: 900; }
.dist-circle-pct   { font-size: 0.65rem; color: var(--text-muted); }

.dist-label {
    font-size: 0.8rem;
    font-weight: 700;
}

.dist-sublabel {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* Goals timeline */
.stats-timeline {
    display: flex;
    align-items: stretch;
    gap: 4px;
    height: 180px;
    padding: 6px 0 0;
    overflow-x: auto;
}

.timeline-bar {
    flex: 1;
    min-width: 38px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.timeline-bar-fill-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.timeline-bar-fill {
    width: 100%;
    background: linear-gradient(to top, var(--primary), var(--secondary));
    border-radius: 4px 4px 0 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    color: white;
    min-height: 0;
    transition: height 0.6s ease;
}

.timeline-label {
    height: 30px;
    flex-shrink: 0;
    font-size: 0.58rem;
    color: var(--text-muted);
    text-align: center;
    padding-top: 4px;
    line-height: 1.3;
    white-space: nowrap;
}

/* =============================================
   HAITI TAB — STYLES COMPLETS
   ============================================= */

/* === HAITI SECTION WRAPPER === */
.haiti-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* === HAITI HERO === */
.haiti-hero {
    border-radius: 16px;
    overflow: hidden;
}

.haiti-hero-bg {
    background: linear-gradient(135deg, #00209F 0%, #D21034 50%, #00209F 100%);
}

.haiti-hero-overlay {
    background: rgba(0, 0, 0, 0.5);
    padding: 40px 30px;
}

.haiti-hero-content {
    text-align: center;
    color: #fff;
}

.haiti-hero-flag { font-size: 4.5rem; margin-bottom: 12px; line-height: 1; }

.haiti-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin: 0 0 6px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.haiti-hero-subtitle {
    font-size: 1rem;
    font-style: italic;
    opacity: 0.85;
    margin-bottom: 14px;
}

.haiti-badge-historic {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a2e;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 10px 28px;
    border-radius: 50px;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    animation: haitiBadgePulse 2s ease-in-out infinite;
    margin-bottom: 14px;
}

@keyframes haitiBadgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4); }
    50% { transform: scale(1.04); box-shadow: 0 4px 25px rgba(255, 215, 0, 0.6); }
}

.haiti-hero-meta {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 0.88rem;
    margin-top: 10px;
}

.haiti-hero-meta span {
    background: rgba(255,255,255,0.12);
    padding: 5px 14px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

/* === HAITI SECTION CARDS === */
.haiti-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
}

.haiti-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #D21034;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.haiti-section-title i { color: #FFD700; font-size: 1rem; }

/* === HAITI PLAYERS GRID === */
.haiti-players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

/* === HAITI PLAYER CARD — COMPLETE === */
.haiti-player-card {
    background: var(--bg-card-alt);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 16px 16px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    overflow: hidden;
}

.haiti-player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00209F, #D21034);
    border-radius: 14px 14px 0 0;
}

.haiti-player-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 30px rgba(210, 16, 52, 0.25);
    border-color: rgba(255, 215, 0, 0.4);
}

.haiti-player-card.key-player {
    border-color: rgba(255, 215, 0, 0.3);
    background: linear-gradient(145deg, var(--bg-card-alt), rgba(255, 215, 0, 0.05));
}

.haiti-player-card.key-player::before {
    background: linear-gradient(90deg, #FFD700, #FFA500);
    height: 4px;
}

/* Player Number */
.hp-number {
    position: absolute;
    top: 10px;
    left: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: rgba(255, 215, 0, 0.2);
    line-height: 1;
}

/* Captain Badge */
.hp-captain-badge {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a2e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.8rem;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

/* Player Photo in Cards */
.hp-avatar-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 10px;
    position: relative;
    border: 3px solid rgba(196, 164, 74, 0.4);
    background: linear-gradient(135deg, #1a0a2e, #2a1a3e);
    flex-shrink: 0;
}

.hp-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: inherit;
    display: block;
}

.hp-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--secondary);
    background: linear-gradient(135deg, rgba(0, 32, 159, 0.3), rgba(210, 16, 52, 0.2));
}

.haiti-player-card.key .hp-avatar-wrapper {
    width: 90px;
    height: 90px;
    border-color: var(--secondary);
    box-shadow: 0 0 15px rgba(196, 164, 74, 0.3);
}

.haiti-player-card:hover .hp-avatar-wrapper {
    border-color: var(--secondary);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* Avatar Wrapper */
.hp-avatar-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin: 8px auto 12px;
    border: 3px solid rgba(255, 215, 0, 0.35);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #0d1f4b, #d21034);
}

.hp-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: inherit;
    transition: transform 0.3s;
}

.haiti-player-card:hover .hp-photo {
    transform: scale(1.1);
}

.hp-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.5);
    background: linear-gradient(135deg, #0d1f4b, #d21034);
}

/* Position Badge */
.hp-pos-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.hp-pos-badge.pos-gk  { background: rgba(243, 156, 18, 0.2); color: #f39c12; }
.hp-pos-badge.pos-def { background: rgba(52, 152, 219, 0.2); color: #3498db; }
.hp-pos-badge.pos-mid { background: rgba(46, 204, 113, 0.2); color: #2ecc71; }
.hp-pos-badge.pos-att { background: rgba(231, 76, 60, 0.2); color: #e74c3c; }
.hp-pos-badge.pos-wng { background: rgba(155, 89, 182, 0.2); color: #9b59b6; }

/* Player Name */
.hp-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Club */
.hp-club {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hp-club i {
    font-size: 0.65rem;
    margin-right: 3px;
    color: rgba(255, 215, 0, 0.5);
}

/* Stats Grid */
.hp-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}

.hp-stat {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    padding: 8px 4px;
}

.hp-stat-value {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 900;
    color: #FFD700;
    line-height: 1;
}

.hp-stat-label {
    display: block;
    font-size: 0.58rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 3px;
}

/* View Profile */
.hp-view-profile {
    margin-top: 8px;
    font-size: 0.7rem;
    color: rgba(139, 92, 246, 0.7);
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    padding: 6px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.haiti-player-card:hover .hp-view-profile {
    color: #FFD700;
}

/* Hint */
.haiti-section-hint {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    font-style: italic;
    margin-bottom: 16px;
    text-align: center;
}

/* === HAITI MATCHES === */
.haiti-matches-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.haiti-match-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    transition: all 0.2s;
    flex-wrap: wrap;
}

.haiti-match-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.15);
}

.haiti-match-card.result-win { border-left: 4px solid var(--accent-green); }
.haiti-match-card.result-draw { border-left: 4px solid var(--accent-blue); }
.haiti-match-card.result-loss { border-left: 4px solid var(--accent-red); }
.haiti-match-card.upcoming { border-left: 4px solid var(--text-muted); }

.hm-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    min-width: 130px;
}

.hm-teams {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.hm-haiti { color: #FFD700; }
.hm-score {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    color: var(--secondary);
    min-width: 50px;
    text-align: center;
}
.hm-vs { color: var(--text-muted); font-size: 0.8rem; }
.hm-opponent { color: var(--text); }

.hm-venue {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 10px;
}
.hm-venue-home { background: rgba(0, 166, 81, 0.15); color: var(--accent-green); }
.hm-venue-away { background: rgba(0, 114, 206, 0.15); color: var(--accent-blue); }

/* === HAITI WC MATCHES === */
.haiti-wc-matches {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.haiti-wc-match {
    background: linear-gradient(135deg, rgba(0, 32, 159, 0.1), rgba(210, 16, 52, 0.08));
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
    transition: all 0.2s;
}

.haiti-wc-match:hover {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.1);
}

.hwm-matchday {
    font-size: 0.7rem;
    font-weight: 800;
    color: #FFD700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.hwm-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.hwm-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.hwm-haiti { color: #FFD700; }
.hwm-opponent { color: var(--text); }
.hwm-vs { color: var(--text-muted); font-size: 0.8rem; font-weight: 800; }

.hwm-venue {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.hwm-status {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* === HAITI WC SLOGAN === */
.haiti-wc-slogan {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 2px;
    color: #FFD700;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
    margin: 10px 0 14px;
    padding: 8px 24px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 30px;
    border: 1px solid rgba(255, 215, 0, 0.25);
    display: inline-block;
}

/* Responsive Haiti */
@media (max-width: 900px) {
    .haiti-players-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 600px) {
    .haiti-players-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .hp-avatar-wrapper {
        width: 70px;
        height: 70px;
    }
    .hp-name { font-size: 0.82rem; }
    .hp-stat-value { font-size: 1rem; }
    .haiti-match-card { flex-direction: column; text-align: center; }
    .hm-date { min-width: auto; }
}

/* ===== PRINT-ONLY : MASQUER à l'écran ===== */
#printView,
#knockoutPrintView {
    display: none;
}

/* Print action bar */
.print-action-bar {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 10px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.btn-print {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 2px solid var(--secondary);
    background: transparent;
    color: var(--secondary);
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-print:hover {
    background: var(--secondary);
    color: var(--bg-dark);
}

.btn-print-ko {
    border-color: #b8860b;
    color: #daa520;
}

.btn-print-ko:hover {
    background: #b8860b;
    color: white;
}

/* Hide print views on screen */
#printView,
#knockoutPrintView {
    display: none;
}

/* Hide print bar when printing */
@media print {
    .print-action-bar,
    .no-print {
        display: none !important;
    }
}

/* ===== PRINT — WRITABLE KNOCKOUT STYLES ===== */

/* Write-in line for team names */
.print-write-line {
    display: inline-block;
    width: 60px;
    border-bottom: 1.5px dotted #999;
    margin-left: 3px;
    height: 8pt;
    vertical-align: bottom;
}

.print-write-label {
    font-size: 5pt;
    color: #aaa;
    font-style: italic;
}

/* Score box — empty for writing */
.print-ko-score-box {
    display: inline-block;
    width: 16px;
    height: 14px;
    border: 1.5px solid #bbb;
    border-radius: 2px;
    text-align: center;
    font-weight: 800;
    font-size: 7pt;
    line-height: 14px;
    margin-left: auto;
    flex-shrink: 0;
    background: #fafafa;
}

.print-ko-score-box.filled {
    border-color: #333;
    background: #eef;
    color: #111;
}

/* Penalty box — small square */
.print-ko-pen-box {
    display: inline-block;
    width: 11px;
    height: 10px;
    border: 1px solid #ccc;
    border-radius: 1px;
    margin-left: 2px;
    font-size: 5pt;
    text-align: center;
    background: #f8f8f8;
    flex-shrink: 0;
}

/* Knockout print — write lines */
.kp-write-line {
    display: inline-block;
    flex: 1;
    min-width: 40px;
    max-width: 80px;
    border-bottom: 1.5px dotted #aaa;
    height: 10px;
    margin: 0 3px;
}

.kp-write-hint {
    font-size: 5.5pt;
    color: #bbb;
    font-style: italic;
    white-space: nowrap;
}

.kp-score-empty {
    border: 1.5px solid #bbb !important;
    background: #fafafa !important;
    border-radius: 2px;
    min-width: 14px;
    min-height: 12px;
}

.kp-pen-box {
    display: inline-block;
    width: 10px;
    height: 9px;
    border: 1px solid #ccc;
    border-radius: 1px;
    margin-left: 2px;
    background: #f9f9f9;
    flex-shrink: 0;
}

/* Print date header */
.print-date-header {
    font-size: 6.5pt;
    font-weight: 700;
    color: #444;
    padding: 3pt 0 1pt;
    border-bottom: 0.5pt solid #ddd;
    margin-bottom: 2pt;
    text-transform: capitalize;
}

/* Print match group tag */
.print-match-tag {
    font-size: 4.5pt;
    font-weight: 800;
    padding: 0.5pt 2pt;
    border-radius: 2pt;
    letter-spacing: 0.3pt;
    flex-shrink: 0;
}

/* Print knockout header enhancements */
.print-ko-num {
    font-weight: 800;
    color: var(--primary, #1a1a6e);
}

.print-ko-venue {
    font-size: 5pt;
    color: #999;
}

/* Print final section special styling */
.print-final-section {
    border: 2pt solid gold;
    border-radius: 4pt;
    padding: 4pt;
    background: linear-gradient(135deg, #fffbe6, #fff);
    margin-top: 4pt;
}

.print-final-title {
    color: #b8860b !important;
    font-size: 8pt !important;
    text-align: center;
}

/* Print bracket legend */
.print-bracket-legend {
    margin-top: 6pt;
    border: 1pt solid #ddd;
    border-radius: 4pt;
    padding: 5pt 8pt;
    background: #f9f9fb;
    page-break-inside: avoid;
}

.print-legend-title {
    font-size: 7pt;
    font-weight: 800;
    color: #333;
    margin-bottom: 3pt;
}

.print-legend-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2pt 8pt;
}

.print-legend-item {
    font-size: 5.5pt;
    color: #555;
    display: flex;
    align-items: center;
    gap: 3pt;
}

.print-legend-icon {
    font-size: 7pt;
}

/* Print page header/footer */
.print-page-header {
    font-size: 10pt;
    font-weight: 900;
    color: #1a1a6e;
    text-align: center;
    margin-bottom: 1pt;
}

.print-page-subheader {
    font-size: 5.5pt;
    color: #888;
    text-align: center;
    margin-bottom: 4pt;
}

.print-footer {
    text-align: center;
    font-size: 5pt;
    color: #aaa;
    margin-top: 6pt;
    padding-top: 3pt;
}

/* Knockout match 3rd place */
.print-ko-3rd {
    border-color: #cd7f32 !important;
}

/* Print knockout team row — ensure score box alignment */
@media print {
    .print-ko-team {
        display: flex;
        align-items: center;
        gap: 2pt;
    }
    
    .print-ko-team-name {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 2pt;
    }
    
    .print-ko-score-box {
        margin-left: auto;
    }
    
    .kp-team-row {
        display: flex;
        align-items: center;
    }
    
    .kp-team-score.kp-score-empty {
        border: 1.5px solid #aaa;
        background: #f5f5f5;
        min-width: 16px;
        text-align: center;
    }
}

/* ===== PLAYER PROFILE MODAL ===== */
.profile-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.profile-modal-overlay.active {
    opacity: 1;
}

.profile-modal {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    animation: profileSlideUp 0.4s ease;
}

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

.profile-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(210, 16, 52, 0.4);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    z-index: 10;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-close:hover {
    background: rgba(255, 71, 87, 0.6);
    transform: rotate(90deg) scale(1.1);
    border-color: #ff4757;
}

.profile-header {
    display: flex;
    gap: 24px;
    padding: 28px 28px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    align-items: flex-start;
}

.profile-photo-frame {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--pos-color, #8b5cf6);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
    flex-shrink: 0;
    position: relative;
    background: linear-gradient(135deg, #0d1f4b, #d21034);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.profile-photo-fallback {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: rgba(255,255,255,0.6);
}

.profile-number-circle {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 34px;
    height: 34px;
    background: var(--pos-color, #8b5cf6);
    border: 3px solid #1a1a2e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 900;
    color: #fff;
}

.profile-identity { flex: 1; min-width: 0; }

.profile-flag-name {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.profile-flag { font-size: 1.8rem; }

.profile-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
}

.profile-captain {
    background: linear-gradient(135deg, #FFD700, #f0c000);
    color: #1a1a2e;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 10px;
    margin-left: 8px;
    white-space: nowrap;
}

.profile-pos-club {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.profile-position {
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-club-name {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
}

.profile-bio {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.5;
    margin-top: 6px;
}

.profile-section {
    padding: 20px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.profile-section:last-child { border-bottom: none; }

.profile-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-section-title i { color: rgba(139, 92, 246, 0.7); }

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.profile-info-item {
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    padding: 10px 12px;
}

.profile-info-label {
    display: block;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.profile-info-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}

.profile-big-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
    justify-content: center;
}

.profile-big-stat {
    text-align: center;
    flex: 1;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    padding: 14px 10px;
}

.profile-big-num {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.profile-big-label {
    display: block;
    font-size:  0.65rem;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.profile-stats-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-stat-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-stat-icon { font-size: 0.85rem; width: 22px; text-align: center; }

.profile-stat-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    font-weight: 600;
    width: 80px;
    flex-shrink: 0;
}

.profile-stat-bar {
    flex: 1;
    height: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    overflow: hidden;
}

.profile-stat-fill {
    height: 100%;
       border-radius: 4px;
    transition: width 0.8s ease;
}

.profile-stat-value {
    font-size: 0.8rem;
    font-weight: 800;
    color: #fff;
    width: 28px;
    text-align: right;
}

.profile-strengths {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-strength {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
}

.profile-clubs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-club-tag {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
}

.profile-links {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    flex-direction: row !important;
}

.profile-ext-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: all 0.25s;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
}

.profile-ext-link:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

/* Profile Modal Responsive */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .profile-flag-name { justify-content: center; flex-wrap: wrap; }
    .profile-pos-club { justify-content: center; }
    .profile-info-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-big-stats { flex-wrap: wrap; }
    .profile-big-stat { min-width: 80px; }
    .profile-name { font-size: 1.3rem; }
    .profile-links { flex-direction: column !important; }
}

/* ===== SQUAD LIST MODAL ===== */
.squad-modal {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border: 1px solid rgba(196, 164, 74, 0.3);
    border-radius: 20px;
    max-width: 750px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    animation: profileSlideUp 0.4s ease;
    padding-bottom: 20px;
}

.squad-modal::-webkit-scrollbar { width: 6px; }
.squad-modal::-webkit-scrollbar-track { background: transparent; }
.squad-modal::-webkit-scrollbar-thumb { background: rgba(196,164,74,0.3); border-radius: 3px; }

.squad-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: sticky;
    top: 0;
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    z-index: 5;
    border-radius: 20px 20px 0 0;
}

.squad-modal-flag { font-size: 2.8rem; }

.squad-modal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
}

.squad-modal-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 2px 0 0;
}

/* Squad Summary Bar */
.squad-summary-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.squad-sum-item {
    text-align: center;
    min-width: 55px;
}

.squad-sum-num {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.squad-sum-label {
    display: block;
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Squad Status */
.squad-status-container {
    text-align: center;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.squad-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.squad-status-badge.provisional {
    background: rgba(243, 156, 18, 0.15);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.squad-status-badge.official {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

/* Squad Groups */
.squad-groups-container {
    padding: 10px 20px;
}

.squad-group {
    margin-bottom: 16px;
}

.squad-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    margin-bottom: 6px;
}

.squad-group-count {
    font-size: 0.7rem;
    background: rgba(255,255,255,0.1);
    padding: 2px 10px;
    border-radius: 10px;
    color: var(--text-muted);
}

/* Squad Table */
.squad-table {
    width: 100%;
    border-collapse: collapse;
}

.squad-table thead th {
    padding: 6px 8px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.squad-table thead th:first-child,
.squad-table thead th:last-child {
    text-align: center;
}

.squad-row {
    transition: background 0.15s;
}

.squad-row:hover {
    background: rgba(255,255,255,0.05);
}

.squad-row td {
    padding: 8px 8px;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: middle;
}

.squad-num {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 0.9rem;
    text-align: center;
    width: 40px;
}

.squad-name {
    font-weight: 700;
    color: #fff;
}

.squad-club {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.squad-age {
    text-align: center;
    font-weight: 700;
    color: var(--text-muted);
}

.squad-pos-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.squad-pos-tag.pos-gk  { background: rgba(243,156,18,0.2); color: #f39c12; }
.squad-pos-tag.pos-def { background: rgba(52,152,219,0.2); color: #3498db; }
.squad-pos-tag.pos-mid { background: rgba(46,204,113,0.2); color: #2ecc71; }
.squad-pos-tag.pos-att { background: rgba(231,76,60,0.2); color: #e74c3c; }

.squad-profile-badge {
    color: rgba(139,92,246,0.6);
    font-size: 0.7rem;
    margin-left: 4px;
}

/* Squad Hint */
.squad-hint {
    text-align: center;
    padding: 12px 20px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3);
    font-style: italic;
}

/* Profile Back Section (shared) */
.profile-back-section {
    text-align: center;
    padding: 16px 20px;
}

.profile-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-back-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: var(--secondary);
}

/* Haiti Update Notification */
.haiti-update-notif {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, #0F1624 0%, #162034 100%);
    border: 1px solid rgba(0,212,255,0.35);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #EEF2FF;
    font-size: 0.82rem;
    font-weight: 600;
    z-index: 99999;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,212,255,0.1);
    transform: translateY(80px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
    max-width: 360px;
}

.haiti-update-notif.show {
    transform: translateY(0);
    opacity: 1;
}

.haiti-update-notif i.fa-sync-alt {
    color: #00D4FF;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.haiti-update-notif button {
    background: none;
    border: none;
    color: rgba(238,242,255,0.4);
    cursor: pointer;
    padding: 4px 6px;
    margin-left: 4px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
    flex-shrink: 0;
}
.haiti-update-notif button:hover {
    color: #EEF2FF;
    background: rgba(255,255,255,0.08);
}

/* Squad Modal Responsive */
@media (max-width: 600px) {
    .squad-modal { max-height: 90vh; border-radius: 14px; }
    .squad-modal-header { padding: 16px; border-radius: 14px 14px 0 0; }
    .squad-modal-title { font-size: 1.1rem; }
    .squad-table thead th:nth-child(4),
    .squad-row td:nth-child(4) { display: none; }
    .squad-summary-bar { gap: 8px; }
    .squad-sum-num { font-size: 1rem; }
}

/* ===== HAITI SQUAD BUTTON ===== */
.haiti-squad-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #00209F, #0040D0);
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 14px;
    color: #FFD700;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 32, 159, 0.4), 0 0 15px rgba(255, 215, 0, 0.1);
}

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

.haiti-squad-btn:hover {
    transform: translateY(-3px);
    border-color: #FFD700;
    box-shadow: 0 8px 30px rgba(215,38,96,0.5), 0 0 25px rgba(255, 215, 0, 0.2);
    background: linear-gradient(135deg, #001880, #0035B0);
}

.haiti-squad-btn:hover::before {
    left: 100%;
}

.haiti-squad-btn:active {
    transform: translateY(-1px);
}

.haiti-squad-btn i {
    font-size: 1.1rem;
    filter: drop-shadow(0 0 4px rgba(255, 215, 0, 0.4));
}

/* ===== HAITI HERO ACTIONS ===== */
.haiti-hero-actions {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* Masque toute barre de recherche ou filtres joueurs/pays dans la section actualités */
#tab-actualites .player-search-bar,
#tab-actualites .country-filters,
#tab-actualites .other-filters {
    display: none !important;
}

.news-countdown-widget {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* === Mega Chat Messenger Styles === */
#megaChatContainer { max-width: 500px; margin: 0 auto; }
.mega-chat-header {
    display: flex; justify-content: space-between; align-items: center;
    background: #232323; color: #fff; padding: 8px 12px; border-radius: 8px 8px 0 0;
    font-size: 1rem; margin-bottom: 0;
}
.mega-chat-header button {
    background: #C4A44A; color: #fff; border: none; border-radius: 4px; padding: 4px 10px; cursor: pointer;
}
.mega-chat-messages {
    background: #181818; color: #fff; min-height: 200px; max-height: 300px;
    overflow-y: auto; padding: 10px; border-radius: 0 0 8px 8px; margin-bottom: 8px;
    font-size: 1rem;
}
.mega-chat-message {
    margin-bottom: 12px; padding-bottom: 6px; border-bottom: 1px solid #333;
}
.chat-msg-name { font-weight: bold; color: #C4A44A; margin-right: 8px; }
.chat-msg-time { font-size: 0.85em; color: #aaa; }
.chat-msg-text { margin-top: 2px; }
.mega-chat-form {
    display: flex; gap: 8px;
}
.mega-chat-form input {
    flex: 1; padding: 8px; border-radius: 4px; border: 1px solid #444; background: #222; color: #fff;
}
.mega-chat-form button {
    padding: 8px 16px; border-radius: 4px; background: #C4A44A; color: #fff; border: none; cursor: pointer;
}
.mega-chat-name-form {
    display: flex; flex-direction: column; gap: 10px; background: #232323; padding: 20px; border-radius: 8px;
    max-width: 350px; margin: 40px auto;
}
.mega-chat-name-form input {
    padding: 8px; border-radius: 4px; border: 1px solid #444; background: #222; color: #fff;
}
.mega-chat-name-form button {
    padding: 8px 16px; border-radius: 4px; background: #C4A44A; color: #fff; border: none; cursor: pointer;
}

/* Chat Mega */
.chat-box { max-width: 600px; margin: 0 auto; }
.chat-messages { font-size: 15px; }
#chatForm input { padding: 6px 8px; border-radius: 4px; border: none; }
#chatForm input:focus { outline: 2px solid #ffe066; }

/* Ajoute à la fin de style.css si besoin */
.chat-del-btn:hover { color: #ff4757 !important; }
#emojiPicker span:hover { background: #ffe066; color: #18162a; border-radius: 4px; }

/* ============================================
   HEADER AMELIORE
   ============================================ */
.header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,10,30,0.85) 0%, rgba(215,38,96,0.15) 100%);
    z-index: 0;
}

.header-content { position: relative; z-index: 1; }

.header-quick-stats {
    display: flex;
    gap: 24px;
    margin-top: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-stat {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,224,102,0.3);
    border-radius: 10px;
    padding: 10px 20px;
    text-align: center;
    backdrop-filter: blur(6px);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    user-select: none;
}

.quick-stat:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px rgba(215,38,96,0.4);
    border-color: #ffe066;
}

.quick-stat span {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: #ffe066;
    line-height: 1;
}

.quick-stat small {
    font-size: 0.75rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   NAVIGATION STICKY AMELIOREE
   ============================================ */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

/* Compteur visiteurs */
.visitor-counter {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.75);
    white-space: nowrap;
    margin-left: 6px;
    flex-shrink: 0;
}
.visitor-counter .fa-users { color: var(--secondary); font-size: 0.75rem; }
.visitor-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #888;
    flex-shrink: 0;
    transition: background 0.4s;
}
.visitor-sep { opacity: 0.3; }
.visitor-online { color: #2ecc71; font-weight: 600; }
@media (max-width: 600px) {
    .visitor-sep, .visitor-online { display: none; }
    .visitor-counter { padding: 4px 8px; }
}

.nav-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.nav-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #ffe066;
    transition: width 0.3s;
}

.nav-btn:hover::after,
.nav-btn.active::after { width: 80%; }

/* ============================================
   CARDS GROUPES AMELIOREES
   ============================================ */
.group-card {
    border-radius: 14px;
    border: 1px solid rgba(255,224,102,0.1);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    background: linear-gradient(135deg, #1a1830 0%, #16142a 100%);
}

.group-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(215,38,96,0.2);
    border-color: rgba(255,224,102,0.3);
}

/* ============================================
   CHAT AMELIORE
   ============================================ */
.chat-box {
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(135deg, #1a1830 0%, #16142a 100%);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255,224,102,0.15);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.chat-messages {
    scrollbar-width: thin;
    scrollbar-color: #d72660 #18162a;
}

.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-track { background: #18162a; border-radius: 3px; }
.chat-messages::-webkit-scrollbar-thumb { background: #d72660; border-radius: 3px; }
.chat-messages::-webkit-scrollbar-thumb:hover { background: #ffe066; }

/* ============================================
   ACTUALITES — BADGES
   ============================================ */
.news-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-left: 8px;
    vertical-align: middle;
}

.news-badge-OFFICIEL { background: #1a7a4a; color: #fff; }
.news-badge-NOUVEAU  { background: #d72660; color: #fff; }
.news-badge-RECORD   { background: #ffe066; color: #18162a; }
.news-badge-ALERTE   { background: #ff4757; color: #fff; }

/* ============================================
   BOUTONS AMELIORES
   ============================================ */
.btn-print {
    background: linear-gradient(135deg, #d72660, #a01545);
    transition: all 0.3s;
    border-radius: 8px;
}

.btn-print:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(215,38,96,0.4);
}

/* ============================================
   FOOTER AMELIORE
   ============================================ */
.main-footer {
    background: linear-gradient(135deg, #0a0a1e 0%, #18162a 100%);
    padding: 30px 20px;
    text-align: center;
    border-top: 2px solid rgba(255,224,102,0.1);
}

.main-footer p { color: #aaa; font-size: 0.9rem; }
.main-footer a { color: #ffe066; text-decoration: none; }
.main-footer a:hover { color: #d72660; }

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

.tab-content[style*="display: block"],
.tab-content[style*="display:block"],
.tab-content.active {
    animation: fadeInUp 0.4s ease;
}

/* ============================================
   RESPONSIVE MOBILE
   ============================================ */
@media (max-width: 768px) {
    .main-nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 6px 8px;
        justify-content: flex-start;
    }
    .main-nav::-webkit-scrollbar { display: none; }
    .nav-btn { white-space: nowrap; font-size: 0.72rem; padding: 7px 9px; flex-shrink: 0; }

    /* Compteur — ne pas laisser déborder */
    .visitor-counter { flex-shrink: 0; margin-left: 4px; padding: 4px 8px; font-size: 0.68rem; }

    /* Groupes : 2 colonnes sur tablette/mobile */
    .groups-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .group-header { font-size: 0.78rem; padding: 7px 10px; letter-spacing: 1px; }
    .group-team-row { padding: 5px 8px; gap: 6px; }
    .team-flag { width: 24px; height: 16px; }
    .team-name { font-size: 0.78rem; }
    .team-code { font-size: 0.62rem; padding: 1px 4px; }
    .group-team-pos { font-size: 0.75rem; width: 16px; }

    /* Knockout : 2 colonnes sur mobile */
    .knockout-matches { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
    .knockout-match-header { font-size: 0.58rem; padding: 4px 7px; gap: 2px; }
    .knockout-match-header span:last-child { display: none; } /* masquer stade */
    .knockout-team-row { padding: 6px 7px; gap: 5px; }
    .knockout-team-name { font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 90px; }
    .knockout-team-score { font-size: 0.85rem; min-width: 16px; }
    .knockout-team-row .team-flag { width: 18px; height: 12px; }
    .round-title { font-size: 0.9rem; letter-spacing: 2px; padding: 10px 12px; }

    .header-quick-stats { gap: 10px; }
    .quick-stat { padding: 6px 12px; }
    .quick-stat span { font-size: 1.4rem; }
    .chat-box { padding: 10px; }
    .mega-title { font-size: 1.5rem !important; }

    /* Contenu onglets : padding réduit */
    .main-content { padding: 14px 10px; }
}

@media (max-width: 480px) {
    .header-quick-stats { gap: 6px; }
    .quick-stat { padding: 4px 8px; }
    .quick-stat span { font-size: 1.1rem; }
    .mega-title { font-size: 1.2rem !important; letter-spacing: 3px !important; }
    .title-block h1 { letter-spacing: 2px !important; font-size: 0.85rem !important; }
    .title-block .subtitle { letter-spacing: 2px !important; }

    /* Groupes : 2 colonnes compactes */
    .groups-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .group-team-row { padding: 4px 7px; gap: 5px; }
    .team-name { font-size: 0.72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .team-flag { width: 20px; height: 14px; }
    .team-code { display: none; }

    /* Knockout : 2 colonnes très compactes */
    .knockout-matches { grid-template-columns: repeat(2, 1fr) !important; gap: 6px; }
    .knockout-team-name { font-size: 0.68rem; max-width: 80px; }
    .knockout-team-score { font-size: 0.78rem; }
    .round-title { font-size: 0.8rem; letter-spacing: 1px; }

    .main-content { padding: 10px 8px; }
}

/* Logos gauche et droite */
.mega-logo {
    max-height: 300px;
    width: auto;
    height: auto;
    display: block;
    flex-shrink: 0;
    position: static !important;
    z-index: 1 !important;
}

@media (max-width: 768px) {
    .mega-logo { max-height: 90px; }
    .mega-logo-right { display: block; max-height: 90px; }
    .header-bg { padding: 16px 10px; }
    .logo-section { gap: 6px; }
}
@media (max-width: 480px) {
    .mega-logo, .mega-logo-right { max-height: 70px; }
    .header-bg { padding: 12px 6px; }
    .title-block .subtitle { letter-spacing: 1px !important; font-size: 0.72rem !important; }
    .title-block h1 { font-size: 0.78rem !important; letter-spacing: 1px !important; }
    .title-block .dates { letter-spacing: 1px !important; font-size: 0.68rem !important; }
}

.mega-marquee {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(90deg, #00209F 0%, #D21034 100%);
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    padding: 10px 0;
    margin-top: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    position: relative;
}
.mega-marquee span {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: mega-marquee-scroll 80s linear infinite;
}
@keyframes mega-marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ============================================
   ONGLET JOUEURS — STYLES GÉNÉRAUX
   ============================================ */
.players-section {
    margin-bottom: 28px;
}

.haiti-focus-section {
    background: linear-gradient(135deg, rgba(0,32,159,0.06), rgba(210,16,52,0.06));
    border-radius: 14px;
    padding: 20px;
    border: 1px solid rgba(210, 16, 52, 0.12);
}

.players-subtitle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(196, 164, 74, 0.2);
}

.players-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.players-empty {
    text-align: center;
    padding: 32px 20px;
    color: var(--text-muted);
}
.players-empty i { font-size: 2.5rem; margin-bottom: 12px; display: block; color: rgba(196,164,74,0.3); }
.players-empty .hint { font-size: 0.83rem; opacity: 0.7; margin-top: 6px; }

.players-table-wrapper {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.players-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.players-table thead th {
    background: rgba(196, 164, 74, 0.1);
    color: var(--secondary);
    padding: 10px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
    text-align: center;
}
.players-table thead th:nth-child(2) { text-align: left; }

.players-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.15s;
}
.players-table tbody tr:hover    { background: rgba(255,255,255,0.04); }
.players-table tbody tr.gold     { background: rgba(255,215,0,0.06); }
.players-table tbody tr.silver   { background: rgba(200,200,200,0.04); }
.players-table tbody tr.bronze   { background: rgba(205,127,50,0.04); }
.players-table tbody tr.row-red  { background: rgba(193,39,45,0.08); }
.players-table tbody tr.row-warning { background: rgba(245,197,24,0.05); }

.players-table td {
    padding: 9px 12px;
    text-align: center;
    color: #ddd;
}

.rank-cell { width: 40px; }
.player-name-cell { text-align: left; font-weight: 700; color: #fff; }
.player-team-cell { display: flex; align-items: center; gap: 6px; justify-content: center; }
.goals-cell strong { color: #FFD700; font-size: 1rem; }
.minutes-cell { max-width: 200px; }

.player-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 900;
    background: rgba(255,255,255,0.07);
    color: #aaa;
}
.player-rank.gold   { background: rgba(255,215,0,0.18); color: #FFD700; }
.player-rank.silver { background: rgba(200,200,200,0.13); color: #ccc; }
.player-rank.bronze { background: rgba(205,127,50,0.14); color: #CD7F32; }

.minute-badge {
    display: inline-block;
    background: rgba(196,164,74,0.15);
    color: var(--secondary);
    border-radius: 4px;
    padding: 2px 5px;
    font-size: 0.68rem;
    font-weight: 700;
    margin: 1px;
}

.card-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 900;
}
.card-badge.yellow { background: rgba(245,197,24,0.18); color: #F5C518; }
.card-badge.red    { background: rgba(193,39,45,0.18);  color: #C1272D; }

.no-data {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 18px;
    font-size: 0.86rem;
}

/* Minute Chart */
.minute-chart {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    height: 110px;
    padding: 0 4px;
}
.minute-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    gap: 4px;
}
.minute-bar-value {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1;
    min-height: 14px;
}
.minute-bar-track {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    background: rgba(255,255,255,0.04);
    border-radius: 4px 4px 0 0;
}
.minute-bar-fill {
    width: 100%;
    background: linear-gradient(180deg, var(--secondary), rgba(196,164,74,0.4));
    border-radius: 4px 4px 0 0;
    transition: height 0.5s ease;
}
.minute-bar-label {
    font-size: 0.62rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Recent Goals */
.recent-goals-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.recent-goal-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.83rem;
    flex-wrap: wrap;
}
.recent-goal-icon  { font-size: 1rem; }
.recent-goal-minute{ color: var(--secondary); font-weight: 700; font-size: 0.76rem; min-width: 30px; }
.recent-goal-player{ font-weight: 700; color: #fff; flex: 1; }
.recent-goal-match { font-size: 0.74rem; color: var(--text-muted); }
.recent-goal-assist{ font-size: 0.74rem; color: rgba(196,164,74,0.7); }

/* ============================================
   VEDETTES MONDIALES
   ============================================ */
.ws-notice {
    background: linear-gradient(135deg, rgba(196,164,74,0.08), rgba(196,164,74,0.04));
    border: 1px solid rgba(196,164,74,0.25);
    border-left: 4px solid var(--secondary);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin-bottom: 18px;
}
.ws-notice i { color: var(--secondary); margin-right: 6px; }
.ws-notice strong { color: #FFD700; }

.world-stars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 14px;
}

.world-star-card {
    background: var(--bg-card-alt);
    border: 1px solid rgba(196,164,74,0.2);
    border-radius: 14px;
    padding: 22px 14px 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}
.world-star-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFD700, #C4A44A);
    border-radius: 14px 14px 0 0;
}
.world-star-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 10px 28px rgba(196,164,74,0.18);
}
.ws-rank {
    position: absolute;
    top: 10px;
    left: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 900;
    color: rgba(196,164,74,0.45);
}
.ws-medal {
    position: absolute;
    top: 8px;
    left: 10px;
    font-size: 1.1rem;
    line-height: 1;
}

.world-star-card.haiti-star::before {
    background: linear-gradient(90deg, #00209F, #D21034);
}

.world-star-card.haiti-star {
    border-color: rgba(210, 16, 52, 0.2);
}

.world-star-card.haiti-star:hover {
    box-shadow: 0 10px 28px rgba(210, 16, 52, 0.22);
}

.ws-captain {
    position: absolute;
    top: 8px;
    left: 10px;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a2e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.72rem;
}

.ws-divider {
    grid-column: 1 / -1;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    color: rgba(255, 215, 0, 0.8);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 10px 0 4px;
    border-top: 1px solid rgba(210, 16, 52, 0.25);
    margin-top: 6px;
}

/* Responsive joueurs */
@media (max-width: 768px) {
    .world-stars-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
}
@media (max-width: 600px) {
    .world-stars-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .world-star-card { padding: 18px 10px 12px; }
    .haiti-focus-section { padding: 14px; }
    .players-table { font-size: 0.74rem; }
    .players-table td, .players-table thead th { padding: 7px 8px; }
}

/* ===== MATCH HIGHLIGHTS & INDIVIDUAL STATS ===== */
#matchHighlights { display: flex; flex-direction: column; gap: 20px; }

.hi-subsection {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 14px 16px;
}
.hi-sub-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.hi-sub-title i { color: var(--primary); }

/* Match header in "Faits du jour" */
.hi-match { margin-bottom: 14px; }
.hi-match:last-child { margin-bottom: 0; }
.hi-match-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(210,16,52,0.12);
    border-left: 3px solid var(--primary);
    border-radius: 0 6px 6px 0;
    margin-bottom: 8px;
}
.hi-team-vs { font-weight: 600; font-size: 0.88rem; }
.hi-team-vs em { color: var(--secondary); font-style: normal; font-weight: 700; margin: 0 4px; }
.hi-match-phase { font-size: 0.73rem; color: var(--text-muted); white-space: nowrap; }

.hi-events-list { display: flex; flex-direction: column; gap: 4px; padding: 0 4px; }
.hi-event {
    display: grid;
    grid-template-columns: 28px 1fr auto auto;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    padding: 3px 6px;
    border-radius: 4px;
}
.hi-event.goal  { background: rgba(255,215,0,0.06); }
.hi-event.card  { background: rgba(255,100,0,0.06); }
.hi-event.motm  { background: rgba(0,200,120,0.08); }
.hi-icon   { font-size: 0.95rem; text-align: center; }
.hi-player { font-weight: 500; }
.hi-min    { color: var(--text-muted); font-size: 0.75rem; text-align: right; min-width: 34px; }
.hi-team   { color: var(--text-muted); font-size: 0.73rem; text-align: right; min-width: 80px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hi-no-events { color: var(--text-muted); font-size: 0.8rem; font-style: italic; }

/* Player ranking rows */
.hi-players-list { display: flex; flex-direction: column; gap: 5px; }
.hi-player-row {
    display: grid;
    grid-template-columns: 26px 1fr 120px 80px 60px 44px;
    align-items: center;
    gap: 6px;
    font-size: 0.83rem;
    padding: 5px 6px;
    border-radius: 5px;
    background: rgba(255,255,255,0.02);
    transition: background 0.15s;
}
.hi-player-row:hover { background: rgba(255,255,255,0.06); }
.hi-rank {
    font-weight: 700;
    font-size: 0.78rem;
    text-align: center;
    color: var(--text-muted);
}
.hi-rank.gold   { color: #FFD700; }
.hi-rank.silver { color: #C0C0C0; }
.hi-rank.bronze { color: #CD7F32; }
.hi-pname { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hi-pname small { color: var(--text-muted); font-weight: 400; }
.hi-pteam { color: var(--text-muted); font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hi-bar-wrap { height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.hi-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); border-radius: 3px; }
.hi-goals { font-weight: 700; color: var(--secondary); text-align: right; font-size: 0.82rem; }
.hi-goals small { color: var(--text-muted); font-weight: 400; }
.hi-avg { color: var(--text-muted); font-size: 0.74rem; text-align: right; }
.hi-cards { display: flex; gap: 6px; flex-wrap: wrap; }
.hi-card { font-size: 0.78rem; white-space: nowrap; }

.hi-dates-scroll { display: flex; flex-direction: column; gap: 14px; max-height: 600px; overflow-y: auto; padding-right: 4px; }
.hi-dates-scroll::-webkit-scrollbar { width: 4px; }
.hi-dates-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }
.hi-date-group { display: flex; flex-direction: column; gap: 8px; }
.hi-date-header {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 2px 0 4px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Responsive */
@media (max-width: 600px) {
    .hi-player-row { grid-template-columns: 22px 1fr 0 60px 44px 38px; }
    .hi-pteam { display: none; }
    .hi-match-phase { display: none; }
}