.breadcrumbs {
  padding-top: 0 !important;
}

.teams-page {
  --text-color: var(--color-3);
  --team-row-bg-color: var(--color-9);
  --accent-color: var(--color-2);
}

body.theme-light .teams-page {
  --text-color: #000;
  --team-row-bg-color: var(--color-3);
  --accent-color: var(--color-13);
}

.post__title {
  justify-content: start !important;
}

.teams-list {
  font:
    400 15px/1 Manrope,
    sans-serif;
}
.teams-list ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.team-row {
  display: flex;
  align-items: center;
  padding: 0 !important;
}
.team-row .cell {
  padding: 16px;
  flex-shrink: 0;
  flex-grow: 1;
}
.team-row .cell:nth-child(1) {
  width: 64px;
}
.team-row .cell:nth-child(2) {
  width: 50%;
}
.team-row .cell:nth-child(3) {
  width: calc(50% - 64px);
}
.team-row .cell .idx {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team-row--head {
  color: var(--text-color);
  opacity: 0.7;
  font-weight: 600;
}
.team-row--item {
  background-color: var(--team-row-bg-color);
  border-radius: 16px;
}
.team-link {
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: 20px 20px;
  grid-template-areas:
    "img username"
    "img fullname";
  gap: 8px 16px;
}
body.theme-light .team-link .logo {
  display: block;
}
body.theme-dark .team-link .logo-dark {
  display: block;
}
.team-link img {
  display: none;
  grid-area: img;
  width: 48px;
  height: 48px;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
}
.team-name {
  grid-area: username;
  font-weight: 700;
}
.team-location {
  opacity: 0.9;
}
.load-more {
  display: flex;
  justify-content: center;
}
.load-more::after {
  content: "";
  width: 32px;
  height: 32px;
  margin-top: 10px;
  border-radius: 50%;
  border: 5px solid var(--accent-color);
  border-top-color: transparent;
  display: none;
}
.load-more[data-loading="true"]::after {
  display: block;
  animation: spin 0.7s ease-out infinite;
}

.team-players {
  display: grid;
  grid-template-columns: repeat(5, 60px) 20px;
  align-items: center;
  gap: 20px;
}
.team-players__link {
  min-width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;

  text-align: center;
}
.team-players__img-wrapper {
  display: none;
  width: 60px;
  aspect-ratio: 1;
}
.team-players__link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
}
.team-players[data-full="true"] .team-players__img-wrapper {
  display: block;
}
.team-players[data-full="true"] .team-players__link {
  margin-bottom: auto;
}
.team-players[data-full="true"] .team-players__toggle {
  transform: rotate(180deg);
}
.team-players__username {
  max-width: 60px;
  opacity: 0.9;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team-players__toggle {
  width: 20px;
  height: 20px;
  grid-column: 6/-1;

  display: flex;
  align-items: center;
  justify-content: center;

  background: transparent;
  padding: 0;
  border: none;
  color: var(--accent-color);

  cursor: pointer;
}
.team-players__toggle:focus {
  outline: none;
}

@keyframes spin {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 850px) {
  .team-row .cell:nth-child(1) {
    width: 15%;
  }
  .team-row .cell:nth-child(2) {
    width: 85%;
  }
  .team-row--item {
    flex-wrap: wrap;
  }
  .team-row--head .cell:nth-child(3) {
    display: none;
  }
  .team-row--item .cell:nth-child(3) {
    width: 100%;
  }
  .team-row--item .cell[data-empty="true"] {
    display: none;
  }
  .team-players {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .team-players__link {
    flex-shrink: 0;
    min-width: auto;
    width: calc(20% - 10px);
  }
  .team-players__img-wrapper {
    width: 100%;
  }
}
