/* Dugout players screen: styles only the players view (js/views/players.js) uses.
   Classes here belong to this screen; tests/css-lint.mjs fails if another screen's file defines the same class. */
.cmp { margin-bottom: 14px; overflow-x: auto; }
.cmp-grid { display: grid; grid-template-columns: 150px repeat(var(--n), minmax(110px, 1fr)); gap: 0; min-width: calc(150px + var(--n) * 110px); }
.cmp-grid > div:first-child { border-top: 0; }
.cmp-grid > div { padding: 6px 8px; border-top: 1px solid var(--line); }
.cmp-h { display: flex; flex-direction: column; align-items: center; gap: 6px; border-top: 0 !important; text-align: center; }
.cmp-h .kit { width: 40px; height: 40px; }
.cmp-h .chip { padding: 0 8px; font-size: 11px; }
.cmp-l { display: flex; align-items: center; color: var(--muted); font: 700 11px var(--num); text-transform: uppercase; letter-spacing: .04em; }
.cmp-v { text-align: center; font: 700 16px var(--num); font-variant-numeric: tabular-nums; }
.cmp-v.win { background: var(--hi); color: var(--hi-ink); }
.cmp-v .mini { display: flex; gap: 2px; align-items: flex-end; height: 34px; margin-bottom: 4px; }
.cmp-v .mini span { flex: 1; background: var(--ink); min-height: 2px; }

/* Phones: each player is a card (tick, name and xP5 on top, the other numbers labelled under, then the fixtures)
   instead of a 10-column table that needs sideways scrolling */
@media (max-width: 600px) {
  .cmp-grid { grid-template-columns: 104px repeat(var(--n), minmax(96px, 1fr)); min-width: calc(104px + var(--n) * 96px); }
  .pltable thead { display: none; }
  .pltable tr { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; padding: 10px 2px; border-top: 1px solid var(--line); }
  .pltable td { border: 0; padding: 0; }
  .pltable td:first-child { order: 1; }
  .pltable td:nth-child(2) { order: 2; flex: 1 1 calc(100% - 140px); min-width: 0; white-space: normal; }   /* leaves room for xP5 only, so the rest wrap below */
  .pltable td.x5[data-l] { order: 3; font-size: 18px; margin-left: auto; }
  .pltable td[data-l] { order: 4; font-size: 13px; }
  .pltable td[data-l]::before { content: attr(data-l) ' '; color: var(--muted); }
  .pltable td.x5[data-l]::before { font-size: 12px; }
  .pltable td.nx { order: 5; flex: 1 1 100%; min-width: 0 !important; margin-top: 4px; }
}
/* Back soon (views/players.js backSoonBox): players due back from an injury or a ban, folded up when you like */
.bk { margin-bottom: 14px; }
.bk summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; cursor: pointer; list-style: none; }
.bk summary::-webkit-details-marker { display: none; }
.bk summary::after { content: '▾'; margin-left: auto; color: var(--muted); transition: rotate .2s ease; }
.bk:not([open]) summary::after { rotate: -90deg; }
.bk summary h3 { margin: 0; }
.bk-list { margin-top: 10px; }
.bk-list li { grid-template-columns: minmax(0, 1fr) auto 42px; }
.bk-when { white-space: nowrap; color: var(--ink2); }
