/* Game feed — Savant-gamefeed-style game page (header + tabs + per-PA Statcast). */

/* header */
.gfhead {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  border: 1px solid var(--soft-line); border-radius: 10px; background: var(--soft);
  padding: 10px 18px; margin: 6px 0 4px;
}
.gffinal {
  background: #c0392b; color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: .05em; padding: 2px 8px; border-radius: 4px; text-transform: uppercase;
}
.gfside { display: flex; align-items: center; gap: 9px; }
.gfhlogo { width: 38px; height: 38px; object-fit: contain; }
.gfdot { width: 22px; height: 22px; border-radius: 50%; }
.gfname { font-size: 17px; color: var(--fg); }
.gfscore { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); }
.gfscore.gfwin { color: var(--fg); }
.gfat { color: var(--muted, #999); }
.gfdate { margin-left: auto; color: var(--muted, #888); }

/* tab bar (auto-discovered tabs) */
.gftabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0 14px;
  border-bottom: 2px solid var(--line); }
.gftab {
  padding: 6px 13px; font-size: 12px; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; text-decoration: none; color: var(--muted); border-radius: 6px 6px 0 0;
}
.gftab:hover { background: var(--soft); }
.gftab.on { background: #1a4c8f; color: #fff; }

/* scoreboard tab: two columns (summary/leaders left, PA table right) */
.gfcols { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.gfleft { flex: 0 0 330px; max-width: 100%; }
.gfright { flex: 1 1 480px; min-width: 0; overflow-x: auto; }
.wptitle { font-size: 12px; font-weight: 700; color: var(--head-text); margin: 2px 0; }
.wpchart { width: 100%; height: auto; display: block; margin-bottom: 12px; }
.wpchart .wpax { font-size: 9px; font-weight: 700; }

/* game info card (venue / attendance / weather / duration / umpires) — shown at the
   top of each game tab; width-capped so it stays compact on the full-width tabs. */
.gfinfo { border: 1px solid var(--soft-line); border-radius: 8px; background: var(--soft);
  padding: 8px 12px; margin-bottom: 12px; max-width: 340px; }
.gfinfo h4 { margin: 0 0 6px; font-size: 11px; text-transform: uppercase;
  letter-spacing: .04em; color: var(--muted); }
.gfinfo dl + h4 { margin-top: 10px; }
.gfinfo dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px;
  margin: 0; font-size: 12px; }
.gfinfo dt { color: var(--muted, #888); }
.gfinfo dd { margin: 0; text-align: right; font-weight: 600; color: var(--fg);
  font-variant-numeric: tabular-nums; }

/* key-moments list (recap prose style lives in app.css so /game can use it too) */
ul.kmoments { list-style: none; margin: 2px 0 4px; padding: 0; max-width: 760px; }
ul.kmoments li { display: flex; align-items: baseline; gap: 8px; padding: 4px 0;
  border-bottom: 1px solid var(--line); font-size: 13px; }
.kminn { flex: 0 0 34px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.kmtag { flex: 0 0 84px; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .03em; padding: 2px 6px; border-radius: 4px; text-align: center;
  color: #fff; background: #6b7686; }
.kmtag.sc { background: #1a7f37; }   /* scoring */
.kmtag.sw { background: #b4690e; }   /* big swing */
.kmtag.lc { background: #1a4c8f; }   /* lead change */
.kmtag.nh { background: #8250df; }   /* no-hitter / perfect game */
.kmtag.ej { background: #c0392b; }   /* ejection */
.kmtag.od { background: #0b7285; }   /* oddity */
.kmdesc { flex: 1 1 auto; color: var(--fg); }
.kmwpa { flex: 0 0 auto; font-weight: 700; color: #b4690e; font-variant-numeric: tabular-nums; }
ul.kmoments.notes .kminn { display: none; }

/* leaders */
.gfleads { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-top: 12px; }
.gflead h4 { margin: 6px 0 3px; font-size: 11px; text-transform: uppercase;
  letter-spacing: .04em; color: #c0651a; }
.gflead ul { list-style: none; margin: 0; padding: 0; }
.gflead li { font-size: 12px; line-height: 1.7; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; }
.gflead .lv { display: inline-block; min-width: 42px; font-weight: 700;
  font-variant-numeric: tabular-nums; color: var(--link); }

/* player cell — headshot left of the linked name */
.pcell { display: inline-flex; align-items: center; gap: 7px; }
.hsx { width: 26px; height: 26px; border-radius: 50%; object-fit: cover;
  background: var(--zebra); flex: 0 0 26px; }
.hsx.avatar { display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--muted); }
.pcell a { text-decoration: none; color: var(--link); }
.pcell a:hover { text-decoration: underline; }

/* tables */
table.gfpa, table.gfbox, table.gfsum { border-collapse: collapse; font-size: 13px; width: 100%; }
table.gfpa th, table.gfpa td, table.gfbox th, table.gfbox td, table.gfsum th, table.gfsum td {
  padding: 3px 9px; text-align: right; white-space: nowrap;
  font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--line);
}
table.gfpa th, table.gfbox th, table.gfsum th { background: var(--card); border-bottom: 2px solid var(--line);
  color: var(--head, #222); cursor: pointer; position: sticky; top: 0; }
.gfpa td.pn, .gfbox td.pn, .gfsum td.pn, .gfpa th:first-child, .gfbox th:first-child {
  text-align: left; }
.gfpa td.res { text-align: left; color: var(--fg); }
.gfpa td.inn { text-align: center; color: var(--muted); }
.gfbox .pos { color: var(--muted, #999); font-size: 11px; }
.gfslogo { width: 20px; height: 20px; object-fit: contain; vertical-align: middle; margin-right: 6px; }

.gfwpa { list-style: none; margin: 0; padding: 0; }
.gfwpa li { display: flex; align-items: center; gap: 8px; line-height: 2; }
.gfwpa .lv { min-width: 48px; font-weight: 700; color: var(--link); }
.gfnote { color: var(--muted, #777); margin: 10px 0; max-width: 640px; }

/* inning-by-inning line score */
table.lsgrid { border-collapse: collapse; font-size: 13px; margin: 2px 0; }
table.lsgrid th, table.lsgrid td {
  padding: 3px 11px; text-align: center; border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
table.lsgrid th { color: var(--muted, #888); font-weight: 600; }
table.lsgrid .ls-team { text-align: left; font-weight: 600; min-width: 130px; }
table.lsgrid .ls-r { font-weight: 700; }
table.lsgrid th:nth-last-child(3), table.lsgrid td:nth-last-child(3) { border-left: 2px solid var(--line); }
