.player-page {
  background: #ffffff;
}

.player-page__container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.breadcrumbs {
  font-size: 13px;
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.breadcrumbs a {
  color: #374151;
  text-decoration: none;
}
.breadcrumbs a:hover {
  text-decoration: underline;
}
.crumb-current {
  color: #6b7280;
}

/* HERO */

.player-hero {
  background: #fff;
  padding: 18px 20px;
  margin-bottom: 18px;
}

.player-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: flex-end;
}

.player-hero__photo-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 150px;
}
.player-hero__photo {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.player-hero__photo.placeholder {
  width: 200px;
  height: 220px;
  background: #f3f4f6;
}

.player-hero__info {
  position: relative;
  display: flex;
  gap: 60px;
}

.player-hero__info-right {
  padding-top: 30px;
}

.player-hero__number {
  font-size: 140px;
  line-height: 1;
  font-weight: 700;
  color: var(--player-accent, #0e1c44);
  margin-bottom: 4px;
}

.player-hero__names {
  margin-bottom: 10px;
}
.player-hero__firstname {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: #6b7280;
}
.player-hero__lastname {
  font-size: 32px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #111827;
}

.player-hero__meta-line {
  display: flex;
  gap: 20px;
  margin: 12px 0 16px;
}
.player-hero__meta-block {
  min-width: 120px;
}
.player-hero__meta-label {
  font-size: 11px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
}
.player-hero__meta-value {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  margin-top: 2px;
}

.player-hero__club {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.player-hero__clublogo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.player-hero__clubname {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
}
.player-hero__clubname:hover {
  text-decoration: underline;
}

.player-hero__back .back-link {
  font-size: 13px;
  color: #4b5563;
  text-decoration: none;
}
.player-hero__back .back-link:hover {
  text-decoration: underline;
}

/* FACTS BAR */

.player-facts {
  background: #fff;
  padding: 18px 0;
  margin-bottom: 18px;
}

.player-facts__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.player-facts__item {
  padding: 17px 20px;
  border-right: 1px solid #e5e7eb;
  background: #f9fafb;
  text-align: center;
}
.player-facts__item:last-child {
  border-right: none;
}
.player-facts__label {
  font-size: 13px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
}
.player-facts__value {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}
.player-facts__age {
  margin-left: 4px;
  font-size: 12px;
  font-weight: 400;
  color: #6b7280;
}

/* STATS */

.player-stats__header {
  background: #fff;
  padding: 18px 20px;
  margin-bottom: 18px;
}

.player-stats__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.player-stats__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.player-stats__season {
  font-size: 13px;
  color: #6b7280;
}

.player-stats__rows {
  overflow: hidden;
}
.player-stats__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 15px;
}
.player-stats__row:last-child {
  border-bottom: none;
}
.player-stats__cell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #f9fafb;
  border-right: 1px solid #e5e7eb;
}
.player-stats__cell:nth-child(2) {
  border-right: none;
}
.player-stats__label {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  color: #4b5563;
  color: #4b5563;
  display: flex;
  align-items: center;
  gap: 10px;
}
.player-stats__value {
  font-size: 20px;
  font-weight: 800;
  color: var(--player-accent, #dc2626);
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .player-hero__grid {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .player-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .player-hero__photo-wrap {
    justify-content: center;
  }
  .player-hero__number {
    font-size: 56px;
  }
  .player-facts__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .player-stats__row {
    grid-template-columns: 1fr;
  }
  .player-stats__cell {
    border-right: none !important;
  }
}

@media (max-width: 520px) {
  .player-page__container {
    padding: 12px;
  }
  .card {
    padding: 14px 12px;
  }
  .player-facts__grid {
    grid-template-columns: 1fr;
  }
}

.player-hero__meta-value--nation {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.player-hero__flag {
  width: 18px;
  height: 12px;
  border: 1px solid #e5e7eb;
  object-fit: cover;
}

.player-stats__icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

/* Уголок вверху hero-карточки */
.player-hero {
  position: relative;
  overflow: hidden;
}

.player-hero__corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;

  border-top: 84px solid var(--player-accent, #0e1c44);
  border-left: 84px solid transparent;
}
