/* Kisure Sports Frontend v573
 * One fixture-row language across /football, /football/fixtures and Sports Desk.
 * Long schedules reveal progressively instead of creating extremely tall pages.
 */

.football-schedule-row[hidden],
.football-schedule-competition[hidden],
.football-schedule-day[hidden] {
    display: none !important;
}

.football-schedule-load-more-shell {
    display: flex;
    justify-content: center;
    padding: .9rem .25rem .15rem;
}

.football-schedule-load-more-shell[hidden] {
    display: none !important;
}

.football-schedule-load-more {
    appearance: none;
    border: 1px solid rgba(120, 132, 155, .26);
    border-radius: 999px;
    background: var(--surface, #fff);
    color: var(--text, #172033);
    min-height: 42px;
    padding: .62rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .48rem;
    font: inherit;
    font-size: .78rem;
    font-weight: 850;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(16, 24, 40, .06);
}

.football-schedule-load-more:hover,
.football-schedule-load-more:focus-visible {
    border-color: currentColor;
    transform: translateY(-1px);
}

.football-schedule-load-more small {
    color: #758096;
    font-size: .67rem;
    font-weight: 700;
}

.football-schedule-load-more i {
    font-size: .66rem;
}

/* Sports Desk now uses the same schedule card and match-row component as the
   football hub and full fixtures page. */
.site-body.is-sports-desk-page .ks-desk-panel--unified-fixtures {
    overflow: visible;
}

.site-body.is-sports-desk-page .football-schedule-list--sports-desk {
    display: grid;
    gap: .78rem;
    min-width: 0;
    width: 100%;
}

.site-body.is-sports-desk-page .football-schedule-list--sports-desk .football-schedule-day {
    display: grid;
    gap: .5rem;
    min-width: 0;
}

.site-body.is-sports-desk-page .football-schedule-list--sports-desk .football-schedule-day > h3 {
    margin: .08rem .12rem 0;
    font-size: .76rem;
    font-weight: 900;
    line-height: 1.2;
}

.site-body.is-sports-desk-page .football-schedule-list--sports-desk .football-schedule-competition {
    min-width: 0;
    max-width: 100%;
    border-radius: 14px;
    overflow: hidden;
}

.site-body.is-sports-desk-page .football-schedule-list--sports-desk .football-schedule-row {
    min-width: 0 !important;
    max-width: 100% !important;
}

.site-body.is-sports-desk-page .football-schedule-list--sports-desk .football-schedule-row__team,
.site-body.is-sports-desk-page .football-schedule-list--sports-desk .football-schedule-row__middle,
.site-body.is-sports-desk-page .football-schedule-list--sports-desk .football-schedule-row__actions {
    min-width: 0 !important;
}

.site-body.is-sports-desk-page .football-schedule-list--sports-desk .football-schedule-row__team span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-body.is-sports-desk-page .football-schedule-load-more-shell--sports-desk {
    padding-bottom: 0;
}

@media (max-width: 700px) {
    .football-schedule-load-more {
        width: min(100%, 330px);
        min-height: 44px;
    }

    .site-body.is-sports-desk-page .football-schedule-list--sports-desk .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-sports-desk-page .football-schedule-list--sports-desk .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-sports-desk-page .football-schedule-list--sports-desk .football-schedule-row__team {
        gap: .28rem !important;
        width: 100% !important;
    }

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

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

    .site-body.is-sports-desk-page .football-schedule-list--sports-desk .football-schedule-row__team span {
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
        white-space: normal !important;
        font-size: clamp(.64rem, 2.5vw, .8rem) !important;
        line-height: 1.08 !important;
        font-weight: 900 !important;
    }

    .site-body.is-sports-desk-page .football-schedule-list--sports-desk .football-schedule-row__team img,
    .site-body.is-sports-desk-page .football-schedule-list--sports-desk .football-schedule-row__team b {
        width: clamp(24px, 7vw, 30px) !important;
        height: clamp(24px, 7vw, 30px) !important;
        min-width: clamp(24px, 7vw, 30px) !important;
        object-fit: contain;
    }

    .site-body.is-sports-desk-page .football-schedule-list--sports-desk .football-schedule-row__middle {
        justify-self: stretch !important;
        justify-items: center !important;
        text-align: center !important;
        min-width: 0 !important;
    }

    .site-body.is-sports-desk-page .football-schedule-list--sports-desk .football-schedule-row__middle em {
        max-width: 100% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: .58rem !important;
    }

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

html[data-theme="dark"] .football-schedule-load-more,
body.dark-mode .football-schedule-load-more,
.site-body.is-dark .football-schedule-load-more {
    background:#242424;
    border-color: rgba(255,255,255,.14);
    color: #f3f6fb;
    box-shadow: none;
}


/* v573 /football/fixtures dark-mode sidebar visibility.
 * Keep Kisure sidebar chrome dark. Third-party ad creatives keep a neutral light
 * canvas so their own colours/text remain readable; the iframe/creative itself is
 * never recoloured by Kisure. */
html[data-theme="dark"] .football-fixtures-page .football-sidebar-stack .football-side-panel {
    background:#1c1c1c!important;
    border-color: rgba(94, 234, 212, .18) !important;
    color: #e8eef7 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .football-fixtures-page .football-sidebar-stack .football-side-panel .site-kicker {
    color: #5eead4 !important;
}

html[data-theme="dark"] .football-fixtures-page .football-sidebar-stack .football-side-panel h3,
html[data-theme="dark"] .football-fixtures-page .football-sidebar-stack .football-link-list span {
    color: #f8fafc !important;
}

html[data-theme="dark"] .football-fixtures-page .football-sidebar-stack .football-link-list a {
    background:#1c1c1c!important;
    border-color: rgba(148, 163, 184, .20) !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .football-fixtures-page .football-sidebar-stack .football-link-list a i {
    color: #5eead4 !important;
}

html[data-theme="dark"] .football-fixtures-page .football-sidebar-stack .football-link-list a:hover,
html[data-theme="dark"] .football-fixtures-page .football-sidebar-stack .football-link-list a:focus-visible {
    background:#242424!important;
    border-color: rgba(94, 234, 212, .38) !important;
}

html[data-theme="dark"] .football-fixtures-page .football-sidebar-stack .football-ad-panel {
    overflow: hidden !important;
}

html[data-theme="dark"] .football-fixtures-page .football-sidebar-stack .football-ad-panel .football-sidebar-ad-slot {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: .55rem !important;
    overflow: hidden !important;
    border: 1px solid rgba(148, 163, 184, .26) !important;
    border-radius: 16px !important;
    background: #f8fafc !important;
    color: #111827 !important;
    color-scheme: light !important;
    box-sizing: border-box !important;
}

html[data-theme="dark"] .football-fixtures-page .football-sidebar-stack .football-ad-panel .kisure-safe-ad-slot,
html[data-theme="dark"] .football-fixtures-page .football-sidebar-stack .football-ad-panel .kisure-safe-ad-primary,
html[data-theme="dark"] .football-fixtures-page .football-sidebar-stack .football-ad-panel ins.adsbygoogle,
html[data-theme="dark"] .football-fixtures-page .football-sidebar-stack .football-ad-panel iframe {
    max-width: 100% !important;
}

html[data-theme="dark"] .football-fixtures-page .football-sidebar-stack .football-ad-panel .football-sidebar-ad-slot:empty {
    display: none !important;
}

@media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) .football-fixtures-page .football-sidebar-stack .football-side-panel {
        background:#1c1c1c!important;
        border-color: rgba(94, 234, 212, .18) !important;
        color: #e8eef7 !important;
        box-shadow: none !important;
    }

    html:not([data-theme="light"]) .football-fixtures-page .football-sidebar-stack .football-side-panel .site-kicker {
        color: #5eead4 !important;
    }

    html:not([data-theme="light"]) .football-fixtures-page .football-sidebar-stack .football-side-panel h3,
    html:not([data-theme="light"]) .football-fixtures-page .football-sidebar-stack .football-link-list span {
        color: #f8fafc !important;
    }

    html:not([data-theme="light"]) .football-fixtures-page .football-sidebar-stack .football-link-list a {
        background:#1c1c1c!important;
        border-color: rgba(148, 163, 184, .20) !important;
        color: #f8fafc !important;
    }

    html:not([data-theme="light"]) .football-fixtures-page .football-sidebar-stack .football-link-list a i {
        color: #5eead4 !important;
    }

    html:not([data-theme="light"]) .football-fixtures-page .football-sidebar-stack .football-ad-panel .football-sidebar-ad-slot {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: .55rem !important;
        overflow: hidden !important;
        border: 1px solid rgba(148, 163, 184, .26) !important;
        border-radius: 16px !important;
        background: #f8fafc !important;
        color: #111827 !important;
        color-scheme: light !important;
        box-sizing: border-box !important;
    }
}
