.spr-player-table-row {
  border-top: 0.0625rem solid var(--color-gray-40);
}

.spr-player-table-row__rank {
  width: calc(40 / 1280 * 100%);
  padding: var(--space-x-small);
  font-size: 0.875rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.5rem;

  &:empty {
    display: none;
  }

  @media (min-width: 992px) {
    width: calc(40 / 1280 * 100%);
  }
}

.spr-player-table-row__player {
  width: calc(356 / 1280 * 100%);
  padding: var(--space-x-small);
  border-right: 0.0625rem solid var(--color-gray-40);

  table:has(th.spr-player-table-row-list__label-rank) & {
    width: calc(316 / 1280 * 100%);
  }
}

.spr-player-table-row__player-name {
  display: block;
  overflow: hidden;
  width: calc(100% - 1.5625rem - var(--space-x-small));
  white-space: nowrap;
  text-decoration: none;
  text-overflow: ellipsis;
  color: var(--color-black);
}

a.spr-player-table-row__player-name:hover {
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.spr-player-table-row__col-five a {
  text-decoration: none;
  color: var(--color-black);
}
.spr-player-table-row__col-five a:hover {
  text-decoration: underline;
  color: var(--color-black);
  text-underline-offset: 0.25rem;
}

.spr-player-table-row__country {
  img {
    width: 1.5625rem;
    height: auto;
  }

  &:empty {
    display: none;
  }
}

.spr-player-table-row__country,
.spr-player-table-row__col-one,
.spr-player-table-row__col-two,
.spr-player-table-row__col-three,
.spr-player-table-row__col-four,
.spr-player-table-row__col-five {
  width: calc(318 / 1280 * 100%);
  padding: var(--space-x-small);

  table:has(th:nth-child(2)) & {
    width: calc(924 / 1280 * 100%);
  }

  table:has(th:nth-child(3)) & {
    width: calc(426 / 1280 * 100%);
  }

  table:has(th:nth-child(4)) & {
    width: calc(308 / 1280 * 100%);
  }

  table:has(th:nth-child(5)) & {
    width: calc(231 / 1280 * 100%);
  }

  table:has(th.spr-player-table-row-list__label-rank:first-child + th + th + th + th) & {
    width: calc(308 / 1280 * 100%);
  }

  table:has(th:nth-child(6)) & {
    width: calc(184 / 1280 * 100%);
  }
}

.spr-player-table-row__tiebreak {
  width: calc(36 / 400 * 100%);
  padding: var(--space-x-small);

  @media (min-width: 992px) {
    width: calc(106 / 1280 * 100%);
  }
}

.spr-player-table-row__player-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  font-size: 0.875rem;
  gap: var(--space-x-small);

  @media (min-width: 992px) {
    font-size: 1rem;
  }
}

.spr-player-table-row__photo {
  overflow: hidden;
  flex: none;
  width: 1.5625rem;
  height: 1.5625rem;
  border-radius: 50%;
  background-color: var(--color-secondary);

  @media (min-width: 992px) {
    width: 2.75rem;
    height: 2.75rem;
  }
}

.spr-player-table-row__tiebreak span {
  display: inline-block;
  height: 1.25rem;
  text-transform: uppercase;
  border: 1px solid var(--color-black);
  border-radius: calc(var(--radius) / 2);
  font-size: 0.625rem;
  line-height: 1.25rem;
  padding-inline: var(--size-025);

  @media (min-width: 992px) {
    height: 1.625rem;
    font-size: 0.875rem;
    line-height: 1.5rem;
    padding-inline: var(--size-05);
  }
}
