.player-layout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.player-layout > div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

.player-layout > div:first-child {
  flex: 2;
}

.player-layout > div:first-child > div:first-child {
  order: 1;
}

.player-layout > div:nth-child(2) {
  flex: 3;
}

.player-layout > div > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.player-layout > div > .player-layout-stats {
  flex: 2;
}

.player-box {
  background-color: #f5f5f5;
  padding: 12px;
  border-radius: 12px;
}

.player-layout-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.player-layout-column.grow {
  flex-grow: 1;
}

.player-box.grow {
  flex-grow: 1;
}

.player-box__title {
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
}

.player-stats-grid {
  /* display: grid; */
  /* grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); */
  gap: 8px;
  columns: 3 150px;
}

.player-stats-grid__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  white-space: nowrap;
  padding: 2px 0;
}

.stat {
  min-width: 40px;
  padding: 2px;
  flex: 0 0 40px;
}

.stat-name__container {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-index-list > li {
  font-size: 14px;
  font-weight: bold;
  border: none;
  padding: 8px 0;
}

.player-info tr td,
.player-info tr th {
  padding: 8px 0;
  font-size: 14px;
}

.player-info th {
  text-align: left;
  font-weight: bold;
  font-size: 13px;
}

.player-positions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-positions-row {
  margin: 0;
  display: flex;
  gap: 4px;
}

.player-positions-item {
  font-size: 13px;
  height: 28px;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 2px solid rgba(0, 0, 0, 0.125);
  /* font-weight: bold; */
}

.player-positions-item span.pos {
  border-bottom: none;
}

.breadcrumbs-container {
  padding-top: 8px;
}

.breadcrumbs-container > .container-large {
  padding: 0;
  overflow-x: auto;
  display: flex;
  align-items: flex-start;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
  font-size: 14px;
  flex-wrap: nowrap;
}

.breadcrumbs svg {
  width: 16px;
  height: 16px;
  color: #707070;
  flex-shrink: 0;
}

html[dir="rtl"] .breadcrumbs svg {
  transform: scale(-1, 1);
}

.breadcrumb__home {
  display: flex;
  align-items: center;
}

.breadcrumb__home svg {
  width: 16px;
  height: 16px;
  color: var(--text-100);
  opacity: 0.5;
}

.breadcrumb__home svg:hover {
  opacity: 1;
}

.breadcrumbs a {
  text-decoration: none;
  /* border-bottom: 1px solid #fafafa; */
}

.breadcrumbs a:hover {
  /* border-color: var(--text-100); */
  opacity: 0.7;
}

.stat {
  border: 2px solid rgba(0, 0, 0, 0.125);
}

.historic.stat_tier_0 {
  background-color: transparent;
}

.historic.stat_tier_1 {
  background-color: #88c900;
}

.historic.stat_tier_2 {
  background-color: #ffff00;
}

.historic.stat_tier_3 {
  background-color: #feb907;
}

.historic.stat_tier_4 {
  background-color: #ef1e1e;
}

li.versions-list-el .stat {
  border: 2px solid rgba(0, 0, 0, 0.125);
}

.squad-table {
  font-size: 14px;
}

.squad-table tbody tr,
.squad-table thead tr {
  height: 40px;
}

thead tr th,
thead tr td {
  background-color: #f0f0f0;
}

.versions-list {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  white-space: nowrap;
  margin: 0;
}

.versions-list-el {
  font-size: 14px;
}

.versions-list-el > .game {
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-info td > .player-positions-item {
  display: inline-flex;
}

.player-index-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.player-info-bottom {
  display: none !important;
}

.player-info {
  margin: 0;
  padding: 0;
}

.player-info {
  max-width: initial;
}

.player-header {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
}

.player-header > img {
  width: 64px;
  height: 64px;
  margin-inline-end: 12px;
}

.namelink:has(img) {
  border: none;
}

.namelink > img {
  vertical-align: middle;
  margin-right: 4px;
}

.namelink:has(img) > span {
  border-bottom: 1px solid #e0e0e0;
  vertical-align: middle;
}

.namelink:has(img):hover > span {
  border-color: inherit;
}

.namelink:has(img):hover > img {
  opacity: 0.7;
}

@media (max-width: 1439px) {
  .player-layout > div {
    flex-direction: column;
    align-items: normal;
  }
}

@media (max-width: 1023px) {
  .hexagon {
    width: 100%;
  }

  h1 {
    font-size: 17px;
  }
}

@media (max-width: 767px) {
  .player-layout {
    flex-direction: column;
    align-items: normal;
  }

  .player-layout > div:first-child > div:nth-child(2) {
    flex-direction: row;
    align-items: flex-start;
  }

  .player-layout > div:first-child > div:nth-child(2) > div {
    flex: 1;
    overflow: hidden;
  }

  .hexagon-container {
    margin: 0;
  }

  .player-positions-item {
    font-size: 12px;
    width: 34px;
    height: 24px;
    line-height: 1;
  }

  .player-info-top {
    display: none !important;
  }

  .player-info-bottom {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 374px) {
  .player-layout > div:first-child > div:nth-child(2) {
    flex-direction: column;
    align-items: normal;
  }

  .hexagon {
    width: 160px;
  }

  h1 {
    font-size: 16px;
  }
}
