/* Kisure Sports Frontend v571
 * /football correction:
 * - use the established /football/fixtures vertical schedule language
 * - never reuse the homepage horizontal score deck on /football
 * - hard responsive containment for match rows and content
 * - CSS-only sticky desktop sidebar with a static mobile/tablet fallback
 */

.site-body.is-football-index-page .football-fotmob__layout {
    align-items: stretch !important;
    overflow: visible !important;
}

.site-body.is-football-index-page .football-fotmob__main {
    grid-column: 1 !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: visible !important;
}

/* The schedule is intentionally the same component family used by
   /football/fixtures.  v571 only adapts it to the compact /football shell. */
.site-body.is-football-index-page .football-fotmob__schedule {
    min-width: 0;
    max-width: 100%;
    padding: 1rem;
    overflow: visible;
}

.site-body.is-football-index-page .football-fotmob__section-head--schedule {
    margin-bottom: .78rem;
}

.site-body.is-football-index-page .football-fotmob__schedule .football-schedule-list {
    display: grid;
    gap: .85rem;
    min-width: 0;
    max-width: 100%;
}

.site-body.is-football-index-page .football-fotmob__schedule .football-schedule-day {
    display: grid;
    gap: .55rem;
    min-width: 0;
    max-width: 100%;
}

.site-body.is-football-index-page .football-fotmob__schedule .football-schedule-day > h3 {
    margin: .12rem .15rem 0;
    color: var(--ks570-text);
    font-size: .82rem;
    line-height: 1.2;
    font-weight: 900;
    letter-spacing: -.01em;
}

.site-body.is-football-index-page .football-fotmob__schedule .football-schedule-competition {
    min-width: 0;
    max-width: 100%;
    border-color: var(--ks570-border);
    border-radius: 14px;
    box-shadow: none;
}

.site-body.is-football-index-page .football-fotmob__schedule .football-schedule-competition__head {
    min-width: 0;
    padding: .68rem .82rem;
}

.site-body.is-football-index-page .football-fotmob__schedule .football-schedule-competition__title {
    min-width: 0;
    max-width: 100%;
}

