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

.team-page {
  --text-color: var(--color-3);
  --block-bg-color: var(--color-9);
  --info-item-title-color: var(--color-7);

  font:
    400 15px/1 Manrope,
    sans-serif;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
body.theme-light .team-page {
  --text-color: #000;
  --block-bg-color: var(--color-3);
}

.team-block {
  padding: 20px 16px;
  border-radius: 16px;
  background: var(--block-bg-color);
}
.team-info {
  display: flex;
  align-items: start;
}
.team-main-info {
  width: 40%;
  flex-shrink: 0;

  display: grid;
  grid-template-columns: 80px 1fr;
  grid-template-rows: 60px 20px;
  grid-template-areas:
    "img name"
    "img tier";
  gap: 8px 10px;
}
.team-main-info img {
  display: none;
  grid-area: img;
  width: 80px;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
}
body.theme-light .team-main-info .logo {
  display: block;
}
body.theme-dark .team-main-info .logo-dark {
  display: block;
}
.team-main-info .team-name {
  grid-area: name;
  font-size: 40px;
  font-weight: 800;
  color: inherit !important;
  opacity: 0.9;
}
.team-location {
  display: flex;
  align-items: center;
  gap: 10px;
}
.team-location__flag {
  width: 20px;
  height: 20px;
  border-radius: 6px 4px;
  object-fit: contain;
  object-position: center;
}
.team-info-items {
  margin: 0 !important;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 10px 20px;
}
.team-info-items .info-item {
  display: flex;
  align-items: center;
  justify-content: start;
  font-weight: 700;
}
.team-info-items .info-item dt {
  color: var(--info-item-title-color);
}
.team-info-items .info-item dd {
  margin-left: 4px;
}
.team-description {
  margin-top: 20px;
  opacity: 0.7;
  line-height: 1.4;
}

.team-section {
}
.team-section__top {
  margin-bottom: 20px;
}
.team-section__title {
  font-size: 24px;
  text-transform: uppercase;
  font-weight: 800;
}

.team-players {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;

  margin: 0;
  padding: 0;
  list-style: none;
}

.player-card {
  width: 100%;
  display: flex;
  align-items: center;

  background-color: var(--block-bg-color);
  padding: 20px;
  border-radius: 16px;
}
.player-card__main {
  display: grid;
  grid-template-columns: 48px auto;
  grid-template-rows: 20px 20px;
  grid-template-areas:
    "img top"
    "img bottom";
  gap: 8px 16px;
}
.player-card__img {
  grid-area: img;
  width: 48px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
}
.player-card__main-top {
  grid-area: top;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}
.player-card__flag {
  width: 20px;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
}
.player-card__main-bottom {
  grid-area: bottom;
  opacity: 0.9;
  display: flex;
  align-items: center;
}

.other-teams {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;

  margin: 0;
  padding: 0;
  list-style: none;
}

.other-team-card {
  width: 100%;
  padding: 20px 16px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;

  border-radius: 16px;
  background-color: var(--block-bg-color);
  text-align: center;
  font-weight: 700;
}
.other-team-card img {
  display: none;
  grid-area: img;
  width: 80px;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
}
body.theme-light .other-team-card .logo {
  display: block;
}
body.theme-dark .other-team-card .logo-dark {
  display: block;
}
.other-team-card span {
  opacity: 0.9;
}

.team-related-matches-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.team-related-matches-load-btn {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}
.team-related-matches-load-btn .button[data-loading="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.team-related-news-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  padding: 0;
  margin: 0;
  list-style: none;
}
.team-related-news-list .card__image {
  height: 205px;
}

@media (max-width: 850px) {
  .team-page {
    gap: 20px;
  }

  ul,
  li {
    padding: 0 !important;
  }

  .team-block {
    padding: 16px;
  }
  .team-info {
    flex-direction: column;
    gap: 20px;
  }
  .team-main-info {
    width: 100%;
    grid-template-columns: 60px 1fr;
    grid-template-rows: 25px 25px;
  }
  .team-main-info img {
    width: 60px;
  }
  .team-main-info .team-name {
    font-size: 24px;
  }
  .team-info-items {
    grid-template-columns: 1fr;
  }
  .team-description {
    margin-top: 16px;
  }
  .team-description > * {
    padding: 0 !important;
  }

  .team-section__top {
    margin-bottom: 20px;
  }
  .team-section__title {
    font-size: 20px;
    padding: 0 !important;
  }

  .team-players {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .other-teams {
    overflow-x: auto;
    grid-template-columns: repeat(6, minmax(180px, 200px));
  }

  .other-team-card {
  }

  .team-related-news-list {
    grid-template-columns: 1fr;
  }
}
