/* Kisure Frontend v570 — compact FotMob-inspired /football match centre.
 * Owns presentation only. Existing football data, live polling, routes and
 * prediction/result semantics remain untouched.
 */
.site-body.is-football-index-page {
    --ks570-bg: #f3f5f7;
    --ks570-surface: #ffffff;
    --ks570-border: rgba(15, 23, 42, .10);
    --ks570-text: #101828;
    --ks570-muted: #667085;
    --ks570-accent: var(--primary, #0e9f9a);
    --ks570-soft: rgba(14, 159, 154, .09);
    background: var(--ks570-bg);
}

html[data-theme="dark"] .site-body.is-football-index-page,
html[data-bs-theme="dark"] .site-body.is-football-index-page {
    --ks570-bg:#1c1c1c;
    --ks570-surface:#1c1c1c;
    --ks570-border: rgba(255, 255, 255, .10);
    --ks570-text: #f5f7fa;
    --ks570-muted: #a8b3c2;
    --ks570-soft: rgba(20, 184, 177, .12);
}

.site-body.is-football-index-page .football-fotmob {
    width: min(1480px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1rem 0 2.4rem;
    color: var(--ks570-text);
}

.site-body.is-football-index-page .football-fotmob__masthead,
.site-body.is-football-index-page .football-fotmob__datebar,
.site-body.is-football-index-page .football-fotmob__surface {
    background: var(--ks570-surface);
    border: 1px solid var(--ks570-border);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .035);
}

.site-body.is-football-index-page .football-fotmob__masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    border-radius: 16px 16px 0 0;
    padding: 1rem 1.1rem;
}

.site-body.is-football-index-page .football-fotmob__title {
    min-width: 0;
}

.site-body.is-football-index-page .football-fotmob__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    margin-bottom: .25rem;
    color: var(--ks570-accent);
    font-size: .73rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.site-body.is-football-index-page .football-fotmob__title h1 {
    margin: 0;
    color: var(--ks570-text);
    font-size: clamp(1.55rem, 2.1vw, 2rem);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -.035em;
}

.site-body.is-football-index-page .football-fotmob__title p {
    max-width: 680px;
    margin: .35rem 0 0;
    color: var(--ks570-muted);
    font-size: .9rem;
    line-height: 1.45;
}

.site-body.is-football-index-page .football-fotmob__quicknav {
    display: flex;
    align-items: center;
    gap: .42rem;
    flex: 0 0 auto;
}

.site-body.is-football-index-page .football-fotmob__quicknav a {
    min-height: 2.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .62rem .82rem;
    border: 1px solid var(--ks570-border);
    border-radius: 10px;
    background: var(--ks570-surface);
    color: var(--ks570-text);
    font-size: .8rem;
    line-height: 1;
    font-weight: 800;
    text-decoration: none;
    transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

.site-body.is-football-index-page .football-fotmob__quicknav a:hover,
.site-body.is-football-index-page .football-fotmob__quicknav a:focus-visible {
    border-color: color-mix(in srgb, var(--ks570-accent) 45%, transparent);
    background: var(--ks570-soft);
    color: var(--ks570-accent);
    transform: translateY(-1px);
}

.site-body.is-football-index-page .football-fotmob__quicknav i {
    font-size: .88rem;
}

.site-body.is-football-index-page .football-fotmob__datebar {
    min-height: 3rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: .75rem;
    padding: .55rem 1.1rem;
    border-top: 0;
    border-radius: 0 0 16px 16px;
    margin-bottom: .9rem;
}

.site-body.is-football-index-page .football-fotmob__datebar > span,
.site-body.is-football-index-page .football-fotmob__datebar > strong,
.site-body.is-football-index-page .football-fotmob__datebar > a {
    font-size: .8rem;
    line-height: 1;
}

.site-body.is-football-index-page .football-fotmob__datebar > span {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    color: var(--ks570-accent);
    font-weight: 900;
}

.site-body.is-football-index-page .football-fotmob__datebar > strong {
    color: var(--ks570-text);
    font-weight: 850;
}

.site-body.is-football-index-page .football-fotmob__datebar > a {
    justify-self: end;
    color: var(--ks570-muted);
    font-weight: 800;
    text-decoration: none;
}

.site-body.is-football-index-page .football-fotmob__datebar > a:hover,
.site-body.is-football-index-page .football-fotmob__datebar > a:focus-visible {
    color: var(--ks570-accent);
}

.site-body.is-football-index-page .football-fotmob__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(310px, 360px);
    gap: 1rem;
    align-items: start;
}

