.player-stats-page {
  color: #1f2937;
  background: #f8fafc;
}

.player-stats-main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 36px;
}

.player-summary {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px;
  text-align: center;
  background: #fff;
  border: 1px solid #dbe2ea;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.07);
}

.player-summary-eyebrow,
.player-section-eyebrow {
  margin: 0;
  color: var(--cm-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.player-summary h1 {
  margin: 5px 0 20px;
  color: #172033;
  font-size: clamp(25px, 4vw, 34px);
}

.player-summary-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.player-stat {
  padding: 13px 10px;
  background: #f8fafc;
  border-radius: 10px;
}

.player-stat strong,
.player-stat span {
  display: block;
}

.player-stat strong {
  color: #172033;
  font-size: 23px;
  font-variant-numeric: tabular-nums;
}

.player-stat span {
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
}

.player-summary-details {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  text-align: left;
}

.player-summary-details > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  padding-top: 9px;
  border-top: 1px solid #edf1f5;
}

.player-summary-details dt {
  color: #64748b;
  font-size: 12px;
}

.player-summary-details dd {
  margin: 0;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
}

.player-badges-history,
.player-history-section {
  margin-top: 26px;
}

.player-history-section {
  width: fit-content;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.player-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 12px;
}

.player-section-heading h2 {
  margin: 3px 0 0;
  color: #172033;
  font-size: 20px;
}

.player-section-count {
  padding: 5px 9px;
  color: #475569;
  background: #eef2f7;
  border-radius: 999px;
  font-size: 11px;
  white-space: nowrap;
}

.player-badge-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.player-badge-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 11px;
  align-items: center;
  padding: 13px 14px;
  background: #fff;
  border: 1px solid #dbe2ea;
  border-radius: 11px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.player-badge-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #9a6700;
  background: #fff4c2;
  border-radius: 50%;
  font-size: 18px;
}

.player-badge-icon {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.player-badge-item h3 {
  margin: 0;
  color: #1e293b;
  font-size: 14px;
}

.player-badge-item p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}

.player-history-filters {
  display: flex;
  justify-content: center;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #dbe2ea;
  border-radius: 10px;
}

.player-history-filters label {
  display: grid;
  gap: 5px;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
}

.player-history-filters select {
  min-width: 150px;
  padding: 7px 9px;
  color: #1f2937;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
}

.player-history-table-wrap {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.player-history-table {
  width: max-content;
  min-width: 0;
  margin: 0 auto;
}

.player-history-table td {
  white-space: nowrap;
}

.player-history-status {
  padding: 6px 9px;
  text-align: center;
  font-weight: 700;
}

.player-history-status.expired,
.player-history-status.dropped {
  color: #991b1b;
  background: #fef2f2;
}

.player-history-summary td {
  background: #f8fafc;
}

.player-history-empty {
  padding: 20px;
  color: #64748b;
  text-align: center;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
}

@media (max-width: 600px) {
  .player-summary {
    padding: 18px 14px;
  }

  .player-summary-details > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .player-history-filters,
  .player-history-filters label,
  .player-history-filters select {
    width: 100%;
  }

  .player-history-section {
    width: 100%;
  }
}
