/* Kisure Football Home rebuild: uses the Sports Desk match-card language on /football. */
.site-body.is-football-index-page,
.site-body.is-football-index-page .site-main,
.site-body.is-football-index-page .site-header,
.site-body.is-football-index-page .football-header-leagues {
    max-width: 100% !important;
    overflow-x: clip !important;
}

.site-body.is-football-index-page {
    --ks-football-mobile-gutter: clamp(.75rem, 3.4vw, 1.05rem);
}

.site-body.is-football-index-page .ks-football-home {
    inline-size: min(1480px, calc(100% - 2rem)) !important;
    max-inline-size: 1480px !important;
    margin-inline: auto !important;
    padding-top: 1.05rem !important;
    overflow-x: clip !important;
}

.site-body.is-football-index-page .ks-football-home__intro {
    background:
        radial-gradient(circle at 12% 0%, rgba(14, 165, 164, .16), transparent 32%),
        var(--surface) !important;
}

.site-body.is-football-index-page .ks-football-home .ks-desk__intro-actions .ks-desk-btn {
    min-width: 9.25rem;
}

.site-body.is-football-index-page .ks-football-home__spotlight .ks-desk-panel__head p,
.site-body.is-football-index-page .ks-desk-fixtures-panel .ks-desk-panel__head p {
    max-width: 58ch;
    margin: .32rem 0 0;
}

.site-body.is-football-index-page .ks-football-home__spotlight-match .ks-desk-match:first-child {
    border-color: rgba(14, 165, 164, .24);
    background:
        linear-gradient(180deg, rgba(14, 165, 164, .07), rgba(255, 255, 255, 0)),
        var(--surface) !important;
}

.site-body.is-football-index-page .ks-football-home .ks-desk-fixtures-panel .ks-desk-match {
    grid-template-columns: minmax(0, 1fr) minmax(124px, 150px) minmax(0, 1fr) !important;
    grid-template-areas:
        'meta meta meta'
        'home score away'
        'pred pred pred' !important;
    align-items: center !important;
    justify-items: stretch !important;
}

.site-body.is-football-index-page .ks-football-home .ks-desk-fixtures-panel .ks-desk-match > .football-schedule-row__prediction,
.site-body.is-football-index-page .ks-football-home .ks-desk-fixtures-panel .ks-desk-match > .ks-desk-match__prediction,
.site-body.is-football-index-page .ks-football-home .ks-desk-fixtures-panel .ks-desk-match > .ks-desk-match__result,
.site-body.is-football-index-page .ks-football-home .ks-desk-fixtures-panel .ks-desk-match > .football-schedule-row__actions {
    grid-area: pred !important;
    justify-self: center !important;
    align-self: center !important;
    width: fit-content !important;
    max-width: 100% !important;
    min-width: min(12rem, 100%) !important;
    margin: .18rem auto 0 !important;
    text-align: center !important;
}

.site-body.is-football-index-page .ks-football-home .ks-desk-fixtures-panel .ks-desk-match__score {
    justify-self: center !important;
}

.site-body.is-football-index-page .ks-football-home .football-competition-grid--home {
    margin-top: .95rem;
}

.site-body.is-football-index-page .ks-football-home .news-grid--even {
    margin-top: .95rem;
}

.site-body.is-football-index-page .ks-football-home .ks-desk-empty {
    background: rgba(14, 165, 164, .08);
    border: 1px dashed rgba(14, 165, 164, .24);
    border-radius: 18px;
    padding: 1rem;
    color: var(--text-soft);
    font-weight: 800;
}

html[data-theme="dark"] .site-body.is-football-index-page .ks-football-home__spotlight-match .ks-desk-match:first-child {
    background:
        linear-gradient(180deg, rgba(14, 165, 164, .13), rgba(2, 6, 23, 0)),
        var(--surface) !important;
}

@media (min-width: 901px) {
    .site-body.is-football-index-page .ks-football-home .ks-desk-fixtures-panel .ks-desk-match {
        row-gap: .72rem !important;
    }
}

