.spr-player-rounds-list {
  position: relative;
  padding-block: var(--padding-vertical-small);
  background-color: var(--color-white);

  &.grid {
    gap: var(--space-small);
  }

  @media (min-width: 992px) {
    background-color: var(--color-gray-20);
  }
}

.spr-player-rounds-list .spr-table-responsive {
  overflow-x: auto;
  background:
      /* Shadow covers */
    linear-gradient(to right, white 30%, rgba(255, 255, 255, 0)),
    linear-gradient(to left, white 30%, rgba(255, 255, 255, 0)) 100% 0,
    /* Shadows */ radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)),
    radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0)) 100% 0;
  background-color: white;
  background-repeat: no-repeat;

  /* Opera doesn't support this in the shorthand */
  background-attachment: local, local, scroll, scroll;
  background-size:
    40px 100%,
    40px 100%,
    14px 100%,
    14px 100%;

  @media (min-width: 992px) {
    overflow: unset;
  }
}

.spr-player-rounds-list__header {
  grid-column: 1 / span 4;

  @media (min-width: 992px) {
    display: none;
  }
}

.spr-player-rounds-list__header table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
}

.spr-player-rounds-list__header table th {
  text-align: center;
  text-transform: uppercase;
  border-top: 0.0625rem solid var(--color-gray-40);
  border-bottom: 0.0625rem solid var(--color-gray-40);
  font-size: 0.875rem;

  &:first-child {
    text-align: left;
  }

  &:last-child {
    text-align: right;
  }
}

.spr-player-rounds-list__header table td {
  text-align: center;

  &:first-child {
    text-align: left;
  }

  &:last-child {
    text-align: right;
  }
}

.spr-player-rounds-list__content {
  grid-column: 1 / span 4;
  background-color: var(--color-white);

  @media (min-width: 992px) {
    grid-column: 1 / span 12;
    padding: var(--size-2);
    border: 0.0625rem solid var(--color-gray-40);
    border-radius: var(--radius);
    box-shadow: var(--shadow-0);
  }
}

.spr-player-rounds-list__content table {
  width: 30rem;
  border-spacing: 0;
  border-collapse: collapse;

  @media (min-width: 500px) {
    width: 100%;
    table-layout: fixed;
  }

  @media (min-width: 992px) {
    width: 100%;
  }

  @media (min-width: 1200px) {
    table-layout: auto;
  }
}

.spr-player-rounds-list__content table th {
  text-align: left;
  text-transform: uppercase;
  font-size: 0.875rem;
  line-height: 1;
  padding-block: var(--space-xx-small);
  padding-inline: var(--space-x-small);
}

.spr-player-rounds-list__content table th img {
  display: inline-block;
  width: 1.5625rem;
  height: 1.5625rem;
  border-radius: 50%;
  background-color: var(--color-secondary);

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

.spr-player-rounds-list__content .spr-player-rounds-list__label-rank {
  display: none;
  width: 3rem;

  @media (min-width: 992px) {
    display: table-cell;
    overflow: hidden;
    width: calc(40 / 1280 * 100%);
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

.spr-player-rounds-list__content .spr-player-rounds-list__label-player {
  display: none;
  width: 10rem;

  @media (min-width: 992px) {
    display: table-cell;
    overflow: hidden;
    width: calc(208 / 1280 * 100%);
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

.spr-player-rounds-list__content .spr-player-rounds-list__label-knsb-rating,
.spr-player-rounds-list__content .spr-player-rounds-list__label-fide-rating,
.spr-player-rounds-list__content .spr-player-rounds-list__label-score,
.spr-player-rounds-list__content .spr-player-rounds-list__label-rating,
.spr-player-rounds-list__content .spr-player-rounds-list__label-sb,
.spr-player-rounds-list__content .spr-player-rounds-list__label-tpr {
  display: none;
  width: 4.5rem;

  @media (min-width: 992px) {
    display: table-cell;
    overflow: hidden;
    width: calc(84 / 1280 * 100%);
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

.spr-player-rounds-list__content .spr-player-rounds-list__label-one {
  width: 2.25rem;
  padding-inline: 0;
  text-align: center;

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

.spr-player-rounds-list__content .spr-player-rounds-list__label-one ~ [class^="spr-player-rounds-list__label-"] {
  width: 2.25rem;
  padding-inline: 0;
  text-align: center;

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

.spr-player-rounds-list__content table td {
  font-size: 0.875rem;

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