.site-body.is-football-index-page .football-fotmob__main {
    min-width: 0;
    display: grid;
    gap: 1rem;
}

/* The proven v550 score deck is the primary /football interaction again. */
.site-body.is-football-index-page .football-fotmob .football-home-board--scoredeck {
    margin: 0 !important;
    border-radius: 16px !important;
    border-color: var(--ks570-border) !important;
    background: var(--ks570-surface) !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .035) !important;
}

.site-body.is-football-index-page .football-fotmob .football-scoredeck__nav {
    min-height: 3.25rem;
    border-bottom-color: var(--ks570-border) !important;
}

.site-body.is-football-index-page .football-fotmob .football-scoredeck__tab {
    font-size: .78rem !important;
}

.site-body.is-football-index-page .football-fotmob .football-home-match-card {
    box-shadow: none !important;
}

.site-body.is-football-index-page .football-fotmob__surface {
    border-radius: 16px;
    padding: 1rem;
    min-width: 0;
}

.site-body.is-football-index-page .football-fotmob__section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .85rem;
}

.site-body.is-football-index-page .football-fotmob__section-head > div {
    min-width: 0;
}

.site-body.is-football-index-page .football-fotmob__section-head span {
    display: block;
    margin-bottom: .18rem;
    color: var(--ks570-accent);
    font-size: .7rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .075em;
    text-transform: uppercase;
}

.site-body.is-football-index-page .football-fotmob__section-head h2 {
    margin: 0;
    color: var(--ks570-text);
    font-size: 1.08rem;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -.02em;
}

.site-body.is-football-index-page .football-fotmob__section-head > a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--ks570-accent);
    font-size: .77rem;
    font-weight: 850;
    text-decoration: none;
}

.site-body.is-football-index-page .football-fotmob__competitions .football-competition-grid--home {
    margin-top: 0 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
}

.site-body.is-football-index-page .football-fotmob__competitions .football-competition-card {
    min-height: 4.15rem;
    border-radius: 12px;
    border-color: var(--ks570-border);
    box-shadow: none;
}

.site-body.is-football-index-page .football-fotmob__stories .news-grid--even {
    margin-top: 0 !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.site-body.is-football-index-page .football-fotmob__stories .news-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
}

.site-body.is-football-index-page .football-fotmob__stories .news-card__media {
    aspect-ratio: 16 / 9;
}

.site-body.is-football-index-page .football-fotmob__ad {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.site-body.is-football-index-page .football-fotmob__empty {
    display: flex;
    align-items: center;
    gap: .8rem;
    color: var(--ks570-muted);
}

.site-body.is-football-index-page .football-fotmob__empty > i {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--ks570-soft);
    color: var(--ks570-accent);
}

.site-body.is-football-index-page .football-fotmob__empty strong,
.site-body.is-football-index-page .football-fotmob__empty span {
    display: block;
}

.site-body.is-football-index-page .football-fotmob__empty strong {
    color: var(--ks570-text);
    font-size: .9rem;
}

.site-body.is-football-index-page .football-fotmob__empty span {
    margin-top: .15rem;
    font-size: .8rem;
}

/* Preserve the established sidebar data, but make its panels visually fit the
   compact match-centre shell instead of the old large Sports Desk treatment. */
