/* v253: Apply the clean Previous-predictions row idea to Top 5 and grouped prediction rows only.
   This does not touch the match-card partial, homepage hero, article hero, or sidebar structure. */

.football-predictions-page .football-prediction-main {
    min-width: 0 !important;
}

/* Make the prediction sections feel like the clean previous-predictions block. */
.football-predictions-page .football-prediction-surebets,
.football-predictions-page .football-prediction-day,
.football-predictions-page .football-prediction-history-section {
    background: rgba(255, 255, 255, .88) !important;
    border: 1px solid rgba(15, 23, 42, .11) !important;
    border-radius: 28px !important;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .055) !important;
    padding: clamp(1.05rem, 2vw, 1.6rem) !important;
    margin-bottom: clamp(1.15rem, 2.2vw, 1.8rem) !important;
    overflow: hidden !important;
}

.football-predictions-page .football-prediction-surebets__head,
.football-predictions-page .section-heading {
    margin-bottom: clamp(.9rem, 1.6vw, 1.25rem) !important;
}

.football-predictions-page .football-prediction-surebets__title,
.football-predictions-page .section-heading > div {
    max-width: 860px !important;
}

.football-predictions-page .football-prediction-surebets__title {
    align-items: center !important;
    display: flex !important;
    gap: .9rem !important;
}

.football-predictions-page .football-prediction-surebets__icon {
    align-items: center !important;
    background: rgba(15, 23, 42, .04) !important;
    border: 1px solid rgba(15, 23, 42, .14) !important;
    border-radius: 15px !important;
    color: var(--text-soft) !important;
    display: inline-flex !important;
    flex: 0 0 48px !important;
    height: 48px !important;
    justify-content: center !important;
    width: 48px !important;
}

.football-predictions-page .football-prediction-surebets__title h2,
.football-predictions-page .section-heading h2 {
    color: var(--bg-contrast) !important;
    font-family: var(--font-display) !important;
    font-size: clamp(1.75rem, 3vw, 2.5rem) !important;
    font-weight: 950 !important;
    letter-spacing: -.045em !important;
    line-height: 1.02 !important;
    margin: .1rem 0 .35rem !important;
}

.football-predictions-page .football-prediction-surebets__title p,
.football-predictions-page .section-heading p {
    color: var(--text-soft) !important;
    line-height: 1.55 !important;
    margin: 0 !important;
}

/* League groups should be clean containers inside the day section, not another heavy redesign. */
.football-predictions-page .football-prediction-league-list {
    display: grid !important;
    gap: clamp(.85rem, 1.6vw, 1.15rem) !important;
}

.football-predictions-page .football-prediction-league-group {
    background: rgba(248, 250, 252, .72) !important;
    border: 1px solid rgba(15, 23, 42, .09) !important;
    border-radius: 24px !important;
    box-shadow: none !important;
    padding: clamp(.85rem, 1.6vw, 1.15rem) !important;
}

.football-predictions-page .football-prediction-league-group__head {
    margin-bottom: .75rem !important;
}

.football-predictions-page .football-prediction-league-group__title {
    align-items: center !important;
    display: flex !important;
    gap: .75rem !important;
}

.football-predictions-page .football-prediction-league-group__logo {
    align-items: center !important;
    background: #fff !important;
    border: 1px solid rgba(15, 23, 42, .12) !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    flex: 0 0 42px !important;
    height: 42px !important;
    justify-content: center !important;
    width: 42px !important;
}

.football-predictions-page .football-prediction-league-group__logo img {
    height: 30px !important;
    object-fit: contain !important;
    width: 30px !important;
}

.football-predictions-page .football-prediction-league-group__title h3 {
    color: var(--bg-contrast) !important;
    font-family: var(--font-display) !important;
    font-size: 1.08rem !important;
    font-weight: 950 !important;
    margin: 0 !important;
}

.football-predictions-page .football-prediction-league-group__title p {
    color: var(--text-soft) !important;
    font-size: .88rem !important;
    font-weight: 800 !important;
    margin: .1rem 0 0 !important;
}

