/* Kisure v523 — one-line live/results + upcoming homepage match rail */
.football-home-board--v523{
    --ks-accent:#0d9488;
    --ks-accent-dark:#0f766e;
    --ks-bg:#f6fafd;
    --ks-card:#ffffff;
    --ks-ink:#0b1a2f;
    --ks-text:#132b44;
    --ks-muted:#5a7d9a;
    --ks-line:#e5eef8;
    --ks-line-strong:#d6e1ed;
    --ks-soft:#eaf1fa;
    width:100%;
    margin:28px 0;
    padding:18px 18px 8px;
    border:1px solid #edf3f8!important;
    border-radius:18px!important;
    background:var(--ks-bg)!important;
    box-shadow:none!important;
    color:var(--ks-text);
}
.football-home-board--v523::before,
.football-home-board--v523::after{display:none!important}

.football-home-board--v523 .football-home-board__compact-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:16px;
}
.football-home-board--v523 .football-home-board__compact-head h2{
    margin:0;
    color:var(--ks-ink)!important;
    font-size:1.22rem!important;
    font-weight:750!important;
    line-height:1.2;
    letter-spacing:-.02em;
}
.football-home-board--v523 .football-home-board__compact-head h2 span{
    color:var(--ks-muted)!important;
    font-weight:450!important;
}
.football-home-board--v523 .football-home-board__all-link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-height:35px;
    padding:8px 18px;
    border:1px solid var(--ks-line-strong);
    border-radius:999px;
    background:#fff;
    color:var(--ks-accent-dark)!important;
    font-size:.76rem!important;
    font-weight:700!important;
    text-decoration:none!important;
    white-space:nowrap;
    transition:background .18s ease,border-color .18s ease,color .18s ease;
}
.football-home-board--v523 .football-home-board__all-link:hover{
    border-color:var(--ks-accent);
    background:#f0fdfa;
}

