/* Injury report (right-hand column of the sport pages). Uses the page's own colour tokens, with fallbacks for dark and light. */
.scoutics-page #injuryReport { --inj-edge: var(--panel, #11141a); --inj-out: #e5484d; --inj-warn: var(--amber, #f5b942); }
.scoutics-page #injuryReport[hidden] { display: none; }
.scoutics-page #injuryReport .block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.scoutics-page #injuryReport .inj-updated { font: 500 11px/1.2 'IBM Plex Mono', monospace; color: var(--slate, #8b93a7); white-space: nowrap; }
.scoutics-page #injuryReport .inj-updated:not(:empty)[data-stale="false"]::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--good, #34d399); vertical-align: 1px; }
.scoutics-page #injuryReport .inj-updated[data-stale="true"] { color: var(--inj-warn); }
.scoutics-page #injuryReport .inj-panel { padding: 10px 12px 12px; }

.scoutics-page .inj-tabs { display: flex; gap: 6px; margin: 0 0 8px; flex-wrap: wrap; }
.scoutics-page .inj-tabs[hidden] { display: none; }
.scoutics-page .inj-tab { appearance: none; border: 1px solid var(--line-strong, rgba(242,242,242,.18)); background: transparent; color: var(--slate, #8b93a7); font: 600 12px/1 'IBM Plex Sans', sans-serif; padding: 7px 11px; min-height: 30px; border-radius: 999px; cursor: pointer; }
.scoutics-page .inj-tab[aria-pressed="true"] { background: var(--brand-dim, rgba(6,88,246,.16)); border-color: var(--brand, #0658f6); color: var(--paper, #f2f2f2); }
.scoutics-page .inj-tab:focus-visible, .scoutics-page .inj-more:focus-visible { outline: 2px solid var(--brand-bright, #2e7cff); outline-offset: 2px; }

.scoutics-page .inj-list { list-style: none; margin: 0; padding: 0; }
.scoutics-page .inj-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line, rgba(242,242,242,.1)); }
.scoutics-page .inj-row:first-child { border-top: 0; padding-top: 2px; }
.scoutics-page .inj-kit { position: relative; display: block; width: 36px; height: 38px; }
.scoutics-page .inj-kit > svg:not(.inj-badge) { display: block; width: 30px; height: 34px; margin: 2px 0 0 0; }
.scoutics-page .inj-row--out .inj-kit > svg:not(.inj-badge), .scoutics-page .inj-row--suspended .inj-kit > svg:not(.inj-badge) { opacity: .82; }
.scoutics-page .inj-dot { display: grid; place-items: center; width: 30px; height: 30px; margin-top: 4px; border-radius: 50%; background: var(--slate, #8b93a7); color: #fff; font: 700 10px/1 'IBM Plex Sans', sans-serif; }
.scoutics-page .inj-badge { position: absolute; top: -2px; right: 0; width: 17px; height: 17px; display: block; }
.scoutics-page .inj-who { min-width: 0; display: block; }
.scoutics-page .inj-name { display: block; font: 600 14px/1.25 'IBM Plex Sans', sans-serif; color: var(--paper, #f2f2f2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scoutics-page .inj-meta, .scoutics-page .inj-why { display: block; font: 400 12px/1.35 'IBM Plex Sans', sans-serif; color: var(--slate, #8b93a7); }
.scoutics-page .inj-why { overflow-wrap: anywhere; }
.scoutics-page .inj-tag { align-self: start; margin-top: 2px; padding: 3px 8px; border-radius: 999px; font: 700 10.5px/1.2 'IBM Plex Sans', sans-serif; letter-spacing: .04em; white-space: nowrap; border: 1px solid transparent; }
.scoutics-page .inj-tag--out, .scoutics-page .inj-tag--suspended { color: var(--bad, #ff6b5b); background: var(--bad-dim, rgba(255,107,91,.12)); border-color: rgba(255,107,91,.35); }
.scoutics-page .inj-tag--doubtful, .scoutics-page .inj-tag--questionable, .scoutics-page .inj-tag--day { color: var(--amber, #f5b942); background: var(--amber-dim, rgba(245,185,66,.14)); border-color: rgba(245,185,66,.35); }
.scoutics-page .inj-empty { margin: 4px 0 2px; font-size: 13px; color: var(--slate, #8b93a7); }
.scoutics-page .inj-more { appearance: none; margin-top: 6px; width: 100%; min-height: 36px; border: 1px solid var(--line-strong, rgba(242,242,242,.18)); border-radius: 8px; background: transparent; color: var(--paper, #f2f2f2); font: 600 13px/1 'IBM Plex Sans', sans-serif; cursor: pointer; }
.scoutics-page .inj-more:hover { background: var(--panel-2, #181c24); }
.scoutics-page #injuryReport .data-note { margin-top: 8px; }

/* phones: slimmer rows (one line for the reason, the full text stays in the row's tooltip), so three rows take about as much room as one used to */
@media (max-width: 700px) {
  .scoutics-page .inj-row { padding: 4px 0 6px; }
  .scoutics-page .inj-why { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
  .scoutics-page .inj-who { min-width: 0; }
}
/* narrow screens: the column sits under the page, so use the width */
@media (max-width: 600px) {
  .scoutics-page .inj-row { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 9px; }
  .scoutics-page .inj-tab { min-height: 38px; }
}
@media (prefers-reduced-motion: no-preference) {
  .scoutics-page #injuryReport:not([hidden]) { animation: inj-in .18s ease-out; }
  @keyframes inj-in { from { opacity: 0; } to { opacity: 1; } }
}

/* release 117: injury watch, a strip at the top of the sport page (the most important players missing from the next games) */
.scoutics-page .injw { margin-top: 14px; padding: 14px 18px 16px; border: 1px solid var(--line, rgba(242,242,242,.12)); border-radius: 14px; background: var(--panel, #11151d); color: var(--paper, #f2f2f2); }
.scoutics-page .injw[hidden] { display: none; }
.scoutics-page .injw-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 14px; }
.scoutics-page .injw-title { margin: 0; font: 700 16px/1.3 'IBM Plex Sans', sans-serif; color: var(--paper, #f2f2f2); }
.scoutics-page .injw-title span { font-weight: 500; color: var(--slate, #8b93a7); }
.scoutics-page .injw-sub { flex: 1 1 auto; margin: 0; font-size: 14px; line-height: 1.4; color: var(--slate, #8b93a7); }
.scoutics-page .injw-link { margin-left: auto; font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--brand-bright, #4f7cff); text-decoration: none; }
.scoutics-page .injw-link::after { content: " \203A"; }
.scoutics-page .injw-chips { display: flex; gap: 10px; margin: 12px 0 0; padding: 0 0 2px; list-style: none; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.scoutics-page .injw-chips::-webkit-scrollbar { display: none; }
.scoutics-page .injw-chip { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name tag" "meta meta"; align-items: center; gap: 4px 8px;
  flex: 1 1 0; min-width: 160px; max-width: 240px; padding: 10px 12px; border: 1px solid var(--line, rgba(242,242,242,.12)); border-radius: 10px; background: var(--panel-2, #181c24); }
.scoutics-page .injw-chip .inj-tag { grid-area: tag; margin: 0; }
.scoutics-page .injw-name { grid-area: name; overflow: hidden; font: 650 15px/1.25 'IBM Plex Sans', sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.scoutics-page .injw-meta { grid-area: meta; overflow: hidden; font-size: 12.5px; line-height: 1.3; color: var(--slate, #8b93a7); text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 700px) {
  .scoutics-page .injw { padding: 12px 14px 14px; }
  .scoutics-page .injw-sub { order: 3; flex-basis: 100%; }
  .scoutics-page .injw-link { order: 2; }
  .scoutics-page .injw-chip { min-width: 150px; }
}