@media (max-width: 900px) {
    .site-body.is-football-index-page .ks-football-home {
        inline-size: min(100% - 1.5rem, 1480px) !important;
    }

    .site-body.is-football-index-page .ks-football-home .ks-desk-fixtures-panel .ks-desk-match {
        grid-template-columns: minmax(0, 1fr) clamp(84px, 24vw, 112px) minmax(0, 1fr) !important;
    }

    .site-body.is-football-index-page .ks-football-home .ks-desk-fixtures-panel .ks-desk-match > .football-schedule-row__prediction,
    .site-body.is-football-index-page .ks-football-home .ks-desk-fixtures-panel .ks-desk-match > .ks-desk-match__prediction,
    .site-body.is-football-index-page .ks-football-home .ks-desk-fixtures-panel .ks-desk-match > .ks-desk-match__result,
    .site-body.is-football-index-page .ks-football-home .ks-desk-fixtures-panel .ks-desk-match > .football-schedule-row__actions {
        min-width: min(11.25rem, 100%) !important;
    }
}

@media (max-width: 640px) {
    .site-body.is-football-index-page .ks-football-home {
        inline-size: calc(100% - (var(--ks-football-mobile-gutter) * 2)) !important;
        padding-top: .72rem !important;
        gap: .85rem !important;
    }

    .site-body.is-football-index-page .ks-football-home .ks-desk__intro,
    .site-body.is-football-index-page .ks-football-home .ks-desk-panel,
    .site-body.is-football-index-page .ks-football-home .ks-desk-ad {
        border-radius: 20px !important;
    }

    .site-body.is-football-index-page .ks-football-home .ks-desk__intro {
        padding: .92rem !important;
    }

    .site-body.is-football-index-page .ks-football-home .ks-desk__intro h1 {
        font-size: clamp(1.72rem, 9vw, 2.25rem) !important;
        line-height: 1.02 !important;
    }

    .site-body.is-football-index-page .ks-football-home .ks-desk__intro p {
        font-size: .92rem !important;
        line-height: 1.45 !important;
    }

    .site-body.is-football-index-page .ks-football-home .ks-desk__intro-actions {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: .55rem !important;
    }

    .site-body.is-football-index-page .ks-football-home .ks-desk__intro-actions .ks-desk-btn {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 2.75rem !important;
        padding-inline: .72rem !important;
    }

    .site-body.is-football-index-page .ks-football-home .ks-desk-fixtures-panel .ks-desk-match {
        grid-template-columns: minmax(0, 1fr) minmax(78px, 86px) minmax(0, 1fr) !important;
        gap: .52rem .38rem !important;
    }

    .site-body.is-football-index-page .ks-football-home .ks-desk-fixtures-panel .ks-desk-match > .football-schedule-row__prediction,
    .site-body.is-football-index-page .ks-football-home .ks-desk-fixtures-panel .ks-desk-match > .ks-desk-match__prediction,
    .site-body.is-football-index-page .ks-football-home .ks-desk-fixtures-panel .ks-desk-match > .ks-desk-match__result,
    .site-body.is-football-index-page .ks-football-home .ks-desk-fixtures-panel .ks-desk-match > .football-schedule-row__actions {
        width: fit-content !important;
        max-width: 100% !important;
        min-width: min(10.5rem, 100%) !important;
        margin-top: .12rem !important;
    }
}

@media (max-width: 390px) {
    .site-body.is-football-index-page .ks-football-home .ks-desk__intro-actions {
        grid-template-columns: 1fr !important;
    }

    .site-body.is-football-index-page .ks-football-home .ks-desk-fixtures-panel .ks-desk-match > .football-schedule-row__prediction,
    .site-body.is-football-index-page .ks-football-home .ks-desk-fixtures-panel .ks-desk-match > .ks-desk-match__prediction,
    .site-body.is-football-index-page .ks-football-home .ks-desk-fixtures-panel .ks-desk-match > .ks-desk-match__result,
    .site-body.is-football-index-page .ks-football-home .ks-desk-fixtures-panel .ks-desk-match > .football-schedule-row__actions {
        min-width: min(9.6rem, 100%) !important;
        padding-inline: .8rem !important;
    }
}

