/*
 * Kisure Sports frontend v437
 * Public football entity routing, squad identity labels and uniform icon frames.
 */

/* Competition navigation: every crest owns the same visual box even when the
 * provider PNG contains transparent padding or uses a wide source canvas. */
.football-link-list--logos > a > img,
.football-link-list--logos a img {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    flex: 0 0 32px !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    object-position: center !important;
    box-sizing: border-box !important;
    padding: 3px !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    border-radius: 50% !important;
    background: #fff !important;
    vertical-align: middle !important;
}

/* Small team marks and flags share one fixed frame across fixtures, tables,
 * Sports Desk cards, standing rows and compact match components. */
.ks-desk-table-card__row strong img,
.ks-desk-table-card__row .team-logo,
.football-table-team img,
.football-mini-table img,
.football-standings-table .team-logo,
.football-standing-team img,
.football-schedule-row__team img,
.football-fixture-tile__teams img,
.football-match-card__team img,
.football-team-name img,
.football-team-inline img,
.football-club-table img,
.football-live-strip img,
.ks-desk-match img,
.ks-desk-team img {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    flex: 0 0 28px !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    object-position: center !important;
    box-sizing: border-box !important;
    padding: 1px !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    border-radius: 50% !important;
    background: #fff !important;
    vertical-align: middle !important;
}

/* Provider crests that should remain fully visible can opt into containment. */
.football-logo-contain,
img[data-kisure-logo-fit="contain"] {
    object-fit: contain !important;
    padding: 3px !important;
}

/* Prevent image dimensions declared by API markup from stretching the rows. */
.ks-desk-table-card__row strong,
.football-table-team,
.football-schedule-row__team,
.football-match-card__team,
.football-team-name,
.football-team-inline {
    min-width: 0;
}

.ks-desk-table-card__row strong img + span,
.football-table-team img + span,
.football-schedule-row__team img + span,
.football-match-card__team img + span {
    min-width: 0;
}

:is(html[data-theme="dark"], body.dark-mode, .is-dark) .football-link-list--logos a img,
:is(html[data-theme="dark"], body.dark-mode, .is-dark) .ks-desk-table-card__row strong img,
:is(html[data-theme="dark"], body.dark-mode, .is-dark) .football-table-team img,
:is(html[data-theme="dark"], body.dark-mode, .is-dark) .football-mini-table img,
:is(html[data-theme="dark"], body.dark-mode, .is-dark) .football-schedule-row__team img,
:is(html[data-theme="dark"], body.dark-mode, .is-dark) .football-match-card__team img {
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
}