/* Prediction rows: keep the 3-part horizontal idea supplied by the user. */
.football-predictions-page .kisure-prediction-row-list {
    display: grid !important;
    gap: .72rem !important;
    overflow-x: auto !important;
    overscroll-behavior-inline: contain !important;
    -webkit-overflow-scrolling: touch !important;
    padding: .05rem .05rem .35rem !important;
    scrollbar-width: thin !important;
}

.football-predictions-page .kisure-prediction-row-card {
    background: rgba(255, 255, 255, .96) !important;
    border: 1px solid rgba(15, 23, 42, .12) !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .04) !important;
    color: var(--bg-contrast) !important;
    min-width: 900px !important;
    overflow: hidden !important;
    padding: .9rem 1rem !important;
    text-decoration: none !important;
    width: 100% !important;
}

.football-predictions-page .kisure-prediction-row-card__top {
    align-items: center !important;
    display: grid !important;
    gap: clamp(.85rem, 1.6vw, 1.35rem) !important;
    grid-template-columns: 210px minmax(330px, 1fr) 260px !important;
}

.football-predictions-page .kisure-prediction-row-card__context {
    display: grid !important;
    gap: .55rem !important;
    min-width: 0 !important;
}

.football-predictions-page .kisure-prediction-row-card__league {
    align-items: center !important;
    color: var(--text-soft) !important;
    display: flex !important;
    font-family: var(--font-display) !important;
    font-size: .82rem !important;
    font-weight: 950 !important;
    gap: .5rem !important;
    letter-spacing: .02em !important;
    line-height: 1.1 !important;
    min-width: 0 !important;
    text-transform: uppercase !important;
}

.football-predictions-page .kisure-prediction-row-card__league img,
.football-predictions-page .kisure-prediction-row-card__league i {
    align-items: center !important;
    background: #fff !important;
    border: 1px solid rgba(15, 23, 42, .12) !important;
    border-radius: 11px !important;
    display: inline-flex !important;
    flex: 0 0 32px !important;
    height: 32px !important;
    justify-content: center !important;
    object-fit: contain !important;
    padding: .12rem !important;
    width: 32px !important;
}