/* v328 football hub sidebar, standings selector and balanced desktop layout. */
.site-body.is-football-index-page .ks-football-home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: clamp(1rem, 2vw, 1.35rem);
    align-items: start;
}

.site-body.is-football-index-page .ks-football-home-main {
    min-width: 0;
    display: grid;
    gap: clamp(.95rem, 1.8vw, 1.25rem);
}

.site-body.is-football-index-page .ks-football-home__sidebar {
    min-width: 0;
    display: grid;
    gap: clamp(.88rem, 1.6vw, 1.1rem);
    align-self: start;
}

.site-body.is-football-index-page .ks-football-home__side-ad {
    order: -5;
}

.site-body.is-football-index-page .ks-football-home__standings-widget {
    overflow: hidden;
}

.site-body.is-football-index-page .ks-football-standing-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .45rem;
    padding: .28rem;
    border: 1px solid rgba(14, 165, 164, .16);
    border-radius: 999px;
    background: rgba(14, 165, 164, .07);
    margin: .85rem 0 1rem;
}

.site-body.is-football-index-page .ks-football-standing-tab {
    border: 0;
    border-radius: 999px;
    padding: .66rem .72rem;
    background: transparent;
    color: var(--text-soft);
    font: inherit;
    font-size: .82rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.site-body.is-football-index-page .ks-football-standing-tab.is-active {
    background: var(--surface);
    color: var(--primary);
    box-shadow: 0 10px 22px rgba(8, 20, 40, .1);
}

.site-body.is-football-index-page .ks-football-standing-panel {
    display: none;
}

.site-body.is-football-index-page .ks-football-standing-panel.is-active {
    display: block;
}

.site-body.is-football-index-page .ks-football-standing-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .8rem;
    margin-bottom: .7rem;
}

.site-body.is-football-index-page .ks-football-standing-title strong {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.15;
}

