/* Profil hráče /hrac/{id}-{slug} */
.hp section { margin: 22px 0; }
.hp h2 { font-size: 1.05rem; margin: 0 0 10px; }
.hp-muted { color: var(--text-muted); font-weight: 400; font-size: .85em; }
.hp-empty { color: var(--text-muted); }
.hp-nowrap { white-space: nowrap; }
.hp-abbr { display: none; }

.hp-head { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.hp-photo { position: relative; flex-shrink: 0; }
.hp-photo img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; background: var(--bg-tertiary); border: 2px solid var(--border-secondary); }
.hp-photo-edit { position: absolute; bottom: 0; right: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-primary); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 12px; }
.hp-photo-edit.hp-busy { opacity: .5; pointer-events: none; }
.hp-photo-msg { position: absolute; top: calc(100% + 6px); left: 0; white-space: nowrap; font-size: 11px; padding: 4px 10px; border-radius: 6px; background: rgba(34,197,94,.9); color: #fff; z-index: 5; }
.hp-photo-msg.hp-err { background: rgba(239,68,68,.9); }
.hp-title { flex: 1; min-width: 0; }
.hp-title h1 { margin: 0 0 4px; }
.hp-nick { font-weight: 400; color: var(--text-muted); font-size: .7em; }
.hp-team { margin: 0 0 12px; }
.hp-kpis { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.hp-kpi { background: var(--bg-secondary); border: 1px solid var(--border-primary); border-radius: 10px; padding: 8px 12px; min-width: 96px; }
.hp-kpi b { display: block; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.hp-kpi span { font-size: .72rem; color: var(--text-muted); }
.hp-form { letter-spacing: 2px; }
.hp-w { color: var(--accent-primary); }
.hp-l { color: var(--text-muted); }
.hp-compare-btn { padding: 7px 14px; border-radius: 10px; border: 1px solid var(--accent-primary); background: none; color: var(--accent-primary-hover); cursor: pointer; font-weight: 600; }

.hp-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 8px; margin-top: 18px; border-bottom: 1px solid var(--border-primary); scrollbar-width: thin; }
.hp-tabs a { flex-shrink: 0; padding: 6px 12px; border-radius: 16px; border: 1px solid var(--border-primary); text-decoration: none; font-size: .85rem; white-space: nowrap; }
.hp-tabs a.active { background: var(--accent-primary); border-color: var(--accent-primary); color: #000; font-weight: 700; }

.hp-table { width: 100%; }
.hp-table td, .hp-table th { text-align: center; }
.hp-table .txtleft { text-align: left; }
.hp-sum td { font-weight: 700; border-top: 1px solid var(--border-secondary); }
.hp-res-w { color: var(--accent-primary); font-weight: 700; }
.hp-res-l { color: var(--text-muted); font-weight: 700; }
.hp-more-row { display: none; }
.hp-show-all .hp-more-row { display: table-row; }
.hp-expand { margin-top: 8px; padding: 6px 14px; border-radius: 16px; border: 1px solid var(--border-primary); background: var(--bg-secondary); color: inherit; cursor: pointer; }

.hp-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.hp-cols section { min-width: 0; }
.hp-rivals { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.hp-rival { flex: 1 1 140px; display: flex; flex-direction: column; padding: 8px 12px; border-radius: 10px; text-decoration: none; border: 1px solid var(--border-primary); background: var(--bg-secondary); }
.hp-rival span { font-size: .72rem; color: var(--text-muted); }
.hp-rival em { font-style: normal; font-variant-numeric: tabular-nums; }
.hp-rival-bad { border-color: rgba(239,68,68,.6); }
.hp-rival-good { border-color: var(--accent-primary); }

.hp-chart { width: 100%; max-width: 640px; height: auto; display: block; margin-bottom: 10px; }
.hp-grid { stroke: var(--border-primary); stroke-width: 1; }
.hp-grid-mid { stroke: var(--border-secondary); stroke-width: 1; stroke-dasharray: 4 4; }
.hp-axis { fill: var(--text-muted); font-size: 11px; }
.hp-line { fill: none; stroke: var(--accent-primary); stroke-width: 2.5; }
.hp-dot { fill: var(--accent-primary); }
.hp-line-rating { stroke: #ffb84d; stroke-width: 2; }
.hp-chart-title { margin: 6px 0 2px; font-size: .78rem; }
.hp-kpi-rating b { color: #ffb84d; }

@media (max-width: 760px) {
  .hp-cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hp-head { gap: 12px; }
  .hp-photo img { width: 64px; height: 64px; }
  .hp-kpi { flex: 1 1 calc(50% - 8px); min-width: 0; }
  .hp section { max-width: 100%; overflow-x: auto; }
  .hp-table { font-size: .85rem; table-layout: fixed; }
  .hp-table td, .hp-table th { padding: 6px 4px; }
  .hp-table th { white-space: normal; font-size: .62rem; letter-spacing: 0; line-height: 1.2; }
  .hp-lab { display: none; }
  .hp-abbr { display: inline; }
  .hp-table td.txtleft, .hp-table th.txtleft { width: 32%; }
  .hp-table td:not(.txtleft) { white-space: nowrap; }
  .hp-seasons th:nth-child(1), .hp-seasons td:nth-child(1) { width: 24%; }
  .hp-seasons th:nth-child(2), .hp-seasons td:nth-child(2) { width: auto; }
  .hp-seasons th:nth-child(6), .hp-seasons td:nth-child(6) { display: none; }
  /* Hry: na mobilu bez sloupců spoluhráč/soupeři v tabulce, vejde se bez scrollu */
  .hp-games th:nth-child(3), .hp-games td:nth-child(3),
  .hp-games th:nth-child(4), .hp-games td:nth-child(4),
  .hp-games th:nth-child(5), .hp-games td:nth-child(5) { display: none; }
}
