/* The athletes' list `/athletes` (ATHLETES.md; mocks in plans/plugins/athletes/): the title and its count, the
   search with its «×» inside the field, one row per athlete (initials, name, club at the right; on a phone the
   club under the name and no header row). The table is the cup's standings look (`cup-index.css`). */
.athletes-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.athletes-title {
  font-family: var(--font-family-display); font-weight: 700; font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em; line-height: 1.2; margin: 0;
}
.athletes-count { font-size: 15px; color: var(--color-text-muted); white-space: nowrap; }
.athletes-count-of { color: var(--color-text-muted); }

/* The search's reset: a «×» inside the field at its right end; the browser's own clear button hidden. */
.athletes-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.athletes-search input { padding-right: 44px; }
.athletes-search .athletes-clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  color: var(--color-text-muted); text-decoration: none;
}
.athletes-search .athletes-clear i { position: static; transform: none; font-size: 13px; color: inherit; pointer-events: auto; }
.athletes-search .athletes-clear:hover { background: var(--color-surface-muted); color: var(--color-text-primary); }

.athletes-table {
  border: 1px solid var(--color-panel-border); border-radius: var(--radius-card);
  background: var(--color-panel); overflow: hidden;
}
.athlete-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 260px);
  align-items: center; column-gap: 12px; padding: 16px 24px; color: inherit; text-decoration: none;
  transition: background .12s;
}
a.athlete-row:hover { background: var(--color-panel-active); color: inherit; }
.athlete-row + .athlete-row, [data-list-rows] > .athlete-row:first-child { border-top: 1px solid var(--color-panel-border); }
.athletes-table-head {
  padding: 18px 24px 16px; border-bottom: 1px solid var(--color-border-strong);
  font-family: var(--font-family-mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-muted);
}
.athletes-head-club { justify-self: end; }
.athletes-table-head + [data-list-rows] > .athlete-row:first-child { border-top: none; }
.athlete-mark {
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--color-surface-muted); color: var(--color-text-secondary); font-size: 13px; font-weight: 600;
}
.athlete-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.athlete-name {
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.athlete-club {
  justify-self: end; text-align: right; font-size: 15px; color: var(--color-text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.athlete-club-sub { display: none; font-size: 14px; color: var(--color-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.athletes-table .list-more { margin: 0; padding: 14px; text-align: center; border-top: 1px solid var(--color-panel-border); }
.athletes-empty { padding: 40px 16px; text-align: center; color: var(--color-text-muted); }
.athletes-empty i { font-size: 2rem; display: block; margin-bottom: 10px; }

/* A phone: the club under the name, no header row (the owner, 2026-10-30). */
@media (max-width: 575.98px) {
  .athlete-row { grid-template-columns: 40px minmax(0, 1fr); padding: 12px 14px; }
  .athletes-table-head { display: none; }
  .athlete-row .athlete-club { display: none; }
  .athlete-club-sub { display: block; }
  .athlete-name { font-size: 15px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

/* Quiet separators and a full-width search. */
.athletes-search { width: 100%; }
.athletes-table { border: 0; border-radius: 0; background: transparent; overflow: visible; }
.athlete-row { padding: 14px 8px; }
.athlete-row + .athlete-row { border-top: 1px solid var(--color-panel-border); }
[data-list-rows] > .athlete-row:first-child { border-top: 0; }
.athlete-name { white-space: normal; }
.athlete-group { padding: 26px 8px 10px; font-weight: 700; }
.athlete-group-link { color: inherit; text-decoration: none; }
.athlete-group-link:hover { text-decoration: underline; }
