.stat-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 16px; 
    margin-bottom: 24px; 
}
@media (max-width: 1100px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .stat-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px){
#allTourneysTable, .league-table-custom, #allTeamsTable,
#allTourneysTable tbody, .league-table-custom tbody, #allTeamsTable tbody,
#allTourneysTable tr, .league-table-custom tr, #allTeamsTable tr,
#allTourneysTable td, .league-table-custom td, #allTeamsTable td {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

#allTourneysTable thead, .league-table-custom thead, #allTeamsTable thead {
    display: none !important;
}

#allTourneysTable tr, .league-table-custom tr, #allTeamsTable tr {
    background: var(--surf) !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--sh-card) !important;
    margin-bottom: 16px !important;
    padding: 16px !important;
}

#allTourneysTable td, .league-table-custom td, #allTeamsTable td {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    padding: 8px 0 !important;
    border-bottom: 1px dashed var(--line-subtle) !important;
    text-align: right !important;
    font-size: 14px !important;
    font-family: inherit !important;
    gap: 4px !important;
}

#allTourneysTable td::after, .league-table-custom td::after, #allTeamsTable td::after {
    display: none !important;
    content: none !important;
}

#allTourneysTable td::before, .league-table-custom td::before, #allTeamsTable td::before {
    margin-right: auto !important;
    color: var(--tx-muted) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: left !important;
}

#allTourneysTable td:last-child, .league-table-custom td:last-child, #allTeamsTable td:last-child {
    border-bottom: none !important;
}

#allTourneysTable td:nth-child(1), #allTeamsTable td:nth-child(1) { display: none !important; } 

#allTourneysTable td:nth-child(2), #allTeamsTable td:nth-child(2) {
    display: block !important; 
    text-align: left !important;
    font-size: 16px !important; 
    padding: 0 0 12px 0 !important; 
    margin-bottom: 8px !important;
    border-bottom: 1px solid var(--line) !important;
}

#allTourneysTable td:nth-child(3)::before { content: "Матчей в истории:"; }
#allTourneysTable td:nth-child(4)::before { content: "Победы хозяев (П1):"; }
#allTourneysTable td:nth-child(5)::before { content: "Ничьи (X):"; }
#allTourneysTable td:nth-child(6)::before { content: "Победы гостей (П2):"; }
#allTourneysTable td:nth-child(7)::before { content: "Процент ничьих:"; }
#allTourneysTable td:nth-child(8)::before { content: "Точность БК:"; }
#allTourneysTable td:nth-child(9)::before { content: "Точность Пула:"; }

#allTeamsTable td:nth-child(3)::before { content: "Матчей в истории:"; }
#allTeamsTable td:nth-child(4)::before { content: "Побед (В):"; }
#allTeamsTable td:nth-child(5)::before { content: "Ничьих (Н):"; }
#allTeamsTable td:nth-child(6)::before { content: "Поражений (П):"; }
#allTeamsTable td:nth-child(7)::before { content: "% Побед:"; }        
}