/* Kisure v519: non-destructive tournament UI, compact score centre, watch page sizing. */

/* League overview: keep the overview balanced. Knockout remains on its dedicated tab. */
.football-league-page--overview .football-league-briefs{
    display:grid;
    grid-template-columns:repeat(12,minmax(0,1fr));
    gap:16px;
    align-items:stretch;
}
.football-league-page--overview .football-league-brief{min-width:0;height:100%}
.football-league-page--overview .football-league-brief--standings,
.football-league-page--overview .football-league-brief--fixtures,
.football-league-page--overview .football-league-brief--results{grid-column:span 4}
.football-league-page--overview .football-league-brief--players,
.football-league-page--overview .football-league-brief--news{grid-column:span 6}

/* Homepage match centre inspired by a compact live-score rail, using Kisure teal. */
.football-home-board--score-centre{
    overflow:hidden;
    border:1px solid color-mix(in srgb,var(--primary,#0b8f87) 18%,var(--border,#dfe6ea));
    border-radius:22px;
    background:linear-gradient(180deg,color-mix(in srgb,var(--surface,#fff) 98%,var(--primary,#0b8f87) 2%),var(--surface,#fff));
    box-shadow:0 18px 48px rgba(15,35,60,.07);
}
.football-home-board--score-centre .football-home-board__head{
    padding:22px 24px 18px;
    border-bottom:1px solid var(--border,#e5eaee);
}
.football-home-board--score-centre .football-home-board__copy h2{margin:.15rem 0 .28rem;font-size:clamp(1.45rem,2.4vw,2rem)}
.football-home-board--score-centre .football-home-board__copy p{max-width:720px;color:var(--muted,#66758b)}
.football-home-board__section{padding:0 14px 16px}
.football-home-board__section + .football-home-board__section{border-top:1px solid var(--border,#e5eaee);padding-top:14px}
.football-home-board__section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 8px 11px}
.football-home-board__section-head>div{display:flex;align-items:center;gap:9px;min-width:0}
.football-home-board__section-head i{color:var(--primary,#0b8f87)}
.football-home-board__section-head h3{margin:0;font-size:1rem;line-height:1.2}
.football-home-board__section-head a,.football-home-board__section-count{font-size:.74rem;font-weight:800;color:var(--primary,#0b8f87);text-decoration:none}
.football-home-board--score-centre .football-fixture-strip--scroll{
    display:grid!important;
    grid-auto-flow:column;
    grid-auto-columns:minmax(252px,1fr)!important;
    gap:12px!important;
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    scroll-snap-type:x proximity;
    padding:0 1px 4px;
    scrollbar-width:thin;
}
.football-home-board--score-centre .football-fixture-tile{
    scroll-snap-align:start;
    display:flex!important;
    flex-direction:column;
    min-width:252px!important;
    min-height:174px!important;
    overflow:hidden;
    border:1px solid color-mix(in srgb,var(--primary,#0b8f87) 12%,var(--border,#dfe6ea))!important;
    border-radius:15px!important;
    background:color-mix(in srgb,var(--surface,#fff) 98%,var(--primary,#0b8f87) 2%)!important;
    box-shadow:none!important;
}
.football-home-board--score-centre .football-fixture-tile__statusbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px 3px;font-size:.72rem;font-weight:850}
.football-fixture-tile__live-pill,.football-fixture-tile__result-pill,.football-fixture-tile__date-pill{display:inline-flex;align-items:center;min-height:22px;padding:3px 8px;border-radius:999px;font-size:.64rem;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
.football-fixture-tile__live-pill{background:#e11d2e;color:#fff}
.football-fixture-tile__result-pill{background:color-mix(in srgb,var(--primary,#0b8f87) 14%,transparent);color:var(--primary,#0b8f87)}
.football-fixture-tile__date-pill{background:color-mix(in srgb,var(--primary,#0b8f87) 9%,transparent);color:var(--primary,#0b8f87)}
.football-home-board--score-centre .football-fixture-tile__statusbar>strong{color:var(--primary,#0b8f87);font-size:.72rem}
.football-home-board--score-centre .football-fixture-tile__body{position:relative;display:block!important;padding:8px 12px 10px!important;min-height:86px!important;text-decoration:none}
.football-home-board--score-centre .football-fixture-tile__teams{display:grid!important;gap:7px!important}
.football-home-board--score-centre .football-fixture-tile__teams>span{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;min-width:0}
.football-fixture-tile__team-identity{display:flex;align-items:center;gap:9px;min-width:0}
.football-home-board--score-centre .football-fixture-tile__team-identity img{width:30px!important;height:30px!important;object-fit:contain;flex:0 0 30px}
.football-home-board--score-centre .football-fixture-tile__team-identity strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.82rem!important;color:var(--text,#111827)}
.football-home-board--score-centre .football-fixture-tile__teams>span>b{font-size:1.24rem;line-height:1;color:var(--text,#111827)}
.football-fixture-tile__versus{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:.72rem;font-weight:950;color:var(--muted,#6b7280)}
.football-home-board--score-centre .football-fixture-tile__league{margin-top:auto!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px;padding:9px 12px!important;border-top:1px solid var(--border,#e5eaee)!important;background:color-mix(in srgb,var(--surface,#fff) 94%,var(--primary,#0b8f87) 6%)!important;text-decoration:none}
.football-home-board--score-centre .football-fixture-tile__league-title{display:flex;align-items:center;gap:7px;min-width:0}
.football-home-board--score-centre .football-fixture-tile__league-title img{width:18px!important;height:18px!important;object-fit:contain}
.football-home-board--score-centre .football-fixture-tile__league-title>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.7rem!important;font-weight:800!important}
.football-home-board--score-centre .football-fixture-tile__league small{max-width:42%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.62rem!important;color:var(--muted,#66758b)}
.football-home-board--score-centre .football-fixture-tile__actions{display:none!important}
.football-home-board--score-centre .football-home-board__bottom{margin:0;padding:13px 22px 17px;border-top:1px solid var(--border,#e5eaee)}

/* Dedicated watch pages: keep the complete 16:9 player visible without fullscreen. */
.video-watch-card{overflow:visible}
.video-watch-player{
    width:min(100%,960px,110svh)!important;
    max-width:960px;
    margin:0 auto;
    aspect-ratio:16/9!important;
    overflow:hidden;
    border-radius:18px;
    background:#05080d;
}
.video-watch-player iframe,.video-watch-player video{display:block;width:100%!important;height:100%!important;max-width:100%;object-fit:contain;border:0}
.video-watch-header{max-width:960px;margin:0 auto;padding:22px 0 18px!important}
.video-watch-footer{max-width:960px;margin:0 auto}

/* Match scorer / assist / discipline links. */
.article-match-scoreboard__player-link{color:inherit;text-decoration:none;border-bottom:1px dotted color-mix(in srgb,var(--primary,#0b8f87) 48%,transparent)}
.article-match-scoreboard__player-link:hover,.article-match-scoreboard__player-link:focus-visible{color:var(--primary,#0b8f87);border-bottom-style:solid}
.football-event-person-link{color:inherit;text-decoration:none;font-weight:800}
.football-event-person-link:hover,.football-event-person-link:focus-visible{color:var(--primary,#0b8f87);text-decoration:underline;text-underline-offset:2px}

/* Article pages route playback to the dedicated watch page instead of creating a second watch page. */
.article-inline-watch-cta{display:flex;justify-content:center;margin:1.4rem 0}
.article-video-watch-cta{display:flex;align-items:center;gap:12px;flex-wrap:wrap}

html[data-theme="dark"] .football-home-board--score-centre,
html[data-theme="dark"] .football-home-board--score-centre .football-fixture-tile{background:#0d1721!important;border-color:rgba(78,218,198,.14)!important}
html[data-theme="dark"] .football-home-board--score-centre .football-fixture-tile__team-identity strong,
html[data-theme="dark"] .football-home-board--score-centre .football-fixture-tile__teams>span>b{color:#f7fafc}
html[data-theme="dark"] .football-home-board--score-centre .football-fixture-tile__league{background:#111e2a!important;border-color:rgba(255,255,255,.08)!important}
html[data-theme="dark"] .football-home-board__section + .football-home-board__section,
html[data-theme="dark"] .football-home-board--score-centre .football-home-board__head,
html[data-theme="dark"] .football-home-board--score-centre .football-home-board__bottom{border-color:rgba(255,255,255,.08)}

@media(max-width:1000px){
    .football-league-page--overview .football-league-brief--standings,
    .football-league-page--overview .football-league-brief--fixtures,
    .football-league-page--overview .football-league-brief--results{grid-column:span 6}
    .football-league-page--overview .football-league-brief--players,
    .football-league-page--overview .football-league-brief--news{grid-column:span 6}
}
@media(max-width:720px){
    .football-league-page--overview .football-league-brief{grid-column:1/-1!important}
    .football-home-board--score-centre{border-radius:17px}
    .football-home-board--score-centre .football-home-board__head{padding:17px 15px 14px}
    .football-home-board__section{padding-inline:10px}
    .football-home-board--score-centre .football-fixture-strip--scroll{grid-auto-columns:minmax(238px,84vw)!important}
    .football-home-board--score-centre .football-fixture-tile{min-width:238px!important}
    .football-home-board__section-head{padding-inline:4px}
    .video-watch-page{padding-inline:0}
    .video-watch-card{border-radius:0}
    .video-watch-player{width:100%!important;max-height:none;border-radius:0}
    .video-watch-header,.video-watch-footer{padding-inline:16px!important}
}
