/*
 * 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;
}

/* v438 mobile performance containment */
@media (max-width: 767.98px) {
    .site-main .news-grid > article:nth-child(n+5),
    .site-main .video-showcase,
    .site-main .home-gallery-showcase,
    .site-main .sidebar-stack {
        content-visibility: auto;
        contain-intrinsic-size: 1px 720px;
    }

    .site-skeleton-loader {
        transition-duration: 120ms !important;
    }
}

@media (max-width: 767.98px) {
    html .site-skeleton-loader {
        display: none !important;
    }
}


/* v464 universal football search */
.global-search-suggestions{max-height:min(62vh,560px);overflow:auto;margin-top:.75rem;border:1px solid var(--border-color,#d9dee8);border-radius:16px;background:var(--surface,#fff);box-shadow:0 18px 45px rgba(15,23,42,.16)}
.global-search-suggestion,.global-search-card{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:.8rem;padding:.72rem .85rem;color:inherit;text-decoration:none;border-bottom:1px solid var(--border-color,#e5e7eb)}
.global-search-suggestion:last-child,.global-search-card:last-child{border-bottom:0}.global-search-suggestion:hover,.global-search-card:hover{background:var(--surface-muted,#f6f8fb)}
.global-search-suggestion__media,.global-search-card__media{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:var(--surface-muted,#eef2f7);overflow:hidden}.global-search-suggestion__media img,.global-search-card__media img{width:100%;height:100%;object-fit:contain}.global-search-suggestion strong,.global-search-card strong{display:block}.global-search-suggestion small,.global-search-card small{display:block;color:var(--text-soft,#64748b);margin-top:.12rem}.global-search-suggestion em{font-style:normal;text-transform:uppercase;font-size:.65rem;letter-spacing:.08em;color:var(--text-soft,#64748b)}.global-search-suggestions__loading{padding:1rem;color:var(--text-soft,#64748b)}
.global-search-page__form{display:flex;gap:.7rem;margin:1rem 0 1.5rem}.global-search-page__form input{flex:1;min-width:0;padding:.9rem 1rem;border:1px solid var(--border-color,#d9dee8);border-radius:14px;background:var(--surface,#fff);color:inherit}.global-search-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}.global-search-card{border:1px solid var(--border-color,#e5e7eb);border-radius:14px;background:var(--surface,#fff)}
.football-performance-chart{display:grid;gap:.7rem}.football-performance-chart__row{display:grid;grid-template-columns:minmax(90px,1.3fr) minmax(120px,3fr) auto;align-items:center;gap:.75rem}.football-performance-chart__bar{height:12px;border-radius:999px;background:var(--surface-muted,#e9eef5);overflow:hidden}.football-performance-chart__bar i{display:block;height:100%;border-radius:inherit;background: #f97316}.football-momentum{display:grid;grid-template-columns:repeat(90,minmax(1px,1fr));height:96px;align-items:center;gap:1px;padding:.75rem;border-radius:14px;background:var(--surface-muted,#f5f7fa)}.football-momentum span{display:block;min-height:4px;border-radius:3px;background:#94a3b8}.football-momentum span.is-home{align-self:end;background:#dc2626}.football-momentum span.is-away{align-self:start;background:#2563eb}.football-coach-career-chart{display:flex;align-items:flex-end;gap:.6rem;min-height:150px;overflow-x:auto;padding:.5rem}.football-coach-career-chart__bar{min-width:82px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:.4rem}.football-coach-career-chart__bar i{width:32px;min-height:16px;border-radius:8px 8px 3px 3px;background: #7f1d1d}.football-coach-career-chart__bar small{text-align:center}
@media(max-width:700px){.global-search-grid{grid-template-columns:1fr}.global-search-page__form{flex-direction:column}.global-search-suggestion,.global-search-card{grid-template-columns:42px minmax(0,1fr) auto}.football-performance-chart__row{grid-template-columns:90px minmax(90px,1fr) auto}}
