.league-standings {
  margin: 0 0 24px;
}
.league-standings__title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 16px;
}
.league-standings__table + .league-standings__table {
  margin-top: 12px;
}
.league-standings__more {
  display: inline-flex;
  margin-top: 12px;
}
.league-standings__group {
  margin: 0 0 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--primary);
}
.league-standings__scroll {
  overflow-x: auto;
}
.league-standings__grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.league-standings__th {
  padding: 8px 6px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--grey);
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid #ececec;
}
.league-standings__th--pos {
  width: 34px;
}
.league-standings__th--team {
  text-align: left;
  min-width: 180px;
}
.league-standings__th--points {
  color: var(--text);
}
.league-standings__row {
  border-bottom: 1px solid #f2f2f2;
}
.league-standings__row:last-child {
  border-bottom: 0;
}
.league-standings__td {
  padding: 8px 6px;
  text-align: center;
  white-space: nowrap;
  color: var(--text);
}
.league-standings__td--team {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  min-width: 0;
}
.league-standings__td--pos {
  position: relative;
}
.league-standings__pos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--grey-light);
  font-size: 12px;
  font-weight: 600;
}
.league-standings__row--promo .league-standings__pos {
  background: rgba(38, 166, 91, 0.16);
  color: #1c7a43;
}
.league-standings__row--playoff .league-standings__pos {
  background: rgba(104, 40, 186, 0.14);
  color: var(--primary);
}
.league-standings__row--relegation .league-standings__pos {
  background: rgba(214, 48, 49, 0.14);
  color: #b3282a;
}
.league-standings__row--self {
  background: rgba(104, 40, 186, 0.07);
}
.league-standings__row--self .league-standings__team-name {
  font-weight: 700;
}
.league-standings__team {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
a.league-standings__team:hover .league-standings__team-name {
  color: var(--primary);
}
.league-standings__logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}
.league-standings__team-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.league-standings__zone {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.league-standings__td--points {
  font-weight: 700;
}
.league-standings__td--diff {
  color: var(--grey);
}
.league-standings__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--grey);
}
.league-standings__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.league-standings__legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--grey-light);
}
.league-standings__legend-dot--promo {
  background: rgba(38, 166, 91, 0.6);
}
.league-standings__legend-dot--playoff {
  background: rgba(104, 40, 186, 0.55);
}
.league-standings__legend-dot--relegation {
  background: rgba(214, 48, 49, 0.55);
}

@media (max-width: 768px) {
  .league-standings__grid {
    font-size: 13px;
  }
  .league-standings__th--team {
    min-width: 140px;
  }
  .league-standings__td,
  .league-standings__th {
    padding: 7px 4px;
  }
}