.site-body.is-football-index-page .ks-football-standing-title small {
    color: var(--text-soft);
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.site-body.is-football-index-page .ks-football-standing-list {
    display: grid;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
}

.site-body.is-football-index-page .ks-football-standing-row {
    display: grid;
    grid-template-columns: 2.25rem minmax(0, 1fr) 2.1rem 2.65rem;
    align-items: center;
    gap: .55rem;
    min-height: 2.82rem;
    padding: .46rem .62rem;
    color: var(--text);
    text-decoration: none;
    border-top: 1px solid rgba(15, 23, 42, .07);
}

.site-body.is-football-index-page .ks-football-standing-row:first-child {
    border-top: 0;
}

.site-body.is-football-index-page .ks-football-standing-row--head {
    min-height: 2.25rem;
    background: rgba(14, 165, 164, .08);
    color: var(--text-soft);
    font-size: .72rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.site-body.is-football-index-page .ks-football-standing-row strong {
    display: flex;
    align-items: center;
    gap: .46rem;
    min-width: 0;
    font-size: .86rem;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-body.is-football-index-page .ks-football-standing-row img {
    width: 1.28rem;
    height: 1.28rem;
    object-fit: contain;
    flex: 0 0 auto;
}

.site-body.is-football-index-page .ks-football-standing-row span,
.site-body.is-football-index-page .ks-football-standing-row b {
    min-width: 0;
    text-align: center;
    font-weight: 900;
}

.site-body.is-football-index-page .ks-football-standing-full {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    width: 100%;
    margin-top: .8rem;
}

html[data-theme="dark"] .site-body.is-football-index-page .ks-football-standing-tabs {
    background: rgba(20, 184, 166, .12);
    border-color: rgba(94, 234, 212, .18);
}

html[data-theme="dark"] .site-body.is-football-index-page .ks-football-standing-tab.is-active,
html[data-theme="dark"] .site-body.is-football-index-page .ks-football-standing-list {
    background: rgba(15, 23, 42, .94);
}

@media (max-width: 1120px) {
    .site-body.is-football-index-page .ks-football-home-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-body.is-football-index-page .ks-football-home__sidebar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: start;
    }
}

@media (max-width: 820px) {
    .site-body.is-football-index-page .ks-football-home__sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .site-body.is-football-index-page .ks-football-home-layout,
    .site-body.is-football-index-page .ks-football-home-main,
    .site-body.is-football-index-page .ks-football-home__sidebar {
        gap: .85rem;
    }

    .site-body.is-football-index-page .ks-football-standing-row {
        grid-template-columns: 2rem minmax(0, 1fr) 2rem 2.45rem;
        gap: .42rem;
    }
}

/* v338: hard mobile containment for the complete /football content rail.
   Every panel from the featured fixture through news is constrained to the
   visible content box; ad iframes and long football names cannot widen it. */
@media (max-width: 700px) {
    html,
    body.site-body.is-football-index-page,
    .site-body.is-football-index-page .site-main {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
    }

    .site-body.is-football-index-page .ks-football-home {
        display: block !important;
        width: 100% !important;
        inline-size: 100% !important;
        max-width: 100% !important;
        max-inline-size: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: .72rem var(--ks-football-mobile-gutter) 1.1rem !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .site-body.is-football-index-page .ks-football-home-layout,
    .site-body.is-football-index-page .ks-football-home-main,
    .site-body.is-football-index-page .ks-football-home__sidebar,
    .site-body.is-football-index-page .ks-football-home-main > *,
    .site-body.is-football-index-page .ks-football-home__sidebar > *,
    .site-body.is-football-index-page .ks-football-home .ks-desk-panel,
    .site-body.is-football-index-page .ks-football-home .ks-desk-ad,
    .site-body.is-football-index-page .ks-football-home .football-promo-slot,
    .site-body.is-football-index-page .ks-football-home .ad-slot {
        width: 100% !important;
        inline-size: 100% !important;
        max-width: 100% !important;
        max-inline-size: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    .site-body.is-football-index-page .ks-football-home-layout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .site-body.is-football-index-page .ks-football-home *,
    .site-body.is-football-index-page .ks-football-home *::before,
    .site-body.is-football-index-page .ks-football-home *::after {
        min-width: 0;
        box-sizing: border-box;
    }

    .site-body.is-football-index-page .ks-football-home .ks-desk-panel,
    .site-body.is-football-index-page .ks-football-home .ks-desk-ad,
    .site-body.is-football-index-page .ks-football-home .ad-slot,
    .site-body.is-football-index-page .ks-football-home .football-promo-slot {
        overflow: hidden !important;
    }

    .site-body.is-football-index-page .ks-football-home .ks-desk-panel__head,
    .site-body.is-football-index-page .ks-football-home .ks-desk-panel__head--fixtures {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        align-items: start !important;
        gap: .75rem !important;
    }

    .site-body.is-football-index-page .ks-football-home .ks-desk-panel__head > div,
    .site-body.is-football-index-page .ks-football-home .ks-desk-panel__head h2,
    .site-body.is-football-index-page .ks-football-home .ks-desk-panel__head p {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow-wrap: anywhere !important;
    }

    .site-body.is-football-index-page .ks-football-home .ks-desk-panel__head .ks-desk-btn,
    .site-body.is-football-index-page .ks-football-home .ks-desk-fixtures-cta {
        width: 100% !important;
        max-width: 100% !important;
        justify-self: stretch !important;
        white-space: normal !important;
        text-align: center !important;
    }

    .site-body.is-football-index-page .ks-football-home .ks-desk-matches,
    .site-body.is-football-index-page .ks-football-home__spotlight-match {
        display: grid !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .site-body.is-football-index-page .ks-football-home .ks-desk-fixtures-panel .ks-desk-match {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        grid-template-columns: minmax(0, 1fr) clamp(68px, 23vw, 86px) minmax(0, 1fr) !important;
        grid-template-areas:
            'meta meta meta'
            'home score away'
            'pred pred pred' !important;
        column-gap: .28rem !important;
        row-gap: .5rem !important;
        padding-left: .58rem !important;
        padding-right: .58rem !important;
        overflow: hidden !important;
    }

    .site-body.is-football-index-page .ks-football-home .ks-desk-match__meta {
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        text-align: center !important;
        line-height: 1.35 !important;
    }

    .site-body.is-football-index-page .ks-football-home .ks-desk-match__team {
        width: 100% !important;
        max-width: 100% !important;
        gap: .28rem !important;
        overflow: hidden !important;
    }

    .site-body.is-football-index-page .ks-football-home .ks-desk-match__team span {
        display: block !important;
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .site-body.is-football-index-page .ks-football-home .ks-desk-match__team img {
        width: 1.65rem !important;
        height: 1.65rem !important;
        flex: 0 0 1.65rem !important;
        object-fit: contain !important;
    }

    .site-body.is-football-index-page .ks-football-home .ks-desk-match__score {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding-left: .2rem !important;
        padding-right: .2rem !important;
    }

    .site-body.is-football-index-page .ks-football-home .ks-desk-fixtures-panel .ks-desk-match > .football-schedule-row__prediction,
    .site-body.is-football-index-page .ks-football-home .ks-desk-fixtures-panel .ks-desk-match > .ks-desk-match__prediction,
    .site-body.is-football-index-page .ks-football-home .ks-desk-fixtures-panel .ks-desk-match > .ks-desk-match__result,
    .site-body.is-football-index-page .ks-football-home .ks-desk-fixtures-panel .ks-desk-match > .football-schedule-row__actions {
        min-width: 0 !important;
        width: min(100%, 13rem) !important;
        max-width: 100% !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .site-body.is-football-index-page .ks-football-home .football-competition-grid,
    .site-body.is-football-index-page .ks-football-home .football-competition-grid--home,
    .site-body.is-football-index-page .ks-football-home .news-grid,
    .site-body.is-football-index-page .ks-football-home .news-grid--even {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .site-body.is-football-index-page .ks-football-home .football-competition-card,
    .site-body.is-football-index-page .ks-football-home .news-card,
    .site-body.is-football-index-page .ks-football-home .news-card > a,
    .site-body.is-football-index-page .ks-football-home .news-card__media,
    .site-body.is-football-index-page .ks-football-home .news-card__body {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .site-body.is-football-index-page .ks-football-home .football-competition-card strong,
    .site-body.is-football-index-page .ks-football-home .football-competition-card small,
    .site-body.is-football-index-page .ks-football-home .news-card__title {
        overflow-wrap: anywhere !important;
    }

    .site-body.is-football-index-page .ks-football-home img,
    .site-body.is-football-index-page .ks-football-home video,
    .site-body.is-football-index-page .ks-football-home canvas,
    .site-body.is-football-index-page .ks-football-home svg,
    .site-body.is-football-index-page .ks-football-home iframe,
    .site-body.is-football-index-page .ks-football-home ins,
    .site-body.is-football-index-page .ks-football-home .adsbygoogle,
    .site-body.is-football-index-page .ks-football-home [id^="google_ads"],
    .site-body.is-football-index-page .ks-football-home [class*="google-auto-placed"] {
        max-width: 100% !important;
    }

    .site-body.is-football-index-page .ks-football-home iframe,
    .site-body.is-football-index-page .ks-football-home ins,
    .site-body.is-football-index-page .ks-football-home .adsbygoogle {
        width: 100% !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }
}

@media (max-width: 390px) {
    .site-body.is-football-index-page {
        --ks-football-mobile-gutter: .58rem;
    }

    .site-body.is-football-index-page .ks-football-home .ks-desk-fixtures-panel .ks-desk-match {
        grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr) !important;
        padding-left: .42rem !important;
        padding-right: .42rem !important;
    }

    .site-body.is-football-index-page .ks-football-home .ks-desk-match__team img {
        width: 1.45rem !important;
        height: 1.45rem !important;
        flex-basis: 1.45rem !important;
    }
}
