.playersPage {
  display: grid;
  gap: 22px;
}

.hero,
.grid,
.profileCard,
.playerIdentity,
.playerIdentity__text,
.searchForm,
.searchQuick,
.statusBox,
.statusBox__actions,
.panel,
.panel__head,
.headActions,
.profileComments,
.commentForm,
.commentForm__foot,
.moderation,
.moderation__actions {
  display: grid;
  gap: 14px;
}

.hero {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
  padding: 20px;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.statusBox {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(95, 70, 40, 0.14);
  background: rgba(255, 252, 246, 0.7);
}

.statusBox__title,
.pointsBadge__label,
.playerSteam,
.footnote {
  color: var(--tf-muted);
  font-family: var(--tf-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
}

.statusBox__row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--tf-display);
}

.dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #c7ae77;
  box-shadow: 0 0 0 4px rgba(199, 174, 119, 0.16);
}

.dot--ok { background: #7fa243; box-shadow: 0 0 0 4px rgba(127, 162, 67, 0.18); }
.dot--warn { background: #c59a39; box-shadow: 0 0 0 4px rgba(197, 154, 57, 0.18); }
.dot--bad { background: #ba533e; box-shadow: 0 0 0 4px rgba(186, 83, 62, 0.18); }

.grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: start;
}

.panel {
  padding: 20px;
}

.panel__head {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.searchRow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.label,
.labelInline {
  font-family: var(--tf-display);
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--tf-muted);
}

.searchForm input,
.searchForm select,
.commentForm textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(95, 70, 40, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: var(--tf-ink);
}

.searchQuick {
  grid-template-columns: auto auto 1fr;
  align-items: center;
}

.help {
  color: var(--tf-muted);
}

.profileCard {
  padding: 18px;
  margin-top: 14px;
  border-radius: 20px;
  border: 1px solid rgba(95, 70, 40, 0.14);
  background: rgba(255, 252, 246, 0.68);
}

.profileCard__top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.playerIdentity {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
}

.playerAvatarLink {
  display: inline-flex;
}

.playerAvatar {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 18px;
  border: 3px solid rgba(95, 70, 40, 0.14);
  box-shadow: 0 12px 26px rgba(41, 24, 10, 0.14);
}

.playerName {
  font-family: var(--tf-display);
  font-size: 1.45rem;
  text-transform: uppercase;
}

.pointsBadge {
  min-width: 160px;
  padding: 16px;
  border-radius: 18px;
  text-align: center;
  background: linear-gradient(180deg, rgba(207, 111, 29, 0.14), rgba(255, 255, 255, 0.48));
  border: 1px solid rgba(207, 111, 29, 0.18);
}

.pointsBadge__value {
  margin-top: 6px;
  font-family: var(--tf-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.statsGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(95, 70, 40, 0.12);
  background: rgba(255, 255, 255, 0.45);
}

.stat span {
  display: block;
  margin-bottom: 8px;
  color: var(--tf-muted);
  font-family: var(--tf-display);
  text-transform: uppercase;
  font-size: 0.72rem;
}

.stat b {
  font-family: var(--tf-display);
  font-size: 1rem;
}

.profileCommentsList {
  display: grid;
  gap: 12px;
}

.playerCell,
.profileComment,
.profileComment__content,
.profileComment__meta,
.profileComment__author {
  display: grid;
  gap: 10px;
}

.playerCell {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.playerCell__avatar {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(95, 70, 40, 0.16);
}

.playerCell__name {
  text-decoration: underline;
  text-decoration-color: rgba(95, 70, 40, 0.18);
  text-underline-offset: 0.16em;
}

.clickableRow {
  cursor: pointer;
}

.rank,
.pts {
  font-family: var(--tf-display);
}

.delta,
.reason {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-family: var(--tf-display);
  text-transform: uppercase;
  font-size: 0.72rem;
}

.delta.pos,
.reason--win {
  background: rgba(127, 162, 67, 0.16);
  color: #4c6925;
}

.delta.neg {
  background: rgba(186, 83, 62, 0.16);
  color: #7d2f23;
}

.reason--play {
  background: rgba(93, 140, 173, 0.14);
  color: #375873;
}

.reason--gg {
  background: rgba(197, 154, 57, 0.16);
  color: #755620;
}

.profileComment {
  grid-template-columns: auto 1fr;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(95, 70, 40, 0.14);
  background: rgba(255, 255, 255, 0.5);
}

.profileComment__avatar {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(95, 70, 40, 0.16);
}

.profileComment__meta {
  grid-template-columns: 1fr auto;
}

.profileComment__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profileComment__body {
  white-space: pre-wrap;
}

.commentForm textarea {
  min-height: 120px;
  resize: vertical;
}

.commentForm__foot,
.moderation__actions,
.headActions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--tf-display);
  text-transform: uppercase;
}

.toggle input {
  accent-color: var(--tf-orange);
}

.historyPanel,
.infoPanel {
  padding: 20px;
}

.infoList {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--tf-ink-soft);
}

.table td:first-child {
  font-family: var(--tf-display);
}

.error {
  color: #822a20;
}

.ok {
  color: #4b6d25;
}

@media (max-width: 980px) {
  .hero,
  .grid {
    grid-template-columns: 1fr;
  }

  .statsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero,
  .panel,
  .historyPanel,
  .infoPanel {
    padding: 16px;
  }

  .panel__head,
  .searchRow,
  .searchQuick,
  .profileCard__top,
  .playerIdentity {
    grid-template-columns: 1fr;
    display: grid;
  }

  .pointsBadge {
    min-width: 0;
  }

  .statsGrid {
    grid-template-columns: 1fr;
  }

  .profileComment,
  .playerCell,
  .profileComment__meta {
    grid-template-columns: 1fr;
  }
}
