/* Kisure Sports Frontend v614
 * Referee recent-match schedule unification + prediction detail dark-mode hardening.
 */

/* -------------------------------------------------------------------------
   Referee match history: reuse the same visual grammar as /football schedule
   ------------------------------------------------------------------------- */
.football-referee-page-v614 .football-referee-recent-schedule-v614 {
    overflow: visible;
}

.football-referee-page-v614 .football-referee-schedule-v614 {
    display: grid;
    gap: .9rem;
    min-width: 0;
}

.football-referee-page-v614 .football-referee-schedule-v614 .football-schedule-day {
    display: grid;
    gap: .55rem;
    min-width: 0;
}

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

.football-referee-page-v614 .football-referee-schedule-v614 .football-schedule-competition {
    min-width: 0;
    max-width: 100%;
    border-radius: 14px;
    border-color: var(--border);
    box-shadow: none;
}

.football-referee-page-v614 .football-referee-schedule-v614 .football-schedule-competition__head {
    padding: .68rem .82rem;
}

.football-referee-page-v614 .football-referee-schedule-v614 .football-schedule-competition__title {
    min-width: 0;
}

.football-referee-page-v614 .football-referee-schedule-v614 .football-schedule-competition__title img,
.football-referee-page-v614 .football-referee-schedule-v614 .football-schedule-competition__title i {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex: 0 0 30px;
}

.football-referee-page-v614 .football-referee-schedule-v614 .football-schedule-competition__title > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.football-referee-page-v614 .football-referee-schedule-row-v614 {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    grid-template-columns: minmax(0,1fr) minmax(104px,150px) minmax(0,1fr) !important;
    grid-template-areas:
        "meta meta meta"
        "home middle away"
        "actions actions actions" !important;
    row-gap: .5rem !important;
}

.football-referee-page-v614 .football-referee-schedule-row-v614 .football-schedule-row__team,
.football-referee-page-v614 .football-referee-schedule-row-v614 .football-schedule-row__middle,
.football-referee-page-v614 .football-referee-schedule-row-v614 .football-schedule-row__actions {
    min-width: 0 !important;
    max-width: 100% !important;
}

.football-referee-page-v614 .football-referee-schedule-row-v614 .football-schedule-row__team span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.football-referee-page-v614 .football-referee-schedule-row-v614 .football-schedule-row__team img,
.football-referee-page-v614 .football-referee-schedule-row-v614 .football-schedule-row__team b {
    width: 38px;
    height: 38px;
    min-width: 38px;
    object-fit: contain;
    flex: 0 0 38px;
}

.football-referee-page-v614 .football-referee-schedule-row-v614__actions {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: .48rem .7rem !important;
    margin-top: .08rem !important;
}

.football-referee-page-v614 .football-referee-schedule-row-v614__actions .football-referee-match-v609__role {
    grid-column: auto;
    color: var(--text-soft);
    font-size: .72rem;
    line-height: 1.2;
}

.football-referee-page-v614 .football-referee-schedule-row-v614__actions .football-referee-match-v609__role i {
    color: var(--primary);
}

.football-referee-page-v614 .football-referee-schedule-row-v614__actions .football-referee-match-v608__discipline {
    min-width: 0;
    justify-content: center;
}

.football-referee-page-v614 .football-referee-season-v609__coverage {
    color: var(--text-soft);
}

html[data-theme="dark"] .football-referee-page-v614 .football-referee-schedule-v614 .football-schedule-competition {
    background: #0f172a;
    border-color: rgba(148,163,184,.22);
}

html[data-theme="dark"] .football-referee-page-v614 .football-referee-schedule-row-v614 {
    background: #0b1323;
    border-color: rgba(148,163,184,.18);
}

html[data-theme="dark"] .football-referee-page-v614 .football-referee-schedule-row-v614:hover {
    background: #101d31;
}

html[data-theme="dark"] .football-referee-page-v614 .football-referee-schedule-row-v614 .football-schedule-row__team,
html[data-theme="dark"] .football-referee-page-v614 .football-referee-schedule-row-v614 .football-schedule-row__middle,
html[data-theme="dark"] .football-referee-page-v614 .football-referee-schedule-row-v614 .football-schedule-row__scoreline,
html[data-theme="dark"] .football-referee-page-v614 .football-referee-schedule-row-v614 .football-schedule-row__scoreline b {
    color: #f8fafc !important;
}

html[data-theme="dark"] .football-referee-page-v614 .football-referee-schedule-row-v614 .football-schedule-row__meta,
html[data-theme="dark"] .football-referee-page-v614 .football-referee-schedule-row-v614 .football-schedule-row__middle em,
html[data-theme="dark"] .football-referee-page-v614 .football-referee-schedule-row-v614__actions .football-referee-match-v609__role,
html[data-theme="dark"] .football-referee-page-v614 .football-referee-season-v609__coverage {
    color: #9fb0c6 !important;
}

