.stp-template__inner {
  width: min(1040px, 94vw);
  margin-inline: auto;
  padding-block: clamp(18px, 3vw, 42px);
}

.stp-player-card {
  width: 100%;
  display: grid;
}

.stp-player-cards {
  display: grid;
  gap: clamp(18px, 2vw, 24px);
  align-items: start;
}

.stp-player-cards--rows {
  grid-template-columns: 1fr;
}

.stp-player-cards--columns {
  grid-template-columns: repeat(var(--stp-grid-columns, 2), minmax(0, 1fr));
}

.stp-player {
  --stp-bg: #12161c;
  --stp-border: #2a3139;
  --stp-panel: #252525;
  --stp-name-bg: #585f69;
  --stp-role-bg: #005b35;
  --stp-text: #f2f4f7;
  --stp-muted: #aab2bc;
  --stp-card-ratio: 397 / 344;
  --stp-footer-min-height: 92px;
  --stp-stats-col: 22.7%;

  width: 100%;
  max-width: 420px;
  aspect-ratio: var(--stp-card-ratio);
  display: grid;
  grid-template-columns: minmax(78px, var(--stp-stats-col)) minmax(0, 1fr);
  border: 1px solid var(--stp-border);
  background: var(--stp-bg);
  color: var(--stp-text);
  min-height: 0;
  overflow: hidden;
}

.stp-player-card .stp-player,
.stp-player-cards--rows .stp-player {
  margin-inline: auto;
}

.stp-player-cards--columns .stp-player {
  max-width: none;
}

.stp-player__stats {
  background: var(--stp-panel);
  padding: 8px 10px;
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  min-height: 0;
}

.stp-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  min-height: 0;
}

.stp-stat__label {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 0;
  color: #a0a4a8;
  text-transform: uppercase;
  text-align: center;
}

.stp-stat__value {
  display: block;
  margin-top: 0;
  font-family: "Montserrat", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 0;
  color: #fff;
  text-align: center;
}

.stp-player__main {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
}

.stp-player__image-wrap {
  background: #dbdde1;
  min-height: 0;
}

.stp-player__img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.stp-player__placeholder {
  width: 100%;
  height: 100%;
  min-height: inherit;
  background: radial-gradient(circle at 50% 30%, #f5f6f8 0%, #d4d8de 62%, #bfc5cd 100%);
}

.stp-player__footer {
  display: grid;
  grid-template-columns: 70% 30%;
  min-height: var(--stp-footer-min-height);
}

.stp-player__name {
  margin: 0;
  padding: 10px 16px;
  background: var(--stp-name-bg);
  color: #dbdde0;
  font-family: "Montserrat", sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 20px;
  line-height: 24px;
  letter-spacing: 0;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  overflow-wrap: anywhere;
}

.stp-player__name-link,
.stp-player__name-link:visited,
.stp-player__name-link:hover,
.stp-player__name-link:focus,
.stp-player__name-link:focus-visible,
.stp-player__name-link:active {
  color: inherit !important;
  text-decoration: none !important;
}

.stp-player__identity {
  background: var(--stp-role-bg);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  text-align: right;
  padding: 8px 12px 8px 8px;
}

.stp-player__number {
  display: block;
  color: #dbdde0;
  font-family: "Montserrat", sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: 0;
  text-align: right;
  text-transform: uppercase;
}

.stp-player__position {
  display: block;
  color: #dbdde0;
  font-family: "Montserrat", sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  line-height: 22px;
  letter-spacing: 0;
  text-align: right;
}

.stp-player-empty {
  margin: 0;
  color: #7f8791;
}

@media (max-width: 1280px) {
  .stp-player-cards--columns[style*="--stp-grid-columns:4"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .stp-player-cards--columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .stp-player-cards,
  .stp-player-cards--rows,
  .stp-player-cards--columns {
    grid-template-columns: 1fr;
  }

  .stp-player-card .stp-player,
  .stp-player-cards .stp-player {
    max-width: none;
  }
}