.football-predictions-page .kisure-prediction-row-card__league span {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.football-predictions-page .kisure-prediction-row-card__context time {
    align-items: center !important;
    background: rgba(15, 23, 42, .055) !important;
    border-radius: 999px !important;
    color: var(--bg-contrast) !important;
    display: inline-flex !important;
    font-size: .83rem !important;
    font-weight: 900 !important;
    justify-self: start !important;
    line-height: 1 !important;
    padding: .62rem .9rem !important;
    white-space: nowrap !important;
}

.football-predictions-page .kisure-prediction-row-card__teams {
    align-items: center !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: clamp(.9rem, 2.2vw, 2.3rem) !important;
    justify-content: center !important;
    min-width: 0 !important;
}

.football-predictions-page .kisure-prediction-row-card__team {
    align-items: center !important;
    display: flex !important;
    flex: 1 1 0 !important;
    gap: .7rem !important;
    min-width: 0 !important;
}

.football-predictions-page .kisure-prediction-row-card__team--home {
    justify-content: flex-end !important;
    text-align: right !important;
}

.football-predictions-page .kisure-prediction-row-card__team--away {
    justify-content: flex-start !important;
    text-align: left !important;
}

.football-predictions-page .kisure-prediction-row-card__team img,
.football-predictions-page .kisure-prediction-row-card__team b {
    align-items: center !important;
    background: #fff !important;
    border: 1px solid rgba(15, 23, 42, .13) !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    flex: 0 0 42px !important;
    height: 42px !important;
    justify-content: center !important;
    object-fit: contain !important;
    padding: .12rem !important;
    width: 42px !important;
}

.football-predictions-page .kisure-prediction-row-card__team strong {
    color: var(--bg-contrast) !important;
    font-family: var(--font-display) !important;
    font-size: clamp(1rem, 1.25vw, 1.28rem) !important;
    font-weight: 950 !important;
    letter-spacing: -.02em !important;
    line-height: 1.07 !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.football-predictions-page .kisure-prediction-row-card__vs {
    align-items: center !important;
    background: rgba(15, 23, 42, .035) !important;
    border: 1px solid rgba(15, 23, 42, .14) !important;
    border-radius: 14px !important;
    color: var(--bg-contrast) !important;
    display: inline-flex !important;
    flex: 0 0 52px !important;
    font-family: var(--font-display) !important;
    font-weight: 950 !important;
    height: 44px !important;
    justify-content: center !important;
    text-transform: uppercase !important;
}

.football-predictions-page .kisure-prediction-row-card__odds {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: .5rem !important;
    justify-content: flex-end !important;
}

.football-predictions-page .kisure-prediction-row-card__odd {
    align-items: center !important;
    background: #fff !important;
    border: 1px solid rgba(15, 23, 42, .14) !important;
    border-radius: 15px !important;
    display: flex !important;
    flex-direction: column !important;
    height: 86px !important;
    justify-content: center !important;
    min-width: 74px !important;
    padding: .35rem !important;
    text-align: center !important;
}

.football-predictions-page .kisure-prediction-row-card__odd.is-active {
    background: linear-gradient(135deg, rgba(14,165,164,.14), rgba(209,240,206,.38)) !important;
    border-color: rgba(14,165,164,.64) !important;
    box-shadow: inset 0 0 0 1px rgba(14,165,164,.14) !important;
}

.football-predictions-page .kisure-prediction-row-card__odd em {
    color: var(--text-soft) !important;
    font-style: normal !important;
    font-weight: 950 !important;
    line-height: 1 !important;
}

.football-predictions-page .kisure-prediction-row-card__odd strong {
    color: var(--bg-contrast) !important;
    font-family: var(--font-display) !important;
    font-size: 1.35rem !important;
    font-weight: 950 !important;
    line-height: 1 !important;
    margin: .24rem 0 !important;
}

.football-predictions-page .kisure-prediction-row-card__odd small {
    color: var(--text-soft) !important;
    font-size: .62rem !important;
    font-weight: 950 !important;
    letter-spacing: .02em !important;
    text-transform: uppercase !important;
}

.football-predictions-page .kisure-prediction-row-card__footer {
    align-items: center !important;
    border-top: 1px solid rgba(15, 23, 42, .10) !important;
    display: flex !important;
    justify-content: space-between !important;
    margin-top: .8rem !important;
    padding-top: .72rem !important;
}

.football-predictions-page .kisure-prediction-row-card__info {
    align-items: center !important;
    color: var(--bg-contrast) !important;
    display: inline-flex !important;
    font-family: var(--font-display) !important;
    font-size: .98rem !important;
    font-weight: 850 !important;
    gap: .55rem !important;
    text-decoration: none !important;
}

.football-predictions-page .kisure-prediction-row-card__info i {
    align-items: center !important;
    border: 1px solid rgba(15, 23, 42, .14) !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    height: 30px !important;
    justify-content: center !important;
    width: 30px !important;
}

.football-predictions-page .kisure-prediction-row-card__confidence {
    color: var(--bg-contrast) !important;
    font-family: var(--font-display) !important;
    font-size: clamp(1.35rem, 2vw, 1.85rem) !important;
    font-weight: 950 !important;
    letter-spacing: -.04em !important;
}

/* Preserve the clean previous-predictions list and make it fit phones too. */
.football-predictions-page .football-prediction-history-list--clean {
    display: grid !important;
    gap: .68rem !important;
    overflow-x: auto !important;
    overscroll-behavior-inline: contain !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: .28rem !important;
}

.football-predictions-page .football-prediction-history-list--clean .football-prediction-history-row {
    min-width: 650px !important;
}

@media (max-width: 1100px) {
    .football-predictions-page .kisure-prediction-row-card {
        min-width: 850px !important;
    }

    .football-predictions-page .kisure-prediction-row-card__top {
        grid-template-columns: 185px 1fr 235px !important;
        gap: 1rem !important;
    }

    .football-predictions-page .kisure-prediction-row-card__odd {
        min-width: 66px !important;
    }
}

@media (max-width: 720px) {
    .football-predictions-page .football-prediction-surebets,
    .football-predictions-page .football-prediction-day,
    .football-predictions-page .football-prediction-history-section {
        border-radius: 22px !important;
        padding: .95rem !important;
    }

    .football-predictions-page .football-prediction-surebets__title {
        align-items: flex-start !important;
    }

    .football-predictions-page .football-prediction-surebets__icon {
        flex-basis: 42px !important;
        height: 42px !important;
        width: 42px !important;
    }

    .football-predictions-page .football-prediction-surebets__title h2,
    .football-predictions-page .section-heading h2 {
        font-size: clamp(1.45rem, 8vw, 2rem) !important;
    }

    .football-predictions-page .kisure-prediction-row-list {
        margin-inline: -.95rem !important;
        padding-inline: .95rem !important;
    }

    .football-predictions-page .kisure-prediction-row-card {
        border-radius: 18px !important;
        min-width: 760px !important;
        padding: .85rem !important;
    }

    .football-predictions-page .kisure-prediction-row-card__top {
        grid-template-columns: 150px 320px 220px !important;
        gap: .82rem !important;
    }

    .football-predictions-page .kisure-prediction-row-card__league {
        font-size: .74rem !important;
    }

    .football-predictions-page .kisure-prediction-row-card__context time {
        font-size: .76rem !important;
        padding: .55rem .72rem !important;
    }

    .football-predictions-page .kisure-prediction-row-card__team img,
    .football-predictions-page .kisure-prediction-row-card__team b {
        flex-basis: 36px !important;
        height: 36px !important;
        width: 36px !important;
    }

    .football-predictions-page .kisure-prediction-row-card__team strong {
        font-size: .95rem !important;
    }

    .football-predictions-page .kisure-prediction-row-card__vs {
        flex-basis: 44px !important;
        height: 38px !important;
    }

    .football-predictions-page .kisure-prediction-row-card__odd {
        height: 78px !important;
        min-width: 62px !important;
    }

    .football-predictions-page .kisure-prediction-row-card__odd strong {
        font-size: 1.08rem !important;
    }

    .football-predictions-page .kisure-prediction-row-card__footer {
        margin-top: .7rem !important;
        padding-top: .65rem !important;
    }

    .football-predictions-page .football-prediction-history-list--clean {
        margin-inline: -.95rem !important;
        padding-inline: .95rem !important;
    }
}

html[data-theme="dark"] .football-predictions-page .football-prediction-surebets,
html[data-theme="dark"] .football-predictions-page .football-prediction-day,
html[data-theme="dark"] .football-predictions-page .football-prediction-history-section,
html[data-theme="dark"] .football-predictions-page .kisure-prediction-row-card,
html[data-theme="dark"] .football-predictions-page .football-prediction-league-group {
    background: rgba(15, 23, 42, .92) !important;
    border-color: rgba(255, 255, 255, .10) !important;
}

html[data-theme="dark"] .football-predictions-page .kisure-prediction-row-card__league img,
html[data-theme="dark"] .football-predictions-page .kisure-prediction-row-card__league i,
html[data-theme="dark"] .football-predictions-page .kisure-prediction-row-card__team img,
html[data-theme="dark"] .football-predictions-page .kisure-prediction-row-card__team b,
html[data-theme="dark"] .football-predictions-page .kisure-prediction-row-card__odd,
html[data-theme="dark"] .football-predictions-page .football-prediction-league-group__logo {
    background: rgba(255, 255, 255, .07) !important;
    border-color: rgba(255, 255, 255, .12) !important;
}