.football-home-board--v523 .football-home-board__cards-row{
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:stretch;
    gap:18px!important;
    width:100%;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding:4px 2px 14px!important;
    scroll-snap-type:x proximity;
    scrollbar-width:thin;
    scrollbar-color:#c5d7ea #f0f6fe;
    -webkit-overflow-scrolling:touch;
    cursor:grab;
}
.football-home-board--v523 .football-home-board__cards-row:active{cursor:grabbing}
.football-home-board--v523 .football-home-board__cards-row::-webkit-scrollbar{height:5px}
.football-home-board--v523 .football-home-board__cards-row::-webkit-scrollbar-track{background:#f0f6fe;border-radius:20px}
.football-home-board--v523 .football-home-board__cards-row::-webkit-scrollbar-thumb{background:#c5d7ea;border-radius:20px}

/* Reference width is 240px; v523 intentionally adds exactly 2%. */
.football-home-board--v523 .football-fixture-tile--v523{
    flex:0 0 calc(240px * 1.02)!important;
    width:calc(240px * 1.02)!important;
    min-width:calc(240px * 1.02)!important;
    max-width:calc(240px * 1.02)!important;
    min-height:222px!important;
    padding:18px 16px 16px!important;
    display:flex!important;
    flex-direction:column!important;
    border:1px solid var(--ks-line)!important;
    border-radius:18px!important;
    background:var(--ks-card)!important;
    box-shadow:0 4px 12px rgba(0,0,0,.02)!important;
    overflow:hidden;
    scroll-snap-align:start;
    transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.football-home-board--v523 .football-fixture-tile--v523:hover{
    transform:translateY(-3px);
    border-color:#c5d7ea!important;
    box-shadow:0 8px 20px rgba(0,0,0,.04)!important;
}
.football-home-board--v523 .football-fixture-tile--v523:active{transform:scale(.98)}

.football-home-board--v523 .football-fixture-tile__statusbar{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:10px;
    min-height:25px;
    margin:0 0 14px!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
}
.football-home-board--v523 .football-fixture-tile__badge{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    max-width:112px;
    overflow:hidden;
    padding:3px 10px!important;
    border:0!important;
    border-radius:999px!important;
    font-size:.61rem!important;
    font-weight:800!important;
    line-height:1!important;
    letter-spacing:.035em;
    text-overflow:ellipsis;
    text-transform:uppercase;
    white-space:nowrap;
}
.football-home-board--v523 .football-fixture-tile__badge--live{background:#d93c3c!important;color:#fff!important}
.football-home-board--v523 .football-fixture-tile__badge--result{background:#ecfdf5!important;color:#047857!important}
.football-home-board--v523 .football-fixture-tile__badge--scheduled{background:var(--ks-soft)!important;color:#2b5f8a!important}
.football-home-board--v523 .football-fixture-tile__time{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    max-width:100px;
    overflow:hidden;
    padding:3px 11px!important;
    border-radius:999px!important;
    background:var(--ks-soft)!important;
    color:var(--ks-accent-dark)!important;
    font-size:.72rem!important;
    font-weight:750!important;
    line-height:1!important;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.football-home-board--v523 .football-fixture-tile__body{
    display:block!important;
    flex:0 0 auto!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    color:inherit!important;
    text-decoration:none!important;
}
.football-home-board--v523 .football-fixture-tile__match-row{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:12px;
    min-height:41px;
    padding:6px 0!important;
    border-bottom:1px solid #f0f6fe!important;
}
.football-home-board--v523 .football-fixture-tile__match-row:last-child{border-bottom:0!important}
.football-home-board--v523 .football-fixture-tile__team{
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
    min-width:0;
}
.football-home-board--v523 .football-fixture-tile__team-avatar{
    display:flex!important;
    flex:0 0 28px;
    width:28px!important;
    height:28px!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:hidden;
    border-radius:10px!important;
    background:#e9f0f8!important;
    color:#1b3a5c!important;
    font-size:.58rem!important;
    font-weight:800!important;
    line-height:1;
    text-transform:uppercase;
}
.football-home-board--v523 .football-fixture-tile__team-avatar img{
    width:24px!important;
    height:24px!important;
    object-fit:contain!important;
}
.football-home-board--v523 .football-fixture-tile__team>strong{
    overflow:hidden;
    color:var(--ks-text)!important;
    font-size:.78rem!important;
    font-weight:650!important;
    line-height:1.2;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.football-home-board--v523 .football-fixture-tile__score{
    flex:0 0 auto;
    color:var(--ks-ink)!important;
    font-size:1.15rem!important;
    font-weight:850!important;
    line-height:1;
    font-variant-numeric:tabular-nums;
}
.football-home-board--v523 .football-fixture-tile__score--vs{color:#8ba3bb!important;font-size:.78rem!important;font-weight:750!important}
.football-home-board--v523 .football-fixture-tile__score--dash{color:#8ba3bb!important;font-size:1rem!important}

.football-home-board--v523 .football-fixture-tile__league{
    display:block!important;
    overflow:hidden;
    margin-top:12px!important;
    padding-top:10px!important;
    border-top:1px solid #eef4fa!important;
    background:transparent!important;
    color:var(--ks-muted)!important;
    font-size:.61rem!important;
    font-weight:750!important;
    line-height:1.15;
    letter-spacing:.035em;
    text-decoration:none!important;
    text-overflow:ellipsis;
    text-transform:uppercase;
    white-space:nowrap;
}
.football-home-board--v523 .football-fixture-tile__league:hover{color:var(--ks-accent-dark)!important}
.football-home-board--v523 .football-fixture-tile__prediction{
    display:flex!important;
    width:100%!important;
    min-height:31px!important;
    align-items:center!important;
    justify-content:center!important;
    gap:6px!important;
    margin-top:14px!important;
    padding:7px 10px!important;
    border:1px solid var(--ks-line-strong)!important;
    border-radius:999px!important;
    background:transparent!important;
    color:var(--ks-accent-dark)!important;
    font-size:.68rem!important;
    font-weight:700!important;
    line-height:1!important;
    text-align:center;
    text-decoration:none!important;
    white-space:nowrap;
    transition:background .18s ease,border-color .18s ease,color .18s ease;
}
.football-home-board--v523 .football-fixture-tile__prediction:hover{
    border-color:var(--ks-accent)!important;
    background:var(--ks-accent)!important;
    color:#fff!important;
}
.football-home-board--v523 .football-fixture-tile__prediction.football-schedule-row__prediction--won{border-color:#bbf7d0!important;color:#15803d!important}
.football-home-board--v523 .football-fixture-tile__prediction.football-schedule-row__prediction--lost{border-color:#fecaca!important;color:#dc2626!important}
.football-home-board--v523 .football-fixture-tile__prediction.football-schedule-row__prediction--settled{border-color:#e2e8f0!important;color:#64748b!important}

.football-home-board--v523 .football-home-board__rail-divider{
    display:flex;
    flex:0 0 34px;
    align-items:center;
    justify-content:center;
    scroll-snap-align:center;
}
.football-home-board--v523 .football-home-board__rail-divider span{
    display:inline-flex;
    align-items:center;
    gap:4px;
    padding:5px 9px;
    border-radius:999px;
    background:#eaf2fc;
    color:#2b5f8a;
    font-size:.59rem;
    font-weight:700;
    white-space:nowrap;
    transform:rotate(-90deg);
}

html[data-theme="dark"] .football-home-board--v523{
    --ks-bg:#0b1220;
    --ks-card:#0f172a;
    --ks-ink:#f8fafc;
    --ks-text:#e2e8f0;
    --ks-muted:#94a3b8;
    --ks-line:#263544;
    --ks-line-strong:#334155;
    --ks-soft:#1e293b;
    border-color:#1e293b!important;
}
html[data-theme="dark"] .football-home-board--v523 .football-home-board__all-link{background:#0f172a;border-color:#334155}
html[data-theme="dark"] .football-home-board--v523 .football-fixture-tile__match-row{border-bottom-color:#1e293b!important}
html[data-theme="dark"] .football-home-board--v523 .football-fixture-tile__league{border-top-color:#1e293b!important}
html[data-theme="dark"] .football-home-board--v523 .football-fixture-tile__team-avatar{background:#1e293b!important;color:#cbd5e1!important}
html[data-theme="dark"] .football-home-board--v523 .football-fixture-tile__badge--result{background:rgba(16,185,129,.12)!important;color:#6ee7b7!important}
html[data-theme="dark"] .football-home-board--v523 .football-fixture-tile__prediction:hover{background:#0d9488!important;color:#fff!important}

@media(max-width:700px){
    .football-home-board--v523{margin:22px 0;padding:15px 14px 6px;border-radius:15px!important}
    .football-home-board--v523 .football-home-board__compact-head{align-items:flex-start;margin-bottom:13px}
    .football-home-board--v523 .football-home-board__compact-head h2{font-size:1.02rem!important}
    .football-home-board--v523 .football-home-board__compact-head h2 span{display:block;margin-top:2px;font-size:.78rem}
    .football-home-board--v523 .football-home-board__all-link{min-height:32px;padding:7px 12px;font-size:.68rem!important}
    .football-home-board--v523 .football-home-board__cards-row{gap:14px!important;margin-right:-10px;padding-right:10px!important}
    .football-home-board--v523 .football-fixture-tile--v523{
        flex-basis:calc(200px * 1.02)!important;
        width:calc(200px * 1.02)!important;
        min-width:calc(200px * 1.02)!important;
        max-width:calc(200px * 1.02)!important;
        min-height:207px!important;
        padding:14px 12px!important;
    }
    .football-home-board--v523 .football-fixture-tile__team>strong{font-size:.72rem!important}
    .football-home-board--v523 .football-fixture-tile__score{font-size:1rem!important}
}

@media(max-width:480px){
    .football-home-board--v523 .football-fixture-tile--v523{
        flex-basis:calc(170px * 1.02)!important;
        width:calc(170px * 1.02)!important;
        min-width:calc(170px * 1.02)!important;
        max-width:calc(170px * 1.02)!important;
        min-height:195px!important;
        padding:12px 10px!important;
    }
    .football-home-board--v523 .football-fixture-tile__team-avatar{flex-basis:24px;width:24px!important;height:24px!important;font-size:.5rem!important}
    .football-home-board--v523 .football-fixture-tile__team-avatar img{width:21px!important;height:21px!important}
    .football-home-board--v523 .football-fixture-tile__team>strong{font-size:.64rem!important}
    .football-home-board--v523 .football-fixture-tile__score{font-size:.9rem!important}
    .football-home-board--v523 .football-fixture-tile__badge{font-size:.5rem!important;padding:3px 7px!important}
    .football-home-board--v523 .football-fixture-tile__time{font-size:.58rem!important;padding:3px 7px!important}
    .football-home-board--v523 .football-fixture-tile__league{font-size:.54rem!important}
    .football-home-board--v523 .football-fixture-tile__prediction{font-size:.58rem!important;padding:6px 8px!important}
    .football-home-board--v523 .football-home-board__rail-divider{flex-basis:26px}
    .football-home-board--v523 .football-home-board__rail-divider span{font-size:.5rem;padding:4px 6px}
}