.site-body.is-football-index-page .football-fotmob__schedule .football-schedule-competition__title > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-body.is-football-index-page .football-fotmob__schedule .football-schedule-row {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.site-body.is-football-index-page .football-fotmob__schedule .football-schedule-row__team,
.site-body.is-football-index-page .football-fotmob__schedule .football-schedule-row__middle,
.site-body.is-football-index-page .football-fotmob__schedule .football-schedule-row__actions {
    min-width: 0 !important;
    max-width: 100% !important;
}

.site-body.is-football-index-page .football-fotmob__schedule .football-schedule-row__team span {
    min-width: 0 !important;
    overflow-wrap: anywhere;
}

.site-body.is-football-index-page .football-fotmob__schedule .football-schedule-row__team img,
.site-body.is-football-index-page .football-fotmob__schedule .football-schedule-row__team b {
    object-fit: contain;
    flex: 0 0 auto !important;
}

.site-body.is-football-index-page .football-fotmob__schedule .football-schedule-row__prediction {
    max-width: 100% !important;
}

.site-body.is-football-index-page .football-fotmob__schedule-empty {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 5.2rem;
    padding: .9rem;
    border: 1px dashed var(--ks570-border);
    border-radius: 12px;
    color: var(--ks570-muted);
}

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

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

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

.site-body.is-football-index-page .football-fotmob__schedule-empty span {
    margin-top: .14rem;
    font-size: .78rem;
}

/* Desktop sidebar: the wrapper stretches with the main column, while only the
   inner rail sticks.  This gives sticky a real travel area and avoids nested
   scrollbars/JS fixed-position fallbacks. */
@media (min-width: 992px) {
    .site-body.is-football-index-page .football-fotmob__layout {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 350px) !important;
        gap: 1rem !important;
    }

    .site-body.is-football-index-page .football-fotmob__layout > .ks-football-home__sidebar,
    .site-body.is-football-index-page .football-fotmob .ks-football-home__sidebar {
        grid-column: 2 !important;
        grid-row: 1 !important;
        display: block !important;
        position: relative !important;
        inset: auto !important;
        align-self: stretch !important;
        justify-self: stretch !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        transform: none !important;
        z-index: 2 !important;
    }

    .site-body.is-football-index-page .football-fotmob .ks-football-home__sidebar-rail {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: .85rem !important;
        position: -webkit-sticky !important;
        position: sticky !important;
        top: calc(var(--site-header-height, 78px) + 12px) !important;
        inset-inline: auto !important;
        bottom: auto !important;
        align-self: start !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: max-content !important;
        max-height: none !important;
        overflow: visible !important;
        overflow-x: visible !important;
        overflow-y: visible !important;
        transform: none !important;
        will-change: auto !important;
        z-index: 3 !important;
    }

    .site-body.is-football-index-page .football-fotmob .ks-football-home__sidebar-rail > * {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (min-width: 1180px) {
    .site-body.is-football-index-page .football-fotmob__layout {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 360px) !important;
        gap: 1.1rem !important;
    }
}

/* Tablet and phone: one clean column.  Sticky is deliberately disabled here
   so the sidebar never overlays match rows or creates a nested scroll area. */
@media (max-width: 991px) {
    html,
    body.site-body.is-football-index-page,
    .site-body.is-football-index-page .site-main {
        min-width: 0 !important;
        max-width: 100% !important;
        overflow-x: clip !important;
    }

    .site-body.is-football-index-page .football-fotmob {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .site-body.is-football-index-page .football-fotmob__masthead {
        min-width: 0;
        max-width: 100%;
    }

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

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

    .site-body.is-football-index-page .football-fotmob__main,
    .site-body.is-football-index-page .football-fotmob__layout > .ks-football-home__sidebar,
    .site-body.is-football-index-page .football-fotmob .ks-football-home__sidebar {
        grid-column: 1 !important;
        grid-row: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .site-body.is-football-index-page .football-fotmob .ks-football-home__sidebar,
    .site-body.is-football-index-page .football-fotmob .ks-football-home__sidebar-rail {
        position: static !important;
        inset: auto !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        transform: none !important;
    }

    .site-body.is-football-index-page .football-fotmob .ks-football-home__sidebar-rail {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: .75rem !important;
    }

    .site-body.is-football-index-page .football-fotmob .ks-football-home__sidebar-rail > * {
        min-width: 0 !important;
        max-width: 100% !important;
    }
}

@media (max-width: 700px) {
    .site-body.is-football-index-page .football-fotmob {
        width: calc(100% - 1rem) !important;
        max-width: calc(100% - 1rem) !important;
        margin-inline: auto !important;
    }

    .site-body.is-football-index-page .football-fotmob__masthead {
        gap: .65rem;
        flex-wrap: nowrap;
    }

    .site-body.is-football-index-page .football-fotmob__quicknav {
        flex-shrink: 0;
    }

    .site-body.is-football-index-page .football-fotmob__schedule {
        padding: .72rem;
    }

    .site-body.is-football-index-page .football-fotmob__section-head--schedule {
        align-items: center;
        gap: .55rem;
        margin-bottom: .65rem;
    }

    .site-body.is-football-index-page .football-fotmob__section-head--schedule > a {
        font-size: .7rem;
    }

    .site-body.is-football-index-page .football-fotmob__schedule .football-schedule-list {
        gap: .68rem;
    }

    .site-body.is-football-index-page .football-fotmob__schedule .football-schedule-day {
        gap: .42rem;
    }

    .site-body.is-football-index-page .football-fotmob__schedule .football-schedule-day > h3 {
        margin-left: .08rem;
        font-size: .74rem;
    }

    .site-body.is-football-index-page .football-fotmob__schedule .football-schedule-competition {
        border-radius: 12px;
    }

    .site-body.is-football-index-page .football-fotmob__schedule .football-schedule-competition__head {
        padding: .58rem .68rem;
    }

    .site-body.is-football-index-page .football-fotmob__schedule .football-schedule-competition__title img,
    .site-body.is-football-index-page .football-fotmob__schedule .football-schedule-competition__title i {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        object-fit: contain;
    }

    .site-body.is-football-index-page .football-fotmob__schedule .football-schedule-competition__title > span {
        font-size: .78rem;
    }

    /* Preserve the established mobile fixture geometry:
       home name + crest | score/time | crest + away name. */
    .site-body.is-football-index-page .football-fotmob__schedule .football-schedule-row {
        grid-template-columns: minmax(0, 1fr) clamp(72px, 23vw, 104px) minmax(0, 1fr) !important;
        grid-template-areas:
            "meta meta meta"
            "home middle away"
            "actions actions actions" !important;
        column-gap: clamp(.24rem, 1.7vw, .48rem) !important;
        row-gap: .42rem !important;
        padding: .66rem .48rem !important;
    }

    .site-body.is-football-index-page .football-fotmob__schedule .football-schedule-row__meta {
        text-align: center !important;
        font-size: .61rem !important;
        line-height: 1.25 !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .site-body.is-football-index-page .football-fotmob__schedule .football-schedule-row__team {
        gap: .28rem !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .site-body.is-football-index-page .football-fotmob__schedule .football-schedule-row__team--home {
        justify-content: flex-end !important;
        text-align: right !important;
    }

    .site-body.is-football-index-page .football-fotmob__schedule .football-schedule-row__team--away {
        justify-content: flex-start !important;
        text-align: left !important;
    }

    .site-body.is-football-index-page .football-fotmob__schedule .football-schedule-row__team span {
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: normal !important;
        max-width: 100% !important;
        overflow-wrap: normal !important;
        font-size: clamp(.64rem, 2.5vw, .8rem) !important;
        line-height: 1.08 !important;
        font-weight: 900 !important;
    }

    .site-body.is-football-index-page .football-fotmob__schedule .football-schedule-row__team img,
    .site-body.is-football-index-page .football-fotmob__schedule .football-schedule-row__team b {
        width: clamp(24px, 7vw, 30px) !important;
        height: clamp(24px, 7vw, 30px) !important;
        min-width: clamp(24px, 7vw, 30px) !important;
    }

    .site-body.is-football-index-page .football-fotmob__schedule .football-schedule-row__middle {
        justify-self: stretch !important;
        justify-items: center !important;
        text-align: center !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
    }

    .site-body.is-football-index-page .football-fotmob__schedule .football-schedule-row__scoreline,
    .site-body.is-football-index-page .football-fotmob__schedule .football-schedule-row__middle strong {
        justify-content: center !important;
        max-width: 100% !important;
        font-size: clamp(.78rem, 3vw, .96rem) !important;
    }

    .site-body.is-football-index-page .football-fotmob__schedule .football-schedule-row__middle em {
        max-width: 100% !important;
        font-size: .58rem !important;
        line-height: 1.15 !important;
        text-align: center !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .site-body.is-football-index-page .football-fotmob__schedule .football-schedule-row__actions {
        justify-content: center !important;
        width: 100% !important;
    }

    .site-body.is-football-index-page .football-fotmob__schedule .football-schedule-row__prediction {
        min-height: 1.95rem;
        padding: .44rem .7rem !important;
        font-size: .67rem !important;
    }

    .site-body.is-football-index-page .football-fotmob .ks-football-home__sidebar-rail {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: .65rem !important;
    }
}

@media (max-width: 420px) {
    .site-body.is-football-index-page .football-fotmob__masthead {
        padding: .72rem;
    }

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

    .site-body.is-football-index-page .football-fotmob__quicknav a {
        width: 2.15rem;
        min-height: 2.15rem;
    }

    .site-body.is-football-index-page .football-fotmob__datebar {
        padding-inline: .65rem;
    }

    .site-body.is-football-index-page .football-fotmob__schedule {
        padding: .58rem;
    }

    .site-body.is-football-index-page .football-fotmob__section-head h2 {
        font-size: 1rem;
    }

    .site-body.is-football-index-page .football-fotmob__section-head--schedule > a {
        max-width: 6.9rem;
        text-align: right;
    }

    .site-body.is-football-index-page .football-fotmob__schedule .football-schedule-row {
        grid-template-columns: minmax(0, 1fr) clamp(68px, 23vw, 86px) minmax(0, 1fr) !important;
        column-gap: .2rem !important;
        padding-inline: .36rem !important;
    }

    .site-body.is-football-index-page .football-fotmob__schedule .football-schedule-row__team {
        gap: .2rem !important;
    }

    .site-body.is-football-index-page .football-fotmob__schedule .football-schedule-row__team span {
        font-size: .61rem !important;
    }

    .site-body.is-football-index-page .football-fotmob__schedule .football-schedule-row__team img,
    .site-body.is-football-index-page .football-fotmob__schedule .football-schedule-row__team b {
        width: 23px !important;
        height: 23px !important;
        min-width: 23px !important;
    }

    .site-body.is-football-index-page .football-fotmob__schedule .football-schedule-row__scoreline,
    .site-body.is-football-index-page .football-fotmob__schedule .football-schedule-row__middle strong {
        gap: .16rem !important;
        font-size: .74rem !important;
    }
}

/* v571 hard containment: no competition name, ad iframe, article card or
   fixture row may widen the /football viewport. */
.site-body.is-football-index-page .football-fotmob,
.site-body.is-football-index-page .football-fotmob *,
.site-body.is-football-index-page .football-fotmob *::before,
.site-body.is-football-index-page .football-fotmob *::after {
    box-sizing: border-box;
}

.site-body.is-football-index-page .football-fotmob__layout,
.site-body.is-football-index-page .football-fotmob__main,
.site-body.is-football-index-page .football-fotmob__surface,
.site-body.is-football-index-page .football-fotmob__competitions,
.site-body.is-football-index-page .football-fotmob__stories,
.site-body.is-football-index-page .football-fotmob__ad,
.site-body.is-football-index-page .football-fotmob .ad-slot,
.site-body.is-football-index-page .football-fotmob .football-promo-slot,
.site-body.is-football-index-page .football-fotmob .news-grid,
.site-body.is-football-index-page .football-fotmob .football-competition-grid {
    min-width: 0 !important;
    max-width: 100% !important;
}

.site-body.is-football-index-page .football-fotmob__ad,
.site-body.is-football-index-page .football-fotmob .ad-slot,
.site-body.is-football-index-page .football-fotmob .football-promo-slot {
    overflow: hidden !important;
}

.site-body.is-football-index-page .football-fotmob__ad iframe,
.site-body.is-football-index-page .football-fotmob__ad ins,
.site-body.is-football-index-page .football-fotmob .ad-slot iframe,
.site-body.is-football-index-page .football-fotmob .ad-slot ins,
.site-body.is-football-index-page .football-fotmob .football-promo-slot iframe,
.site-body.is-football-index-page .football-fotmob .football-promo-slot ins {
    max-width: 100% !important;
}

.site-body.is-football-index-page .football-fotmob img {
    max-width: 100%;
}
