/* Kisure v259: prediction detail polish + cleaner single-league ticker */

/* Single competition header ticker: no visible scrollbars, smoother auto-scroll, and compact score pills. */
.football-header-leagues__ticker {
    overflow: hidden !important;
}

.football-header-ticker__track {
    overflow: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.football-header-ticker__track::-webkit-scrollbar,
.football-header-ticker__marquee::-webkit-scrollbar,
.football-header-ticker__set::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.football-header-ticker__marquee {
    animation: kisureHeaderTickerMarquee 34s linear infinite !important;
}

.football-header-ticker__match {
    min-width: 142px !important;
    height: 44px !important;
    border-radius: 14px !important;
    padding: 6px 12px !important;
}

.football-header-ticker__match.is-result {
    min-width: 116px !important;
}

.football-header-ticker__match > strong {
    min-width: 44px;
    text-align: center;
}

.football-header-ticker__score {
    gap: 8px !important;
}

.football-header-ticker__score b {
    min-width: 24px !important;
    color: #fff !important;
    font-size: .92rem !important;
    font-weight: 950 !important;
}

.football-header-ticker__crest {
    width: 30px !important;
    height: 30px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.98) !important;
    overflow: hidden !important;
}

.football-header-ticker__crest img,
.football-header-ticker__crest em {
    width: 23px !important;
    height: 23px !important;
    border-radius: 999px !important;
    object-fit: contain !important;
}

/* Prediction detail hero: one clear competition/date line, plus compact league and status badges. */
.football-prediction-hero-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
    margin: 1rem 0 1.15rem;
}

.football-prediction-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 42px;
    padding: .55rem .85rem;
    border-radius: 999px;
    border: 1px solid rgba(14,165,164,.22);
    background: rgba(14,165,164,.10);
    color: var(--primary-strong, #087b83);
    font-family: var(--font-display, inherit);
    font-weight: 900;
    white-space: nowrap;
}

.football-prediction-hero-badge img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 999px;
    background: #fff;
}

.football-prediction-hero-badge--won {
    border-color: rgba(34,197,94,.32);
    background: rgba(34,197,94,.12);
    color: #15803d;
}

.football-prediction-hero-badge--lost {
    border-color: rgba(239,68,68,.32);
    background: rgba(239,68,68,.12);
    color: #b91c1c;
}

.football-prediction-hero-badge--void {
    border-color: rgba(100,116,139,.32);
    background: rgba(100,116,139,.12);
    color: #475569;
}

/* Single prediction match card: balance teams and 1X2 boxes on desktop without giant empty space. */
@media (min-width: 1024px) {
    .football-prediction-detail-page .football-prediction-detail-card .football-prediction-match-card {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(310px, 420px) !important;
        grid-template-areas:
            "teams stats"
            "meta actions" !important;
        align-items: center !important;
        column-gap: clamp(1.25rem, 3vw, 3rem) !important;
        row-gap: 1rem !important;
    }

    .football-prediction-detail-page .football-prediction-match-card__teams {
        grid-area: teams !important;
        width: 100% !important;
        max-width: 660px !important;
        justify-self: center !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr) !important;
        align-items: center !important;
        gap: .9rem !important;
    }

    .football-prediction-detail-page .football-prediction-match-card__team {
        min-width: 0 !important;
    }

    .football-prediction-detail-page .football-prediction-match-card__team:first-child {
        justify-content: flex-end !important;
        text-align: right !important;
    }

    .football-prediction-detail-page .football-prediction-match-card__team:last-child {
        justify-content: flex-start !important;
        text-align: left !important;
        flex-direction: row !important;
    }

    .football-prediction-detail-page .football-prediction-match-card__versus {
        justify-self: center !important;
    }

    .football-prediction-detail-page .football-prediction-match-card__stats {
        grid-area: stats !important;
        width: 100% !important;
        max-width: 420px !important;
        justify-self: end !important;
    }

    .football-prediction-detail-page .football-prediction-match-card__meta {
        grid-area: meta !important;
        align-self: start !important;
        justify-content: flex-start !important;
    }

    .football-prediction-detail-page .football-prediction-match-card__actions {
        grid-area: actions !important;
        align-self: start !important;
        justify-content: flex-end !important;
    }
}

@media (max-width: 1023.98px) {
    .football-prediction-detail-page .football-prediction-detail-card .football-prediction-match-card {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .football-prediction-detail-page .football-prediction-match-card__teams {
        grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr) !important;
        gap: .65rem !important;
    }

    .football-prediction-detail-page .football-prediction-match-card__team img,
    .football-prediction-detail-page .football-prediction-match-card__team b {
        width: 42px !important;
        height: 42px !important;
        flex-basis: 42px !important;
    }

    .football-prediction-detail-page .football-prediction-match-card__team strong {
        font-size: .95rem !important;
    }
}

/* Prediction list: the time logo stack should show team crests only, never the league logo. */
.football-prediction-tip-row__time span img:first-child:nth-last-child(3) {
    display: none !important;
}

html[data-theme="dark"] .football-prediction-hero-badge {
    background: rgba(20,184,166,.16);
    border-color: rgba(45,212,191,.24);
    color: #7dd3fc;
}