html[data-theme="dark"] .football-referee-page-v614 .football-referee-schedule-row-v614 .football-schedule-row__team img,
html[data-theme="dark"] .football-referee-page-v614 .football-referee-schedule-row-v614 .football-schedule-row__team b {
    background: rgba(255,255,255,.06);
    border-color: rgba(148,163,184,.2);
}

@media (max-width: 700px) {
    .football-referee-page-v614 .football-referee-schedule-v614 .football-schedule-day > h3 {
        font-size: .74rem;
    }

    .football-referee-page-v614 .football-referee-schedule-v614 .football-schedule-competition__head {
        padding: .58rem .68rem;
    }

    .football-referee-page-v614 .football-referee-schedule-row-v614 {
        grid-template-columns: minmax(0,1fr) clamp(72px,23vw,104px) minmax(0,1fr) !important;
        column-gap: clamp(.24rem,1.7vw,.48rem) !important;
        row-gap: .42rem !important;
        padding: .66rem .48rem !important;
    }

    .football-referee-page-v614 .football-referee-schedule-row-v614 .football-schedule-row__meta {
        text-align: center !important;
        font-size: .61rem !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .football-referee-page-v614 .football-referee-schedule-row-v614 .football-schedule-row__team {
        gap: .28rem !important;
    }

    .football-referee-page-v614 .football-referee-schedule-row-v614 .football-schedule-row__team span {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        white-space: normal;
        font-size: clamp(.64rem,2.5vw,.8rem);
        line-height: 1.08;
        font-weight: 900;
    }

    .football-referee-page-v614 .football-referee-schedule-row-v614 .football-schedule-row__team img,
    .football-referee-page-v614 .football-referee-schedule-row-v614 .football-schedule-row__team b {
        width: clamp(24px,7vw,30px);
        height: clamp(24px,7vw,30px);
        min-width: clamp(24px,7vw,30px);
        flex-basis: clamp(24px,7vw,30px);
    }

    .football-referee-page-v614 .football-referee-schedule-row-v614 .football-schedule-row__scoreline,
    .football-referee-page-v614 .football-referee-schedule-row-v614 .football-schedule-row__middle strong {
        font-size: clamp(.78rem,3vw,.96rem) !important;
    }

    .football-referee-page-v614 .football-referee-schedule-row-v614__actions {
        gap: .42rem !important;
    }

    .football-referee-page-v614 .football-referee-schedule-row-v614__actions .football-referee-match-v609__role {
        width: 100%;
        justify-content: center;
        text-align: center;
        font-size: .65rem;
    }
}

/* -------------------------------------------------------------------------
   Prediction detail: final dark-mode layer after legacy prediction bundles.
   Old prediction CSS contains several white/near-white hard-coded surfaces;
   this layer normalizes every visible prediction module to the site dark theme.
   ------------------------------------------------------------------------- */
html[data-theme="dark"] .football-prediction-detail-page {
    --ks-muted: #9fb0c6;
    --ks-accent: #2dd4bf;
    --ks-border: rgba(148,163,184,.22);
    --ks-soft: #121f33;
    --ks-ink: #f8fafc;
    --ks-text: #b8c7db;
    --ks-panel: #0f172a;
    color: #e5edf8;
}

html[data-theme="dark"] .football-prediction-detail-page .football-prediction-breadcrumbs,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-breadcrumbs a,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-breadcrumbs span,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-breadcrumbs i {
    color: #9fb0c6 !important;
}

html[data-theme="dark"] .football-prediction-detail-page .football-prediction-breadcrumbs a:hover {
    color: #5eead4 !important;
}

html[data-theme="dark"] .football-prediction-detail-page .football-prediction-match-hero {
    background: linear-gradient(135deg, #111c2f 0%, #0b1323 58%, #0f2b31 100%) !important;
    border-color: rgba(45,212,191,.2) !important;
    box-shadow: 0 20px 48px rgba(0,0,0,.28) !important;
}

html[data-theme="dark"] .football-prediction-detail-page .football-prediction-match-hero h1,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-match-hero__copy h1,
html[data-theme="dark"] .football-prediction-detail-page .section-heading h2,
html[data-theme="dark"] .football-prediction-detail-page .football-side-panel h3,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-match-card__team strong,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-match-card__stats strong,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-result-card strong,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-analysis-grid strong,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-market-grid strong,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-recommended-bets__grid strong,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-reason-box h3,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-faq summary,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-related h3 a {
    color: #f8fafc !important;
}

html[data-theme="dark"] .football-prediction-detail-page .football-prediction-match-hero p,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-updated,
html[data-theme="dark"] .football-prediction-detail-page .section-heading p,
html[data-theme="dark"] .football-prediction-detail-page .football-side-panel p,
html[data-theme="dark"] .football-prediction-detail-page .football-link-list span,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-key-facts > p,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-key-facts__grid span,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-scoreline > span,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-scoreline em,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-probability-bars span,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-recommended-bets__grid span,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-recommended-bets__grid em,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-market-grid span,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-market-grid em,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-analysis-grid span,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-analysis-grid em,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-reason-box p,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-reason-box small,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-faq details p,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-related small,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-related p,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-match-card__meta span,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-match-card__stats em,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-match-card__stats small {
    color: #a9b9cf !important;
}

html[data-theme="dark"] .football-prediction-detail-page .football-section,
html[data-theme="dark"] .football-prediction-detail-page .football-side-panel,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-detail-card,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-match-card,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-key-facts__grid > div,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-recommended-bets__grid article,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-market-grid article,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-analysis-grid > div,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-faq details,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-related article {
    background: #0f172a !important;
    border-color: rgba(148,163,184,.2) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .football-prediction-detail-page .football-prediction-detail-card {
    background: transparent !important;
    border: 0 !important;
}

html[data-theme="dark"] .football-prediction-detail-page .football-prediction-match-card {
    background: linear-gradient(145deg, #111d31, #0b1323) !important;
    border-color: rgba(45,212,191,.22) !important;
    box-shadow: 0 16px 38px rgba(0,0,0,.24) !important;
}

html[data-theme="dark"] .football-prediction-detail-page .football-prediction-match-card__team img,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-match-card__team b {
    background: #182338 !important;
    border-color: rgba(148,163,184,.22) !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .football-prediction-detail-page .football-prediction-match-card__versus {
    background: #07111f !important;
    border: 1px solid rgba(45,212,191,.24) !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .football-prediction-detail-page .football-prediction-match-card__stats--one-x-two span,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-match-card__stats span {
    background: #121f33 !important;
    border-color: rgba(148,163,184,.18) !important;
}

html[data-theme="dark"] .football-prediction-detail-page .football-prediction-match-card__stats--one-x-two small,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-match-card__league,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-mini-pill,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-key-facts__links a {
    color: #5eead4 !important;
}

html[data-theme="dark"] .football-prediction-detail-page .football-prediction-mini-pill {
    background: rgba(45,212,191,.09) !important;
    border-color: rgba(45,212,191,.22) !important;
}

html[data-theme="dark"] .football-prediction-detail-page .site-button--ghost {
    background: #101b2d !important;
    border-color: rgba(148,163,184,.24) !important;
    color: #e5edf8 !important;
}

html[data-theme="dark"] .football-prediction-detail-page .site-button--ghost:hover,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-mini-pill:hover {
    background: #153044 !important;
    border-color: rgba(45,212,191,.42) !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .football-prediction-detail-page .football-prediction-hero-badge--league {
    background: rgba(15,23,42,.82) !important;
    border-color: rgba(148,163,184,.2) !important;
    color: #e5edf8 !important;
}

html[data-theme="dark"] .football-prediction-detail-page .football-prediction-scoreline {
    background: linear-gradient(135deg, rgba(45,212,191,.10), #111d31) !important;
    border-color: rgba(45,212,191,.18) !important;
}

html[data-theme="dark"] .football-prediction-detail-page .football-prediction-scoreline strong,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-probability-bars strong {
    color: #f8fafc !important;
}

html[data-theme="dark"] .football-prediction-detail-page .football-prediction-probability-bars i {
    background: linear-gradient(90deg, #2dd4bf, rgba(45,212,191,.25)) !important;
}

html[data-theme="dark"] .football-prediction-detail-page .football-prediction-provenance,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-reason-box {
    background: linear-gradient(135deg, rgba(45,212,191,.08), #101b2d) !important;
    border-color: rgba(45,212,191,.18) !important;
}

html[data-theme="dark"] .football-prediction-detail-page .football-prediction-provenance strong,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-provenance span {
    color: #dce7f5 !important;
}

html[data-theme="dark"] .football-prediction-detail-page .football-prediction-market-result {
    border-color: rgba(148,163,184,.18) !important;
}

html[data-theme="dark"] .football-prediction-detail-page .football-prediction-final-check {
    background: #0f172a !important;
    border-color: rgba(148,163,184,.2) !important;
    color: #dce7f5 !important;
}

html[data-theme="dark"] .football-prediction-detail-page .football-prediction-final-check p,
html[data-theme="dark"] .football-prediction-detail-page .football-prediction-final-check strong {
    color: #e5edf8 !important;
}

html[data-theme="dark"] .football-prediction-detail-page .football-link-list span {
    background: #121f33 !important;
    border-color: rgba(148,163,184,.18) !important;
}

html[data-theme="dark"] .football-prediction-detail-page .football-ad-panel,
html[data-theme="dark"] .football-prediction-detail-page .football-sidebar-ad-slot,
html[data-theme="dark"] .football-prediction-detail-page .football-promo-slot {
    background-color: transparent !important;
}

@media (max-width: 700px) {
    html[data-theme="dark"] .football-prediction-detail-page .football-prediction-match-hero,
    html[data-theme="dark"] .football-prediction-detail-page .football-section,
    html[data-theme="dark"] .football-prediction-detail-page .football-side-panel {
        box-shadow: none !important;
    }
}
