/* Kisure Sports v676 — league overview ownership layer.
   Loaded only on football.league routes. v516/v517 are deliberately not loaded
   on these routes anymore, removing their duplicate league layout rules. */

.football-league-page {
    --league-accent: #0b8f8a;
    --league-accent-2: #136f8a;
    --league-accent-soft: rgba(11, 143, 138, .10);
    --league-border: rgba(20, 48, 70, .12);
    --league-surface: #ffffff;
    --league-surface-soft: #f6f9fb;
    --league-text: #102033;
    --league-muted: #657386;
    display: grid;
    gap: 18px;
}

.football-league-theme--italy {
    --league-accent: #008C45;
    --league-accent-2: #CD212A;
    --league-accent-soft: rgba(0, 140, 69, .10);
}

.football-league-theme--england { --league-accent: #382c73; --league-accent-2: #d20a33; --league-accent-soft: rgba(56, 44, 115, .10); }
.football-league-theme--spain { --league-accent: #aa151b; --league-accent-2: #f1bf00; --league-accent-soft: rgba(170, 21, 27, .09); }
.football-league-theme--germany { --league-accent: #161616; --league-accent-2: #dd0000; --league-accent-soft: rgba(221, 0, 0, .07); }
.football-league-theme--france { --league-accent: #0055a4; --league-accent-2: #ef4135; --league-accent-soft: rgba(0, 85, 164, .09); }
.football-league-theme--kenya { --league-accent: #078930; --league-accent-2: #bb0000; --league-accent-soft: rgba(7, 137, 48, .09); }
.football-league-theme--europe { --league-accent: #143a8c; --league-accent-2: #f0b90b; --league-accent-soft: rgba(20, 58, 140, .09); }

.football-league-page .football-league-hero {
    position: relative;
    overflow: hidden;
    min-height: 180px;
    padding: 26px 28px;
    border: 1px solid var(--league-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(18, 45, 70, .08);
}

.football-league-page .football-league-hero::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 7px;
    background: var(--league-accent-2);
}

.football-league-page .football-standings-hero__title {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 20px;
}

.football-league-page .football-standings-hero__title > img {
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    object-fit: contain;
    padding: 10px;
    border: 1px solid color-mix(in srgb, var(--league-accent) 20%, white);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(18, 45, 70, .10);
}

.football-league-page .football-league-hero h1 {
    margin: 4px 0 5px;
    color: var(--league-text);
    font-size: clamp(1.75rem, 3vw, 2.65rem);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.football-league-page .football-league-hero p {
    margin: 0;
    color: var(--league-muted);
    font-size: .98rem;
}

.football-league-page .football-league-hero .site-kicker {
    color: var(--league-accent);
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.football-league-hero__country {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 5px 9px;
    border: 1px solid color-mix(in srgb, var(--league-accent) 22%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--league-accent) 8%, white);
    color: var(--league-text);
    font-size: .76rem;
    font-weight: 800;
}

.football-league-hero__country img {
    width: 24px;
    height: 16px;
    border-radius: 3px;
    object-fit: cover;
}

.football-league-page .football-league-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.football-league-page .football-league-hero__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border: 1px solid var(--league-border);
    border-radius: 9px;
    background: rgba(255, 255, 255, .72);
    color: #506072;
    font-size: .76rem;
    font-weight: 750;
}

.football-league-pulse {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
}

.football-league-pulse article {
    min-width: 0;
    padding: 15px 16px 14px;
    border: 1px solid var(--league-border);
    border-radius: 16px;
    background: var(--league-surface);
    box-shadow: 0 7px 22px rgba(18, 45, 70, .045);
}

.football-league-pulse article::before {
    content: "";
    display: block;
    width: 36px;
    height: 3px;
    margin-bottom: 11px;
    border-radius: 99px;
    background: var(--league-accent-2);
}

.football-league-pulse span,
.football-league-pulse small {
    display: block;
    overflow: hidden;
    color: var(--league-muted);
    font-size: .72rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.football-league-pulse span i { color: var(--league-accent); margin-right: 4px; }
.football-league-pulse strong {
    display: block;
    overflow: hidden;
    margin: 4px 0 3px;
    color: var(--league-text);
    font-size: .92rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.football-league-page .football-league-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 7px;
    border: 1px solid var(--league-border);
    border-radius: 15px;
    background: var(--league-surface);
    scrollbar-width: thin;
}

.football-league-page .football-league-tabs a {
    flex: 0 0 auto;
    padding: 9px 13px;
    border-radius: 10px;
    color: #536274;
    font-size: .82rem;
    font-weight: 800;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.football-league-page .football-league-tabs a:hover {
    background: var(--league-accent-soft);
    color: var(--league-accent);
}

.football-league-page .football-league-tabs a.is-active {
    background: color-mix(in srgb, var(--league-accent) 76%, var(--league-accent-2));
    color: #fff;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--league-accent) 22%, transparent);
}

.football-league-page .football-league-briefs {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.football-league-page .football-league-brief {
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--league-border);
    border-radius: 18px;
    background: var(--league-surface);
    box-shadow: 0 9px 28px rgba(18, 45, 70, .055);
}

.football-league-page .football-league-brief::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--card-accent, var(--league-accent));
}

.football-league-page .football-league-brief--standings { grid-column: span 6; --card-accent: var(--league-accent); }
.football-league-page .football-league-brief--fixtures { grid-column: span 3; --card-accent: #1687b8; }
.football-league-page .football-league-brief--results { grid-column: span 3; --card-accent: var(--league-accent-2); }
.football-league-page .football-league-brief--players { grid-column: span 6; --card-accent: #b78315; }
.football-league-page .football-league-brief--news { grid-column: span 6; --card-accent: #7053b6; }

.football-league-page .football-league-brief__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 52px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(20, 48, 70, .08);
}

.football-league-page .football-league-brief__head > span {
    color: var(--league-text);
    font-size: .88rem;
    font-weight: 900;
}

.football-league-page .football-league-brief__head > span i {
    width: 18px;
    color: var(--card-accent, var(--league-accent));
}

.football-league-page .football-league-brief__head > a {
    color: var(--card-accent, var(--league-accent));
    font-size: .72rem;
    font-weight: 850;
    text-decoration: none;
}

.football-league-page .football-brief-list,
.football-league-page .football-group-standings-preview {
    padding: 7px 11px 12px;
}

.football-league-page .football-brief-list > a,
.football-league-page .football-brief-list__row,
.football-league-page .football-brief-list--players > a {
    border-radius: 10px;
}

.football-league-page .football-brief-list > a:hover,
.football-league-page .football-brief-list__row:hover,
.football-league-page .football-brief-list--players > a:hover {
    background: color-mix(in srgb, var(--card-accent, var(--league-accent)) 7%, white);
}

.football-league-page .football-muted {
    margin: 0;
    padding: 14px;
    color: var(--league-muted);
    line-height: 1.5;
}

.football-league-page .football-muted a { color: var(--league-accent); font-weight: 800; }

/* Italy gets a restrained tricolore cue rather than flooding the page in flag colors. */
.football-league-theme--italy .football-league-hero::after {
    content: "";
    position: absolute;
    right: 22px;
    bottom: 0;
    width: 126px;
    height: 6px;
    border-radius: 8px 8px 0 0;
    background: #CD212A;
    box-shadow: 0 -1px 0 rgba(0, 0, 0, .05);
}

html[data-theme="dark"] .football-league-page {
    --league-border: rgba(255, 255, 255, .09);
    --league-surface: #0e1822;
    --league-surface-soft: #111f2b;
    --league-text: #f4f8fb;
    --league-muted: #a8b5c2;
}

html[data-theme="dark"] .football-league-page .football-league-hero {
    background:#1c1c1c;
    border-color: var(--league-border);
}

html[data-theme="dark"] .football-league-page .football-standings-hero__title > img {
    background: #fff;
    border-color: rgba(255, 255, 255, .16);
}

html[data-theme="dark"] .football-league-page .football-league-hero__country,
html[data-theme="dark"] .football-league-page .football-league-hero__meta span {
    background: rgba(255, 255, 255, .045);
    border-color: rgba(255, 255, 255, .10);
    color: #dce7ef;
}

html[data-theme="dark"] .football-league-page .football-league-tabs,
html[data-theme="dark"] .football-league-pulse article,
html[data-theme="dark"] .football-league-page .football-league-brief {
    background: var(--league-surface);
    border-color: var(--league-border);
    box-shadow: none;
}

html[data-theme="dark"] .football-league-page .football-league-tabs a { color: #b9c5d0; }
html[data-theme="dark"] .football-league-page .football-league-tabs a:hover { color: #fff; }
html[data-theme="dark"] .football-league-page .football-brief-list > a:hover,
html[data-theme="dark"] .football-league-page .football-brief-list__row:hover,
html[data-theme="dark"] .football-league-page .football-brief-list--players > a:hover {
    background: rgba(255, 255, 255, .045);
}

@media (max-width: 1050px) {
    .football-league-pulse { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .football-league-page .football-league-brief--standings { grid-column: span 12; }
    .football-league-page .football-league-brief--fixtures,
    .football-league-page .football-league-brief--results { grid-column: span 6; }
}

@media (max-width: 720px) {
    .football-league-page { gap: 13px; }
    .football-league-page .football-league-hero { padding: 20px 17px 18px; border-radius: 18px; }
    .football-league-page .football-standings-hero__title { align-items: flex-start; gap: 13px; }
    .football-league-page .football-standings-hero__title > img { width: 58px; height: 58px; flex-basis: 58px; border-radius: 15px; padding: 7px; }
    .football-league-page .football-league-hero h1 { font-size: 1.65rem; }
    .football-league-page .football-league-hero p { font-size: .87rem; }
    .football-league-page .football-league-hero__meta { gap: 5px; }
    .football-league-pulse { grid-template-columns: 1fr 1fr; gap: 8px; }
    .football-league-pulse article { padding: 12px; border-radius: 13px; }
    .football-league-pulse strong { font-size: .82rem; }
    .football-league-page .football-league-tabs { margin-inline: -1px; border-radius: 13px; }
    .football-league-page .football-league-briefs { display: grid; grid-template-columns: 1fr; gap: 10px; }
    .football-league-page .football-league-brief--standings,
    .football-league-page .football-league-brief--fixtures,
    .football-league-page .football-league-brief--results,
    .football-league-page .football-league-brief--players,
    .football-league-page .football-league-brief--news { grid-column: auto; }
    .football-league-theme--italy .football-league-hero::after { right: 14px; width: 96px; }
}

@media (max-width: 430px) {
    .football-league-pulse { grid-template-columns: 1fr; }
    .football-league-pulse article { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
    .football-league-pulse article::before { grid-row: 1 / span 3; width: 3px; height: 34px; margin: 0; }
    .football-league-pulse article > * { min-width: 0; }
}
