/* Přehled hráčů /hraci */
.hc h1 { margin-bottom: 12px; }

.hc-table th a.hc-help { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 5px; border-radius: 50%;
  border: 1px solid var(--border-secondary); font-size: .7rem; font-weight: 700; color: var(--text-muted); text-decoration: none; vertical-align: middle; padding: 0; }
.hc-table th a.hc-help:hover { color: var(--accent-primary); border-color: var(--accent-primary); }
.hc-filters {
  display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end;
  background: var(--bg-secondary); border: 1px solid var(--border-primary);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 14px;
}
.hc-f { display: flex; flex-direction: column; gap: 4px; font-size: .78rem; color: var(--text-muted); }
.hc-f select, .hc-f input {
  min-height: 36px; padding: 6px 10px; border-radius: 8px; font-size: .9rem;
  background: var(--bg-tertiary); color: var(--text-primary); border: 1px solid var(--border-primary);
}
.hc-f-q { flex: 1 1 200px; }
.hc-f-q input { width: 100%; }
.hc-f-min select { width: 76px; }
.hc-submit { min-height: 36px; }

.hc-count { margin: 0 0 8px; font-size: .82rem; color: var(--text-muted); }
.hc-empty { color: var(--text-muted); padding: 16px 0; }
#hcResults { transition: opacity .15s; }
#hcResults.hc-loading { opacity: .55; }

.hc-table { width: 100%; }
.hc-table th a { color: inherit; text-decoration: none; white-space: nowrap; }
.hc-table th a:hover { color: var(--accent-primary-hover); }
.hc-table .hc-num { text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hc-table .hc-rank { width: 34px; text-align: right; color: var(--text-muted); }
.hc-table .hc-sel { width: 28px; text-align: center; }
.hc-pick { width: 16px; height: 16px; accent-color: var(--accent-primary); cursor: pointer; }
.hc-name a { font-weight: 600; }
.hc-suffix { font-size: .78rem; color: var(--text-muted); }
.hc-team { display: block; font-size: .76rem; color: var(--text-muted); }
.hc-pros { font-weight: 600; }
.hc-rating { font-weight: 700; color: var(--accent-primary-hover); }
.hc-form { white-space: nowrap; letter-spacing: 1px; text-align: center; }
.hc-w { color: var(--accent-primary); }
.hc-l { color: var(--text-muted); }
.hc-chip {
  display: inline-block; margin: 1px 4px 1px 0; padding: 1px 6px; border-radius: 6px;
  font-size: .72rem; white-space: nowrap; background: var(--bg-tertiary); border: 1px solid var(--border-primary);
}
.hc-chip b { color: var(--text-muted); font-weight: 600; }
.hc-disc-m { display: none; }

.hc-more { text-align: center; margin: 14px 0; }
.hc-more-btn {
  display: inline-block; padding: 8px 18px; border-radius: 20px; border: 1px solid var(--border-primary);
  background: var(--bg-secondary); text-decoration: none;
}

/* Lišta „Porovnat" dole */
.hc-compare {
  position: sticky; bottom: 12px; z-index: 20; margin: 12px auto 0; max-width: 520px;
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
  background: var(--bg-secondary); border: 1px solid var(--accent-primary); box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.hc-compare[hidden] { display: none; }
#hcCompareText { flex: 1; font-size: .88rem; }
.hc-compare-clear { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: .85rem; }
.hc-compare-go {
  padding: 8px 16px; border-radius: 10px; background: var(--accent-primary); color: #000 !important;
  font-weight: 700; text-decoration: none;
}
.hc-compare-go.hc-disabled { opacity: .45; pointer-events: none; }

/* Mobil: tabulka → kompaktní řádky */
@media (max-width: 640px) {
  .hc-filters { padding: 10px; gap: 8px; }
  .hc-f { flex: 1 1 calc(50% - 8px); }
  .hc-f select { width: 100%; }
  .hc-f-q { flex-basis: 100%; }
  .hc-table, .hc-table tbody { display: block; background: none; border: none; }
  .hc-table thead { display: block; }
  .hc-table thead tr { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 8px; border: none; }
  .hc-table thead th { border: none; padding: 0; background: none; font-size: .78rem; }
  .hc-table thead th.hc-sel, .hc-table thead th.hc-rank, .hc-table thead th.hc-form, .hc-table thead th.hc-disc { display: none; }
  .hc-table thead th a { display: inline-block; padding: 4px 10px; border: 1px solid var(--border-primary); border-radius: 14px; }
  /* Kompaktní řádky: pořadí · jméno a tým · rating (a úspěšnost pod ním). Zaškrtávátko
     k porovnání se ukáže až po „Porovnat hráče“ (#hcResults.hc-picking), disciplíny jsou v profilu. */
  .hc-table tbody tr {
    display: grid; grid-template-columns: 26px 1fr auto; gap: 0 10px; align-items: center;
    padding: 10px 4px; border: none; border-bottom: 1px solid var(--border-primary); background: none;
  }
  .hc-table tbody td { display: block; padding: 0; border: none; background: none !important; text-align: left; }
  .hc-table tbody td.hc-sel { display: none; }
  #hcResults.hc-picking .hc-table tbody tr { grid-template-columns: 26px 26px 1fr auto; }
  #hcResults.hc-picking .hc-table tbody td.hc-sel { display: block; grid-row: 1 / span 2; }
  .hc-table tbody td.hc-rank { display: block; grid-row: 1 / span 2; width: auto; text-align: right; font-size: .85rem; }
  .hc-table tbody td.hc-name { grid-row: 1 / span 2; font-size: .95rem; line-height: 1.3; }
  .hc-table tbody td.hc-name .hc-team { font-size: .8rem; }
  .hc-table tbody td.hc-pros { grid-row: 1; text-align: right; font-size: 1.1rem; }
  .hc-table tbody td.hc-rating { grid-row: 1; text-align: right; font-size: 1.15rem; }
  .hc-table tbody tr:has(.hc-rating) td.hc-pros { display: none; }
  .hc-table tbody td.hc-pct { grid-row: 2; text-align: right; font-size: .8rem; color: var(--text-muted); }
  .hc-table tbody td.hc-form { display: none; }
  .hc-table tbody td[data-label="H"], .hc-table tbody td[data-label="V"] { display: none; }
  .hc-table tbody td.hc-disc { display: none; }
  .hc-pick-toggle { display: inline-block; margin: 0 0 8px; padding: 6px 12px; border: 1px solid var(--border-secondary); border-radius: 14px;
    background: none; color: var(--text-secondary); font-size: .82rem; cursor: pointer; }
  #hcResults.hc-picking .hc-pick-toggle { color: var(--text-primary); border-color: var(--accent-primary); }
  /* vpravo dole je plovoucí bublina chatu — lištu od ní odsadit */
  .hc-compare { bottom: 8px; margin-right: 72px; }
}

@media (min-width: 641px) { .hc-pick-toggle { display: none; } }
