/* SDL V35 — League tables and fixtures. Scoped to the refined public pages only. */
.sdl-refined{
  --league-panel:#101116;
  --league-panel-strong:#15171e;
  --league-line:rgba(255,255,255,.11);
  --league-line-quiet:rgba(255,255,255,.065);
  --league-text:#f4f5f7;
  --league-muted:var(--sdl-muted,#a4acb9);
  --league-red:var(--sdl-red,#ed1c24);
  font-family:var(--sdl-ui,Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif);
}

/* Fixtures */
.sdl-refined .match-centre-content{max-width:1180px;margin-inline:auto}
.sdl-refined .mc-topline{
  align-items:center;
  padding:17px 20px;
  border:1px solid var(--league-line);
  border-left:4px solid var(--league-red);
  border-radius:14px;
  background:linear-gradient(120deg,#161820,#0d0e12 72%);
}
.sdl-refined .mc-topline small{color:var(--league-muted);font-size:9px;letter-spacing:.14em}
.sdl-refined .mc-topline strong{font-family:var(--sdl-display,"Barlow Condensed",Arial,sans-serif);font-size:28px;letter-spacing:.01em}
.sdl-refined .mc-topline span{color:var(--league-muted);font-size:10px;letter-spacing:.07em}
.sdl-refined .week-chip{
  border:1px solid rgba(237,28,36,.48);
  border-radius:999px;
  background:rgba(237,28,36,.1);
  color:#fff;
  font-size:10px;
  letter-spacing:.1em;
}
.sdl-refined .fixtures-switcher{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  overflow:visible;
  margin:0 0 14px;
}
.sdl-refined .fixtures-switcher button{
  min-width:0;
  min-height:46px;
  border:1px solid var(--league-line);
  border-radius:9px;
  background:#101116;
  color:var(--league-muted);
  font-family:var(--sdl-ui,Inter,sans-serif);
  font-size:10px;
  font-weight:850;
  letter-spacing:.08em;
}
.sdl-refined .fixtures-switcher button.active{
  border-color:rgba(237,28,36,.75);
  background:linear-gradient(135deg,#ec2731,#ad0b14);
  color:#fff;
  box-shadow:0 8px 22px rgba(237,28,36,.18);
}
.sdl-refined .gameweek-nav{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;
  gap:10px;
  margin:0 0 16px;
  padding:9px;
  border:1px solid var(--league-line);
  border-radius:12px;
  background:#0d0e12;
}
.sdl-refined .gameweek-nav button{
  min-height:39px;
  border:1px solid var(--league-line);
  border-radius:8px;
  background:#171920;
  color:#f1f3f5;
  font-family:var(--sdl-ui,Inter,sans-serif);
  font-size:9px;
  font-weight:850;
  letter-spacing:.08em;
}
.sdl-refined .gameweek-nav button:not(:disabled):hover{border-color:rgba(237,28,36,.56);background:#211216}
.sdl-refined .gameweek-nav button:disabled{opacity:.35}
.sdl-refined #weekLabel{color:#e8ebf0;font-size:10px;font-weight:850;letter-spacing:.08em;white-space:nowrap}
.sdl-refined .fixture-header{
  padding:18px 21px;
  border-color:var(--league-line);
  border-radius:14px 14px 0 0;
  background:linear-gradient(115deg,#191b22,#101116);
}
.sdl-refined .fixture-header small{font-size:9px;letter-spacing:.14em}
.sdl-refined .fixture-header h2{font-family:var(--sdl-display,"Barlow Condensed",Arial,sans-serif);font-size:34px;letter-spacing:.01em}
.sdl-refined .fixture-header>span{color:var(--league-muted);font-size:9px;letter-spacing:.1em}
.sdl-refined .fixture-row{
  position:relative;
  grid-template-columns:88px minmax(0,1fr) 72px minmax(0,1fr);
  min-height:82px;
  border-color:var(--league-line);
  background:linear-gradient(105deg,#121319,#0b0c10 88%);
  transition:border-color .16s ease,background .16s ease;
}
.sdl-refined .fixture-row:hover{border-color:rgba(255,255,255,.2);background:linear-gradient(105deg,#171920,#0e0f14 88%)}
.sdl-refined .fixture-row[data-summary-id]{cursor:pointer}
.sdl-refined .fixture-row[data-summary-id]:focus-visible{z-index:1;outline:2px solid #fff;outline-offset:2px}
.sdl-refined .board-tag{
  align-self:stretch;
  display:grid;
  place-items:center;
  padding:10px;
  border-right:1px solid var(--league-line-quiet);
  color:#9099a8;
  font-family:var(--sdl-ui,Inter,sans-serif);
  font-size:8px;
  font-weight:850;
  letter-spacing:.1em;
}
.sdl-refined .fixture-row .player{
  min-width:0;
  padding:12px 17px;
  color:var(--league-text);
  font-family:var(--sdl-ui,Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif);
  font-size:16px;
  font-weight:800;
  letter-spacing:-.025em;
  line-height:1.18;
  overflow-wrap:anywhere;
}
.sdl-refined .fixture-row .player small{
  margin-top:5px;
  color:var(--league-muted);
  font-family:var(--sdl-ui,Inter,sans-serif);
  font-size:8px;
  font-weight:750;
  letter-spacing:.11em;
}
.sdl-refined .fixture-row .player.winner{color:#fff}
.sdl-refined .fixture-row.completed .player.loser{opacity:.82}
.sdl-refined .fixture-row .player.winner:before{content:'';display:inline-block;width:5px;height:5px;margin:0 7px 2px 0;border-radius:50%;background:var(--league-red);box-shadow:0 0 10px rgba(237,28,36,.78)}
.sdl-refined .fixture-row .versus{
  display:grid;
  place-items:center;
  min-width:46px;
  min-height:36px;
  margin-inline:auto;
  padding:0 8px;
  border:1px solid var(--league-line);
  border-radius:8px;
  background:#08090c;
  color:#f4f5f7;
  font-family:var(--sdl-ui,Inter,sans-serif);
  font-size:13px;
  font-style:normal;
  font-weight:900;
  letter-spacing:.02em;
  font-variant-numeric:tabular-nums;
}
.sdl-refined .fixture-row.completed .versus{border-color:rgba(237,28,36,.48);background:linear-gradient(135deg,#45151b,#1f1014);color:#fff;font-size:16px;letter-spacing:-.03em}
.sdl-refined .fixture-row .match-state{color:var(--league-muted);font-family:var(--sdl-ui,Inter,sans-serif);font-size:8px;font-weight:850;letter-spacing:.11em}
.sdl-refined .fixture-row .match-state.played,.sdl-refined .fixture-row .match-state.forfeit{color:#ff7d85}
.sdl-refined .fixture-row .match-state[style]{
  grid-column:2 / 5!important;
  margin:-6px 0 9px!important;
  text-align:center!important;
}
.sdl-refined .fixture-row.postponed{background:linear-gradient(105deg,#191815,#0f0e0d);opacity:1}
.sdl-refined .fixture-row.postponed .versus{border-color:#856532;color:#edcb82}
.sdl-refined .fixture-loading{
  min-height:276px;
  display:grid;
  place-items:center;
  gap:9px;
  padding:28px;
  border:1px solid var(--league-line);
  border-top:0;
  background:linear-gradient(135deg,#101116,#0a0b0e);
  text-align:center;
}
.sdl-refined .fixture-loading:before{content:'';width:28px;height:28px;border:2px solid #4b505b;border-top-color:var(--league-red);border-radius:50%;animation:league-spin .75s linear infinite}
.sdl-refined .fixture-loading strong{color:#f4f5f7;font-family:var(--sdl-ui,Inter,sans-serif);font-size:12px;letter-spacing:.08em}
.sdl-refined .fixture-loading span{color:var(--league-muted);font-size:10px;line-height:1.5}
@keyframes league-spin{to{transform:rotate(360deg)}}
@keyframes league-shimmer{to{background-position:-200% 0}}

/* League tables */
.sdl-refined .division-table-section{max-width:1180px;margin-inline:auto}
.sdl-refined .division-switcher{gap:8px;margin-bottom:18px}
.sdl-refined .division-switcher a{
  min-height:43px;
  border-color:var(--league-line);
  border-radius:9px;
  color:var(--league-muted);
  font-family:var(--sdl-ui,Inter,sans-serif);
  font-size:10px;
  letter-spacing:.07em;
}
.sdl-refined .division-switcher a.active{border-color:rgba(237,28,36,.72);box-shadow:0 8px 20px rgba(237,28,36,.15)}
.sdl-refined .table-headline{
  align-items:center;
  padding:17px 20px;
  border-color:var(--league-line);
  border-radius:14px 14px 0 0;
  background:linear-gradient(115deg,#181a21,#101116);
}
.sdl-refined .table-headline h3{font-family:var(--sdl-display,"Barlow Condensed",Arial,sans-serif);font-size:33px;letter-spacing:.01em}
.sdl-refined .table-headline small{font-size:9px;letter-spacing:.14em}
.sdl-refined .table-headline>span{color:var(--league-muted);font-size:9px;letter-spacing:.1em}
.sdl-refined .table-view-toggle{display:none}
.sdl-refined .league-table{
  border-color:var(--league-line);
  border-radius:0 0 14px 14px;
  background:#0c0d11;
}
.sdl-refined .league-table .row{
  grid-template-columns:54px minmax(220px,1.9fr) repeat(7,minmax(44px,.48fr)) minmax(62px,.68fr);
  min-height:52px;
  border-color:var(--league-line-quiet);
}
.sdl-refined .league-table .row>span{
  min-width:0;
  padding-inline:10px;
  color:#cad0da;
  font-family:var(--sdl-ui,Inter,sans-serif);
  font-size:12px;
  font-variant-numeric:tabular-nums;
}
.sdl-refined .league-table .row>span:nth-child(2){overflow:hidden;color:#f5f6f8;font-weight:750;text-overflow:ellipsis;white-space:nowrap}
.sdl-refined .league-table .row>span:nth-child(2) a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sdl-refined .league-table .row>span:nth-child(10){color:#fff;font-size:14px;font-weight:900}
.sdl-refined .league-table .row.thead{min-height:40px;background:#15171e}
.sdl-refined .league-table .row.thead>span{color:#8993a3;font-size:8px;font-weight:850;letter-spacing:.09em}
.sdl-refined .league-table .row.thead>span:nth-child(10){color:#ff8b92;font-size:8px}
.sdl-refined .league-table .row:not(.thead):hover{background:#14161d}
.sdl-refined .league-table.table-loading .row:not(.thead)>span,
.sdl-refined .league-table.table-loading .row:not(.thead)>span a{color:transparent!important}
.sdl-refined .league-table.table-loading .row:not(.thead)>span:nth-child(2)::before{content:'';display:block;width:min(148px,82%);height:10px;border-radius:999px;background:linear-gradient(90deg,#272b34,#3a3f4a,#272b34);animation:league-shimmer 1.1s linear infinite;background-size:200% 100%}
.sdl-refined .table-unavailable{padding:42px 20px;color:var(--league-muted);font-size:12px;line-height:1.5;text-align:center}
.sdl-refined .table-unavailable strong{display:block;margin-bottom:5px;color:#f1f3f5;font-size:10px;letter-spacing:.11em}
.sdl-refined .legend{gap:9px;padding:14px 0 0;color:var(--league-muted);font-family:var(--sdl-ui,Inter,sans-serif);font-size:9px;letter-spacing:.02em}
.sdl-refined .legend span{padding:7px 9px;border:1px solid var(--league-line-quiet);border-radius:999px;background:#101116}
.sdl-refined .division-bottom-nav{margin-top:28px;border-color:var(--league-line);padding-top:18px}
.sdl-refined .division-bottom-nav a{color:var(--league-muted);font-family:var(--sdl-ui,Inter,sans-serif);font-size:9px;letter-spacing:.07em}
.sdl-refined .division-bottom-nav a:nth-child(2){color:#fff}
.sdl-refined .table-view-hint{display:none}

@media (min-width:701px) and (max-width:1024px){
  .sdl-refined .fixture-row{grid-template-columns:72px minmax(0,1fr) 64px minmax(0,1fr)}
  .sdl-refined .fixture-row .player{font-size:15px}
  .sdl-refined .league-table .row{grid-template-columns:48px minmax(168px,1.65fr) repeat(7,minmax(36px,.43fr)) minmax(54px,.58fr)}
  .sdl-refined .league-table .row>span{padding-inline:7px;font-size:11px}
}

/* Landscape tablets: keep the whole match-night hierarchy visible before the list. */
@media (min-width:821px) and (max-width:1100px) and (max-height:820px){
  .sdl-refined .match-centre-hero{padding:14px max(20px,calc((100vw - 1120px)/2)) 16px!important}
  .sdl-refined .match-centre-hero .eyebrow{margin-bottom:3px;font-size:8px}
  .sdl-refined .match-centre-hero h1{margin:3px 0 4px;font-size:44px}
  .sdl-refined .match-centre-hero>p:last-child{font-size:10px;line-height:1.35}
  .sdl-refined .match-centre-content{padding:14px 20px 36px!important}
  .sdl-refined .mc-topline{min-height:60px;padding:8px 14px}
  .sdl-refined .mc-topline small{display:none}
  .sdl-refined .mc-topline strong{margin:0 0 2px;font-size:22px;line-height:1}
  .sdl-refined .mc-topline span{font-size:8px}
  .sdl-refined .week-chip{padding:7px 10px;font-size:8px}
  .sdl-refined .fixtures-switcher{gap:6px;margin-bottom:8px}
  .sdl-refined .fixtures-switcher button{min-height:36px;font-size:9px}
  .sdl-refined .match-centre-page .mode-switcher{margin-bottom:8px}
  .sdl-refined .match-centre-page .mode-switcher button{min-height:36px;font-size:9px}
  .sdl-refined .gameweek-nav{gap:8px;margin-bottom:8px;padding:5px 7px;border-radius:10px}
  .sdl-refined .gameweek-nav button{min-height:34px;font-size:9px}
  .sdl-refined #weekLabel{font-size:9px}
  .sdl-refined .fixture-header{align-items:center;padding:10px 16px}
  .sdl-refined .fixture-header h2{font-size:20px}
  .sdl-refined .fixture-row{grid-template-columns:64px minmax(0,1fr) 60px minmax(0,1fr);min-height:64px}
  .sdl-refined .fixture-row .player{padding:8px 12px;font-size:14px}
  .sdl-refined .fixture-row .player small{margin-top:3px}
  .sdl-refined .fixture-row .versus{min-height:30px;font-size:11px}
  .sdl-refined .fixture-row.completed .versus{font-size:14px}
  .sdl-refined .board-tag{padding:7px;font-size:7px}
}

@media (max-width:700px){
  .sdl-refined .mc-topline{align-items:flex-start;padding:15px 16px}
  .sdl-refined .mc-topline strong{font-size:23px}
  .sdl-refined .mc-topline span{display:none}
  .sdl-refined .week-chip{margin-top:2px;padding:8px 9px;font-size:8px}
  .sdl-refined .fixtures-switcher{gap:6px;margin-bottom:11px}
  .sdl-refined .fixtures-switcher button{min-height:43px;padding:0 5px;font-size:8px;letter-spacing:.05em}
  .sdl-refined .gameweek-nav{gap:6px;padding:6px;margin-bottom:12px}
  .sdl-refined .gameweek-nav button{min-height:38px;padding:7px 8px;font-size:10px;letter-spacing:.01em}
  .sdl-refined #weekLabel{font-size:9px;letter-spacing:.02em}
  .sdl-refined .fixture-header{padding:15px 16px}
  .sdl-refined .fixture-header h2{font-size:29px}
  .sdl-refined .fixture-header>span{font-size:8px}
  .sdl-refined .fixture-row{grid-template-columns:48px minmax(0,1fr) 48px minmax(0,1fr);min-height:91px}
  .sdl-refined .board-tag{padding:5px;font-size:7px;letter-spacing:.06em}
  .sdl-refined .fixture-row .player{padding:12px 8px 10px;font-size:13px;line-height:1.2}
  .sdl-refined .fixture-row .player small{margin-top:4px;font-size:7px;letter-spacing:.07em}
  .sdl-refined .fixture-row .player.winner:before{width:4px;height:4px;margin-right:4px}
  .sdl-refined .fixture-row .versus{min-width:38px;min-height:33px;padding:0 4px;border-radius:7px;font-size:10px}
  .sdl-refined .fixture-row.completed .versus{font-size:13px}
  .sdl-refined .fixture-row .match-state{font-size:7px;letter-spacing:.07em}
  .sdl-refined .fixture-row .match-state[style]{grid-column:2 / 5!important;margin:-3px 0 8px!important}
  .sdl-refined .fixture-loading{min-height:238px}
  .sdl-refined .division-switcher{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;overflow:visible;margin-bottom:14px}
  .sdl-refined .division-switcher a{min-width:0;min-height:42px;padding:0 4px;font-size:8px;letter-spacing:.05em}
  .sdl-refined .table-headline{align-items:flex-start;gap:10px;padding:15px 14px;border-radius:12px 12px 0 0}
  .sdl-refined .table-headline h3{font-size:28px}
  .sdl-refined .table-headline>span{display:none}
  .sdl-refined .table-view-toggle{display:flex;gap:5px;flex:0 0 auto}
  .sdl-refined .table-view-toggle button{min-height:32px;padding:0 8px;border:1px solid var(--league-line);border-radius:7px;background:#0c0d11;color:var(--league-muted);font-family:var(--sdl-ui,Inter,sans-serif);font-size:8px;font-weight:850;letter-spacing:.04em}
  .sdl-refined .table-view-toggle button[aria-pressed="true"]{border-color:rgba(237,28,36,.64);background:#3a1419;color:#fff}
  .sdl-refined .league-table{border-radius:0 0 12px 12px;overflow:hidden}
  .sdl-refined .league-table .row{min-width:0;grid-template-columns:38px minmax(0,1fr) 43px 48px;min-height:49px}
  .sdl-refined .league-table .row>span{padding-inline:7px;font-size:11px}
  .sdl-refined .league-table .row>span:nth-child(4),
  .sdl-refined .league-table .row>span:nth-child(5),
  .sdl-refined .league-table .row>span:nth-child(6),
  .sdl-refined .league-table .row>span:nth-child(7),
  .sdl-refined .league-table .row>span:nth-child(8),
  .sdl-refined .league-table .row>span:nth-child(9){display:none}
  .sdl-refined .league-table .row>span:nth-child(2){font-size:12px}
  .sdl-refined .league-table .row>span:nth-child(10){font-size:13px}
  .sdl-refined .league-table .row.thead{min-height:37px}
  .sdl-refined .league-table .row.thead>span{font-size:7px}
  .sdl-refined .league-table .row.thead>span:nth-child(10){font-size:7px}
  .sdl-refined .league-table.table-full{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .sdl-refined .league-table.table-full .row{min-width:676px;grid-template-columns:42px minmax(160px,1.8fr) repeat(7,44px) 54px}
  .sdl-refined .league-table.table-full .row>span:nth-child(n){display:block}
  .sdl-refined .league-table.table-full .row>span:nth-child(1),
  .sdl-refined .league-table.table-full .row>span:nth-child(2){position:sticky;z-index:1;background:#0c0d11}
  .sdl-refined .league-table.table-full .row>span:nth-child(1){left:0}
  .sdl-refined .league-table.table-full .row>span:nth-child(2){left:42px;box-shadow:9px 0 12px rgba(0,0,0,.22)}
  .sdl-refined .league-table.table-full .row.thead>span:nth-child(1),
  .sdl-refined .league-table.table-full .row.thead>span:nth-child(2){z-index:2;background:#15171e}
  .sdl-refined .table-view-hint{display:block;margin:9px 2px 0;color:var(--league-muted);font-size:9px;line-height:1.45}
  .sdl-refined .legend{gap:6px;padding-top:12px;font-size:8px}
  .sdl-refined .legend span{padding:6px 7px}
  .sdl-refined .division-bottom-nav{margin-top:22px;padding-top:15px}
  .sdl-refined .division-bottom-nav a{font-size:8px;letter-spacing:.035em}
}

@media (max-width:380px){
  .sdl-refined .fixture-row{grid-template-columns:43px minmax(0,1fr) 42px minmax(0,1fr)}
  .sdl-refined .fixture-row .player{font-size:12px;padding-inline:6px}
  .sdl-refined .board-tag{font-size:6px}
  .sdl-refined .gameweek-nav button{font-size:9px;padding-inline:5px}
  .sdl-refined #weekLabel{font-size:8px}
  .sdl-refined .table-view-toggle button{padding-inline:6px}
}

@media (prefers-reduced-motion:reduce){.sdl-refined .fixture-loading:before,.sdl-refined .league-table.table-loading .row:not(.thead)>span:nth-child(2)::before{animation:none}}

/* Mobile standings: player names and every statistic share one row. */
@media (max-width:700px){
  body.sdl-refined .table-view-toggle{display:none}
  body.sdl-refined .league-table,
  body.sdl-refined .league-table.table-full{
    overflow:hidden;
    width:100%;
  }
  body.sdl-refined .league-table .row,
  body.sdl-refined .league-table.table-full .row{
    display:grid;
    grid-template-columns:22px minmax(0,1fr) repeat(7,minmax(0,.23fr)) 28px;
    grid-template-rows:auto;
    min-width:0;
    width:100%;
    min-height:54px;
    gap:0;
    padding:0;
    align-items:stretch;
  }
  body.sdl-refined .league-table .row>span:nth-child(n),
  body.sdl-refined .league-table.table-full .row>span:nth-child(n){
    display:flex;
    grid-column:auto;
    grid-row:1;
    align-items:center;
    justify-content:center;
    min-width:0;
    min-height:54px;
    padding:8px 0;
    font-size:clamp(10px,2.8vw,12px);
    line-height:1.25;
    border:0;
    border-radius:0;
  }
  body.sdl-refined .league-table .row>span:nth-child(1),
  body.sdl-refined .league-table.table-full .row>span:nth-child(1){
    position:static;
    background:#0c0d11;
    font-size:10px;
  }
  body.sdl-refined .league-table .row>span:nth-child(2),
  body.sdl-refined .league-table.table-full .row>span:nth-child(2){
    position:static;
    justify-content:flex-start;
    background:#0c0d11;
    padding-inline:3px 5px;
    box-shadow:none;
  }
  body.sdl-refined .league-table .row>span:nth-child(2) a{
    display:block;
    min-width:0;
    overflow:visible;
    white-space:normal;
    overflow-wrap:anywhere;
    text-overflow:clip;
    font-size:clamp(10px,2.8vw,12px);
    line-height:1.3;
  }
  body.sdl-refined .league-table .row>span:nth-child(10){
    background:#2a1318;
    color:#fff;
    font-size:12px;
    font-weight:850;
  }
  body.sdl-refined .league-table .row.thead{min-height:36px}
  body.sdl-refined .league-table .row.thead>span:nth-child(n){
    min-height:36px;
    background:#15171e;
    font-size:8px!important;
    letter-spacing:0!important;
  }
  body.sdl-refined .league-table .table-stat-label{display:none!important}
  body.sdl-refined .table-view-hint{font-size:10px;line-height:1.5}
}
