.team-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    padding: 4px 0;
}

.stat-box {
    /* Sztywne wymiary dla idealnego wyrównania */
    flex: 0 0 92px;     /* Boks nie rośnie, nie maleje, ma zawsze 92px */
    height: 60px;       /* Stała wysokość dla wszystkich boksów */

    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 5px 10px;
    text-align: center;
    min-width: 85px;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.05);
}

.stat-box .label {
    font-size: 10px;
    text-transform: uppercase;
    margin-bottom: 2px;
    font-weight: normal;
}

.stat-box .value {
    font-weight: bold;
    font-size: 18px;
}

/* --- WYGRANE --- */
.stat-box.win-total { background: #c8e6c9; border-color: #81c784; }
.stat-box.win-total .label { color: #1b5e20; }
.stat-box.win-total .value { color: #0d3d0f; }

.stat-box.home { background: #e8f5e9; border-color: #c8e6c9; }
.stat-box.home .label { color: #2e7d32; }
.stat-box.home .value { color: #1b5e20; font-size: 15px; }

.stat-box.away { background: #e3f2fd; border-color: #bbdefb; }
.stat-box.away .label { color: #1565c0; }
.stat-box.away .value { color: #0d47a1; font-size: 15px; }

/* --- PRZEGRANE --- */
.stat-box.loss-total { background: #ffcdd2; border-color: #ef9a9a; }
.stat-box.loss-total .label { color: #b71c1c; }
.stat-box.loss-total .value { color: #7f0000; }

.stat-box.loss-details { background: #ffebee; border-color: #ffcdd2; }
.stat-box.loss-details .label { color: #d32f2f; }
.stat-box.loss-details .value { color: #b71c1c; font-size: 15px; }

/* --- INNE --- */
.stat-box.all { background: #fff; }
.stat-box.goals { background: #fff3e0; border-color: #ffe0b2; }
.stat-box.goals .label { color: #ef6c00; }
.stat-box.goals .value { color: #e65100; }


/* Kompaktowa karta meczu */
.compact-match-card {
    padding: 4px !important;
    background-color: #ccf !important; /* Delikatne tło */
}

.compact-match-card .timetable-title {
    font-size: 14px !important;
    text-transform: uppercase;
    margin: 0 0 8px 0 !important;
    letter-spacing: 1px;
    color: #444;
}

/* Nowy, niższy wiersz wyniku */
.match-row-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.match-row-compact .t-name {
    flex: 1;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.2;
}

.match-row-compact .t-home { text-align: right; }
.match-row-compact .t-away { text-align: left; }

.match-row-compact .m-score {
    background: #d4d4d4;
    border: 1px solid #bbb;
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 22px;
    font-weight: bold;
    color: #733;
    min-width: 65px;
    text-align: center;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.match-row-compact img {
    width: 24px;
    height: auto;
    vertical-align: middle;
}

.match-date-compact {
    font-size: 11px;
    color: #888;
    margin-top: 5px;
    text-align: center;
}
