.uefa-standings-hub,
.uefa-standings{
  margin:24px 0 34px;
}
.uefa-standings{
  overflow:hidden;
  background:var(--surface-raised);
  border:1px solid var(--line);
  border-radius:7px;
  box-shadow:0 16px 44px var(--shadow);
}
.uefa-standings-hub > .uefa-standings{
  margin-top:0;
}
.uefa-standings-intro{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:22px;
  padding:20px 22px;
  color:#f4f2e4;
  background:
    linear-gradient(115deg,rgba(215,38,61,.2),transparent 44%),
    #09291d;
}
.uefa-standings-intro h2{
  margin:0;
  color:#fff;
  font:800 clamp(1.65rem,4vw,2.35rem)/1
    'Big Shoulders Display',sans-serif;
  letter-spacing:.01em;
}
.uefa-standings-intro p{
  max-width:52ch;
  margin:6px 0 0;
  color:#b9c9bf;
  font-size:.86rem;
}
.uefa-season{
  flex:0 0 auto;
  color:#f4c430;
  font:600 .68rem 'IBM Plex Mono',monospace;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.uefa-tabs{
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding:11px 12px;
  background:var(--surface);
  border:1px solid var(--line);
  border-bottom:0;
  border-radius:7px 7px 0 0;
  scrollbar-width:none;
}
.uefa-tabs::-webkit-scrollbar{display:none}
.uefa-tab{
  flex:0 0 auto;
  padding:9px 13px;
  color:var(--muted);
  background:transparent;
  border:1px solid var(--line);
  border-radius:999px;
  cursor:pointer;
  font:600 .68rem 'IBM Plex Mono',monospace;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.uefa-tab[aria-selected="true"]{
  color:#fff;
  background:#09291d;
  border-color:#09291d;
}
.uefa-standings-hub .uefa-standings{
  border-radius:0 0 7px 7px;
}
.uefa-table-wrap{
  max-height:680px;
  overflow:auto;
  scrollbar-color:var(--muted) var(--surface);
}
.uefa-table{
  width:100%;
  min-width:650px;
  border-collapse:collapse;
  font-variant-numeric:tabular-nums;
}
.uefa-table th{
  position:sticky;
  top:0;
  z-index:2;
  padding:10px 9px;
  color:#c6d2ca;
  background:#173628;
  border-bottom:1px solid rgba(255,255,255,.13);
  text-align:center;
  font:500 .61rem 'IBM Plex Mono',monospace;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.uefa-table th:nth-child(2){
  text-align:left;
}
.uefa-table td{
  height:43px;
  padding:7px 9px;
  border-bottom:1px solid var(--line);
  text-align:center;
  font:400 .74rem 'IBM Plex Mono',monospace;
}
.uefa-table tbody tr:last-child td{
  border-bottom:0;
}
.uefa-table tbody tr:hover{
  background:color-mix(in srgb,var(--turf) 8%,transparent);
}
.uefa-table .rank{
  width:45px;
  border-left:4px solid transparent;
  font-weight:600;
}
.uefa-table .team-cell{
  min-width:230px;
  text-align:left;
}
.uefa-team{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
}
.uefa-code{
  display:inline-flex;
  flex:0 0 34px;
  min-height:21px;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:3px;
  font-size:.57rem;
}
.uefa-team-name{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-family:'Source Serif 4',serif;
  font-size:.92rem;
  font-weight:600;
}
.uefa-table .points{
  font-weight:600;
  color:var(--turf-dark);
}
.uefa-table tr.zone-direct .rank{
  border-left-color:#2fa36b;
}
.uefa-table tr.zone-playoff .rank{
  border-left-color:#f4c430;
}
.uefa-table tr.zone-out .rank{
  border-left-color:#9ba39d;
}
.uefa-table tr.is-turkish{
  background:color-mix(in srgb,var(--floodlight) 12%,transparent);
}
.uefa-table tr.is-turkish .team-name{
  color:var(--turf-dark);
}
.uefa-standings-foot{
  display:flex;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  padding:11px 16px;
  color:var(--muted);
  background:var(--surface);
  border-top:1px solid var(--line);
  font:400 .62rem 'IBM Plex Mono',monospace;
}
.uefa-standings-foot a{
  color:var(--turf-dark);
  text-underline-offset:2px;
}
.uefa-legend{
  display:flex;
  flex-wrap:wrap;
  gap:8px 16px;
}
.uefa-legend span{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.uefa-legend i{
  width:13px;
  height:4px;
  background:#9ba39d;
}
.uefa-legend .direct{background:#2fa36b}
.uefa-legend .playoff{background:#f4c430}
.uefa-loading td{
  height:120px;
  color:var(--muted);
  text-align:center;
}
.uefa-panel[hidden]{
  display:none!important;
}
@media(max-width:700px){
  .uefa-standings-hub,
  .uefa-standings{
    margin-left:-4px;
    margin-right:-4px;
  }
  .uefa-standings-intro{
    display:block;
    padding:18px 16px;
  }
  .uefa-season{
    display:block;
    margin-top:11px;
  }
  .uefa-table-wrap{
    max-height:570px;
  }
  .uefa-table{
    min-width:0;
    table-layout:fixed;
  }
  .uefa-table .optional{
    display:none;
  }
  .uefa-table th,
  .uefa-table td{
    padding-left:6px;
    padding-right:6px;
  }
  .uefa-table .rank{
    width:38px;
  }
  .uefa-table .team-cell{
    width:auto;
    min-width:0;
  }
  .uefa-table .played,
  .uefa-table .difference,
  .uefa-table .points{
    width:38px;
  }
  .uefa-code{
    flex-basis:31px;
  }
  .uefa-team-name{
    font-size:.84rem;
  }
  .uefa-standings-foot{
    padding:10px 12px;
  }
}

/* Competition pages: news across two thirds, data rail on the right. */
.competition-page{
  display:grid;
  grid-template-columns:minmax(0,2fr) minmax(320px,1fr);
  gap:28px 34px;
  align-items:start;
}
.competition-page > .page-hero{
  grid-column:1/-1;
}
.competition-page > .single-desk{
  grid-column:1;
  grid-row:2;
  min-width:0;
}
.competition-page > .uefa-standings,
.competition-page > .uefa-standings-hub{
  grid-column:2;
  grid-row:2;
  min-width:0;
  margin-top:0;
}
.competition-page .uefa-standings{
  margin-top:0;
}
.competition-page .uefa-table-wrap{
  max-height:440px;
}
.competition-page .uefa-table{
  display:block;
  width:100%;
  min-width:0;
  table-layout:auto;
}
.competition-page .uefa-table thead,
.competition-page .uefa-table tbody{
  display:block;
  width:100%;
}
.competition-page .uefa-table tr{
  display:grid;
  grid-template-columns:32px minmax(150px,1fr) 32px 34px 32px;
  width:100%;
}
.competition-page .uefa-table th,
.competition-page .uefa-table td{
  box-sizing:border-box;
  min-width:0;
}
.competition-page .uefa-table td{
  display:flex;
  min-height:43px;
  height:auto;
  align-items:center;
  justify-content:center;
}
.competition-page .uefa-table .optional{
  display:none;
}
.competition-page .uefa-table .rank{
  width:auto;
  padding-left:4px;
  padding-right:4px;
}
.competition-page .uefa-table .played,
.competition-page .uefa-table .difference,
.competition-page .uefa-table .points{
  width:auto;
  padding-left:3px;
  padding-right:3px;
}
.competition-page .uefa-table .team-cell{
  width:auto;
  min-width:0;
  padding-left:6px;
  padding-right:6px;
  justify-content:flex-start;
}
.competition-page .uefa-team{
  gap:6px;
  min-width:0;
}
.competition-page .uefa-code{
  flex-basis:25px;
  min-height:19px;
  font-size:.5rem;
}
.competition-page .uefa-team-name{
  display:block;
  min-width:0;
  overflow:visible;
  text-overflow:clip;
  white-space:normal;
  font-size:.86rem;
  line-height:1.12;
}
.competition-page .uefa-standings-intro{
  display:block;
  padding:17px 16px;
}
.competition-page .uefa-standings-intro h2{
  font-size:1.75rem;
}
.competition-page .uefa-season{
  display:block;
  margin-top:9px;
}
.competition-page .uefa-standings-foot{
  padding:10px 12px;
}
.competition-page .uefa-legend{
  gap:6px 11px;
}

.uefa-fixtures{
  border-top:7px solid var(--paper);
  background:var(--surface-raised);
}
.uefa-fixtures-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  padding:16px;
  border-bottom:1px solid var(--line);
}
.uefa-fixtures-head h3{
  margin:0;
  color:var(--turf-dark);
  font:800 1.55rem/1 'Big Shoulders Display',sans-serif;
}
.uefa-fixtures-kicker{
  display:block;
  margin-bottom:4px;
  color:var(--muted);
  font:500 .58rem 'IBM Plex Mono',monospace;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.uefa-fixtures-round{
  flex:0 0 auto;
  color:var(--var-red);
  font:600 .63rem 'IBM Plex Mono',monospace;
  text-transform:uppercase;
}
.uefa-fixture-list{
  max-height:510px;
  overflow:auto;
  scrollbar-color:var(--muted) var(--surface);
}
.uefa-fixture-day{
  position:sticky;
  top:0;
  z-index:1;
  padding:7px 12px;
  color:#c8d5cd;
  background:#173628;
  font:500 .58rem 'IBM Plex Mono',monospace;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.uefa-fixture{
  display:grid;
  grid-template-columns:55px minmax(0,1fr);
  min-height:58px;
  border-bottom:1px solid var(--line);
}
.uefa-fixture:last-child{
  border-bottom:0;
}
.uefa-fixture-time{
  display:flex;
  align-items:center;
  padding:9px 10px;
  border-right:1px solid var(--line);
  font:600 .76rem 'IBM Plex Mono',monospace;
  font-variant-numeric:tabular-nums;
}
.uefa-fixture-teams{
  display:grid;
  align-content:center;
  gap:3px;
  min-width:0;
  padding:8px 11px;
}
.uefa-fixture-teams span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:.84rem;
  font-weight:600;
}
.uefa-fixture-teams .is-turkish{
  color:var(--turf-dark);
}
.uefa-fixture-teams .is-turkish::after{
  content:" TUR";
  color:var(--var-red);
  font:600 .52rem 'IBM Plex Mono',monospace;
}
.uefa-fixtures-empty{
  padding:26px 16px;
  color:var(--muted);
  text-align:center;
  font:400 .7rem 'IBM Plex Mono',monospace;
}

@media(max-width:900px){
  .competition-page{
    display:flex;
    flex-direction:column;
    gap:0;
  }
  .competition-page > .page-hero{order:1;width:100%}
  .competition-page > .single-desk{order:2;width:100%}
  .competition-page > .uefa-standings,
  .competition-page > .uefa-standings-hub{
    order:3;
    width:100%;
  }
  .competition-page .uefa-table-wrap{
    max-height:570px;
  }
  .uefa-fixture-list{
    max-height:none;
  }
