.favorite-league-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:24px 0}.favorite-league-card{display:flex;flex-direction:column;padding:24px;border:1px solid #dce3f0;border-radius:16px;background:linear-gradient(135deg,#fff,#f5f8ff);text-decoration:none;color:#0a1535;min-width:0;transition:border-color .15s,box-shadow .15s}.favorite-league-card:hover{border-color:#4c7cff;box-shadow:0 4px 18px #1647a312}.favorite-league-card__region{display:flex;align-items:center;gap:10px;font-size:13px;color:#405779}.favorite-league-card__region .ui-icon{width:22px;height:22px}.favorite-league-card h2{font-size:23px;line-height:1.25;margin:18px 0 8px}.favorite-league-card p{font-size:13px;color:#405779;margin:0 0 22px}.favorite-league-card__link{display:flex;justify-content:space-between;margin-top:auto;color:#0645ff;font-size:14px;font-weight:800}.league-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:26px;background:linear-gradient(115deg,#fbfcff,#eff5ff);border:1px solid #dce3f0;border-radius:16px;margin:22px 0}.league-heading .eyebrow{display:flex;align-items:center;gap:10px;color:#405779;margin:0}.league-heading h1{font-size:clamp(28px,3vw,42px);line-height:1.12;margin:14px 0}.league-heading p{margin:0;color:#405779}.league-heading>a{font-size:14px;font-weight:800;white-space:nowrap}.league-section-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin:26px 0 12px}.league-section-heading h2{font-size:27px;margin:0}.league-section-heading form{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.league-section-heading select,.league-section-heading button{font:inherit;font-size:13px;min-height:36px;padding:7px 14px;border:1px solid #dce3f0;border-radius:8px;background:#fff;color:#14264a}.league-section-heading button{background:#0645ff;color:#fff;border-color:#0645ff;font-weight:800}.league-section-heading label{font-size:13px;color:#405779}.league-table-updated,.league-table-source{font-size:12px;color:#405779;line-height:1.6}.league-table-source{margin:18px 0 0}.standing-group{margin:20px 0}.standing-group h3{font-size:19px;margin:0 0 12px}.standing-scroll{overflow-x:auto;max-width:100%;border:1px solid #dce3f0;border-radius:14px;background:#fff}.standing-scroll:focus-visible{outline:3px solid #759aff;outline-offset:3px}.football-standing-table{width:100%;border-collapse:collapse;font-size:14px;white-space:nowrap}.football-standing-table th,.football-standing-table td{padding:12px;text-align:center;border-bottom:1px solid #e7edf6}.football-standing-table thead th{background:#f0f5ff;color:#405779;font-size:12px}.football-standing-table th:nth-child(2){text-align:left;min-width:200px}.football-standing-table tbody th{text-align:left;font-weight:750}.football-standing-table tbody th>span{display:flex;align-items:center;gap:12px}.football-standing-table img{object-fit:contain;width:26px;height:26px;flex-shrink:0}.football-standing-table tbody tr:nth-child(even){background:#fafcff}.football-standing-table tbody tr:hover{background:#edf3ff}.football-standing-table tbody tr:last-child>*{border-bottom:0}.football-standing-table td:last-child{color:#0645ff}.football-standing-table abbr{text-decoration:none}.standing-team-placeholder{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#eaf1ff;color:#2c4e88;font-size:13px}.league-matches{margin-top:32px}.league-empty{padding:24px;color:#405779;border:1px solid #dce3f0;border-radius:14px}.league-overview{margin-top:28px}.nav-dropdown--countries{max-height:min(70vh,560px);overflow-y:auto}
@media(max-width:1000px){.favorite-league-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.favorite-league-grid{grid-template-columns:1fr;gap:12px}.favorite-league-card{padding:20px}.favorite-league-card h2{font-size:22px}.league-heading{padding:20px;align-items:flex-start;flex-direction:column;gap:16px}.league-heading h1{font-size:29px}.league-section-heading h2{font-size:24px}.football-standing-table{font-size:12px}.football-standing-table th,.football-standing-table td{padding:10px 8px}.football-standing-table th:nth-child(2){min-width:165px}.football-standing-table tbody th>span{gap:8px}.football-standing-table img{width:22px;height:22px}.league-table-updated,.league-table-source{font-size:11px}.football-league .event-card{min-width:0}}

/* A league is a match feed beside a compact, independently refreshed table. */
.league-content-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:24px;align-items:start}.league-main{min-width:0}.league-main .league-matches{margin-top:0}.league-main .league-section-heading{margin-top:0}.league-table-panel{min-width:0;position:sticky;top:24px;max-height:calc(100vh - 48px);overflow-y:auto;scrollbar-gutter:stable;padding:18px;border:1px solid #dce3f0;border-radius:16px;background:#fff;box-shadow:0 2px 5px #152c5305}.league-table-panel .league-section-heading{margin:0 0 10px;gap:10px}.league-table-panel h2{font-size:20px;line-height:1.25}.league-table-panel form{gap:6px;max-width:100%}.league-table-panel select{max-width:150px;min-width:0}.league-table-season{font-size:12px;color:#405779}.league-table-panel .standing-group{margin:16px 0}.league-table-panel .standing-group h3{font-size:14px}.league-table-panel .standing-scroll{border-radius:10px}.league-compact-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px;color:#172849}.league-compact-table th,.league-compact-table td{padding:9px 4px;border-bottom:1px solid #e7edf6;text-align:center;font-variant-numeric:tabular-nums}.league-compact-table thead{background:#f0f5ff;color:#405779;font-size:11px}.league-compact-table th:first-child{width:24px}.league-compact-table th:nth-child(2){width:40%;text-align:left}.league-compact-table tbody th>span{display:flex;align-items:center;gap:7px;min-width:0;line-height:1.35;text-align:left}.league-compact-table tbody th>span>span{min-width:0;overflow-wrap:anywhere}.league-compact-table img{object-fit:contain;flex:0 0 22px}.league-compact-table tr:nth-child(even){background:#fafcff}.league-compact-table tbody tr:last-child>*{border-bottom:0}.league-compact-table td:last-child{color:#0645ff}.league-compact-table abbr{text-decoration:none}.league-table-panel .league-table-updated{margin:0;font-size:11px}.league-table-delayed{display:block;color:#8a5a00}.league-table-panel .league-table-source{font-size:11px}.league-table-panel .league-empty{padding:14px;font-size:13px}.nav-dropdown--countries a{white-space:normal}
@media(min-width:1100px){.league-main .event-card{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.league-main .event-card__footer{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;border-top:1px solid #e7edf6;border-left:0;margin-top:8px;padding-top:10px}.league-main .event-card__footer p{max-width:45%;margin:0}.league-main .event-card__footer .analysis-link{margin-left:auto;max-width:100%;white-space:normal}.league-main .event-card__header h3{font-size:14px}}
@media(min-width:1100px) and (max-width:1450px){.league-table-panel .standing-detail{display:none}.league-compact-table th:nth-child(2){width:49%}.league-table-panel{padding:14px}.league-table-panel h2{font-size:18px}}
@media(max-width:1099px){.league-content-grid{grid-template-columns:minmax(0,1fr);gap:24px}.league-table-panel{position:static;max-height:none;overflow:visible}.league-compact-table{font-size:14px}.league-compact-table th:nth-child(2){width:42%}}
@media(max-width:600px){.league-table-panel{padding:14px}.league-compact-table{font-size:12px}.league-compact-table .standing-detail{display:none}.league-compact-table th:nth-child(2){width:52%}.league-table-panel h2{font-size:20px}}
.team-heading__identity{display:flex;align-items:center;gap:24px;min-width:0}.team-heading__identity>img{object-fit:contain;flex:0 0 88px}.team-heading__identity h1{overflow-wrap:anywhere}.team-heading__identity a{font-weight:750}.team-section{margin:0 0 30px;scroll-margin-top:20px}.team-section .league-section-heading h2{font-size:24px;overflow-wrap:anywhere}.team-news-grid{display:grid;gap:14px;grid-template-columns:repeat(2,minmax(0,1fr))}.team-news-grid>a{text-decoration:none;color:inherit;margin:0}.team-news-grid time{font-size:12px;color:#405779}.team-news-grid h3{font-size:19px;margin:10px 0}.team-news-grid a>span{color:#0645ff;font-weight:750}.team-pagination{display:flex;justify-content:center;align-items:center;gap:18px;margin:18px 0}.team-pagination a{padding:8px}.league-content-grid--single{grid-template-columns:minmax(0,1fr)}.match-scoreboard .match-team-link{display:flex;flex-direction:column;align-items:center;gap:14px;text-decoration:none;color:inherit;min-width:0}.match-team-link:hover strong,.event-card__teams a:hover{color:#0645ff}.event-card__header .event-card__teams{display:grid;gap:6px}.event-card__header .event-card__teams>a{display:flex;align-items:center;gap:10px}.competition-label a{color:inherit;text-decoration:none}.competition-label a:hover{text-decoration:underline}.league-compact-table .standing-team-link{display:flex;align-items:center;gap:7px;min-width:0;color:inherit;text-decoration:none}.standing-team-link>span{overflow-wrap:anywhere}.standing-team-link:hover{color:#0645ff}.league-compact-table tr.is-current-team{background:#eaf1ff;box-shadow:inset 3px 0 #0645ff}
@media(max-width:600px){.team-heading__identity{gap:16px}.team-heading__identity>img{width:64px;height:64px;flex-basis:64px}.team-news-grid{grid-template-columns:1fr}.team-section .league-section-heading h2{font-size:21px}}
.team-news-grid>.league-empty{grid-column:1/-1}.event-card__header h3.event-card__teams>a{min-width:0;justify-content:flex-start}.event-card__header h3.event-card__teams>a>span{justify-content:flex-start;min-width:0}
@media(max-width:600px){.event-card__header h3.event-card__teams{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.event-card__header h3.event-card__teams>a:last-child,.event-card__header h3.event-card__teams>a:last-child>span{justify-content:flex-end}}

/* Stretch the existing match link while keeping team, league and scenario links above it. */
.event-card { position: relative; isolation: isolate; }
.event-card__match-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.event-card a:not(.event-card__match-link) { position: relative; z-index: 2; }
.event-card:has(.event-card__match-link:focus-visible) { outline: 2px solid #0645ff; }

.event-card__header h3.event-card__teams > a {
  width: fit-content;
  max-width: 100%;
  justify-self: start;
}
@media (max-width: 600px) {
  .event-card__header h3.event-card__teams > a:last-child { justify-self: end; }
}

.team-results { display: grid; gap: 6px; }
.team-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto;
  align-items: center;
  gap: .85rem;
  padding: .7rem .85rem;
  border: 1px solid #dce3ef;
  border-radius: .65rem;
  background: #fff;
  color: #131820;
  text-decoration: none;
}
.team-result:hover,
.team-result:focus-visible { border-color: #0645ff; }
.team-result__meta,
.team-result__teams { display: grid; gap: .2rem; overflow-wrap: anywhere; }
.team-result__meta { color: #405779; font-size: .8rem; }
.team-result__teams { color: #131820; font-weight: 400; }
.team-result__side {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: .55rem;
  min-width: 0;
}
.team-result__side strong { font-weight: 750; }
.team-result__crest { width: 26px; height: 26px; object-fit: contain; }
.team-result__crest--placeholder {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef2f8;
  color: #405779;
  font-size: .75rem;
  font-weight: 600;
}
.team-result__score { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 540px) {
  .team-result { grid-template-columns: minmax(0, 1fr) auto; gap: .4rem .65rem; }
  .team-result__meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .2rem .65rem; }
}
