/* ==========================================================================
   MLW WIFFLE BALL — mlwwiffleball.com
   Light editorial sports-network system: navy masthead, paper body.
   Barlow Condensed + Barlow.
   ========================================================================== */

:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --surface2: #f3f2ee;
  --line: #e0ded6;
  --line2: #e9e7e0;
  --navy: #0c1b45;
  --navy2: #0a1636;
  --blue: #1b3fd1;
  --blue-hi: #2b52ec;
  --red: #c01327;
  --red-hi: #ff4d5e;
  --ink: #16181d;
  --dim: #565d6b;
  --dim2: #8a8f9b;
  --gold: #e8b54d;
  --green: #1f7a4a;
  --disp: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Helvetica Neue", sans-serif;
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; color: inherit; }

::selection { background: var(--blue); color: #fff; }

h1, h2, h3, h4, .disp {
  font-family: var(--disp);
  font-weight: 600;
  line-height: 1.02;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.ico { display: inline-block; vertical-align: -3px; flex: 0 0 auto; }

/* ==========================================================================
   Labels, badges, rules
   ========================================================================== */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--disp);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--dim);
  white-space: nowrap;
  background: var(--surface);
}
.tag.red { background: var(--red); border-color: var(--red); color: #fff; }
.tag.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.tag.gold { background: var(--gold); border-color: var(--gold); color: #241a02; }
.tag.green { border-color: var(--green); color: var(--green); }

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 14px;
  padding-bottom: 9px;
  border-bottom: 2px solid var(--ink);
  position: relative;
}
.sec-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue) 0 50%, var(--red) 50% 100%);
}
.sec-head h2 {
  font-size: 24px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sec-head .more {
  font-weight: 600;
  font-size: 13px;
  color: var(--dim);
  white-space: nowrap;
}
.sec-head .more:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* team badge — solid team color, accent keel */
.badge {
  --c1: var(--blue);
  --c2: #fff;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 6px;
  background: var(--c1);
  box-shadow: inset 0 -3px 0 var(--c2), inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  display: grid;
  place-items: center;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
.badge.lg { width: 56px; height: 56px; font-size: 20px; border-radius: 9px; }
.badge.logo {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: none;
  overflow: hidden;
  text-shadow: none;
}
.badge.logo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ==========================================================================
   Header / nav — navy masthead
   ========================================================================== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(12, 27, 69, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--red);
  color: #fff;
}
.topbar .wrap { display: flex; align-items: center; gap: 20px; height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand img { width: 34px; height: 34px; border-radius: 7px; }
.brand b {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  display: block;
  color: #fff;
}
.brand small {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: #93a2cf;
  text-transform: uppercase;
  margin-top: 1px;
}

nav.mainnav { display: flex; gap: 1px; margin-left: auto; }
nav.mainnav a {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #a7b4dd;
  padding: 19px 10px 17px;
  border-bottom: 2px solid transparent;
}
nav.mainnav a:hover { color: #fff; }
nav.mainnav a.on { color: #fff; border-bottom-color: #fff; }

.nav-actions { display: flex; align-items: center; gap: 9px; margin-left: 4px; }

/* [hidden] must beat display:inline-flex, or the pill renders as an empty box
   whenever there is no upcoming event to count down to. */
.live-pill[hidden] { display: none; }
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--disp);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 4px;
  padding: 5px 10px;
  white-space: nowrap;
}
.live-pill:hover { border-color: rgba(255, 255, 255, 0.6); }

.cartbtn, .burger {
  position: relative;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
}
.cartbtn:hover, .burger:hover { border-color: rgba(255, 255, 255, 0.6); }
.cartbtn .n {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 4px;
  opacity: 0;
  transition: 0.15s;
}
.cartbtn .n.show { opacity: 1; }
.cartbtn .n.bump { animation: bump 0.3s; }
@keyframes bump { 40% { transform: scale(1.35); } }
.burger { display: none; }

/* mobile menu — navy sheet */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--navy);
  display: none;
  flex-direction: column;
  padding: 20px;
  color: #fff;
}
.menu-overlay.open { display: flex; }
.menu-overlay .close-row { display: flex; justify-content: space-between; align-items: center; }
.menu-overlay .close-row .tag { background: none; border-color: rgba(255, 255, 255, 0.3); color: #cdd6ef; }
.menu-overlay .close-row button {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
}
.menu-overlay a.mlink {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 13px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}
.menu-overlay a.mlink small { font-family: var(--body); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; color: #93a2cf; }
.menu-overlay .menu-links { margin-top: 10px; overflow-y: auto; }

/* score strip — light like a network scoreboard */
.ticker {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.ticker .lane { display: flex; width: max-content; animation: tick 60s linear infinite; }
.ticker:hover .lane { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }
.tick-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--dim);
  white-space: nowrap;
  border-right: 1px solid var(--line2);
}
.tick-item b { color: var(--ink); font-weight: 700; }
.tick-item .fin { font-family: var(--disp); font-weight: 600; font-size: 11.5px; letter-spacing: 0.1em; color: var(--dim2); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--disp);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 5px;
  border: 1px solid transparent;
}
.btn.primary { background: var(--red); color: #fff; }
.btn.primary:hover { background: #a90f21; }
.btn.line { border-color: #c9c6bc; color: var(--ink); background: var(--surface); }
.btn.line:hover { border-color: var(--ink); }

/* ==========================================================================
   Hero (home)
   ========================================================================== */

.hero { border-bottom: 1px solid var(--line); background: var(--surface); }
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 40px;
  align-items: center;
  padding-top: 44px;
  padding-bottom: 44px;
}
.kicker {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.hero h1 {
  font-size: clamp(42px, 5.6vw, 68px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 10px 0 12px;
}
.hero p.lede { color: var(--dim); font-size: 16.5px; max-width: 52ch; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.statline { display: flex; flex-wrap: wrap; gap: 0; margin-top: 30px; border-top: 1px solid var(--line); }
.statline .s { padding: 12px 26px 0 0; margin-right: 26px; }
.statline .s b { display: block; font-family: var(--disp); font-weight: 700; font-size: 27px; line-height: 1; }
.statline .s span { font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim2); }

.hero-photo { position: relative; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #000; box-shadow: 0 10px 28px rgba(22, 24, 29, 0.10); }
.hero-photo img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; }
.hero-photo figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 14px 10px;
  font-size: 12px;
  color: #e8ecf7;
  background: linear-gradient(180deg, transparent, rgba(5, 7, 13, 0.85));
}
.hero-photo.video { background: #000; }
.hero-photo .hv-vid { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #000; }
.hero-photo .hv-sound {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(12, 27, 69, 0.82); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32); border-radius: 5px;
  padding: 5px 10px; font-family: var(--disp); font-weight: 600;
  font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.hero-photo .hv-sound:hover { border-color: #fff; }

/* hero photo/video toggle */
.hero-right { display: flex; flex-direction: column; align-items: flex-end; }
.hero-toggle {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 12px;
  border: 1px solid var(--line); border-radius: 7px; padding: 4px; background: var(--surface);
}
.hero-toggle .ht-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--dim2); padding: 0 8px 0 6px;
}
.hero-toggle button {
  font-family: var(--disp); font-weight: 600; font-size: 13.5px;
  letter-spacing: 0.05em; text-transform: uppercase;
  border: none; background: none; color: var(--dim);
  padding: 5px 13px; border-radius: 5px;
}
.hero-toggle button:hover { color: var(--ink); }
.hero-toggle button.on { background: var(--ink); color: #fff; }

/* ==========================================================================
   Layout blocks
   ========================================================================== */

section.block { padding: 40px 0 4px; }
section.block:last-of-type { padding-bottom: 48px; }

.cols-main { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.rail { display: flex; flex-direction: column; gap: 26px; position: sticky; top: 76px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
a.card:hover, .card.hov:hover { border-color: #b9b6ab; box-shadow: 0 4px 14px rgba(22, 24, 29, 0.07); }

.rail h3.rail-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 8px;
  margin-bottom: 2px;
  border-bottom: 2px solid var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.rail h3.rail-title a { font-family: var(--body); font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--dim2); }
.rail h3.rail-title a:hover { color: var(--ink); }

/* ==========================================================================
   Tables
   ========================================================================== */

.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.mlw { width: 100%; border-collapse: collapse; font-size: 14px; }
table.mlw th {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  text-align: right;
  padding: 10px 10px;
  border-bottom: 2px solid var(--ink);
  white-space: nowrap;
  user-select: none;
}
table.mlw th.l, table.mlw td.l { text-align: left; }
table.mlw th.sortable { cursor: pointer; }
table.mlw th.sortable:hover { color: var(--ink); }
table.mlw th.sorted { color: var(--red); }
table.mlw th.sorted::after { content: " ▾"; font-size: 9px; }
table.mlw td {
  padding: 9px 10px;
  text-align: right;
  border-bottom: 1px solid var(--line2);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  white-space: nowrap;
}
table.mlw tbody tr:last-child td { border-bottom: none; }
table.mlw tbody tr:hover { background: #f4f6fd; }
table.mlw .teamcell { display: flex; align-items: center; gap: 10px; font-weight: 600; }
/* several badges in one cell (a player's clubs) sit side by side, tightly */
table.mlw .teamcell > .badge + .badge { margin-left: -6px; }
table.mlw .teamcell { gap: 8px; }
table.mlw .num { color: var(--dim2); font-weight: 600; width: 26px; }
table.mlw td.hi { color: var(--red); font-weight: 600; }
table.mlw.compact td { padding: 7px 8px; font-size: 13.5px; }
table.mlw.compact .badge { width: 26px; height: 26px; font-size: 10px; border-radius: 5px; }
table.mlw.compact th { border-bottom-width: 1px; border-color: var(--line); }

.form-dots { display: inline-flex; gap: 3px; }
.form-dots i { width: 8px; height: 8px; border-radius: 2px; background: #dddbd3; }
.form-dots i.w { background: #2fa464; }
.form-dots i.l { background: #c22a3c; }

/* leader rows (rail + stats page) */
.leaders-list { display: flex; flex-direction: column; }
.lrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 2px;
  border-bottom: 1px solid var(--line2);
}
.lrow:last-child { border-bottom: none; }
.lrow .lbl {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--dim2);
  text-transform: uppercase;
  width: 42px;
  flex: 0 0 auto;
}
.lrow .who { flex: 1; min-width: 0; }
.lrow .who b { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow .who span { font-size: 11.5px; color: var(--dim2); font-weight: 600; }
.lrow .val { font-family: var(--disp); font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; }

/* stat leader cards (stats page) */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 13px 14px 12px; border-top: 3px solid var(--c1, var(--blue)); }
.tile .cat { font-family: var(--disp); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; color: var(--dim2); text-transform: uppercase; }
.tile .val { font-family: var(--disp); font-weight: 700; font-size: 38px; line-height: 1.05; margin: 3px 0 2px; }
.tile .who { font-weight: 600; font-size: 13.5px; }
.tile .team { font-size: 11.5px; color: var(--dim2); font-weight: 600; }

/* ==========================================================================
   Video
   ========================================================================== */

.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.vcard { overflow: hidden; }
.vcard .thumb, .feat-embed .thumb { position: relative; aspect-ratio: 16/9; background: #000; }
.vcard .thumb img, .feat-embed .thumb img { width: 100%; height: 100%; object-fit: cover; }
.vcard .dur {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 3px;
  padding: 1px 5px;
  font-variant-numeric: tabular-nums;
}
.vcard .meta { padding: 11px 13px 13px; }
.vcard .meta h3 { font-size: 16.5px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.vcard .meta p { color: var(--dim2); font-size: 12.5px; margin-top: 5px; font-weight: 500; }

.playbtn { position: absolute; inset: 0; display: grid; place-items: center; background: none; border: none; }
.playbtn i {
  width: 52px;
  height: 37px;
  border-radius: 8px;
  background: rgba(10, 12, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
}
.playbtn i::after {
  content: "";
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #fff;
  margin-left: 3px;
}
.playbtn:hover i { background: var(--red); border-color: var(--red); }
.vframe { aspect-ratio: 16/9; width: 100%; border: 0; display: block; background: #000; }
.feat-embed { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 0 8px 22px rgba(22, 24, 29, 0.08); }

/* filter chips */
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 16px; }
.fchip {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--dim);
  font-family: var(--disp);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
}
.fchip:hover { color: var(--ink); border-color: #b9b6ab; }
.fchip.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ==========================================================================
   Shop
   ========================================================================== */

.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.pcard { overflow: hidden; display: flex; flex-direction: column; }
.pcard .pimg { aspect-ratio: 1; background: #f4f2ee; position: relative; border-bottom: 1px solid var(--line2); }
.pcard .pimg img { width: 100%; height: 100%; object-fit: cover; }
.pcard .pbadge { position: absolute; top: 10px; left: 10px; }
.pcard .pmeta { padding: 12px 13px 13px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.pcard .pmeta h3 { font-family: var(--body); font-weight: 600; font-size: 14px; line-height: 1.3; }
.pcard .price { font-family: var(--disp); font-weight: 700; font-size: 21px; }
.pcard .prow { margin-top: auto; display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.addbtn {
  background: var(--blue);
  border: none;
  color: #fff;
  font-family: var(--disp);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 5px;
  padding: 8px 12px;
}
.addbtn:hover { background: var(--blue-hi); }
.addbtn.added { background: var(--green); }
.plink { font-size: 12px; font-weight: 600; color: var(--dim2); }
.plink:hover { color: var(--ink); }

/* promo strip (house ad) */
.promo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, #eef2fe, #fdeff1);
}
.promo:hover { border-color: #b9b6ab; }
.promo img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; background: #f4f2ee; border: 1px solid var(--line2); }
.promo .t b { font-family: var(--disp); font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: 0.04em; display: block; }
.promo .t span { font-size: 12.5px; color: var(--dim); }

/* membership band */
.support-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, #fff 55%, #fdf1f2);
  padding: 20px 22px;
}
.support-band:hover { border-color: #b9b6ab; box-shadow: 0 4px 14px rgba(22, 24, 29, 0.07); }
.support-band .t { flex: 1; min-width: 250px; }
.support-band h3 { font-size: 23px; text-transform: uppercase; letter-spacing: 0.03em; }
.support-band p { color: var(--dim); font-size: 13.5px; margin-top: 4px; max-width: 62ch; }
.tier-cards { display: flex; gap: 10px; flex-wrap: wrap; }
.tier-card { border: 1px solid var(--line); border-radius: 6px; padding: 9px 12px; background: var(--surface); min-width: 118px; display: flex; flex-direction: column; gap: 1px; }
.tier-card b { font-family: var(--disp); font-weight: 600; font-size: 16.5px; text-transform: uppercase; }
.tier-card .pr { color: var(--red); font-weight: 700; font-size: 12.5px; }
.tier-card .pk { color: var(--dim2); font-size: 11.5px; max-width: 20ch; }

/* instagram embeds + follow row */
.ig-embeds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1040px; margin: 0 auto; }
.ig-embeds .instagram-media { min-width: 0 !important; width: 100% !important; margin: 0 auto !important; }
@media (max-width: 860px) { .ig-embeds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ig-embeds { grid-template-columns: 1fr; } }
.follow-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.follow-chip {
  display: inline-flex; align-items: baseline; gap: 7px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--surface);
  padding: 8px 13px;
}
.follow-chip:hover { border-color: #b9b6ab; box-shadow: 0 3px 10px rgba(22, 24, 29, 0.06); }
.follow-chip b { font-family: var(--disp); font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: 0.04em; }
.follow-chip span { font-size: 12.5px; color: var(--dim2); font-weight: 600; }

/* cart drawer */
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(400px, 92vw);
  background: var(--surface);
  border-left: 1px solid var(--line);
  z-index: 300;
  transform: translateX(105%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 32px rgba(22, 24, 29, 0.12);
}
.drawer.open { transform: none; }
.drawer header { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.drawer header h3 { font-size: 21px; text-transform: uppercase; letter-spacing: 0.05em; }
.drawer header .cartbtn { border-color: var(--line); color: var(--ink); }
.drawer .items { flex: 1; overflow-y: auto; padding: 14px 20px; display: flex; flex-direction: column; gap: 12px; }
.drawer .d-item { display: flex; gap: 12px; align-items: center; }
.drawer .d-item img { width: 52px; height: 52px; border-radius: 6px; object-fit: cover; background: #f4f2ee; border: 1px solid var(--line2); }
.drawer .d-item .t { flex: 1; font-size: 13.5px; font-weight: 500; line-height: 1.3; }
.drawer .d-item .p { font-family: var(--disp); font-weight: 700; font-size: 17px; }
.drawer .d-item button { background: none; border: none; color: var(--dim2); font-size: 15px; }
.drawer footer { padding: 16px 20px 20px; border-top: 1px solid var(--line); background: var(--surface2); }
.drawer .total { display: flex; justify-content: space-between; font-family: var(--disp); font-weight: 700; font-size: 21px; margin-bottom: 12px; }
.drawer .note { font-size: 12px; color: var(--dim2); margin-top: 10px; line-height: 1.45; }
.scrim { position: fixed; inset: 0; background: rgba(15, 17, 24, 0.45); z-index: 250; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.scrim.show { opacity: 1; pointer-events: auto; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translate(-50%, 16px);
  background: var(--ink);
  border: 1px solid var(--ink);
  color: #fff;
  font-weight: 500;
  font-size: 13.5px;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  box-shadow: 0 10px 26px rgba(22, 24, 29, 0.22);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Schedule & events
   ========================================================================== */

.day-card { margin-bottom: 12px; }
.day-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface2);
}
.day-head b { font-family: var(--disp); font-weight: 600; font-size: 17px; letter-spacing: 0.05em; text-transform: uppercase; }
.day-head span { color: var(--dim); font-size: 12.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.gamerow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line2);
  font-size: 14px;
}
.gamerow:last-of-type { border-bottom: none; }
.gamerow .side { display: flex; align-items: center; gap: 9px; font-weight: 600; min-width: 0; }
.gamerow .side.right { justify-content: flex-end; text-align: right; }
.gamerow .side .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gamerow .score { font-family: var(--disp); font-weight: 700; font-size: 19px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gamerow .score .lose { color: var(--dim2); }
/* a playoff card is one series, so each game carries its own date */
.gamerow .score .gdate { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--dim2); line-height: 1.3; }
.gamerow .st { font-size: 11px; }
.gamerow.dim .side { color: var(--dim); }
.headline-note {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 7px 14px;
  font-size: 13px;
  color: var(--dim);
  border-top: 1px solid var(--line2);
  background: #fdfcfa;
}
.headline-note .tag { font-size: 10.5px; padding: 1px 6px; flex: 0 0 auto; }

.events { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.ecard { padding: 15px 16px; display: flex; flex-direction: column; min-height: 150px; }
.ecard .edate { font-family: var(--disp); font-weight: 600; font-size: 13.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); display: flex; align-items: center; gap: 6px; }
.ecard .edate.done { color: var(--green); }
.ecard h3 { font-size: 21px; text-transform: uppercase; letter-spacing: 0.03em; margin: 5px 0 3px; }
.ecard .venue { color: var(--dim); font-size: 13px; font-weight: 500; }
.ecard .match { font-size: 13.5px; font-weight: 600; margin-top: 7px; }
.ecard .foot { margin-top: auto; padding-top: 12px; }
.ecard .foot a { font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #b9b6ab; }
.ecard .foot a:hover { text-decoration-color: var(--ink); }

/* countdown */
.countdown { display: flex; gap: 8px; margin-top: 12px; }
.cd-cell { background: var(--surface2); border: 1px solid var(--line); border-radius: 6px; min-width: 62px; padding: 8px 6px 6px; text-align: center; flex: 1; }
.cd-cell b { display: block; font-family: var(--disp); font-weight: 700; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-cell span { font-size: 9.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim2); }

/* ==========================================================================
   Teams
   ========================================================================== */

.teamgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tcard { padding: 16px; cursor: pointer; border-top: 4px solid var(--c1, var(--blue)); }
.tcard .row1 { display: flex; gap: 12px; align-items: center; }
.tcard h3 { font-size: 21px; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1; }
.tcard .mgr { color: var(--dim2); font-size: 12.5px; font-weight: 500; margin-top: 3px; }
.tcard .recrow { display: flex; align-items: center; gap: 11px; margin-top: 13px; }
.tcard .rec { font-family: var(--disp); font-weight: 700; font-size: 25px; }
.tcard .mini { display: flex; gap: 14px; margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--line2); }
.tcard .mini .m span { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.13em; color: var(--dim2); text-transform: uppercase; }
.tcard .mini .m b { font-size: 13px; font-weight: 600; }

.modal { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; padding: 20px; }
.modal.open { display: grid; }
.modal .box {
  width: min(860px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  position: relative;
  z-index: 2;
  box-shadow: 0 24px 60px rgba(22, 24, 29, 0.25);
}
.modal .box header {
  position: sticky;
  top: 0;
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  z-index: 3;
}
.modal .box header h3 { font-size: 24px; text-transform: uppercase; letter-spacing: 0.03em; }
.modal .box header .x { margin-left: auto; background: none; border: 1px solid var(--line); width: 34px; height: 34px; border-radius: 6px; display: grid; place-items: center; }
.modal .box .inner { padding: 4px 18px 20px; }
.modal .box h4 { font-size: 14px; letter-spacing: 0.12em; color: var(--dim2); text-transform: uppercase; margin: 16px 0 6px; }

/* ==========================================================================
   History
   ========================================================================== */

.photo-band { position: relative; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 26px; box-shadow: 0 10px 28px rgba(22, 24, 29, 0.10); }
.photo-band img { width: 100%; height: 340px; object-fit: cover; object-position: 50% 44%; }
.photo-band figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 16px 10px;
  font-size: 12.5px;
  color: #e8ecf7;
  background: linear-gradient(180deg, transparent, rgba(5, 7, 13, 0.88));
}

.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 24px; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--red);
}
.tl-item:nth-child(odd)::before { border-color: var(--blue); }
.tl-item .yr { font-family: var(--disp); font-weight: 700; font-size: 27px; line-height: 1; }
.tl-item .champ { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 7px 0 7px; font-weight: 600; font-size: 15.5px; }
.tl-item .champ .vs { color: var(--dim2); font-weight: 500; font-size: 13px; }
.tl-item .recap { color: var(--dim); font-size: 14px; max-width: 76ch; }
.tl-item .where { font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: #a97c14; margin-top: 5px; }

.award-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.acard { padding: 14px 15px; }
.acard h3 { font-size: 17px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.acard ol { list-style: none; }
.acard li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 4px 0; border-bottom: 1px solid var(--line2); }
.acard li:last-child { border-bottom: none; }
.acard li b { font-weight: 500; text-align: right; }
.acard li span { color: var(--dim2); font-weight: 600; font-variant-numeric: tabular-nums; }

.story-band { border: 1px solid var(--line); border-radius: 8px; padding: 28px clamp(18px, 4vw, 40px); background: var(--surface); }
.story-band blockquote { font-size: clamp(16px, 2.2vw, 19px); line-height: 1.65; max-width: 74ch; }
.story-band cite { display: block; margin-top: 14px; font-style: normal; font-family: var(--disp); font-weight: 600; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }

/* ==========================================================================
   News / footer
   ========================================================================== */

.newsgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.ncard { padding: 0; overflow: hidden; display: flex; flex-direction: column; color: inherit; }
.ncard .ncover { aspect-ratio: 16/9; background: #e9e7e0; overflow: hidden; }
.ncard .ncover img { width: 100%; height: 100%; object-fit: cover; }
.ncard:hover .ncover img { transform: scale(1.03); transition: transform 0.3s; }
.ncard .npad { padding: 15px 16px 16px; }
.ncard.ncard-plain { padding: 16px; }
.ncard .kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--red); text-transform: uppercase; font-family: var(--body); }
.ncard h3 { font-family: var(--body); font-size: 16.5px; font-weight: 700; line-height: 1.3; margin: 7px 0; }
.ncard p { color: var(--dim); font-size: 13.5px; }
.ncard .byline { margin-top: 11px; font-size: 12px; color: var(--dim2); font-weight: 500; }
.news-index { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* article view */
.article { max-width: 760px; margin: 0 auto; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--disp); font-weight: 600; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.back-link:hover { color: var(--ink); }
.article-title { font-size: clamp(30px, 5vw, 46px); font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; line-height: 1.02; margin: 6px 0 10px; }
.article-meta { color: var(--dim2); font-size: 13.5px; font-weight: 600; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.article-cover { margin: 22px 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.article-cover img { width: 100%; display: block; }
.article-body { font-size: 17px; line-height: 1.72; color: #23262e; margin-top: 22px; }
.article-body h2 { font-size: 26px; text-transform: uppercase; letter-spacing: 0.02em; margin: 30px 0 10px; }
.article-body h3 { font-size: 21px; text-transform: uppercase; letter-spacing: 0.02em; margin: 24px 0 8px; }
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; }
.article-body li { margin-bottom: 7px; }
.article-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.article-body img { max-width: 100%; border-radius: 8px; margin: 10px 0; }
.article-body blockquote { margin: 0 0 18px; padding: 4px 0 4px 18px; border-left: 3px solid var(--red); color: var(--dim); font-style: italic; }
.article-body code { background: var(--surface2); border: 1px solid var(--line2); border-radius: 4px; padding: 1px 5px; font-size: 0.9em; }

footer.site { margin-top: 52px; border-top: 3px solid var(--red); background: var(--navy); color: #cdd6ef; padding: 38px 0 100px; }
footer.site .cols { display: flex; flex-wrap: wrap; gap: 34px; justify-content: space-between; }
footer.site .wordmark { font-family: var(--disp); font-weight: 700; font-size: 27px; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1; color: #fff; }
footer.site .wordmark span { color: var(--red-hi); }
footer.site p { color: #93a2cf; font-size: 13px; max-width: 42ch; margin-top: 9px; }
footer.site h4 { font-size: 13px; letter-spacing: 0.14em; color: #93a2cf; text-transform: uppercase; margin-bottom: 9px; }
footer.site ul { list-style: none; }
footer.site ul a, footer.site ul li { display: block; padding: 3px 0; color: #cdd6ef; font-size: 13.5px; font-weight: 500; }
footer.site ul a:hover { color: #fff; }
footer.site .fine { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 11.5px; color: #93a2cf; line-height: 1.7; }
footer.site .fine a { text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   Mobile tab bar
   ========================================================================== */

.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  display: none;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 5px 4px calc(7px + env(safe-area-inset-bottom));
}
.tabbar a, .tabbar button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  color: var(--dim2);
  font-family: var(--disp);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 5px 2px;
}
.tabbar a.on { color: var(--ink); }
.tabbar a.on svg { color: var(--red); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .ticker .lane { animation: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  nav.mainnav { display: none; }
  .burger { display: grid; }
  .hero .wrap { grid-template-columns: 1fr; gap: 26px; padding-top: 32px; padding-bottom: 34px; }
  .cols-main { grid-template-columns: 1fr; }
  .rail { position: static; }
}

@media (max-width: 700px) {
  body { padding-bottom: 62px; }
  .tabbar { display: flex; }
  .live-pill { display: none; }
  .statline .s { padding-right: 18px; margin-right: 18px; }
  .statline .s b { font-size: 22px; }
  section.block { padding: 30px 0 4px; }
  .gamerow { grid-template-columns: 1fr auto 1fr; }
  /* Hide only the trailing status chip, which the narrow grid has no column
     for. The one inside .score is the middle column's entire content on an
     unplayed game. Hiding that left those rows showing two team names and
     nothing else. */
  .gamerow > .st { display: none; }
  footer.site { padding-bottom: 120px; }
}

/* ---- box scores (schedule page) ---- */
.boxtag { cursor: pointer; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 10.5px; }
.boxtag:hover { color: var(--red); border-color: var(--red); }
.boxwrap { padding: 4px 14px 14px; border-bottom: 1px solid var(--line2); background: #fafbfe; }
.boxwrap:last-child { border-bottom: none; }
.boxwrap .boxtbl { font-size: 12.5px; }
.boxwrap .boxtbl th { font-size: 10px; }
.boxwrap .boxtbl td { padding: 6px 8px; font-variant-numeric: tabular-nums; }
.boxls { max-width: 420px; }
.boxls .tot { font-weight: 800; }
.boxls .teamword { font-weight: 700; }
.boxsub { font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim2); margin: 12px 0 4px; }
.boxwrap .dec { color: var(--dim2); font-weight: 600; font-size: 11.5px; }
.boxnote { color: var(--dim2); font-size: 11.5px; margin-top: 8px; }

/* ---- article photos (figure embeds) ---- */
.article-body { overflow: hidden; }
.article-body figure.ph { margin: 18px auto; }
.article-body figure.ph img { width: 100%; display: block; border-radius: 10px; }
.article-body figure.ph figcaption { font-size: 12.5px; color: var(--dim2); margin-top: 7px; line-height: 1.45; }
.article-body .ph-center { margin-left: auto; margin-right: auto; }
.article-body .ph-center figcaption { text-align: center; }
.article-body .ph-left { float: left; margin: 6px 20px 12px 0; }
.article-body .ph-right { float: right; margin: 6px 0 12px 20px; }
.article-body .ph-small { width: 32%; }
.article-body .ph-medium { width: 55%; }
.article-body .ph-large { width: 100%; float: none; }
@media (max-width: 560px) {
  .article-body .ph-small, .article-body .ph-medium { width: 100%; float: none; margin-left: auto; margin-right: auto; }
}

/* ==========================================================================
   Archive — season browsing, box scores, league history
   ========================================================================== */

/* season bar: one control shared by Standings, Stats and Schedule */
.block.tight { padding-top: 18px; padding-bottom: 0; }
.seasonbar { align-items: center; gap: 5px; margin-bottom: 4px; }
.seasonbar .fchip { padding: 5px 10px; font-variant-numeric: tabular-nums; }
.chips-label {
  font-family: var(--disp); font-weight: 600; font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--dim2); margin-right: 6px; align-self: center;
}
.chip-sep { width: 1px; align-self: stretch; background: var(--line); margin: 2px 5px; }

.arc-loading {
  padding: 26px 18px; text-align: center; color: var(--dim);
  font-size: 14px; border-radius: 8px;
}
.tbl-note { color: var(--dim2); font-size: 12.5px; margin-top: 10px; }

/* champion strip on an archived season */
.champ-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 18px 20px; background: var(--surface);
}
.champ-side { display: flex; align-items: center; gap: 12px; }
.champ-side .kicker {
  display: block; font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--dim2); font-weight: 600;
}
.champ-side b { font-family: var(--disp); font-size: 24px; letter-spacing: 0.02em; }
.champ-side.win b { color: #a97c14; }
.champ-vs { color: var(--dim2); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; }

/* titles-per-franchise row above the World Series timeline */
.dynasty { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.dyn {
  display: flex; align-items: center; gap: 8px; color: inherit;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px 5px 6px;
  background: var(--surface); transition: border-color 0.15s, transform 0.15s;
}
.dyn:hover { border-color: var(--dim2); transform: translateY(-1px); }
.dyn b { font-family: var(--disp); font-size: 19px; line-height: 1; }
.dyn span { font-size: 12.5px; color: var(--dim); }

.tl-links { display: flex; gap: 14px; margin-top: 8px; }
.tl-links a {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue); text-decoration: none; border-bottom: 1px solid transparent;
}
.tl-links a:hover { border-bottom-color: currentColor; }
.tl-item .yr a { color: inherit; text-decoration: none; }
.tl-item .yr a:hover { color: var(--blue); }

/* All-Stars are a roster per year, not a single name */
.allstars { display: grid; gap: 2px; }
.as-row {
  display: grid; grid-template-columns: 62px 1fr; gap: 14px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid var(--line2);
}
.as-row:last-child { border-bottom: none; }
.as-row b { font-family: var(--disp); font-size: 21px; line-height: 1; }
.as-row p { font-size: 13.5px; color: var(--dim); line-height: 1.6; }

/* perfect games / no-hitters share the award-card grid */
.acard li .gem-perfect { color: #a97c14; }
.acard li b em { font-style: normal; color: var(--dim); }
.acard li .gem-date { color: var(--dim2); font-variant-numeric: tabular-nums; font-size: 12px; }

/* free-text box-score notes: the historical export recorded extra-base hits
   as lines like "HR: Kracht (3), Fleer" rather than per-batter columns */
.boxnotes { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.boxnotes span {
  font-size: 11.5px; color: var(--dim); background: var(--surface2);
  border-radius: 4px; padding: 3px 8px;
}

@media (max-width: 640px) {
  .seasonbar { gap: 4px; }
  .seasonbar .fchip { padding: 4px 8px; font-size: 12px; }
  .champ-strip { gap: 12px; }
  .as-row { grid-template-columns: 46px 1fr; gap: 10px; }
}

/* ==========================================================================
   Player profile
   ========================================================================== */

.backlink {
  display: inline-flex; align-items: center; gap: 5px; color: var(--dim);
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 14px;
}
.backlink:hover { color: var(--blue); }
.backlink .ico { transform: rotate(180deg); }

/* a player name that resolves to a profile */
.plink { color: inherit; border-bottom: 1px solid var(--line); }
.plink:hover { color: var(--blue); border-bottom-color: currentColor; }

.phero {
  display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-end;
  justify-content: space-between; padding-bottom: 18px; border-bottom: 2px solid var(--ink);
}
.pname h1 {
  font-family: var(--disp); font-weight: 700; font-size: clamp(34px, 6vw, 58px);
  line-height: 0.95; letter-spacing: 0.01em; text-transform: uppercase;
}
.pmeta {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  margin-top: 8px; font-size: 13px; color: var(--dim);
}
.pmeta .pno { font-family: var(--disp); font-weight: 700; font-size: 17px; color: var(--ink); }
.pmeta .ptitles { display: inline-flex; align-items: center; gap: 4px; color: #a97c14; font-weight: 600; }
.pteams { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pteam {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 5px; background: var(--surface);
}
.pteam em { font-style: normal; color: var(--dim2); font-weight: 500; font-variant-numeric: tabular-nums; }

.pstats { display: flex; flex-wrap: wrap; gap: 10px; }
.pstat {
  min-width: 74px; padding: 9px 14px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--surface); text-align: center;
}
.pstat b {
  display: block; font-family: var(--disp); font-weight: 700;
  font-size: 27px; line-height: 1; font-variant-numeric: tabular-nums;
}
.pstat span {
  display: block; margin-top: 3px; font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--dim2); font-weight: 600;
}

/* championship years won with this club */
.ptitlerow { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.ptitlerow a {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600;
  font-variant-numeric: tabular-nums; color: #7a5a10; background: #fdf6e4;
  border: 1px solid #ecd9a8; border-radius: 999px; padding: 3px 11px;
}
.ptitlerow a:hover { background: #f8ecd0; }

/* Honors: one row per award with its years, so a sixteen-time winner reads as a
   career line rather than sixteen identical chips. */
.pawards { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.pawards h4 {
  display: flex; align-items: center; gap: 6px; margin: 0 0 9px;
  font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim2);
}
.pawards ul { list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 7px 20px; }
.pawards li { display: flex; align-items: baseline; gap: 8px; font-size: 13px; min-width: 0; }
.pawards li b { font-weight: 700; white-space: nowrap; }
.pawards li span { color: var(--dim2); font-variant-numeric: tabular-nums;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pawards li span a { color: inherit; }
.pawards li span a:hover { color: var(--ink); text-decoration: underline; }
.pawards li em {
  margin-left: auto; flex: 0 0 auto; font-style: normal; font-size: 11px; font-weight: 700;
  color: #7a5a10; background: #fdf6e4; border: 1px solid #ecd9a8; border-radius: 999px; padding: 1px 7px;
}
@media (max-width: 560px) { .pawards ul { grid-template-columns: 1fr; } }

.ptabs { align-items: center; margin-bottom: 8px; }
.pcount { font-size: 12px; color: var(--dim2); margin-right: 10px; font-variant-numeric: tabular-nums; }

/* depth on demand: hidden until asked for */
/* [hidden] must win over display:flex, or the panel is always open */
.pfilters[hidden] { display: none; }
.pfilters {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 14px 16px; background: var(--surface); margin-bottom: 4px;
}
.pfilters label {
  display: flex; flex-direction: column; gap: 4px; font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim2); font-weight: 600;
}
.pfilters input, .pfilters select {
  font: inherit; font-size: 13px; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px; min-width: 132px;
}
.pfilters input:focus, .pfilters select:focus { outline: 2px solid var(--blue); outline-offset: 1px; }

.sec-head.sub { margin-top: 22px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.sec-head.sub h3 {
  font-family: var(--disp); font-size: 19px; letter-spacing: 0.06em; text-transform: uppercase;
}
tr.ptot td { font-weight: 700; border-top: 2px solid var(--ink); background: var(--surface2); }
tr.ptot td.l { letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; }

@media (max-width: 680px) {
  .phero { gap: 16px; }
  .pstat { min-width: 62px; padding: 7px 10px; }
  .pstat b { font-size: 21px; }
  .pfilters { gap: 10px; }
  .pfilters input, .pfilters select { min-width: 116px; }
}

/* ==========================================================================
   Calendar view — 329 game days back to 2010
   ========================================================================== */

.viewbar { margin-bottom: 4px; }
.viewbar .fchip { display: inline-flex; align-items: center; gap: 5px; }

.calwrap {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr));
  gap: 16px; align-items: start;
}
.calmonth {
  border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 13px 14px; background: var(--surface);
}
.calmonth h4 {
  font-family: var(--disp); font-size: 16px; letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 9px;
  display: flex; align-items: baseline; gap: 6px;
}
.calmonth h4 span { font-size: 12px; color: var(--dim2); letter-spacing: 0.08em; }

.caldow, .calgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.caldow i {
  font-style: normal; text-align: center; font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.06em; color: var(--dim2); padding-bottom: 4px;
}
.calgrid > * {
  aspect-ratio: 1; display: grid; place-items: center; position: relative;
  font-size: 11.5px; font-variant-numeric: tabular-nums; border-radius: 5px;
  font-style: normal; line-height: 1;
}
.calgrid .pad { visibility: hidden; }
.calgrid .off { color: #c9c6bd; }

/* a day with games — the whole point of the grid */
.calgrid button.on {
  font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer;
  color: #fff; background: var(--blue); border: 1px solid var(--blue);
  transition: transform 0.12s, box-shadow 0.12s;
}
.calgrid button.on:hover { transform: translateY(-1px); box-shadow: 0 2px 7px rgba(27, 63, 209, 0.32); }
.calgrid button.on.post { background: var(--red); border-color: var(--red); }
.calgrid button.on.post:hover { box-shadow: 0 2px 7px rgba(192, 19, 39, 0.32); }
.calgrid button.on.sel {
  background: var(--ink); border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink);
}
/* game count, tucked into the corner */
.calgrid button.on em {
  position: absolute; top: 1px; right: 3px; font-style: normal;
  font-size: 8px; font-weight: 700; opacity: 0.75;
}

.callegend {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center;
  margin-top: 14px; font-size: 12px; color: var(--dim);
}
.callegend span { display: inline-flex; align-items: center; gap: 6px; }
.callegend i.k { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.callegend i.k.on { background: var(--blue); }
.callegend i.k.post { background: var(--red); }

@media (max-width: 560px) {
  .calwrap { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .calmonth { padding: 9px 9px 11px; }
  .calgrid > * { font-size: 10px; }
  .calgrid button.on em { display: none; }
}

/* All-time explorer */
.seasonbar .fchip.alltime { font-weight: 700; letter-spacing: 0.04em; }
.seasonbar .fchip.alltime.on { background: var(--red); border-color: var(--red); }
.srcnote {
  display: block; font-size: 12px; color: #7a5a10; background: #fdf6e4;
  border: 1px solid #ecd9a8; border-radius: 6px; padding: 8px 12px; margin-bottom: 10px;
}

/* player headshot on the public profile */
.phead {
  width: 92px; height: 92px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--line); background: var(--surface2);
  flex: 0 0 auto; display: grid; place-items: center;
}
.phead img { width: 100%; height: 100%; object-fit: cover; }
.phead .pinit {
  font-family: var(--disp); font-weight: 700; font-size: 32px; color: var(--dim2);
}
.pname { display: flex; align-items: center; gap: 18px; }
.pnametext { min-width: 0; }
@media (max-width: 680px) {
  .phead { width: 66px; height: 66px; }
  .phead .pinit { font-size: 24px; }
  .pname { gap: 12px; }
}

/* size / colour picker on a product card */
.psize { display: block; margin: 8px 0 10px; }
.psize span {
  display: block; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dim2); font-weight: 600; margin-bottom: 4px;
}
.psize select {
  font: inherit; font-size: 13.5px; width: 100%; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px;
}
.psize select:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.pcard.soldout .pimg img { opacity: 0.55; filter: saturate(0.5); }
.pbadge.tag.out { background: var(--ink); border-color: var(--ink); color: #fff; right: auto; left: 10px; }
.addbtn[disabled] { opacity: 0.45; cursor: not-allowed; }
