/* Scoped league layouts. Tables remain tables on narrow screens. */
.l244,.l244-index{--l244-line:var(--v234-line,#dbe5ee);--l244-soft:var(--v234-panel,#f4f8fb);min-width:0}
.l244 h1{font-size:clamp(20px,3vw,28px);margin-bottom:18px}.l244 h2{font-size:21px;margin-top:22px}
.l244-nav{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0 20px}.l244-nav a{padding:10px 13px;border-radius:10px;text-decoration:none;border:1px solid var(--l244-line);font-weight:600}.l244-nav .on{background:#087f83;color:#fff;border-color:#087f83}
.l244-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin:16px 0}.l244-filters label{display:flex;flex:1 1 150px;flex-direction:column;gap:5px;min-width:0;font-size:13px}.l244-filters select,.l244-filters input{box-sizing:border-box;max-width:100%;width:100%;min-height:42px;border:1px solid var(--l244-line);border-radius:9px;padding:9px;background:var(--v234-panel,#fff);color:inherit}.l244-filters button{min-height:42px}
.l244-note{font-size:13px;line-height:1.55;color:var(--v234-muted,#627588)}.l244-empty{padding:20px;border:1px dashed var(--l244-line);border-radius:12px;line-height:1.6}
.l244 table,.l244-index table{width:100%!important;min-width:0!important;table-layout:fixed;border-collapse:collapse;background:var(--v234-panel,#fff);font-size:14px}
.l244 th,.l244 td,.l244-index th,.l244-index td{padding:11px 6px;border-bottom:1px solid var(--l244-line);text-align:center;vertical-align:middle;word-break:normal;overflow-wrap:anywhere}.l244 thead th,.l244-index th{font-size:12px;color:var(--v234-muted,#587084);background:var(--l244-soft);font-weight:600}
.l244 td a{text-decoration:none;color:inherit}.l244 td a:hover{color:#07848a}.l244 td .inline-line{display:flex;flex-wrap:nowrap;gap:6px;align-items:center}.l244 img{width:21px;height:21px;object-fit:contain;flex-shrink:0}
.l244-standings th:first-child{width:25px}.l244-standings th:nth-child(2){width:35%;text-align:left}.l244-standings td:nth-child(2){text-align:left}.l244-standings th:nth-last-child(3){width:55px}.l244-standings th:last-child{width:30px}.l244-standings tr:nth-child(even):not(.l244-detail){background:color-mix(in srgb,var(--l244-soft) 40%,transparent)}
.l244-expand{width:30px;height:34px;border:1px solid var(--l244-line);border-radius:8px;background:transparent;color:inherit;cursor:pointer;font-size:18px}.l244-detail td{padding:13px;text-align:left;background:var(--l244-soft);font-size:13px;line-height:1.8}.l244 [hidden]{display:none!important}
.l244-round{display:flex;justify-content:space-between;flex-wrap:wrap;gap:4px;padding:12px 0 8px;border-bottom:2px solid var(--l244-line);font-size:14px;margin:22px 0 0}.l244-round small{font-size:12px;font-weight:400}
.l244-fixture{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:13px 4px;border-bottom:1px solid var(--l244-line);text-decoration:none;color:inherit}.l244-fixture:hover{background:var(--l244-soft)}.l244-teams{display:grid;gap:7px;min-width:0;font-weight:600}.l244-teams>span{display:flex;gap:7px;align-items:center;min-width:0;overflow-wrap:anywhere}.l244-score{font-size:17px;font-weight:700;white-space:nowrap;text-align:right;flex:0 0 auto}.l244-score small{display:block;font-size:11px;font-weight:400;color:var(--v234-muted,#627588)}
.l244-pagination{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:18px 0}.l244-match-head{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;margin:24px 0}.l244-match-head>span{text-align:center;overflow-wrap:anywhere}.l244-match-head strong{font-size:28px;white-space:nowrap}.l244-stats th{width:52%;font-weight:400;font-size:13px}.l244-stats td{width:24%;font-weight:700}.l244-stats small{font-weight:400;display:block;color:var(--v234-muted,#627588)}
.l244-leaders th:nth-child(1){width:25px}.l244-leaders th:nth-child(2){width:60%;text-align:left}.l244-leaders td:nth-child(2){text-align:left}.l244-leaders small{display:block;color:var(--v234-muted,#627588);font-size:12px;padding-top:4px}.l244-sr{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
@media(max-width:767px){
 .l244,.l244-index{padding:14px!important}.l244 h2{font-size:18px}.l244-nav a{padding:10px;font-size:13px}.l244 th,.l244 td{padding:10px 3px;font-size:12px}.l244 thead th{font-size:11px}
 .l244-standings .l244-wide{display:none}.l244-standings th:nth-child(2){width:auto}.l244-standings th:nth-child(3){width:25px}.l244-standings th:nth-last-child(2){width:29px}.l244-standings th:nth-last-child(3){width:48px}.l244-standings th:last-child{width:30px}.l244-standings th:first-child{width:20px}.l244-standings td:nth-child(2){font-size:13px}.l244-standings td:nth-child(2) .inline-line{line-height:1.3}
 .l244-standings td:nth-child(2) a{display:block}.l244-detail td{font-size:12px;padding:12px}.l244-filters{gap:8px}.l244-filters label{flex-basis:120px}.l244-match-head{gap:7px;font-size:14px}.l244-match-head strong{font-size:23px}
 .l244-index table{font-size:11px}.l244-index td,.l244-index th{padding:9px 3px}.l244-index th:first-child{width:42%}.l244-index :is(th,td):nth-child(3),.l244-index :is(th,td):nth-child(4),.l244-index :is(th,td):nth-child(7){display:none}.l244-index .inline-line{font-size:12px;display:flex;gap:5px;flex-wrap:nowrap;line-height:1.35}.l244-index .inline-line img{width:19px;height:19px}.l244-index .league-score{padding:0!important;background:transparent!important;border:0!important}
}
.l244 .inline-line>span{min-width:0;white-space:normal;overflow-wrap:anywhere}.l244 .inline-line{max-width:100%;min-width:0}.l244-standings td:nth-child(2){overflow-wrap:anywhere;white-space:normal}
@media(max-width:767px){
 html body main .l244 table :is(th,td){padding:10px 3px!important;font-size:12px!important}
 html body main .l244 table.l244-standings th:last-child{width:34px}
 html body main .l244 .l244-expand{width:28px;min-width:0;height:40px;padding:0}
 html body main .l244 table.l244-standings td:nth-child(2){font-size:13px!important}
 html body main .l244-index table :is(th,td){padding:9px 3px!important;font-size:11px!important}
}
@media(min-width:768px){html body main .l244 table :is(th,td){padding:11px 6px!important}html body main .l244 table.l244-standings th:last-child{width:44px}}
.l244-more{margin:-8px 0 18px;font-size:13px}.l244-more summary{cursor:pointer;color:var(--v234-muted,#587084);padding:8px 0}.l244-more .l244-nav{margin:5px 0}.l244-filters select{font-size:14px}
@media(min-width:768px){.l244-filters label{max-width:320px}}
.l244-zone-qualification td:first-child,.l244-zone-promotion td:first-child{box-shadow:inset 3px 0 #149b80}.l244-zone-relegation td:first-child{box-shadow:inset 3px 0 #dc5263}.l244-zone-playoff td:first-child{box-shadow:inset 3px 0 #d9a12b}
html[data-theme="dark"] :is(.l244,.l244-index){--v234-panel:#152334;--v234-muted:#b6c6d8;--l244-line:#33485f;--l244-soft:#1d3044;background:#152334!important;color:#e6eef7}
html[data-theme="dark"] :is(.l244,.l244-index) table{background:#152334!important;color:#e6eef7}html[data-theme="dark"] :is(.l244,.l244-index) :is(th,td){background:transparent;color:inherit}html[data-theme="dark"] :is(.l244,.l244-index) thead th{background:#1d3044;color:#c6d5e6}
/* Stable two-digit ranks and readable historical match numbers. */
html body main .l244 .l244-leaders th:first-child{width:42px}
html body main .l244 .l244-leaders td:first-child{white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}
html body main .l244 .l244-leaders td:nth-child(2){font-size:14px!important}
html body main .l244 .l244-stats th,html body main .l244 .l244-stats td{font-size:14px!important}
.l244-loading{padding:12px 14px;border:1px solid var(--l244-line);border-radius:10px;line-height:1.5;font-size:13px;background:var(--l244-soft)}
@media(max-width:767px){html body main .l244 .l244-leaders th:first-child{width:32px}html body main .l244 .l244-leaders td:nth-child(2){font-size:13px!important}html body main .l244 .l244-stats :is(th,td){font-size:12px!important}}
/* One heading per round, dates at the left of every compact match row. */
.l246-round-group{margin:18px 0 24px}.l246-round-group .l244-round{margin:0;padding:12px 12px;background:var(--l244-soft);border-radius:9px 9px 0 0;font-size:15px}
.l244 .l246-fixture{display:grid;grid-template-columns:68px minmax(0,1fr) auto;gap:16px;padding:13px 12px;min-height:70px;box-sizing:border-box}.l246-date{display:flex;flex-direction:column;gap:5px;font-style:normal;color:var(--v234-muted,#627588);font-size:13px;white-space:nowrap}.l246-date b{color:var(--v234-text,inherit);font-size:14px}.l246-date small{font-size:12px}.l246-fixture .l244-teams{gap:6px;font-weight:500}.l246-fixture .l244-score{font-variant-numeric:tabular-nums}.l246-embedded{padding:0!important;border:0;background:transparent}.l246-embedded>h2:first-child{margin-top:8px}
.l246-player{display:flex;align-items:center;gap:10px;min-width:0}.l246-player>span:last-child{min-width:0}.l244 .l246-portrait{width:38px;height:42px;flex:0 0 38px;border-radius:9px;display:block;overflow:hidden;background:var(--l244-soft);text-align:center}.l244 .l246-portrait img{width:38px;height:42px;object-fit:cover;object-position:50% 20%;display:block}.l246-placeholder svg{width:30px;height:38px;fill:#a9bbca}.l246-photo-failed:after{content:'●';color:#a9bbca;display:block;font-size:27px;line-height:42px}
.l246-days,.l246-xg-controls{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin:14px 0}.l246-days .mode-chip{padding:9px 11px}.l246-xg-controls>span{font-size:13px;color:var(--v234-muted,#627588);margin:0 4px}.l246-xg-controls .on,.l246-days .on{background:#087f83;color:#fff;border-color:#087f83}
.l244 .l244-xg th:first-child{width:46%;text-align:left}.l244 .l244-xg td:first-child{text-align:left}.l244-xg small{display:block;font-size:11px;font-weight:400;color:var(--v234-muted,#627588);margin-top:5px}.l244-xg .l246-positive{color:#16825f}.l244-xg .l246-negative{color:#c24d5b}
.l246-league-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:10px}.l246-league-choice{padding:16px;border:1px solid var(--l244-line);border-radius:10px;text-decoration:none;font-weight:600}.l246-league-choice:hover{background:var(--l244-soft)}
.l244 .l244-leaders :is(th,td):nth-child(3),.l244 .l244-leaders :is(th,td):nth-child(4){white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}
html body main .l244 table.l244-leaders th:nth-child(3){width:44px!important}html body main .l244 table.l244-leaders th:nth-child(4){width:24px!important}html body main .l244 table.l244-leaders th:nth-child(2){width:auto!important}.l244 abbr{text-decoration:none}
.l244 .l246-focus td{background:color-mix(in srgb,#07848a 10%,var(--v234-panel,#fff))!important;font-weight:700}.l246-tournament-sub a{white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}
@media(max-width:767px){html body main .vg-match219 .l246-tournament-sub{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}.l246-tournament-sub a{font-size:12px!important;padding:11px 6px!important}.l244 .l244-leaders th{font-size:11px!important}}
.l246-extra{border:1px solid var(--l244-line);border-radius:10px;padding:13px;margin:16px 0}.l246-extra summary{cursor:pointer;font-weight:600;line-height:1.4}.l246-extra>details{margin-top:14px}.l246-pitch,.l246-chart{display:block;width:100%;height:auto;max-height:360px;margin:12px auto}.l246-chart text{font-size:7px;fill:var(--v234-muted,#627588)}.l244 .l246-shots th:nth-child(1){width:36px}.l244 .l246-shots th:nth-child(4){width:52px}.l244 .l246-extra small{display:block;font-size:11px;font-weight:400;color:var(--v234-muted,#627588)}
@media(max-width:767px){.l244 .l246-fixture{grid-template-columns:43px minmax(0,1fr) auto;gap:8px;padding:11px 3px;min-height:66px}.l246-date b{font-size:12px}.l246-date small{font-size:10px}.l246-fixture .l244-teams{font-size:13px;line-height:1.25}.l246-fixture .l244-score{font-size:15px}.l246-fixture .l244-score small{max-width:76px;white-space:normal;font-size:10px;margin-top:4px}.l246-round-group .l244-round{font-size:14px;padding:11px 8px}.l244 .l246-portrait{width:30px;height:36px;flex-basis:30px}.l244 .l246-portrait img{width:30px;height:36px}.l246-player{gap:7px}.l244 .l244-leaders th:nth-child(2){width:auto}.l244 .l244-leaders th:nth-child(3){width:37px}.l244 .l244-leaders th:nth-child(4){width:23px}.l244 .l244-xg th:first-child{width:43%}.l244 .l244-xg .inline-line{font-size:12px}.l244-xg small{font-size:10px}.l246-days{gap:5px}.l246-days .mode-chip{font-size:12px;padding:9px}}
/* 247: numeric columns never split; native xG retains its own layout. */
html body main .l244 table.l244-standings :is(th,td):not(:nth-child(2)){white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;font-variant-numeric:tabular-nums}
html body main .l244 table.l244-standings th:first-child{width:34px!important}
html body main .l244 table.l244-standings th:nth-last-child(3){width:64px!important}
html body main .l244 table.l244-standings th:last-child{width:40px!important}
html body main .l244 .l247-team,html body main .l247-xg .l247-team{display:inline-flex!important;align-items:center!important;gap:8px!important;vertical-align:middle;max-width:100%;min-width:0;text-align:left}
html body main .l244 .l247-team img,html body main .l247-xg .l247-team img{display:block!important;width:22px!important;height:22px!important;object-fit:contain!important;flex:none!important;margin:0!important}
html body main .l244 .l247-team>span:last-child{min-width:0;line-height:1.35}
html body main .l244 :is(.l244-leaders,.l244-standings) td{font-size:14px!important;line-height:1.45}
html body main .l244 .l246-player{display:flex!important;align-items:center!important;gap:10px!important}
.l247-provider-photo{position:relative;background:var(--l244-soft,#edf2f6)}
.l247-provider-photo .l247-photo-placeholder{position:absolute;inset:0;width:100%;height:100%;fill:#9aafc1}
.l247-provider-photo img{position:relative;z-index:1}.l247-photo-ready .l247-photo-placeholder{visibility:hidden}
html body main .l247-provider-photo.l246-photo-failed:after{content:none}
html body main .l247-xg{min-width:0;max-width:100%;font-size:14px;line-height:1.5;text-align:left}
html body main .l247-xg .xg-table-wrap{width:100%;max-width:100%;min-width:0;overflow:auto!important;overscroll-behavior-x:contain}
html body main .l247-xg table.xg-table{display:table!important;min-width:1120px!important;width:100%!important;table-layout:auto!important;border-collapse:separate!important;border-spacing:0!important}
html body main .l247-xg table.xg-table tr{display:table-row!important}
html body main .l247-xg table.xg-table :is(th,td){display:table-cell!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;font-size:13px!important;padding:11px 9px!important;border-bottom:1px solid var(--l244-line,#dbe5ee);vertical-align:middle!important;text-align:center}
html body main .l247-xg table.xg-table :is(th,td):nth-child(2){text-align:left;min-width:155px}
html body main .l247-xg table.xg-table td:before{display:none!important}
html body main .l247-xg table.xg-table td .xg-badge{display:inline-block!important;font-size:12px!important;font-weight:600;white-space:nowrap;padding:4px 7px;border-radius:6px}
.l247-xg .xg-toolbar{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}.l247-xg .xg-toolbar>div{display:flex;align-items:center;flex-wrap:wrap;gap:5px}.l247-xg .xg-toolbar a{padding:7px 10px;line-height:1.4}.l247-xg .xg-explain{line-height:1.65;margin:14px 0;color:var(--v234-muted,#627588);font-size:13px}
html body main .l247-xg .xg-badge.good{color:#087648!important;background:#e3f5ec!important}html body main .l247-xg .xg-badge.bad{color:#ac303e!important;background:#fbe9ed!important}html body main .l247-xg .xg-badge.neutral{color:#526274!important;background:#eaf0f5!important}
html body main .l247-xg .xg-focus-row td{background:color-mix(in srgb,#07848a 9%,var(--v234-panel,#fff))!important}
html[data-theme="dark"] body main .l247-xg :is(.xg-table-wrap,.xg-match-card){background:#152334!important;color:#e6eef7!important;border-color:#33485f!important}
html[data-theme="dark"] body main .l247-xg table.xg-table :is(th,td){background:#152334;color:#e6eef7;border-color:#33485f}html[data-theme="dark"] body main .l247-xg table.xg-table th{background:#1d3044}
@media(max-width:767px){html body main .l244 :is(.l244-leaders,.l244-standings) td{font-size:13px!important}html body main .l244 table.l244-standings th:first-child{width:26px!important}html body main .l244 table.l244-standings th:nth-last-child(3){width:54px!important}html body main .l244 table.l244-standings th:last-child{width:30px!important}.l247-xg .grid2{display:grid;grid-template-columns:minmax(0,1fr)}.l247-xg .xg-match-card{min-width:0;max-width:100%}}
.l244>h1{display:flex;align-items:center;gap:9px}.l244>h1 .inline-line{display:inline-flex;align-items:center;gap:9px;min-width:0}
.l246-league-choice{display:flex;align-items:center;gap:8px;line-height:1.4}.l246-league-choice .inline-line{display:inline-flex;align-items:center;gap:8px;min-width:0}
html[data-theme="dark"] body main .vg-match219 .l246-tournament-sub a{background:#1d3044!important;border-color:#33485f!important;color:#d8e7f4!important}html[data-theme="dark"] body main .vg-match219 .l246-tournament-sub a.on{background:#087f83!important;color:#fff!important}

/* 248: fixed comparison columns and stable primary/change baselines. */
html body main .l244 table.l244-stats{table-layout:fixed!important}
html body main .l244 table.l244-stats td{width:24%!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;font-variant-numeric:tabular-nums}
html body main .l244 table.l244-stats th{width:52%!important}
html body main .vg220-dynamics table{table-layout:fixed!important;width:100%!important}
html body main .vg220-dynamics table td{width:24%!important;vertical-align:middle!important;text-align:center!important;font-variant-numeric:tabular-nums;white-space:nowrap!important}
html body main .vg220-dynamics table th{vertical-align:middle!important}html body main .vg220-dynamics table tr>th:nth-child(2){width:52%!important;text-align:center!important}html body main .vg220-dynamics table th[colspan]{width:auto!important;text-align:left!important}
html body main .vg220-dynamics table td>b{display:block!important;min-height:22px;line-height:22px!important;font-size:16px!important}
html body main .vg220-dynamics table td>small{display:block!important;min-height:18px;line-height:18px!important;font-size:12px!important;margin:3px 0 0!important}
.l248-result{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:14px;align-items:center;margin:22px 0}.l248-result>span{display:flex;align-items:center;justify-content:center;gap:8px;min-width:0}.l248-result strong{font-size:28px;white-space:nowrap;font-variant-numeric:tabular-nums}
.l248-coverage th{width:55%;text-align:left!important}.l248-coverage td{text-align:left!important}
@media(max-width:767px){html body main .vg220-dynamics table td>b{font-size:14px!important}.l248-result{gap:8px}.l248-result>span{flex-direction:column;text-align:center;font-size:13px}.l248-result strong{font-size:23px}}

/* 249: comparison is numerical, including fouls and cards. */
html body main .l244 table.l244-stats td.l249-higher{color:#087548!important;font-weight:700!important}
html body main .l244 table.l244-stats td.l249-lower{color:#bb3548!important;font-weight:700!important}
html body main .l244 table.l244-stats td.l249-neutral{color:var(--v234-muted,#627588)!important}
html body main .l244 .l249-scale{display:flex!important;align-items:stretch;height:5px;gap:3px;margin:7px 0 2px;width:100%;overflow:hidden;border-radius:4px;background:var(--l244-line,#dbe5ee)}
.l249-scale>span{display:block!important;min-width:0;height:100%;flex-shrink:1}.l249-scale>.l249-higher{background:#168b67}.l249-scale>.l249-lower{background:#d35366}.l249-scale>.l249-neutral{background:#8fa3b7}
html[data-theme="dark"] body main .l244 table.l244-stats td.l249-higher{color:#6cdbac!important}html[data-theme="dark"] body main .l244 table.l244-stats td.l249-lower{color:#ff96a4!important}
html body main .l244 .l249-note{font-size:12px;line-height:1.5;color:var(--v234-muted,#627588);margin:12px 0}
/* League list: fixed logo column and a shared edge for wrapped names. */
html body main .l244-index table :is(th,td):first-child{text-align:left!important;width:26%}
@media(max-width:767px){html body main .l244-index table :is(th,td):first-child{width:42%!important}}
/* Native league_html has an inner vg-league-label; align its actual children. */
html body main .l244-index td:first-child a.inline-line{display:block!important}
html body main .l244-index td:first-child a.inline-line>.vg-league-label{display:grid!important;grid-template-columns:24px minmax(0,1fr)!important;align-items:center!important;column-gap:9px!important;width:100%!important;min-width:0;text-align:left!important}
html body main .l244-index .vg-league-label>img,html body main .l244-index .vg-league-label>.logo-fallback{grid-column:1;grid-row:1;width:22px!important;min-width:22px!important;height:22px!important;object-fit:contain;justify-self:center;margin:0!important;align-self:center}
html body main .l244-index .vg-league-label>span:last-child{grid-column:2;grid-row:1;min-width:0;text-align:left!important;line-height:1.4!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important}
@media(max-width:767px){html body main .l244-index td:first-child a.inline-line>.vg-league-label{grid-template-columns:21px minmax(0,1fr)!important;column-gap:6px!important}html body main .l244-index .vg-league-label>img,html body main .l244-index .vg-league-label>.logo-fallback{width:20px!important;min-width:20px!important;height:20px!important}}

/* Restore the familiar standings frame and teal detail controls. */
html body main .l244 .l249-standings-frame{border:1px solid var(--l244-line);border-radius:8px;overflow:hidden}
html body main .l244 .l249-standings-frame table{margin:0!important;border:0!important}
html body main .l244 table.l244-standings .l244-expand{background:#008c95!important;border-color:#008c95!important;color:#fff!important;border-radius:6px;width:34px;min-height:40px;font-weight:700}
html body main .l244 table.l244-standings tbody tr:not(.l244-detail){background:transparent}
html body main .l244 table.l244-standings td:nth-child(2) a.l247-team{display:flex;align-items:center;gap:6px;text-align:left}
@media(max-width:767px){html body main .l244 table.l244-standings .l244-expand{width:24px!important;min-width:24px!important;height:34px!important;min-height:34px!important;padding:0!important}}