.site-body.is-football-index-page .football-fotmob .ks-football-home__sidebar {
    gap: .85rem !important;
}

.site-body.is-football-index-page .football-fotmob .ks-football-home__sidebar-rail {
    display: grid;
    gap: .85rem;
}

.site-body.is-football-index-page .football-fotmob .ks-football-home__sidebar .ks-desk-panel {
    border-radius: 16px !important;
    border-color: var(--ks570-border) !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .035) !important;
}

@media (min-width: 1180px) {
    .site-body.is-football-index-page .football-fotmob__stories .news-grid--even {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .site-body.is-football-index-page .football-fotmob__layout {
        grid-template-columns: minmax(0, 1fr) minmax(285px, 320px);
    }

    .site-body.is-football-index-page .football-fotmob__quicknav a span {
        display: none;
    }

    .site-body.is-football-index-page .football-fotmob__quicknav a {
        width: 2.65rem;
        padding-inline: 0;
    }

    .site-body.is-football-index-page .football-fotmob__stories .news-grid--even {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .site-body.is-football-index-page .football-fotmob {
        width: min(100% - 1.25rem, 1480px);
        padding-top: .65rem;
    }

    .site-body.is-football-index-page .football-fotmob__layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-body.is-football-index-page .football-fotmob .ks-football-home__sidebar {
        position: static !important;
        width: 100% !important;
    }
}

@media (max-width: 640px) {
    .site-body.is-football-index-page .football-fotmob {
        width: calc(100% - 1rem);
        padding-bottom: 1.4rem;
    }

    .site-body.is-football-index-page .football-fotmob__masthead {
        align-items: flex-start;
        padding: .85rem;
        border-radius: 14px 14px 0 0;
    }

    .site-body.is-football-index-page .football-fotmob__title h1 {
        font-size: 1.55rem;
    }

    .site-body.is-football-index-page .football-fotmob__title p {
        display: none;
    }

    .site-body.is-football-index-page .football-fotmob__quicknav {
        gap: .3rem;
    }

    .site-body.is-football-index-page .football-fotmob__quicknav a {
        width: 2.35rem;
        min-height: 2.35rem;
        border-radius: 9px;
    }

    .site-body.is-football-index-page .football-fotmob__datebar {
        grid-template-columns: auto 1fr auto;
        padding: .48rem .85rem;
        border-radius: 0 0 14px 14px;
        margin-bottom: .65rem;
    }

    .site-body.is-football-index-page .football-fotmob__datebar > strong {
        justify-self: center;
    }

    .site-body.is-football-index-page .football-fotmob__datebar > a {
        font-size: 0;
    }

    .site-body.is-football-index-page .football-fotmob__datebar > a i {
        font-size: .78rem;
    }

    .site-body.is-football-index-page .football-fotmob__main {
        gap: .7rem;
    }

    .site-body.is-football-index-page .football-fotmob .football-home-board--scoredeck,
    .site-body.is-football-index-page .football-fotmob__surface,
    .site-body.is-football-index-page .football-fotmob .ks-football-home__sidebar .ks-desk-panel {
        border-radius: 14px !important;
    }

    .site-body.is-football-index-page .football-fotmob__surface {
        padding: .82rem;
    }

    .site-body.is-football-index-page .football-fotmob__competitions .football-competition-grid--home {
        grid-template-columns: 1fr;
        gap: .48rem;
    }

    .site-body.is-football-index-page .football-fotmob__stories .news-grid--even {
        grid-template-columns: 1fr 1fr;
        gap: .55rem;
    }

    .site-body.is-football-index-page .football-fotmob__stories .news-card__title {
        font-size: .9rem;
        line-height: 1.25;
    }
}

@media (max-width: 420px) {
    .site-body.is-football-index-page .football-fotmob__stories .news-grid--even {
        grid-template-columns: 1fr;
    }
}
