.team-detail-player-page__header {
  background: url("../../../../img/team/content/background.jpg");
  background-size: cover;
  background-position: center center;
  margin: 0 -55px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding: 55px 200px 0 200px;
}

.team-detail-player-page__header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
      to left,
      transparent 25%,
      rgba(0, 0, 0, 0.6) 50%,
      rgba(0, 0, 0, 0.7) 100%
    ),
    linear-gradient(
      to right,
      transparent 25%,
      rgba(0, 0, 0, 0.6) 50%,
      rgba(0, 0, 0, 0.7) 100%
    );
}

.team-detail-player-page__header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: url("../../../../img/team/team-detail/team-detail-player/bg-header-small.svg");
  background-size: auto auto;
  background-repeat: no-repeat;
  background-position: right -300px top -90px;
}

.team-detail-player__player {
  position: relative;
  height: 480px;
  width: 100%;
  transition: all 0.8s ease;
  max-width: 1900px;
  margin: 0 auto;
}

.team-detail-player__player-number-bg {
  font-family: var(--font-family-secondary);
  position: absolute;
  left: -50px;
  top: -10%;
  font-size: 400px;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary-hover);
  line-height: var(--line-height-tight);
  z-index: 2;
  opacity: 0.77;
  transition: all 0.8s ease;
  -webkit-text-stroke: 1px var(--color-primary-hover);
  letter-spacing: -15px;
}

.team-detail-player__player-born {
  position: absolute;
  left: -10px;
  bottom: 70px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 4;
}

.team-detail-player__player-born-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-400);
  line-height: var(--line-height-loose);
}

.team-detail-player__player-born-place {
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-detail-player__player-born-flag {
  border-radius: 50%;
  border: 1px solid var(--color-gray-250);
}

.team-detail-player__player-born-text {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-tight);
  color: var(--color-white);
}

.team-detail-player__player-reward {
  position: absolute;
  right: -20px;
  top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  max-width: 180px;
  border: 1px solid var(--color-gray-700);
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  z-index: 2;
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--color-white);
}

.team-detail-player__player-reward-text {
  font-size: 20px;
  text-align: center;
}

.team-detail-player__player-reward-date {
  font-size: var(--font-size-md);
  color: var(--color-highlight);
}

.team-detail-player__controls {
  position: absolute;
  right: -20px;
  bottom: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
}

.team-detail-player__controls-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-white);
  text-decoration: none;
  transition: all 0.3s ease;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 7px;
  backdrop-filter: blur(15px);
  border: 1px solid var(--color-gray-700);
}

.team-detail-player__controls-icon-rotated {
  transform: rotate(180deg);
}

.team-detail-player__controls-link:hover {
  border-color: var(--color-primary-hover);
  color: var(--color-primary-hover);
}

.team-detail-player__player-photo {
  position: absolute;
  left: 50px;
  bottom: 0;
  height: 100%;
  width: auto;
  object-fit: contain;
  z-index: 2;
  transition: all 0.8s ease;
  transform-origin: bottom left;
}

.team-detail-player__player-info {
  position: absolute;
  left: 400px;
  top: 8%;
  z-index: 3;
  transition: all 0.8s ease;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.team-detail-player__player-header {
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: all 0.8s ease;
}

.team-detail-player__player-name {
  font-size: var(--font-size-5xxl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  line-height: 0.9;
  display: flex;
  flex-direction: column;
  transition: all 0.8s ease;
}

.team-detail-player__player-details {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: var(--font-weight-normal);
  color: var(--color-gray-400);
}

.team-detail-player__player-details-separator {
  width: 1px;
  height: 18px;
  background-color: var(--color-gray-400);
}

.team-detail-player__player-details-role {
  color: var(--color-secondary);
  text-transform: capitalize;
}

.team-detail-player__player-stats-wrapper {
  display: flex;
  flex-direction: column;
  gap: 45px;
  padding-left: 85px;
  transition: all 0.2s ease;
}

.team-detail-player__player-stats {
  display: flex;
  gap: 35px;
  list-style: none;
  transition: all 0.2s ease;
}

.team-detail-player__stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-detail-player__stat-value {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  line-height: var(--line-height-tight);
  transition: all 1.2s ease;
  text-transform: lowercase;
}

.team-detail-player__stat-label {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-400);
  line-height: var(--line-height-tight);
  transition: all 1.2s ease;
  text-transform: lowercase;
}

.team-detail-player__player-stats-mobile {
  gap: 35px;
  list-style: none;
  transition: all 0.2s ease;
  justify-content: space-between;
  display: none;
  margin: 0 auto;
}

.team-detail-player__player-stats-mobile .team-detail-player__stat-value {
  color: var(--color-black-soft);
  font-size: 32px;
}

.team-detail-player__player-stats-mobile .team-detail-player__stat-label {
  color: var(--color-gray-400);
  font-size: 12px;
}

.team-detail-player__button {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 15px 45px;
  border-radius: 130px;
  text-decoration: none;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  transition: all 0.3s ease;
  width: fit-content;
}

.team-detail-player__button:hover {
  background-color: var(--color-primary-hover);
}

.team-detail-player__button-icon {
  width: 20px;
  height: 20px;
}

.team-detail-player__button-mobile {
  display: none;
}

@media (max-width: 1700px) {
  .team-detail-player-page__header {
    margin: 0 -40px;
    padding: 55px 100px 0 100px;
  }
}

@media (max-width: 1024px) {
  .team-detail-player-page__header {
    margin: 0 -16px;
    padding: 0 16px 0 16px;
    align-items: center;
  }

  .team-detail-player-page__header::after {
    display: none;
  }

  .team-detail-player__player {
    height: 622px;
    max-width: 360px;
    margin: 0 auto;
  }

  .team-detail-player__player-number-bg {
    left: -32px;
    top: 34%;
    font-size: 300px;
    letter-spacing: -5px;
  }

  .team-detail-player__player-born {
    position: absolute;
    left: 0;
    top: 30%;
    bottom: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .team-detail-player__player-reward {
    right: auto;
    left: 0;
    top: 62%;
    z-index: 3;
  }

  .team-detail-player__player-stats-wrapper {
    display: none;
  }

  .team-detail-player__player-photo {
    left: 25px;
    height: 500px;
  }

  .team-detail-player__player-info {
    position: absolute;
    left: 0;
    top: 50px;
    z-index: 3;
    transition: all 0.8s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .team-detail-player__button-mobile {
    display: flex;
    position: absolute;
    bottom: 50px;
    left: 0;
    z-index: 3;
    padding: 10px 32px;
    background-color: var(--color-white);
    color: var(--color-primary);
  }

  .team-detail-player__button-mobile:hover {
    color: var(--color-white);
  }

  .team-detail-player__controls {
    right: 0;
  }

  .team-detail-player__player-stats-mobile {
    display: flex;
  }
}

@media (max-width: 400px) {
  .team-detail-player__player-stats {
    gap: 20px;
  }
}