/* ===== FE942 SOURCE: kisure-v608-live-referee-lineup.css ===== */
/* Kisure Sports v608 — live surface, referee discipline and compact lineup marker polish. */

/* Referee profile: factual discipline summary from normalized assignments/events. */
.football-referee-page-v608 .football-referee-quick-v608{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;width:min(720px,100%);margin-top:18px}
.football-referee-page-v608 .football-referee-quick-v608>span{display:flex;min-width:0;flex-direction:column;gap:2px;padding:12px 14px;border:1px solid var(--site-border,rgba(148,163,184,.22));border-radius:14px;background:var(--site-surface-soft,rgba(148,163,184,.08))}
.football-referee-page-v608 .football-referee-quick-v608 strong{font-size:1.28rem;line-height:1.05;font-weight:900}
.football-referee-page-v608 .football-referee-quick-v608 small{font-size:.76rem;opacity:.75}
.football-referee-page-v608 .football-referee-quick-v608 .is-yellow strong{color:#f5b700}
.football-referee-page-v608 .football-referee-quick-v608 .is-red strong{color:#ef4444}

.football-referee-recent-v608{display:grid;gap:10px}
.football-referee-match-v608{display:grid;grid-template-columns:minmax(150px,.8fr) minmax(320px,1.7fr) auto;align-items:center;gap:16px;padding:14px 16px;border:1px solid var(--site-border,rgba(148,163,184,.2));border-radius:16px;color:inherit;text-decoration:none;background:var(--site-surface,rgba(255,255,255,.03));transition:border-color .16s ease,transform .16s ease,background .16s ease}
.football-referee-match-v608:hover{transform:translateY(-1px);border-color:rgba(17,185,175,.42);background:rgba(17,185,175,.045)}
.football-referee-match-v608__meta{display:grid;gap:6px;min-width:0}
.football-referee-match-v608__meta time{font-weight:800;font-size:.9rem}
.football-referee-match-v608__meta span{display:flex;align-items:center;gap:7px;font-size:.78rem;opacity:.76;min-width:0}
.football-referee-match-v608__meta img{width:20px;height:20px;object-fit:contain;flex:0 0 20px}
.football-referee-match-v608__score{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:10px;min-width:0}
.football-referee-match-v608__score>span{display:flex;align-items:center;gap:8px;min-width:0}
.football-referee-match-v608__score>span:last-child{justify-content:flex-end;text-align:right}
.football-referee-match-v608__score img{width:28px;height:28px;object-fit:contain;flex:0 0 28px}
.football-referee-match-v608__score strong{font-size:.93rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.football-referee-match-v608__score>b{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:1rem;font-weight:900}
.football-referee-match-v608__score>b i{font-style:normal;opacity:.45}
.football-referee-match-v608__discipline{display:flex;align-items:center;justify-content:flex-end;gap:6px;min-width:72px}
.football-referee-match-v608__discipline>span{display:inline-flex;align-items:center;gap:4px;height:28px;padding:0 8px;border-radius:999px;background:var(--site-surface-soft,rgba(148,163,184,.1));font-size:.78rem;font-weight:900}
.football-referee-match-v608__discipline>span>i:not(.fa-futbol){display:inline-block;width:9px;height:14px;border-radius:2px}
.football-referee-match-v608__discipline .is-yellow>i{background:#f6c51c}
.football-referee-match-v608__discipline .is-red>i{background:#ef4444}
.football-referee-match-v608__discipline .is-penalty i{font-size:.7rem}

.football-referee-seasons-v608{display:grid;gap:10px}
.football-referee-season-v608{display:grid;grid-template-columns:minmax(135px,1.15fr) repeat(4,minmax(92px,.72fr));align-items:center;gap:10px;padding:14px 16px;border:1px solid var(--site-border,rgba(148,163,184,.2));border-radius:16px;background:var(--site-surface,rgba(255,255,255,.03))}
.football-referee-season-v608>div,.football-referee-season-v608>span{display:flex;min-width:0;flex-direction:column;gap:2px}
.football-referee-season-v608>span{align-items:center;text-align:center;padding-left:10px;border-left:1px solid var(--site-border,rgba(148,163,184,.15))}
.football-referee-season-v608 b,.football-referee-season-v608 strong{font-size:1rem;font-weight:900}
.football-referee-season-v608 small{font-size:.72rem;opacity:.7}
.football-referee-season-v608 .is-yellow b{color:#f5b700}
.football-referee-season-v608 .is-red b{color:#ef4444}
.football-referee-season-v608 .is-yellow i,.football-referee-season-v608 .is-red i{display:block;width:9px;height:14px;border-radius:2px;margin-bottom:2px}
.football-referee-season-v608 .is-yellow i{background:#f6c51c}
.football-referee-season-v608 .is-red i{background:#ef4444}

.football-referee-summary-v608__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}
.football-referee-summary-v608__grid>span{display:flex;flex-direction:column;gap:2px;padding:10px;border:1px solid var(--site-border,rgba(148,163,184,.16));border-radius:12px;background:var(--site-surface-soft,rgba(148,163,184,.07))}
.football-referee-summary-v608__grid strong{font-size:1rem;font-weight:900}
.football-referee-summary-v608__grid small{font-size:.7rem;opacity:.7}

/* Lineup marker v608: keep goals as compact as OG rather than a large white puck. */
#lineups .football-formation-player__markers{min-height:16px!important;gap:3px!important;margin:1px 0 0!important}
#lineups .football-formation-player__goal,
#lineups .football-formation-player__own-goal{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:18px!important;height:18px!important;box-sizing:border-box!important;margin:0!important;padding:0 4px!important;border:1px solid rgba(255,255,255,.72)!important;border-radius:999px!important;background:#0f172a!important;color:#fff!important;box-shadow:0 2px 5px rgba(0,0,0,.2)!important;font-size:.5rem!important;font-weight:900!important;line-height:1!important;white-space:nowrap!important}
#lineups .football-formation-player__goal{gap:2px!important}
#lineups .football-formation-player__goal i{font-size:.47rem!important;line-height:1!important}
#lineups .football-formation-player__goal b{font-size:.47rem!important;line-height:1!important}
#lineups .football-formation-player__own-goal{font-size:.48rem!important;letter-spacing:.01em!important}

/* Live values transition without replacing the whole page. */
[data-live-clock-state="running"]{font-variant-numeric:tabular-nums}
.is-live-clock-final{animation:none!important}

@media (max-width:900px){
  .football-referee-page-v608 .football-referee-quick-v608{grid-template-columns:repeat(2,minmax(0,1fr))}
  .football-referee-match-v608{grid-template-columns:1fr auto;gap:10px}
  .football-referee-match-v608__score{grid-column:1/-1;grid-row:2}
  .football-referee-match-v608__discipline{grid-column:2;grid-row:1}
  .football-referee-season-v608{grid-template-columns:repeat(2,minmax(0,1fr))}
  .football-referee-season-v608>div{grid-column:1/-1}
  .football-referee-season-v608>span{align-items:flex-start;text-align:left;border-left:0;padding-left:0}
}
@media (max-width:560px){
  .football-referee-match-v608{padding:12px}
  .football-referee-match-v608__score{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:6px}
  .football-referee-match-v608__score img{width:24px;height:24px;flex-basis:24px}
  .football-referee-match-v608__score strong{font-size:.82rem}
  .football-referee-match-v608__discipline>span{height:25px;padding:0 6px}
}
/* Legacy pitch CSS styles every <b> as a 48px player fallback circle. The goal
   count is also a <b>, so explicitly neutralize that generic rule. */
#lineups .football-formation-player__goal b{display:inline!important;width:auto!important;height:auto!important;min-width:0!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:inherit!important;box-shadow:none!important;font-size:.47rem!important;font-weight:900!important;line-height:1!important}

/* v716: canonical v419 lineup player facts — role/position, assists and send-off facts. */
#lineups .football-formation-player__assist{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:1px!important;min-width:18px!important;height:18px!important;box-sizing:border-box!important;margin:0!important;padding:0 4px!important;border:1px solid rgba(255,255,255,.72)!important;border-radius:999px!important;background:#0f766e!important;color:#fff!important;box-shadow:0 2px 5px rgba(0,0,0,.2)!important;font-size:.5rem!important;font-weight:950!important;line-height:1!important;white-space:nowrap!important}
#lineups .football-formation-player__assist b{display:inline!important;width:auto!important;height:auto!important;min-width:0!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:inherit!important;box-shadow:none!important;font-size:.47rem!important;font-weight:950!important;line-height:1!important}
#lineups .football-formation-player__position{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:24px!important;margin-top:2px!important;padding:1px 5px!important;border-radius:999px!important;background:rgba(7,21,37,.72)!important;color:#fff!important;font-size:.46rem!important;font-weight:900!important;line-height:1.25!important;letter-spacing:.03em!important;box-shadow:0 1px 3px rgba(0,0,0,.16)!important}
html[data-theme="dark"] #lineups .football-formation-player__position{background:rgba(255,255,255,.14)!important}

/* ===== FE942 SOURCE: kisure-v609-header-referee.css ===== */
/* Kisure frontend v609: header state exclusivity + referee saved-data context. */
.football-header-panel__group[hidden],
.football-header-panel__match-slider .football-header-match-row[hidden]{display:none!important}
.football-referee-match-v609__role{grid-column:1/-1;display:inline-flex;align-items:center;gap:.35rem;color:#64748b;font-size:.72rem;font-weight:800;letter-spacing:.02em}
.football-referee-match-v609__role i{color:#0f8d87;font-size:.68rem}
.football-referee-season-v609__coverage{grid-column:1/-1;color:#64748b;font-size:.72rem;font-weight:700;padding-top:.25rem}
html[data-theme="dark"] .football-referee-match-v609__role,
html[data-theme="dark"] .football-referee-season-v609__coverage{color:#94a3b8}

/* ===== FE942 SOURCE: kisure-v614-referee-schedule-prediction-dark.css ===== */
/* 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:#1c1c1c;
    border-color: rgba(148,163,184,.22);
}

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

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

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:#1c1c1c;
    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:#242424!important;
    border-color: rgba(45,212,191,.2) !important;
    box-shadow:none!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:#1c1c1c!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:#1c1c1c!important;
    border-color: rgba(45,212,191,.22) !important;
    box-shadow:none!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:#242424!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:#1c1c1c!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:#242424!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:#242424!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:#242424!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:#1c1c1c!important;
    border-color: rgba(148,163,184,.2) !important;
    color: #e5edf8 !important;
}

html[data-theme="dark"] .football-prediction-detail-page .football-prediction-scoreline {
    background:#242424!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: 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:#242424!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:#1c1c1c!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:#242424!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;
    }
}

/* ===== FE942 SOURCE: kisure-v618-match-history-fullwidth.css ===== */
/* Kisure Sports Frontend v618
 * Full-width upcoming Match Centre history/form layout.
 * Keeps the football-schedule-* family while making H2H and recent-form cards
 * with a full-width H2H card and full-width previous-meetings block.
 * Also preserves the prediction sidebar dark ad shell from v616.
 */

/* -------------------------------------------------------------------------
   Match history section
   ------------------------------------------------------------------------- */
.football-match-history-v618 {
    --ks-history-accent: var(--primary, #078b92);
    --ks-history-accent-2: #16a3a7;
    --ks-history-card: var(--surface, #fff);
    --ks-history-soft: var(--surface-soft, #f7fafb);
    --ks-history-border: var(--border, #dbe3e8);
    display: grid;
    gap: 1rem;
    min-width: 0;
    overflow: hidden;
}

.football-match-history-v618__heading {
    margin-bottom: 0 !important;
}

.football-match-history-v618__heading h2 {
    margin-bottom: .25rem;
}

.football-match-history-v618__heading p {
    max-width: 920px;
    margin: 0;
    color: var(--text-soft);
    font-size: .9rem;
    line-height: 1.55;
}

/* H2H summary is full width; previous meetings sit directly below it. */
.football-match-history-overview-v618 {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .9rem;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

.football-match-history-overview-v618 > .football-match-history-h2h-card-v618,
.football-match-history-overview-v618 > .football-match-history-meetings-v618 {
    width: 100%;
    max-width: none;
    min-width: 0;
}

.football-match-history-h2h-card-v618,
.football-match-history-block-v618 {
    min-width: 0;
    border: 1px solid var(--ks-history-border);
    border-radius: 18px;
    background: var(--ks-history-card);
    box-shadow: 0 8px 24px rgba(15,23,42,.035);
}

.football-match-history-h2h-card-v618 {
    display: grid;
    align-content: start;
    gap: .8rem;
    padding: 1rem;
}

.football-match-history-h2h-card-v618__label {
    color: var(--ks-history-accent);
    font-size: .68rem;
    font-weight: 950;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.football-match-history-h2h-v618 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(120px, 160px) minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    width: 100%;
    min-width: 0;
}

.football-match-history-h2h-v618__side {
    display: flex;
    align-items: center;
    gap: .8rem;
    min-width: 0;
}

.football-match-history-h2h-v618__side.is-away {
    justify-content: flex-end;
    text-align: right;
}

.football-match-history-h2h-v618__crest {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border: 1px solid var(--ks-history-border);
    border-radius: 16px;
    background: var(--ks-history-soft);
    overflow: hidden;
}

.football-match-history-h2h-v618__crest img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.football-match-history-h2h-v618__crest b {
    font-size: .8rem;
    font-weight: 950;
}

.football-match-history-h2h-v618__copy {
    display: grid;
    min-width: 0;
    line-height: 1;
}

.football-match-history-h2h-v618__copy small {
    max-width: 125px;
    overflow: hidden;
    color: var(--text-soft);
    font-size: .7rem;
    font-weight: 850;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.football-match-history-h2h-v618__copy strong,
.football-match-history-h2h-v618__draws strong {
    margin-top: .22rem;
    color: var(--text);
    font-size: clamp(1.65rem, 2.7vw, 2.35rem);
    font-weight: 950;
    line-height: .95;
}

.football-match-history-h2h-v618__copy em,
.football-match-history-h2h-v618__draws em {
    margin-top: .18rem;
    color: var(--text-soft);
    font-size: .64rem;
    font-style: normal;
    font-weight: 750;
}

.football-match-history-h2h-v618__draws {
    display: grid;
    justify-items: center;
    align-content: center;
    min-height: 82px;
    padding: .45rem;
    border: 1px solid var(--ks-history-border);
    border-radius: 15px;
    background: var(--ks-history-soft);
    text-align: center;
}

.football-match-history-h2h-v618__draws > span {
    color: var(--text-soft);
    font-size: .62rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.football-match-history-h2h-v618__draws strong {
    font-size: 1.7rem;
}

.football-match-history-h2h-card-v618__footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .45rem;
    padding-top: .72rem;
    border-top: 1px solid var(--ks-history-border);
    color: var(--text-soft);
    font-size: .65rem;
    font-weight: 800;
    text-align: center;
}

.football-match-history-h2h-card-v618__footer i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--ks-history-accent);
}

.football-match-history-block-v618 {
    display: grid;
    align-content: start;
    gap: .7rem;
    padding: .82rem;
}

.football-match-history-block-v618__head,
.football-match-history-team-v618__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
    min-width: 0;
}

.football-match-history-block-v618__head > div,
.football-match-history-team-v618__identity > span {
    display: grid;
    gap: .08rem;
    min-width: 0;
}

.football-match-history-block-v618__head small,
.football-match-history-team-v618__identity small {
    color: var(--ks-history-accent);
    font-size: .62rem;
    font-weight: 950;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.football-match-history-block-v618__head h3,
.football-match-history-team-v618__identity strong {
    margin: 0;
    color: var(--text);
    font-size: .96rem;
    font-weight: 950;
    line-height: 1.15;
}

.football-match-history-block-v618__head > span,
.football-match-history-team-v618__identity em {
    color: var(--text-soft);
    font-size: .65rem;
    font-style: normal;
    font-weight: 750;
}


.football-match-history-meetings-v618 {
    width: 100%;
}

.football-match-history-meetings-v618 .football-match-history-schedule-v618.is-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
}

/* Two club form panels side-by-side on desktop. */
.football-match-history-form-grid-v618 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
    min-width: 0;
}

.football-match-history-team-v618__identity {
    display: flex;
    align-items: center;
    gap: .58rem;
    min-width: 0;
}

.football-match-history-team-v618__identity > img,
.football-match-history-team-v618__identity > b {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 1px solid var(--ks-history-border);
    border-radius: 11px;
    background: var(--ks-history-soft);
    object-fit: contain;
    overflow: hidden;
}

.football-match-history-team-v618__record {
    display: flex;
    align-items: center;
    gap: .22rem;
    flex: 0 0 auto;
}

.football-match-history-team-v618__record i,
.football-match-history-result-v618 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 31px;
    min-height: 25px;
    padding: .28rem .42rem;
    border: 1px solid var(--ks-history-border);
    border-radius: 999px;
    font-size: .62rem;
    line-height: 1;
    font-style: normal;
    font-weight: 950;
}

.football-match-history-team-v618__record .is-w,
.football-match-history-result-v618.is-w {
    color: #047857;
    border-color: rgba(16,185,129,.28);
    background: rgba(16,185,129,.10);
}

.football-match-history-team-v618__record .is-d,
.football-match-history-result-v618.is-d {
    color: #805f00;
    border-color: rgba(234,179,8,.32);
    background: rgba(234,179,8,.10);
}

.football-match-history-team-v618__record .is-l,
.football-match-history-result-v618.is-l {
    color: #b42318;
    border-color: rgba(239,68,68,.28);
    background: rgba(239,68,68,.09);
}

/* -------------------------------------------------------------------------
   Compact schedule-family cards used only inside match history.
   ------------------------------------------------------------------------- */
.football-match-history-schedule-v618 {
    display: grid !important;
    gap: .56rem !important;
    min-width: 0;
}

.football-match-history-schedule-v618.is-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.football-match-history-schedule-v618.is-stack {
    grid-template-columns: minmax(0, 1fr);
}

.football-match-history-schedule-v618 .football-schedule-day {
    display: grid !important;
    align-content: start;
    gap: 0 !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--ks-history-border) !important;
    border-radius: 13px !important;
    background: var(--ks-history-card) !important;
    overflow: hidden !important;
    box-shadow: none !important;
}

.football-match-history-schedule-v618 .football-schedule-day > h3 {
    margin: 0 !important;
    padding: .42rem .62rem !important;
    border-bottom: 1px solid var(--ks-history-border);
    background: var(--ks-history-soft);
    color: var(--text-soft) !important;
    font-size: .62rem !important;
    font-weight: 850 !important;
    line-height: 1.15 !important;
}

.football-match-history-schedule-v618 .football-schedule-competition {
    min-width: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

.football-match-history-schedule-v618 .football-schedule-competition__head {
    display: flex !important;
    align-items: center !important;
    min-height: 34px !important;
    padding: .36rem .6rem !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.16) !important;
    border-radius: 0 !important;
    background: #16a3a7 !important;
    color: #fff !important;
}

.football-match-history-schedule-v618 .football-schedule-competition__title {
    display: flex !important;
    align-items: center !important;
    gap: .38rem !important;
    min-width: 0 !important;
    color: #fff !important;
    font-size: .68rem !important;
    font-weight: 900 !important;
}

.football-match-history-schedule-v618 .football-schedule-competition__title img,
.football-match-history-schedule-v618 .football-schedule-competition__title > i {
    width: 21px !important;
    height: 21px !important;
    min-width: 21px !important;
    flex: 0 0 21px !important;
    object-fit: contain !important;
}

.football-match-history-row-v618 {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(72px, 92px) minmax(0, 1fr) !important;
    grid-template-areas:
        "meta meta meta"
        "home middle away"
        "actions actions actions" !important;
    align-items: center !important;
    column-gap: .42rem !important;
    row-gap: .28rem !important;
    min-width: 0 !important;
    min-height: 78px !important;
    margin: 0 !important;
    padding: .48rem .58rem .52rem !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--ks-history-card) !important;
    box-shadow: none !important;
}

.football-match-history-row-v618 .football-schedule-row__meta {
    grid-area: meta !important;
    display: block !important;
    min-width: 0 !important;
    margin: 0 !important;
    color: var(--text-soft) !important;
    font-size: .57rem !important;
    font-weight: 750 !important;
    line-height: 1.1 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.football-match-history-row-v618 .football-schedule-row__team {
    display: flex !important;
    align-items: center !important;
    gap: .32rem !important;
    min-width: 0 !important;
    color: var(--text) !important;
    text-decoration: none !important;
    font-size: .72rem !important;
    font-weight: 900 !important;
    line-height: 1.1 !important;
}

.football-match-history-row-v618 .football-schedule-row__team--home {
    grid-area: home !important;
    justify-content: flex-end !important;
    text-align: right !important;
}

.football-match-history-row-v618 .football-schedule-row__team--away {
    grid-area: away !important;
    justify-content: flex-start !important;
    text-align: left !important;
}

.football-match-history-row-v618 .football-schedule-row__team span {
    display: block !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.football-match-history-row-v618 .football-schedule-row__team img,
.football-match-history-row-v618 .football-schedule-row__team > b {
    display: grid !important;
    place-items: center !important;
    width: 29px !important;
    height: 29px !important;
    min-width: 29px !important;
    flex: 0 0 29px !important;
    margin: 0 !important;
    border-radius: 50% !important;
    object-fit: contain !important;
}

.football-match-history-row-v618 .football-schedule-row__team > b {
    border: 1px solid var(--ks-history-border);
    background: var(--ks-history-soft);
    font-size: .55rem;
}

.football-match-history-row-v618 .football-schedule-row__middle {
    grid-area: middle !important;
    display: grid !important;
    justify-items: center !important;
    gap: .08rem !important;
    min-width: 0 !important;
    color: var(--text) !important;
    text-decoration: none !important;
}

.football-match-history-row-v618 .football-schedule-row__scoreline {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .24rem !important;
    min-width: 62px !important;
    min-height: 29px !important;
    padding: .23rem .45rem !important;
    border: 1px solid var(--ks-history-border) !important;
    border-radius: 999px !important;
    background: var(--ks-history-soft) !important;
    color: var(--text) !important;
    font-size: .78rem !important;
    font-weight: 950 !important;
    line-height: 1 !important;
}

.football-match-history-row-v618 .football-schedule-row__scoreline b,
.football-match-history-row-v618 .football-schedule-row__scoreline span {
    color: inherit !important;
    font: inherit !important;
}

.football-match-history-row-v618 .football-schedule-row__middle em {
    color: var(--text-soft) !important;
    font-size: .55rem !important;
    font-style: normal !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

.football-match-history-row-v618__actions {
    grid-area: actions !important;
    display: flex !important;
    justify-content: center !important;
    min-width: 0 !important;
    margin: .04rem 0 0 !important;
    padding: 0 !important;
}

.football-match-history-result-v618 {
    min-width: 48px;
    min-height: 22px;
    padding: .22rem .48rem;
    font-size: .58rem;
}

.football-match-history-empty-v618 {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-height: 74px;
    padding: .8rem;
    border: 1px dashed var(--ks-history-border);
    border-radius: 13px;
    background: var(--ks-history-soft);
    color: var(--text-soft);
}

.football-match-history-empty-v618 > i {
    color: var(--ks-history-accent);
}

.football-match-history-empty-v618 > div {
    display: grid;
    gap: .1rem;
}

.football-match-history-empty-v618 strong {
    color: var(--text);
}

.football-match-history-empty-v618 span {
    font-size: .72rem;
}

.football-match-history-empty-v618.is-compact {
    justify-content: center;
    text-align: center;
}

/* -------------------------------------------------------------------------
   Dark theme for the new history cards.
   ------------------------------------------------------------------------- */
html[data-theme="dark"] .football-match-history-v618 {
    --ks-history-card:#1c1c1c;
    --ks-history-soft: #111e32;
    --ks-history-border: rgba(148,163,184,.19);
}

html[data-theme="dark"] .football-match-history-v618 .football-match-history-h2h-card-v618,
html[data-theme="dark"] .football-match-history-v618 .football-match-history-block-v618,
html[data-theme="dark"] .football-match-history-v618 .football-schedule-day,
html[data-theme="dark"] .football-match-history-v618 .football-match-history-row-v618 {
    background: var(--ks-history-card) !important;
    border-color: var(--ks-history-border) !important;
}

html[data-theme="dark"] .football-match-history-v618 .football-match-history-h2h-v618__crest,
html[data-theme="dark"] .football-match-history-v618 .football-match-history-h2h-v618__draws,
html[data-theme="dark"] .football-match-history-v618 .football-match-history-team-v618__identity > img,
html[data-theme="dark"] .football-match-history-v618 .football-match-history-team-v618__identity > b,
html[data-theme="dark"] .football-match-history-v618 .football-schedule-day > h3,
html[data-theme="dark"] .football-match-history-v618 .football-schedule-row__scoreline,
html[data-theme="dark"] .football-match-history-v618 .football-match-history-empty-v618 {
    background: var(--ks-history-soft) !important;
    border-color: var(--ks-history-border) !important;
}

html[data-theme="dark"] .football-match-history-v618 .football-match-history-h2h-v618__copy strong,
html[data-theme="dark"] .football-match-history-v618 .football-match-history-h2h-v618__draws strong,
html[data-theme="dark"] .football-match-history-v618 .football-match-history-block-v618__head h3,
html[data-theme="dark"] .football-match-history-v618 .football-match-history-team-v618__identity strong,
html[data-theme="dark"] .football-match-history-v618 .football-schedule-row__team,
html[data-theme="dark"] .football-match-history-v618 .football-schedule-row__scoreline,
html[data-theme="dark"] .football-match-history-v618 .football-match-history-empty-v618 strong {
    color: #f8fafc !important;
}

html[data-theme="dark"] .football-match-history-v618 .football-match-history-h2h-v618__copy small,
html[data-theme="dark"] .football-match-history-v618 .football-match-history-h2h-v618__copy em,
html[data-theme="dark"] .football-match-history-v618 .football-match-history-h2h-v618__draws > span,
html[data-theme="dark"] .football-match-history-v618 .football-match-history-h2h-v618__draws em,
html[data-theme="dark"] .football-match-history-v618 .football-match-history-h2h-card-v618__footer,
html[data-theme="dark"] .football-match-history-v618 .football-match-history-block-v618__head > span,
html[data-theme="dark"] .football-match-history-v618 .football-match-history-team-v618__identity em,
html[data-theme="dark"] .football-match-history-v618 .football-schedule-day > h3,
html[data-theme="dark"] .football-match-history-v618 .football-schedule-row__meta,
html[data-theme="dark"] .football-match-history-v618 .football-schedule-row__middle em,
html[data-theme="dark"] .football-match-history-v618 .football-match-history-empty-v618 {
    color: #9fb0c6 !important;
}

html[data-theme="dark"] .football-match-history-v618 .football-match-history-team-v618__record .is-w,
html[data-theme="dark"] .football-match-history-v618 .football-match-history-result-v618.is-w { color: #86efac; }
html[data-theme="dark"] .football-match-history-v618 .football-match-history-team-v618__record .is-d,
html[data-theme="dark"] .football-match-history-v618 .football-match-history-result-v618.is-d { color: #fde68a; }
html[data-theme="dark"] .football-match-history-v618 .football-match-history-team-v618__record .is-l,
html[data-theme="dark"] .football-match-history-v618 .football-match-history-result-v618.is-l { color: #fca5a5; }

/* -------------------------------------------------------------------------
   Prediction sidebar ad shell: retain v616 dark-mode correction.
   ------------------------------------------------------------------------- */
html[data-theme="dark"] .football-prediction-detail-page .football-sidebar-stack .football-ad-panel,
html[data-theme="dark"] .football-prediction-detail-page .football-ad-panel {
    overflow: hidden !important;
    background:#1c1c1c!important;
    border-color: rgba(94,234,212,.18) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .football-prediction-detail-page .football-ad-panel > .site-kicker {
    color: #2dd4bf !important;
}

html[data-theme="dark"] .football-prediction-detail-page .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,.22) !important;
    border-radius: 16px !important;
    background:#1c1c1c!important;
    color: #dce7f5 !important;
    color-scheme: dark !important;
    box-sizing: border-box !important;
}

html[data-theme="dark"] .football-prediction-detail-page .football-ad-panel .kisure-safe-ad-slot,
html[data-theme="dark"] .football-prediction-detail-page .football-ad-panel .kisure-safe-ad-primary,
html[data-theme="dark"] .football-prediction-detail-page .football-ad-panel .script-ad,
html[data-theme="dark"] .football-prediction-detail-page .football-ad-panel ins.adsbygoogle {
    width: 100% !important;
    max-width: 100% !important;
    background-color:#1c1c1c!important;
    border-radius: 12px !important;
}

html[data-theme="dark"] .football-prediction-detail-page .football-ad-panel [id^="aswift_"][id$="_host"] {
    background-color: transparent !important;
}

html[data-theme="dark"] .football-prediction-detail-page .football-ad-panel ins.adsbygoogle[data-ad-status="unfilled"],
html[data-theme="dark"] .football-prediction-detail-page .football-ad-panel ins.adsbygoogle[data-ad-status="unfill-optimized"],
html[data-theme="dark"] .football-prediction-detail-page .football-ad-panel .football-sidebar-ad-slot:empty {
    min-height: 0 !important;
    background: transparent !important;
}

/* -------------------------------------------------------------------------
   Responsive behaviour.
   ------------------------------------------------------------------------- */
@media (max-width: 1050px) {
    .football-match-history-form-grid-v618 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 820px) {
    .football-match-history-form-grid-v618 {
        grid-template-columns: 1fr;
    }

    .football-match-history-schedule-v618.is-pair {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }
}

@media (max-width: 620px) {
    .football-match-history-v618 {
        gap: .75rem;
    }

    .football-match-history-v618__heading p {
        font-size: .78rem;
    }

    .football-match-history-h2h-card-v618,
    .football-match-history-block-v618 {
        padding: .68rem;
        border-radius: 14px;
    }

    .football-match-history-h2h-v618 {
        grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
        gap: .35rem;
    }

    .football-match-history-h2h-v618__side {
        display: grid;
        justify-items: center;
        justify-content: center;
        gap: .3rem;
        text-align: center;
    }

    .football-match-history-h2h-v618__side.is-away {
        text-align: center;
    }

    .football-match-history-h2h-v618__side.is-away .football-match-history-h2h-v618__crest {
        order: -1;
    }

    .football-match-history-h2h-v618__crest {
        width: 43px;
        height: 43px;
        flex-basis: 43px;
        border-radius: 12px;
    }

    .football-match-history-h2h-v618__crest img {
        width: 35px;
        height: 35px;
    }

    .football-match-history-h2h-v618__copy small {
        max-width: 92px;
        font-size: .6rem;
    }

    .football-match-history-h2h-v618__copy strong,
    .football-match-history-h2h-v618__draws strong {
        font-size: 1.35rem;
    }

    .football-match-history-h2h-v618__draws {
        min-height: 70px;
        padding: .3rem;
    }

    .football-match-history-h2h-v618__draws em {
        font-size: .5rem;
    }

    .football-match-history-h2h-card-v618__footer {
        font-size: .56rem;
    }

    .football-match-history-schedule-v618.is-pair {
        grid-template-columns: 1fr;
    }

    .football-match-history-team-v618__head {
        align-items: flex-start;
    }

    .football-match-history-team-v618__record {
        gap: .12rem;
    }

    .football-match-history-team-v618__record i {
        min-width: 27px;
        min-height: 23px;
        padding: .22rem .3rem;
        font-size: .56rem;
    }

    .football-match-history-row-v618 {
        grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1fr) !important;
        column-gap: .26rem !important;
        padding: .45rem .4rem .5rem !important;
    }

    .football-match-history-row-v618 .football-schedule-row__team {
        gap: .2rem !important;
        font-size: .64rem !important;
    }

    .football-match-history-row-v618 .football-schedule-row__team span {
        white-space: normal !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        line-height: 1.08 !important;
    }

    .football-match-history-row-v618 .football-schedule-row__team img,
    .football-match-history-row-v618 .football-schedule-row__team > b {
        width: 25px !important;
        height: 25px !important;
        min-width: 25px !important;
        flex-basis: 25px !important;
    }

    .football-match-history-row-v618 .football-schedule-row__scoreline {
        min-width: 56px !important;
        min-height: 27px !important;
        font-size: .72rem !important;
    }
}

/* ===== FE942 SOURCE: kisure-v625-header-commentary-fixes.css ===== */
/* Kisure Frontend v625 — exact header fixtures + narrow Match Centre goal cards. */

/* Goal/event identity rows must reserve the remaining width for the person stack.
   The team crest and avatar stay fixed; the scorer name never has to compete with
   an assist badge placed on the far right. */
.football-commentary-person-row > .football-commentary-person {
    flex: 1 1 auto;
    min-width: 0;
}

.football-commentary-person__details {
    display: grid;
    flex: 1 1 auto;
    gap: .08rem;
    min-width: 0;
}

.football-commentary-person__details > strong {
    display: block;
    min-width: 0;
    max-width: 100%;
}

/* v625: assists are part of the scorer's text stack, directly below the scorer
   name/position. This deliberately overrides the old right-aligned sibling rule. */
.football-commentary-person__details > .football-commentary-assist {
    display: block;
    width: auto;
    margin: .08rem 0 0;
    color: var(--text-soft, #5b6b82);
    font-size: .69rem;
    font-weight: 750;
    line-height: 1.25;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

@media (max-width: 760px) {
    .football-commentary-person-row {
        gap: .5rem;
    }

    .football-commentary-person-row > .football-commentary-person {
        width: 0;
        flex: 1 1 0;
    }

    .football-commentary-person__details > strong {
        /* A long scorer may wrap to a second line rather than disappearing behind
           a horizontally competing assist label. */
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        line-height: 1.18;
    }

    .football-commentary-person__details > .football-commentary-assist {
        flex-basis: auto;
        margin-left: 0;
    }
}

/* ===== FE942 SOURCE: kisure-v630-first-load-football-pages.css ===== */
/* Kisure Frontend v630
 * First-load football entity pages + long Match Centre team-name wrapping.
 * Loaded after the legacy redesign CSS so old nowrap/ellipsis rules cannot win.
 */

.article-match-scoreboard--match-page .article-match-scoreboard__team {
    min-width: 0;
    width: 100%;
}

.article-match-scoreboard--match-page .article-match-scoreboard__team strong {
    display: block;
    min-width: 0;
    max-width: 100%;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    overflow-wrap: break-word;
    word-break: normal;
    text-wrap: balance;
    line-height: 1.08;
}

.article-match-scoreboard--match-page .article-match-scoreboard__team--home strong {
    text-align: right;
}

.article-match-scoreboard--match-page .article-match-scoreboard__team--away strong {
    text-align: left;
}

@media (max-width: 991px) {
    .article-match-scoreboard--match-page .article-match-scoreboard__team strong,
    .article-match-scoreboard--match-page .article-match-scoreboard__team--home strong,
    .article-match-scoreboard--match-page .article-match-scoreboard__team--away strong {
        text-align: center;
    }
}

@media (max-width: 520px) {
    .article-match-scoreboard--match-page .article-match-scoreboard__team strong {
        font-size: clamp(.82rem, 3.8vw, 1rem);
        line-height: 1.12;
    }
}

/* ===== FE942 SOURCE: kisure-v632-match-integrity.css ===== */
/* Kisure Frontend v632 — player-profile links + match-flow integrity. */

/* Match event people are real navigation targets. Keep link styling visually
   identical to the existing event card while preserving the v625 assist stack. */
.football-commentary-player-link {
    color: inherit;
    text-decoration: none;
}

.football-commentary-player-link:hover,
.football-commentary-player-link:focus-visible {
    text-decoration: none;
}

.football-commentary-player-name {
    display: block;
    min-width: 0;
    max-width: 100%;
}

.football-commentary-player-name:hover strong,
.football-commentary-player-name:focus-visible strong,
.football-commentary-assist.football-commentary-player-link:hover,
.football-commentary-assist.football-commentary-player-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.football-commentary-person__avatar.football-commentary-player-link:focus-visible,
.football-commentary-player-name:focus-visible,
.football-commentary-assist.football-commentary-player-link:focus-visible {
    outline: 2px solid var(--brand, #008d86);
    outline-offset: 2px;
    border-radius: 8px;
}

/* A penalty shootout is not part of the pressure timeline. Older CSS supported
   a PEN badge after the AET axis; v632 deliberately suppresses it even if stale
   markup survives in a browser cache during rollout. */
.football-momentum-axis > em,
.football-momentum-axis.has-penalties > em {
    display: none !important;
}

/* ===== FE942 SOURCE: kisure-v672-fixture-country-competition.css ===== */
/* Kisure Frontend v672
 * Unified fixture competition identity:
 * country flag + country name + league name + retained league mark.
 * Real API-Sports SVG flags render consistently on Windows/Chrome.
 */

.football-competition-identity {
    align-items: center;
    display: inline-flex;
    flex: 1 1 auto;
    gap: .42rem;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
    white-space: normal;
}

.football-competition-identity__flag {
    align-items: center;
    background: rgba(255, 255, 255, .98);
    border: 1px solid rgba(255, 255, 255, .68);
    border-radius: 5px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .10);
    display: inline-flex;
    flex: 0 0 32px;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 18px;
    height: 22px;
    justify-content: center;
    line-height: 1;
    overflow: hidden;
    width: 32px;
}

.football-competition-identity__copy {
    align-items: baseline;
    display: flex;
    flex: 1 1 auto;
    gap: .34rem;
    min-width: 0;
    overflow: hidden;
}

.football-competition-identity__country {
    color: var(--primary-strong, #087f7c);
    flex: 0 0 auto;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .055em;
    line-height: 1.1;
    text-transform: uppercase;
    white-space: nowrap;
}

.football-competition-identity__separator {
    color: currentColor;
    flex: 0 0 auto;
    font-size: .7rem;
    opacity: .48;
}

.football-competition-identity__league {
    color: inherit;
    display: block;
    font-size: .9rem;
    font-weight: 850;
    line-height: 1.18;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.football-competition-identity__mark {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
    margin-left: .08rem;
}

.football-competition-identity__mark img,
.football-schedule-competition__title .football-competition-identity__mark img {
    background: rgba(255, 255, 255, .96) !important;
    border: 1px solid rgba(15, 133, 131, .10) !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
    height: 25px !important;
    object-fit: contain !important;
    padding: .15rem !important;
    width: 25px !important;
}

/* Existing schedule headers on /football, /football/fixtures, club, stadium,
 * referee, Sports Desk and Match Centre history all use this class. */
.football-schedule-competition__title {
    flex: 1 1 auto;
    max-width: 100%;
    min-width: 0;
}

.football-schedule-competition__title > .football-competition-identity {
    display: inline-flex;
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

/* Compact scoredeck / homepage fixture cards. */
.ks-match__head--country-league {
    min-width: 0;
}

.ks-match__head--country-league > .football-competition-identity {
    color: inherit;
    flex: 1 1 auto;
    min-width: 0;
}

.football-home-board--v550 .ks-match__head--country-league {
    display: grid !important;
    gap: 2px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    height: 64px !important;
    padding-bottom: 6px !important;
    padding-top: 6px !important;
}

.football-home-board--v550 .ks-match__head--country-league .football-competition-identity {
    color: #edf6f5 !important;
    gap: 7px !important;
}

.football-home-board--v550 .ks-match__head--country-league .football-competition-identity__flag {
    background: rgba(255, 255, 255, .96) !important;
    border-color: rgba(255, 255, 255, .7) !important;
    flex-basis: 30px !important;
    height: 30px !important;
    width: 30px !important;
}

.football-home-board--v550 .ks-match__head--country-league .football-competition-identity__country {
    color: rgba(237, 246, 245, .82) !important;
    font-size: 10px !important;
}

.football-home-board--v550 .ks-match__head--country-league .football-competition-identity__league {
    color: #fff !important;
    font-size: 13.5px !important;
}

.football-home-board--v550 .ks-match__head--country-league .football-competition-identity__separator {
    color: rgba(237, 246, 245, .72) !important;
}

.football-home-board--v550 .ks-match__head--country-league .football-competition-identity__mark img {
    height: 23px !important;
    width: 23px !important;
}

.football-home-board--v550 .ks-match__head--country-league .ks-match__round {
    margin: 0 0 0 37px !important;
    transform: none !important;
}

/* Generic match-card headers used outside the grouped schedule. */
.football-match-card__league--country {
    flex: 1 1 auto;
    max-width: min(76%, 620px);
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

.football-match-card__league--country > .football-competition-identity {
    color: inherit;
    min-width: 0;
}

.football-match-card__league--country .football-competition-identity__country {
    font-size: .66rem;
}

.football-match-card__league--country .football-competition-identity__league {
    font-size: .78rem;
}

html[data-theme="dark"] .football-competition-identity__flag,
html[data-theme="dark"] .football-competition-identity__mark img {
    background: rgba(255, 255, 255, .94) !important;
}

@media (max-width: 640px) {
    .football-competition-identity {
        gap: .34rem;
    }

    .football-competition-identity__flag {
        font-size: 16px;
    }

    .football-competition-identity__copy {
        align-items: flex-start;
        display: grid;
        gap: 1px;
        grid-template-columns: minmax(0, 1fr);
    }

    .football-competition-identity__separator {
        display: none;
    }

    .football-competition-identity__country {
        font-size: .62rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .football-competition-identity__league {
        font-size: .8rem;
    }

    .football-schedule-competition__head {
        min-height: 56px;
    }

    .football-home-board--v550 .ks-match__head--country-league {
        height: 66px !important;
    }

    .football-home-board--v550 .ks-match__head--country-league .football-competition-identity__copy {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .football-home-board--v550 .ks-match__head--country-league .ks-match__round {
        margin-left: 37px !important;
    }

    .football-match-card__league--country {
        max-width: 72%;
    }
}

/* Prediction fixture cards that expose league context use the same identity. */
.football-prediction-match-card__league > .football-competition-identity {
    max-width: 100%;
    min-width: 0;
}

.football-prediction-match-card__league .football-competition-identity__mark img {
    height: 24px !important;
    margin: 0 !important;
    width: 24px !important;
}


/* v671: grouped fixture bars are teal, so the country/league copy must remain
 * explicitly visible while retaining the existing league logo. */
.football-schedule-competition__head .football-competition-identity__country,
.football-schedule-competition__head .football-competition-identity__league,
.football-schedule-competition__head .football-competition-identity__separator {
    color: #fff !important;
}

.football-schedule-competition__head .football-competition-identity__country {
    opacity: .82;
}

.football-header-panel__competition-identity,
.football-header-mobile-panel__competition-identity {
    display: block;
    min-width: 0;
}

.football-header-panel__competition-identity .football-competition-identity,
.football-header-mobile-panel__competition-identity .football-competition-identity {
    width: 100%;
}

.football-header-panel__competition-identity .football-competition-identity__country,
.football-header-mobile-panel__competition-identity .football-competition-identity__country {
    color: currentColor;
    opacity: .72;
}

.football-schedule-competition__head .football-competition-identity__country {
    font-size: .82rem;
    letter-spacing: 0;
    text-transform: none;
}

/* v672: API-Sports SVG flags. Windows does not reliably render regional
 * indicator emoji, so the image is the visual source of truth. */
.football-competition-identity__flag-image {
    border-radius: 3px;
    display: block;
    height: 18px;
    max-width: 28px;
    object-fit: cover;
    width: 28px;
}

@media (max-width: 640px) {
    .football-competition-identity__flag {
        flex-basis: 29px;
        height: 20px;
        width: 29px;
    }

    .football-competition-identity__flag-image {
        height: 16px;
        max-width: 25px;
        width: 25px;
    }
}

/* ===== FE942 SOURCE: kisure-v673-home-scoredeck-logo-only.css ===== */
/* Kisure v673 — homepage scoredeck keeps only the competition logo in each card header. */
.football-home-board--scoredeck .ks-match__head--logo-only {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .55rem;
}
.football-home-board--scoredeck .ks-match__league-logo-only {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
}
.football-home-board--scoredeck .ks-match__league-logo-only img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}
.football-home-board--scoredeck .ks-match__league-logo-only > i {
    font-size: 16px;
}
