/* Logo klubu — obrázek nebo fallback s počátečním písmenem.
   Renderuje helper getClubLogoHtml() v includes/functions.php. */

.club-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: var(--bg-surface);
    overflow: hidden;
    object-fit: contain;
    vertical-align: middle;
}

img.club-logo {
    background-color: transparent;
    border-radius: 0;
}

.club-logo-fallback {
    background-color: var(--bg-surface);
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid var(--border);
    line-height: 1;
    user-select: none;
}

.club-logo-xs { width: 18px; height: 18px; font-size: 0.6rem; }
.club-logo-sm { width: 24px; height: 24px; font-size: 0.72rem; }
.club-logo-md { width: 32px; height: 32px; font-size: 0.85rem; }
.club-logo-lg { width: 56px; height: 56px; font-size: 1.4rem; }
.club-logo-xl { width: 96px; height: 96px; font-size: 2.4rem; }

/* Kontextová zarovnání */
.player-identity:has(> .club-logo) { display: flex; align-items: center; gap: 18px; }

.result-card .club-logo { margin-right: 14px; }

.h2h-team { display: inline-flex; align-items: center; gap: 6px; }
.h2h-team.h2h-home { justify-content: flex-end; }

.m-team { display: flex; align-items: center; gap: 10px; }
.m-team.home { justify-content: flex-end; }
.m-team.away { justify-content: flex-start; }

.match-mini-row .team-home,
.match-mini-row .team-away { display: inline-flex; align-items: center; gap: 6px; }
.match-mini-row .team-home { justify-content: flex-end; }

.match-mini-card .m-teams span:not(.m-score):not(.m-score-pen-tag) {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Logo uvnitř tabulky se chová jako prefix názvu */
.standings-table td .club-logo,
.full-stats-table td .club-logo { margin-right: 8px; }
