.domestic-standings-scroll{
  overflow-x: auto;
  padding-bottom: 6px;
  width: 100%;
}

.domestic-standings{
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.domestic-standings thead tr{
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.92), rgba(47, 107, 255, 0.86));
}

.domestic-standings thead th{
  border: none;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  padding: 10px 8px;
  text-align: center;
}

.domestic-standings thead th:first-child{
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.domestic-standings thead th:last-child{
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
}

.domestic-standings thead th:nth-child(2){
  text-align: left;
}

.domestic-standings-group{
  min-width: 860px;
}

.domestic-standings-overall{
  min-width: 900px;
}

/* Default 10-column standings layout (league pages + super league tiers). */
.domestic-standings:not(.domestic-standings-group):not(.domestic-standings-overall):not(.wc-standings-table){
  min-width: 860px;
}

.domestic-standings:not(.domestic-standings-group):not(.domestic-standings-overall):not(.wc-standings-table) thead th:first-child,
.domestic-standings:not(.domestic-standings-group):not(.domestic-standings-overall):not(.wc-standings-table) tbody td.pos{
  width: 52px;
}

.domestic-standings:not(.domestic-standings-group):not(.domestic-standings-overall):not(.wc-standings-table) thead th:nth-child(2),
.domestic-standings:not(.domestic-standings-group):not(.domestic-standings-overall):not(.wc-standings-table) tbody td.team-name{
  width: 31%;
}

.domestic-standings:not(.domestic-standings-group):not(.domestic-standings-overall):not(.wc-standings-table) thead th:nth-child(n+3):nth-child(-n+10),
.domestic-standings:not(.domestic-standings-group):not(.domestic-standings-overall):not(.wc-standings-table) tbody td:nth-child(n+3):nth-child(-n+10){
  width: 56px;
}

.domestic-standings-group thead th:first-child,
.domestic-standings-group tbody td.pos{
  width: 52px;
}

.domestic-standings-group thead th:nth-child(2),
.domestic-standings-group tbody td.team-name{
  width: 31%;
}

.domestic-standings-group thead th:nth-child(n+3):nth-child(-n+10),
.domestic-standings-group tbody td:nth-child(n+3):nth-child(-n+10){
  width: 56px;
}

.domestic-standings-group thead th.form-col,
.domestic-standings-group tbody td.form-cell{
  width: 94px;
}

.domestic-standings-overall thead th:first-child,
.domestic-standings-overall tbody td.pos{
  width: 52px;
}

.domestic-standings-overall thead th.group-col,
.domestic-standings-overall tbody td.group-name{
  width: 118px;
}

.domestic-standings-overall thead th.team-col,
.domestic-standings-overall tbody td.team-name{
  width: 33%;
}

.domestic-standings-overall thead th:nth-child(n+4):nth-child(-n+11),
.domestic-standings-overall tbody td:nth-child(n+4):nth-child(-n+11){
  width: 58px;
}

.domestic-standings tbody td{
  background: linear-gradient(135deg, #ffffff 0%, #f2f6ff 100%);
  border-top: 1px solid rgba(47, 107, 255, 0.16);
  border-bottom: 1px solid rgba(47, 107, 255, 0.16);
  padding: 10px 8px;
  text-align: center;
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.domestic-standings tbody td:first-child{
  border-left: 1px solid rgba(47, 107, 255, 0.16);
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}

.domestic-standings tbody td:last-child{
  border-right: 1px solid rgba(47, 107, 255, 0.16);
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
  color: #1d4ed8;
}

.domestic-standings tbody tr:hover td{
  border-color: rgba(47, 107, 255, 0.35);
  background: linear-gradient(135deg, #ffffff 0%, #e9f1ff 100%);
}

/* Promotion/relegation visibility states */
.domestic-standings tbody tr.standings-tier1-champion td{
  background: linear-gradient(135deg, #fef9c3 0%, #fde68a 100%);
  border-top-color: rgba(217, 119, 6, 0.55);
  border-bottom-color: rgba(217, 119, 6, 0.55);
  color: #78350f;
  font-weight: 800;
}

.domestic-standings tbody tr.standings-tier1-champion td:first-child{
  border-left-color: rgba(217, 119, 6, 0.55);
  box-shadow: inset 6px 0 0 #b45309;
}

.domestic-standings tbody tr.standings-tier1-champion td:last-child{
  border-right-color: rgba(217, 119, 6, 0.55);
  color: #78350f;
}

.domestic-standings tbody tr.standings-tier1-champion td.pos{
  background: #b45309;
  color: #fff7ed;
}

.domestic-standings tbody tr.standings-promoted td{
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  border-top-color: rgba(22, 163, 74, 0.5);
  border-bottom-color: rgba(22, 163, 74, 0.5);
  color: #14532d;
  font-weight: 800;
}

.domestic-standings tbody tr.standings-promoted td:first-child{
  border-left-color: rgba(22, 163, 74, 0.5);
  box-shadow: inset 6px 0 0 #15803d;
}

.domestic-standings tbody tr.standings-promoted td:last-child{
  border-right-color: rgba(22, 163, 74, 0.5);
  color: #14532d;
}

.domestic-standings tbody tr.standings-promoted td.pos{
  background: #15803d;
  color: #f0fdf4;
}

.domestic-standings tbody tr.standings-relegated td{
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-top-color: rgba(220, 38, 38, 0.52);
  border-bottom-color: rgba(220, 38, 38, 0.52);
  color: #7f1d1d;
  font-weight: 800;
}

.domestic-standings tbody tr.standings-relegated td:first-child{
  border-left-color: rgba(220, 38, 38, 0.52);
  box-shadow: inset 6px 0 0 #b91c1c;
}

.domestic-standings tbody tr.standings-relegated td:last-child{
  border-right-color: rgba(220, 38, 38, 0.52);
  color: #7f1d1d;
}

.domestic-standings tbody tr.standings-relegated td.pos{
  background: #b91c1c;
  color: #fef2f2;
}

.domestic-standings tbody tr.standings-tier1-champion:hover td{
  background: linear-gradient(135deg, #fef08a 0%, #fcd34d 100%);
}

.domestic-standings tbody tr.standings-promoted:hover td{
  background: linear-gradient(135deg, #bbf7d0 0%, #86efac 100%);
}

.domestic-standings tbody tr.standings-relegated:hover td{
  background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
}

.domestic-standings tbody td:not(.team-name):not(.group-name){
  font-family: var(--font-esports-score);
  letter-spacing: 0.08em;
}

.domestic-standings tbody td.team-name{
  text-align: left;
  letter-spacing: 0.02em;
}

.domestic-standings tbody td.group-name{
  text-align: left;
  white-space: nowrap;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.domestic-standings .team-standings-cell{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  min-width:0;
}

.domestic-standings .team-standings-name{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.cup-shell .domestic-standings .team-standings-name{
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.domestic-standings .team-standings-media{
  flex:none;
}

.domestic-standings-group tbody td.form-cell{
  overflow: hidden;
  padding-left: 6px;
  padding-right: 6px;
}

.domestic-standings-group .form-track{
  gap: 3px;
  justify-content: center;
  flex-wrap: nowrap;
}

.domestic-standings-group .form-dot{
  width: 14px;
  height: 14px;
  font-size: 0.55rem;
}

.domestic-standings td.club-cell{
  font-weight: 700;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: middle;
}

.domestic-standings tbody td.team-name{
  min-width: 0;
  overflow: hidden;
}

.domestic-standings tbody td.team-name .team-link,
.domestic-standings tbody td.team-name .cl-team-cell,
.domestic-standings td.club-cell .team-link,
.domestic-standings td.club-cell .club-link{
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.domestic-standings tbody td.team-name .team-link img,
.domestic-standings tbody td.team-name .cl-team-cell img,
.domestic-standings td.club-cell .team-link img,
.domestic-standings td.club-cell .club-link img{
  flex: none;
}

.domestic-standings tbody td.team-name .team-link > span,
.domestic-standings td.club-cell .club-name,
.domestic-standings tbody td.team-name .cl-team-name{
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.domestic-standings td.club-cell .club-name{
  line-height: 1.2;
  display: block;
  font-size: 16px;
}

.domestic-standings td.club-cell .standings-logo{
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: none;
  border: none;
  background: transparent;
}

.domestic-standings tbody td.pos{
  background: #0f172a;
  color: #f8fafc;
}

.domestic-standings tbody td.pos-top4,
.domestic-standings tbody td.pos-europa,
.domestic-standings tbody td.pos-conf,
.domestic-standings tbody td.pos-releg{
  border-left: none;
}

.domestic-standings tbody td.pos-top4{ box-shadow: inset 4px 0 0 #22c55e; }
.domestic-standings tbody td.pos-europa{ box-shadow: inset 4px 0 0 #3b82f6; }
.domestic-standings tbody td.pos-conf{ box-shadow: inset 4px 0 0 #8b5cf6; }
.domestic-standings tbody td.pos-releg{ box-shadow: inset 4px 0 0 #ef4444; }

.domestic-standings tr.pos-r16 td{ box-shadow: inset 4px 0 0 #34a853; }
.domestic-standings tr.pos-po-seeded td{ box-shadow: inset 4px 0 0 #4285f4; }
.domestic-standings tr.pos-po-unseeded td{ box-shadow: inset 4px 0 0 #fbbc04; }
.domestic-standings tr.pos-out td{ color: #64748b; }
.domestic-standings tr.pos-promote td{ box-shadow: inset 4px 0 0 #22c55e; }
.domestic-standings tr.pos-champion td{ box-shadow: inset 4px 0 0 #3b82f6; }
.domestic-standings tr.pos-releg td{ box-shadow: inset 4px 0 0 #ef4444; }
.domestic-standings tr.qualify td{ box-shadow: inset 4px 0 0 #22c55e; }
.domestic-standings tr.advance td{ box-shadow: inset 4px 0 0 #3b82f6; }
.domestic-standings tr.qualifier-row td{ box-shadow: inset 4px 0 0 #22c55e; }
.domestic-standings tr.standings-direct td{ box-shadow: inset 4px 0 0 #22c55e; }
.domestic-standings tr.standings-wildcard td{ box-shadow: inset 4px 0 0 #3b82f6; }

/* League overview layout (keeps fixtures/standings higher on desktop) */
.league-overview{
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 16px 24px;
  margin: 10px 0 18px;
  align-items: start;
}
.league-overview-block{
  min-width: 0;
}
.league-overview-list{
  display: grid;
  gap: 8px 12px;
}
.league-overview-item{
  min-width: 0;
}
.league-overview h2{
  margin: 0 0 6px;
}
.league-overview h3{
  margin: 0 0 4px;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.league-overview p{
  margin: 4px 0 0;
}

/* World Cup group/third-place tables are shorter; avoid forced horizontal scroll. */
.wc-standings-table.domestic-standings{
  min-width: 0;
}

@media (max-width: 900px){
  .wc-standings-table.domestic-standings{
    min-width: 0;
  }
}

@media (max-width: 900px){
  .domestic-standings{
    min-width: 0;
  }
  .domestic-standings-group,
  .domestic-standings-overall{
    min-width: 820px;
  }
  .domestic-standings thead th{
    font-size: 10px;
    letter-spacing: 0.05em;
    padding: 8px 4px;
  }
  .domestic-standings tbody td{
    padding: 8px 4px;
    font-size: 11px;
  }
  .domestic-standings .team-standings-logo{
    width: 16px;
    height: 16px;
  }
  .domestic-standings .team-standings-kit{
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 680px){
  .domestic-standings{
    border-spacing: 0 6px;
  }
  .domestic-standings-group,
  .domestic-standings-overall{
    min-width: 760px;
  }
  .domestic-standings-group thead th:nth-child(2),
  .domestic-standings-group tbody td.team-name{
    width: 36%;
  }
  .domestic-standings-overall thead th.group-col,
  .domestic-standings-overall tbody td.group-name{
    width: 92px;
  }
  .domestic-standings-overall thead th.team-col,
  .domestic-standings-overall tbody td.team-name{
    width: 34%;
  }
  .domestic-standings thead th{
    font-size: 9px;
    letter-spacing: 0.04em;
    padding: 6px 2px;
  }
  .domestic-standings tbody td{
    padding: 6px 2px;
    font-size: 10px;
  }
  .domestic-standings tbody td:not(.team-name){
    letter-spacing: 0.03em;
  }
  .domestic-standings .team-standings-logo{
    width: 14px;
    height: 14px;
  }
  .domestic-standings .team-standings-kit{
    display:none;
  }
  .domestic-standings-group .form-dot{
    width: 13px;
    height: 13px;
    font-size: 0.5rem;
  }
}

@media (max-width: 980px){
  .league-overview{
    grid-template-columns: 1fr;
  }
}

@media (min-width: 901px){
  .pl-app .layout,
  .ll-app .layout,
  .sa-app .layout{
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr);
  }

  .ucl-top-row{
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  }

  .sl-body{
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .wc-layout{
    grid-template-columns: minmax(0, 1.8fr) minmax(260px, 0.75fr);
  }
}
