/* Team page: Sudėtis (position groups), Rungtynės (three sections) and Statistika (two dense tables).
   Reuses the existing tokens (--line, --muted, --ink, --orange) and the existing player card (.tc-player-card, match-center.css). */

/* ---- Sudėtis: full-width groups stacked vertically, each with its own responsive card grid ---- */
.tc-roster-group{display:block;width:100%;min-width:0}
.tc-roster-group+.tc-roster-group{margin-top:26px}
.tc-roster-group-title{display:flex;align-items:center;gap:8px;margin:0 0 12px;padding-bottom:8px;border-bottom:1px solid var(--line);color:var(--ink);font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.tc-roster-group-count{display:inline-grid;place-items:center;min-width:22px;height:20px;padding:0 6px;border-radius:10px;background:#eef1f4;color:var(--muted);font-size:11px;font-weight:700;letter-spacing:0;font-variant-numeric:tabular-nums}
.tc-roster-group--unspecified .tc-roster-group-title{font-size:11px;color:var(--muted)}
.tc-roster-group--unspecified .tc-player-card{min-height:72px}

/* ---- Rungtynės ---- */
.tc-games-block+.tc-games-block{margin-top:26px}
.tc-games-title{margin:0 0 12px;padding-bottom:8px;border-bottom:1px solid var(--line);color:var(--ink);font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.tc-games-empty{margin:0;padding:6px 0;color:var(--muted);font-size:13px}

/* ---- Statistika ---- */
.tt-stats{min-width:0;max-width:100%}
.tt-controls{display:flex;align-items:flex-end;flex-wrap:wrap;justify-content:space-between;gap:12px 16px;margin-bottom:18px}
.tt-mode{display:flex;padding:3px;border:1px solid var(--line);border-radius:8px;background:#f5f6f7}
.tt-mode button{min-height:36px;border:0;border-radius:6px;padding:0 16px;background:none;color:var(--muted);font:700 11px Poppins,sans-serif;letter-spacing:.06em;text-transform:uppercase;cursor:pointer}
.tt-mode button[aria-pressed=true]{background:#fff;color:var(--ink);box-shadow:0 1px 5px #16232d16}
.tt-filters{display:flex;flex-wrap:wrap;gap:10px 14px}
.tt-filter{display:grid;gap:5px;color:var(--muted);font-size:10px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}
.tt-filter select{min-height:38px;min-width:150px;max-width:100%;padding:0 12px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font:600 12px Poppins,sans-serif;letter-spacing:0;text-transform:none}
.tt-block+.tt-block{margin-top:30px}
.tt-h{margin:0 0 10px;color:var(--ink);font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.tt-hint{display:none;margin:0 0 8px;color:var(--muted);font-size:10px}
.tt-rail{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;border:1px solid var(--line);border-radius:10px;background:#fff}
.tt-table{width:100%;border-collapse:separate;border-spacing:0;font-size:11px;white-space:nowrap;font-variant-numeric:tabular-nums}
.tt-table th,.tt-table td{padding:8px 9px;border-bottom:1px solid #eef0f2;text-align:right;background:#fff}
.tt-table thead th{background:#f6f7f8;color:var(--muted);font-size:10px;font-weight:700}
.tt-table tbody tr:nth-child(even) td,.tt-table tbody tr:nth-child(even) th{background:#fbfcfc}
.tt-table tbody tr:hover td,.tt-table tbody tr:hover th{background:#fff7f1}
.tt-table tbody tr:last-child td,.tt-table tbody tr:last-child th{border-bottom:0}
.tt-table .tt-no{width:34px;min-width:34px;max-width:34px;padding-inline:4px;text-align:center;color:#586575;font-weight:700}
.tt-table .tt-name{text-align:left;min-width:150px;max-width:190px;overflow:hidden;text-overflow:ellipsis;font-weight:700}
.tt-table .tt-name a{color:var(--ink);text-decoration:none}
.tt-table .tt-name a:hover{color:#ae4619}
.tt-table .tt-date,.tt-table .tt-result{text-align:left}
.tt-table .tt-none{color:#b4bcc4;font-weight:400}
.tt-table td.tt-pct{color:#3d4a57}
.tt-table td.is-sorted,.tt-table th.is-sorted{font-weight:800;color:#a84316}
.tt-sort{display:inline-flex;align-items:center;gap:3px;min-height:28px;padding:0 1px;border:0;background:none;color:inherit;font:inherit;cursor:pointer;white-space:nowrap}
.tt-sort:hover{color:#ae4619}
.tt-sort-mark{display:inline-block;min-width:8px;font-size:8px}
.tt-stats button:focus-visible,.tt-stats a:focus-visible,.tt-stats select:focus-visible,.tt-rail:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
.tt-ha{color:var(--muted);font-weight:600}
.tt-res{display:inline-block;min-width:54px;font-weight:800}
.tt-res--W{color:#1b7a43}.tt-res--L{color:#b3261e}.tt-res--none{color:var(--muted);font-weight:500}
.tt-ot{margin-left:4px;color:var(--muted);font-size:9px;font-weight:700;text-decoration:none}
.tt-foot-n{color:var(--muted);font-weight:500}
.tt-table tfoot th,.tt-table tfoot td{border-top:2px solid var(--line);border-bottom:0;background:#f6f7f8;color:var(--ink);font-weight:800}

/* Sticky identity columns: # and name stay visible while the numbers scroll. */
.tt-table .tt-no,.tt-table:not(.tt-table--team) .tt-name,.tt-table--team .tt-date,.tt-table--team .tt-name{position:sticky;z-index:1}
.tt-table .tt-no{left:0}
.tt-table:not(.tt-table--team) .tt-name{left:34px}
.tt-table--team .tt-date{left:0;min-width:58px;max-width:58px}
.tt-table--team .tt-name{left:58px}
.tt-table thead .tt-no,.tt-table thead .tt-name,.tt-table thead .tt-date{z-index:3}
.tt-table tfoot .tt-date,.tt-table tfoot .tt-name{z-index:2}

@media(max-width:900px){
  .tt-hint{display:block}
}
@media(max-width:600px){
  .tt-controls{align-items:stretch;flex-direction:column}
  .tt-mode{width:100%}.tt-mode button{flex:1}
  .tt-filters{display:grid;grid-template-columns:1fr 1fr}
  .tt-filter select{width:100%;min-width:0}
  .tt-table th,.tt-table td{padding:8px 7px}
  .tt-table .tt-name{min-width:112px;max-width:112px;overflow:hidden;text-overflow:ellipsis}
  .tt-table--team .tt-name{min-width:104px;max-width:104px}
}
.tc-games-date{margin:14px 0 6px;color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.tc-games-date:first-child{margin-top:0}

/* Team-game table, opponent cell. Desktop (>=860px): unchanged "vs/@ Full name". Phones and tablets (<=859px, the site's own "mobile" breakpoint): "vs/@" + the opponent's club logo + its short name
   (e.g. "@ [logo] ZAL") on ONE line in a compact column, so the result and the stats stay visible. Without a short name the full name stays, ellipsised.
   The full name remains in the DOM (visually hidden) for screen readers. The selectors are deliberately more specific than the global
   "white-space:normal; overflow:visible" / "width:190px" mobile rules of responsive-foundation.css. */
.tt-opp-logo,.tt-opp-short{display:none}
@media(max-width:859px){
  .tt-table.tt-table--team th.tt-name{width:92px;min-width:92px;max-width:92px}
  .tt-table.tt-table--team th.tt-name a{display:flex;align-items:center;gap:4px;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .tt-table.tt-table--team th.tt-name .tt-ha{flex:none}
  .tt-table.tt-table--team th.tt-name .tt-opp-logo{display:inline-flex;flex:none;align-items:center;justify-content:center;width:18px;height:18px}
  .tt-table.tt-table--team th.tt-name .tt-opp-logo img{display:block;width:100%;height:100%;object-fit:contain}
  .tt-table.tt-table--team th.tt-name .tt-opp-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .tt-table.tt-table--team th.tt-name .tt-opp--short .tt-opp-name{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .tt-table.tt-table--team th.tt-name .tt-opp-short{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;letter-spacing:.02em}
}
