:root {
  color-scheme: dark;
  --gold: #fdb827;
  --gold-deep: #9b7610;
  --black: #08090b;
  --ink: #10151d;
  --ink-2: #151b25;
  --ink-3: #1d2430;
  --steel: #89929f;
  --muted: #aeb5bf;
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.25);
  --paper: #f6f3eb;
  --river: #4f8aa3;
  --green: #56c084;
  --red: #e66f61;
  --radius: 8px;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.34);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(253, 184, 39, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(253, 184, 39, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 50% -20%, rgba(253, 184, 39, 0.12), transparent 38rem),
    linear-gradient(180deg, #131820 0%, #08090b 42%, #08090b 100%);
  background-size: 38px 38px, 38px 38px, auto, auto;
  color: var(--paper);
  font-family: var(--font);
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button,
input,
select {
  border-radius: 6px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  width: min(1440px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 42px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 10, 14, 0.78);
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  padding: 5px;
  border: 1px solid rgba(253, 184, 39, 0.35);
  border-radius: 50%;
  background: #111821;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.05;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
}

.nav-links {
  display: flex;
  justify-content: center;
  flex: 1;
  gap: 4px;
}

.nav-links a,
.ghost-button,
.segmented button,
.month-filter button,
.global-player-search button {
  border: 1px solid transparent;
  border-radius: 6px;
  color: #dce1e8;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.nav-links a {
  padding: 9px 12px;
  font-size: 0.86rem;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  border-color: rgba(253, 184, 39, 0.24);
  background: rgba(253, 184, 39, 0.12);
  color: #fff;
  outline: none;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  background: #111821;
}

.global-player-search {
  position: relative;
  display: grid;
  grid-template-columns: minmax(170px, 240px) auto;
  gap: 6px;
  align-items: center;
}

.global-player-search input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  padding: 0 11px;
  outline: none;
}

.global-player-search input:focus {
  border-color: rgba(253, 184, 39, 0.5);
}

.global-player-search button {
  min-height: 38px;
  padding: 0 11px;
  background: rgba(253, 184, 39, 0.13);
  border-color: rgba(253, 184, 39, 0.26);
  color: #fff;
  font-weight: 820;
}

.global-player-search button:hover,
.global-player-search button:focus-visible {
  background: rgba(253, 184, 39, 0.22);
  outline: none;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 60;
  overflow: hidden;
  border: 1px solid rgba(253, 184, 39, 0.28);
  border-radius: 8px;
  background: rgba(9, 12, 17, 0.98);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.46);
}

.search-results button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: transparent;
  color: #fff;
  padding: 8px 10px;
  text-align: left;
}

.search-results button:last-child {
  border-bottom: 0;
}

.search-results button:hover,
.search-results button:focus-visible {
  background: rgba(253, 184, 39, 0.12);
  outline: none;
}

.search-results img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: contain;
  background: #050506;
}

.search-initials {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(253, 184, 39, 0.25);
  border-radius: 50%;
  background: rgba(253, 184, 39, 0.12);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 900;
}

.search-results b,
.search-results span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-results span {
  color: var(--muted);
  font-size: 0.74rem;
}

.search-results small {
  color: var(--gold);
  font-family: var(--mono);
  font-weight: 860;
}

.ghost-button:hover,
.ghost-button:focus-visible {
  border-color: rgba(253, 184, 39, 0.42);
  background: rgba(253, 184, 39, 0.13);
  color: #fff;
  outline: none;
}

.ghost-button.loading .refresh-dot {
  animation: pulse-dot 900ms ease-in-out infinite;
}

.refresh-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(253, 184, 39, 0.75);
}

main {
  display: grid;
  gap: 18px;
}

.dashboard-view[hidden] {
  display: none !important;
}

.dashboard-view.active-view {
  animation: page-rise 220ms ease both;
}

body.player-mode main > :not(#player-view) {
  display: none;
}

body.player-mode .site-footer {
  display: none;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.7fr);
  gap: 18px;
  min-height: 420px;
}

.scoreboard-panel,
.bullpen-board {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 30%),
    linear-gradient(135deg, rgba(20, 29, 39, 0.98), rgba(9, 12, 17, 0.98));
  box-shadow: var(--shadow);
}

.scoreboard-panel::after,
.bullpen-board::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.46));
}

.scoreboard-panel > *,
.bullpen-board > * {
  position: relative;
  z-index: 1;
}

.panel-topline {
  position: absolute;
  top: 9px;
  left: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  height: 3px;
}

.panel-topline span {
  background: rgba(255, 255, 255, 0.58);
}

.panel-topline span:nth-child(-n + 3) {
  background: rgba(255, 255, 255, 0.92);
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.42fr);
  grid-template-rows: 1fr auto;
  gap: 20px;
  min-height: 420px;
  padding: 58px 34px 28px;
}

.hero-main::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.54;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, 0.03) 14px 15px),
    linear-gradient(110deg, rgba(253, 184, 39, 0.1), transparent 42%),
    url("https://www.mlbstatic.com/team-logos/134.svg");
  background-repeat: repeat, no-repeat, no-repeat;
  background-position: 0 0, 0 0, calc(100% + 52px) 35px;
  background-size: auto, auto, 330px 330px;
  filter: saturate(1.1);
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(2.55rem, 5vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.28rem, 2.2vw, 2rem);
  letter-spacing: 0;
}

.hero-summary {
  max-width: 720px;
  margin-bottom: 0;
  color: #cbd1da;
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
  line-height: 1.55;
}

.record-lockup {
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 188px;
  padding: 22px;
  border: 1px solid rgba(253, 184, 39, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(253, 184, 39, 0.16), rgba(253, 184, 39, 0.05)),
    rgba(11, 14, 19, 0.8);
}

.record-label,
.record-lockup span:last-child {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.record-lockup span:last-child {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  line-height: 1.25;
}

.record-lockup strong {
  color: #fff;
  font-size: clamp(2.2rem, 4.4vw, 4.7rem);
  line-height: 0.98;
}

.hero-meta-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.hero-meta-grid article,
.stat-tile,
.pulse-card,
.game-card,
.split-card,
.leader-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.hero-meta-grid article {
  padding: 14px;
}

.hero-meta-grid span,
.stat-tile span,
.pulse-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 760;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-meta-grid strong,
.stat-tile strong,
.pulse-card strong {
  display: block;
  color: #fff;
}

.hero-meta-grid strong {
  font-size: 1.3rem;
}

.next-game {
  padding: 24px;
}

.panel-title-row,
.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-title-row {
  margin-bottom: 22px;
}

.section-heading .eyebrow {
  display: none;
}

.section-heading h2 {
  color: #fff;
  font-size: clamp(1.45rem, 2.3vw, 2.18rem);
  font-weight: 860;
  line-height: 1.05;
}

.section-heading.compact h2 {
  font-size: clamp(1.34rem, 2vw, 1.9rem);
}

.panel-title-row .eyebrow {
  margin: 0;
  color: #fff;
  font-size: clamp(1.34rem, 2vw, 1.9rem);
  font-weight: 860;
  letter-spacing: 0;
  line-height: 1.05;
  text-transform: none;
}

.status-chip,
.section-kicker,
.result-chip,
.role-pill,
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #d8dde6;
  font-size: 0.74rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-chip.live {
  border-color: rgba(86, 192, 132, 0.5);
  color: #dff7e8;
  background: rgba(86, 192, 132, 0.14);
}

.status-chip.final,
.result-chip.win {
  border-color: rgba(86, 192, 132, 0.44);
  color: #ddf9e6;
}

.result-chip.loss {
  border-color: rgba(230, 111, 97, 0.48);
  color: #ffe3df;
}

.status-badge.injured {
  border-color: rgba(230, 111, 97, 0.5);
  background: rgba(230, 111, 97, 0.13);
  color: #ffe1dc;
}

.game-desk {
  min-height: 300px;
}

.matchup {
  display: grid;
  gap: 10px;
}

.matchup-team {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.16);
}

.matchup-team img {
  width: 38px;
  height: 38px;
}

.matchup-team b {
  display: block;
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.matchup-team span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.matchup-score {
  color: #fff;
  font-family: var(--mono);
  font-size: 1.55rem;
  font-weight: 800;
}

.game-note {
  margin: 16px 0 0;
  color: #c6ccd5;
  font-size: 0.92rem;
  line-height: 1.45;
}

.stat-band {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.stat-tile {
  min-height: 118px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(253, 184, 39, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(17, 24, 33, 0.92);
}

.stat-tile strong {
  margin-bottom: 7px;
  font-size: clamp(1.5rem, 3vw, 2.45rem);
  line-height: 1;
}

.stat-tile small {
  color: var(--muted);
  font-size: 0.78rem;
}

.daily-watch-panel {
  padding: 24px;
}

.daily-watch-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.daily-watch-card {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 166px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.18);
  color: #fff;
  padding: 14px;
  text-align: left;
}

.daily-watch-card:hover,
.daily-watch-card:focus-visible {
  border-color: rgba(253, 184, 39, 0.48);
  background-color: rgba(253, 184, 39, 0.08);
  outline: none;
}

.daily-watch-card span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.daily-watch-card strong {
  overflow-wrap: anywhere;
  color: #fff;
  font-size: clamp(1.02rem, 1.25vw, 1.24rem);
  line-height: 1.1;
}

.daily-watch-card small {
  color: #c8ced8;
  line-height: 1.36;
}

.daily-watch-card i {
  align-self: end;
  color: var(--gold);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 840;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.daily-watch-card.gold {
  border-color: rgba(253, 184, 39, 0.32);
  background:
    linear-gradient(160deg, rgba(253, 184, 39, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(0, 0, 0, 0.18);
}

.daily-watch-card.live,
.daily-watch-card.good {
  border-color: rgba(86, 192, 132, 0.34);
}

.daily-watch-card.warn,
.daily-watch-card.injury {
  border-color: rgba(230, 111, 97, 0.38);
  background:
    linear-gradient(160deg, rgba(230, 111, 97, 0.11), rgba(255, 255, 255, 0.03)),
    rgba(0, 0, 0, 0.18);
}

.fan-intel-grid {
  margin-top: 18px;
}

.fan-pulse-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fan-pulse-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 10px;
  min-height: 260px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.024)),
    rgba(0, 0, 0, 0.16);
}

.fan-pulse-card.gold {
  border-color: rgba(253, 184, 39, 0.36);
}

.fan-pulse-card.warn {
  border-color: rgba(230, 111, 97, 0.36);
}

.fan-pulse-card.good {
  border-color: rgba(86, 192, 132, 0.32);
}

.fan-pulse-card.blue {
  border-color: rgba(79, 138, 163, 0.44);
}

.fan-pulse-card header,
.fan-card-actions,
.next-slate-header,
.market-source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fan-pulse-card header span,
.fan-live-note small,
.contention-stat-grid span,
.next-slate-header span,
.market-summary-card span,
.market-metrics span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 840;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.fan-pulse-card header a,
.fan-card-actions a,
.fan-card-actions button,
.next-slate-header a,
.market-source-row a {
  min-height: 30px;
  border: 1px solid rgba(253, 184, 39, 0.28);
  border-radius: 6px;
  background: rgba(253, 184, 39, 0.09);
  color: #fff;
  padding: 0 9px;
  font-size: 0.72rem;
  font-weight: 850;
}

.fan-card-actions button {
  background: rgba(255, 255, 255, 0.055);
}

.fan-pulse-card > strong {
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.18;
}

.fan-pulse-card p {
  margin: 0;
  color: #cbd2dc;
  font-size: 0.88rem;
  line-height: 1.48;
}

.fan-live-note {
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.fan-live-note b {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 1.08rem;
  line-height: 1;
}

.contention-board {
  display: grid;
  gap: 12px;
}

.race-meter-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 94px;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border: 1px solid rgba(253, 184, 39, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(253, 184, 39, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(0, 0, 0, 0.16);
}

.race-meter-copy span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 840;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.race-meter-copy strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-family: var(--mono);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.92;
}

.race-meter-copy small {
  color: #c8ced8;
}

.race-meter,
.pressure-meter {
  position: relative;
  overflow: hidden;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.race-meter {
  height: 94px;
  border-radius: 8px;
}

.race-meter i,
.pressure-meter i {
  position: absolute;
  inset: auto 0 0;
  display: block;
  height: var(--meter);
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
}

.pressure-meter i {
  inset: 0 auto 0 0;
  width: var(--meter);
  height: auto;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
}

.contention-stat-grid,
.market-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.contention-stat-grid article,
.market-metrics article {
  min-height: 86px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.contention-stat-grid b,
.market-metrics b {
  display: block;
  overflow-wrap: anywhere;
  margin: 6px 0 4px;
  color: #fff;
  font-family: var(--mono);
  font-size: 1.16rem;
  line-height: 1.05;
}

.contention-stat-grid small,
.market-metrics small {
  color: #c8ced8;
  font-size: 0.76rem;
  line-height: 1.35;
}

.next-slate {
  display: grid;
  gap: 9px;
}

.next-slate-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.next-slate-strip a {
  display: grid;
  gap: 4px;
  min-height: 60px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.next-slate-strip b {
  color: #fff;
  font-size: 0.84rem;
}

.next-slate-strip small {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 840;
}

.market-watch-board {
  display: grid;
  grid-template-columns: minmax(230px, 0.28fr) minmax(0, 0.34fr) minmax(0, 0.38fr);
  gap: 12px;
  align-items: start;
}

.market-summary-card {
  display: grid;
  gap: 12px;
  min-height: 166px;
  padding: 15px;
  border: 1px solid rgba(253, 184, 39, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(253, 184, 39, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(0, 0, 0, 0.18);
}

.market-summary-card.high {
  border-color: rgba(230, 111, 97, 0.42);
}

.market-summary-card.stable {
  border-color: rgba(86, 192, 132, 0.32);
}

.market-summary-card strong {
  display: block;
  margin: 6px 0;
  color: #fff;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

.market-summary-card small {
  color: #c8ced8;
  line-height: 1.4;
}

.market-reliever-list {
  display: grid;
  grid-column: 3;
  grid-row: 1 / span 3;
  gap: 7px;
}

.market-focus-card {
  grid-column: 1 / span 2;
  min-height: 150px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(79, 138, 163, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(0, 0, 0, 0.15);
}

.market-focus-card span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 840;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.market-focus-card ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.market-focus-card li {
  min-height: 92px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.market-focus-card b,
.market-focus-card small {
  display: block;
}

.market-focus-card b {
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.2;
}

.market-focus-card small {
  margin-top: 6px;
  color: #c8ced8;
  font-size: 0.78rem;
  line-height: 1.36;
}

.market-reliever-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 74px 76px 104px;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  padding: 8px 10px;
  text-align: left;
}

.market-reliever-row.hot {
  border-color: rgba(230, 111, 97, 0.38);
  background: rgba(230, 111, 97, 0.08);
}

.market-reliever-row:hover,
.market-reliever-row:focus-visible,
.fan-card-actions button:hover,
.fan-card-actions button:focus-visible {
  border-color: rgba(253, 184, 39, 0.48);
  outline: none;
}

.market-reliever-row b,
.market-reliever-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-reliever-row b {
  font-size: 0.88rem;
}

.market-reliever-row small {
  color: var(--muted);
  font-size: 0.72rem;
}

.market-reliever-row strong,
.market-reliever-row em {
  color: #fff;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.market-reliever-row em {
  color: var(--gold);
}

.market-source-row {
  grid-column: 1 / -1;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.span-8 {
  grid-column: span 8;
}

.span-12 {
  grid-column: span 12;
}

.span-7 {
  grid-column: span 7;
}

.span-5 {
  grid-column: span 5;
}

.span-4 {
  grid-column: span 4;
}

.span-3 {
  grid-column: span 3;
}

#team-pulse,
#leaders-panel,
.players-panel,
.staff-panel,
.injured-panel,
.transactions-panel,
.resource-panel,
.daily-watch-panel,
.primer-panel,
.series-panel,
.roster-map-panel,
.trends-panel,
.situational-panel,
.rolling-panel,
.chart-lab-panel,
.compare-panel,
.rotation-panel,
.depth-panel,
.schedule-grid .scoreboard-panel {
  padding: 24px;
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading.compact {
  margin-bottom: 15px;
}

.pulse-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pulse-card {
  min-height: 180px;
  padding: 18px;
}

.pulse-card strong {
  margin-bottom: 18px;
  font-size: 1.55rem;
}

.mini-metrics {
  display: grid;
  gap: 9px;
}

.mini-meter {
  display: grid;
  gap: 6px;
}

.mini-meter-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #d7dce4;
  font-size: 0.82rem;
}

.meter-track {
  overflow: hidden;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.meter-fill {
  width: var(--meter, 50%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
}

.leader-list {
  display: grid;
  gap: 9px;
}

.leader-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 64px;
  padding: 9px 10px;
}

.leader-item img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  background: #06070a;
}

.leader-item b {
  display: block;
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-item span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.leader-value {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 1.02rem;
  font-weight: 800;
}

.command-center {
  align-items: stretch;
}

.today-primer,
.series-tracker,
.roster-map {
  display: grid;
  gap: 12px;
}

.primer-matchup,
.series-opponent {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(253, 184, 39, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(253, 184, 39, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.15);
}

.primer-matchup img,
.series-opponent img {
  width: 52px;
  height: 52px;
}

.primer-matchup span,
.series-opponent span,
.primer-row span,
.resource-card span,
.transaction-meta,
.roster-counts span,
.handedness-grid span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.primer-matchup b,
.series-opponent b {
  display: block;
  overflow: hidden;
  margin: 3px 0;
  color: #fff;
  font-size: 1.08rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primer-matchup small,
.series-opponent small,
.primer-row small,
.resource-card small {
  color: #c8ced8;
  line-height: 1.35;
}

.primer-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.primer-row,
.resource-card,
.transaction-item,
.roster-counts article,
.handedness-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.primer-row {
  min-height: 92px;
  padding: 12px;
}

.primer-row b {
  display: block;
  overflow: hidden;
  margin: 8px 0 4px;
  color: #fff;
  font-size: 1.05rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.series-chips {
  display: grid;
  gap: 8px;
}

.series-chip {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.17);
}

.series-chip:hover,
.series-chip:focus-visible,
.resource-card:hover,
.resource-card:focus-visible,
.game-card-link:hover,
.game-card-link:focus-visible,
.detail-link:hover,
.detail-link:focus-visible,
.player-link-strip a:hover,
.player-link-strip a:focus-visible {
  border-color: rgba(253, 184, 39, 0.48);
  background: rgba(253, 184, 39, 0.12);
  color: #fff;
  outline: none;
}

.series-chip span {
  color: #c6ccd5;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.series-chip b {
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.series-chip.w {
  border-color: rgba(86, 192, 132, 0.36);
}

.series-chip.l {
  border-color: rgba(230, 111, 97, 0.38);
}

.series-chip.live {
  border-color: rgba(86, 192, 132, 0.48);
  background: rgba(86, 192, 132, 0.12);
}

.roster-counts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.roster-counts article,
.handedness-grid article {
  padding: 12px;
}

.roster-counts b {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-family: var(--mono);
  font-size: 1.55rem;
  line-height: 1;
}

.handedness-grid {
  display: grid;
  gap: 8px;
}

.handedness-grid article div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.handedness-grid b {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid rgba(253, 184, 39, 0.28);
  border-radius: 6px;
  color: #fff;
  font-family: var(--mono);
  font-size: 0.84rem;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.resource-card {
  display: grid;
  gap: 7px;
  min-height: 116px;
  padding: 14px;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.resource-card b {
  color: #fff;
  font-size: 1.04rem;
}

.resource-card small {
  color: #c7ced8;
}

.detail-link,
.game-card-link,
.player-link-strip a,
.transaction-copy button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid rgba(253, 184, 39, 0.3);
  border-radius: 6px;
  background: rgba(253, 184, 39, 0.1);
  color: #f8e6b4;
  font-size: 0.75rem;
  font-weight: 820;
}

.game-actions {
  margin-top: 14px;
}

.detail-link {
  padding: 0 10px;
}

.chart-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.chart-toggle button {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #dce1e8;
  padding: 0 11px;
  font-size: 0.78rem;
  font-weight: 820;
}

.chart-toggle button.active,
.chart-toggle button:hover,
.chart-toggle button:focus-visible {
  border-color: rgba(253, 184, 39, 0.42);
  background: rgba(253, 184, 39, 0.18);
  color: #fff;
  outline: none;
}

.chart-control-row,
.compare-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.control-select {
  display: grid;
  gap: 4px;
  min-width: 190px;
}

.control-select span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.control-select select {
  min-height: 42px;
  border: 1px solid var(--line);
  background: rgba(6, 8, 12, 0.7);
  color: #fff;
  padding: 0 10px;
  outline: none;
}

.control-select select:focus {
  border-color: rgba(253, 184, 39, 0.5);
}

.game-chart-wrap,
.player-scatter-wrap,
.leader-chart-wrap,
.rolling-window-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    rgba(0, 0, 0, 0.18);
}

.leader-chart-wrap {
  padding: 10px;
}

.metric-leader-list {
  display: grid;
  gap: 8px;
}

.metric-bar {
  position: relative;
  display: grid;
  grid-template-columns: 32px 42px minmax(120px, 1fr) minmax(120px, 0.8fr) 58px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 62px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  padding: 9px 10px;
  text-align: left;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.metric-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(253, 184, 39, 0.12), transparent 62%);
  opacity: 0;
  pointer-events: none;
}

.metric-bar:hover,
.metric-bar:focus-visible,
.metric-bar.selected {
  border-color: rgba(253, 184, 39, 0.5);
  background: rgba(253, 184, 39, 0.085);
  outline: none;
}

.metric-bar:hover::before,
.metric-bar:focus-visible::before,
.metric-bar.selected::before {
  opacity: 1;
}

.metric-bar.injured {
  border-color: rgba(230, 111, 97, 0.32);
}

.metric-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(253, 184, 39, 0.28);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 900;
}

.metric-bar img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: contain;
  background: #050506;
}

.metric-player {
  min-width: 0;
}

.metric-player b,
.metric-player small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-player b {
  font-size: 0.91rem;
}

.metric-player small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
}

.metric-track {
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.26);
}

.metric-track i {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(253, 184, 39, 0.72), rgba(253, 184, 39, 1));
  box-shadow: 0 0 18px rgba(253, 184, 39, 0.24);
}

.metric-bar.injured .metric-track i {
  background: linear-gradient(90deg, rgba(230, 111, 97, 0.7), rgba(230, 111, 97, 1));
  box-shadow: 0 0 18px rgba(230, 111, 97, 0.2);
}

.metric-bar strong {
  color: #fff;
  font-family: var(--mono);
  font-size: 1rem;
  text-align: right;
}

.opponent-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.opponent-tile {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 72px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(253, 184, 39, 0.16) 0 var(--heat), transparent var(--heat)),
    rgba(255, 255, 255, 0.035);
  color: #fff;
  padding: 10px;
  text-align: left;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.opponent-tile.negative {
  background:
    linear-gradient(90deg, rgba(230, 111, 97, 0.15) 0 var(--heat), transparent var(--heat)),
    rgba(255, 255, 255, 0.035);
}

.opponent-tile.future {
  background:
    linear-gradient(90deg, rgba(79, 138, 163, 0.16) 0 var(--heat), transparent var(--heat)),
    rgba(255, 255, 255, 0.035);
}

.opponent-tile:hover,
.opponent-tile:focus-visible,
.opponent-tile.selected {
  border-color: rgba(253, 184, 39, 0.5);
  background-color: rgba(253, 184, 39, 0.08);
  outline: none;
}

.opponent-tile.negative:hover,
.opponent-tile.negative:focus-visible,
.opponent-tile.negative.selected {
  border-color: rgba(230, 111, 97, 0.56);
}

.opponent-tile img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.32));
}

.opponent-tile span,
.opponent-tile b,
.opponent-tile small {
  display: block;
  min-width: 0;
}

.opponent-tile b,
.opponent-tile small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.opponent-tile b {
  font-size: 0.9rem;
}

.opponent-tile small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.7rem;
}

.opponent-tile strong {
  color: #fff;
  font-family: var(--mono);
  font-size: 1rem;
}

.opponent-detail {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.rolling-area {
  fill: rgba(253, 184, 39, 0.16);
}

.rolling-line {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 9px rgba(253, 184, 39, 0.26));
}

.rolling-point {
  cursor: pointer;
}

.rolling-point circle {
  fill: #111821;
  stroke: var(--gold);
  stroke-width: 3;
  transition: r 140ms ease, fill 140ms ease, stroke 140ms ease;
}

.rolling-point.negative circle {
  stroke: var(--red);
}

.rolling-point:hover circle,
.rolling-point:focus-visible circle,
.rolling-point.selected circle {
  fill: var(--gold);
  stroke: #fff;
  outline: none;
}

.rolling-point.negative:hover circle,
.rolling-point.negative:focus-visible circle,
.rolling-point.negative.selected circle {
  fill: var(--red);
}

.player-compare-board {
  display: grid;
  gap: 12px;
}

.compare-player-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.compare-player-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(253, 184, 39, 0.1), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.035);
  color: #fff;
  padding: 12px;
  text-align: left;
}

.compare-player-card.right {
  background:
    linear-gradient(270deg, rgba(79, 138, 163, 0.16), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.035);
}

.compare-player-card:hover,
.compare-player-card:focus-visible {
  border-color: rgba(253, 184, 39, 0.5);
  outline: none;
}

.compare-player-card img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: contain;
  background: #050506;
}

.compare-player-card span,
.compare-player-card b,
.compare-player-card small {
  display: block;
  min-width: 0;
}

.compare-player-card b,
.compare-player-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-player-card b {
  font-size: 1.02rem;
}

.compare-player-card small {
  color: var(--muted);
  font-size: 0.75rem;
}

.compare-player-card > small {
  grid-column: 2 / -1;
}

.compare-player-card strong {
  color: #fff;
  font-family: var(--mono);
  font-size: 1.1rem;
  text-align: right;
}

.compare-metrics {
  display: grid;
  gap: 8px;
}

.compare-metric-row {
  display: grid;
  grid-template-columns: 74px minmax(90px, 1fr) 64px minmax(90px, 1fr) 74px;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.14);
  padding: 9px 10px;
}

.compare-metric-row b {
  color: #d8dee7;
  font-size: 0.76rem;
  font-weight: 880;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.compare-value {
  color: #dce2eb;
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 860;
  text-align: center;
}

.compare-value.winner {
  color: var(--gold);
}

.compare-bar {
  display: flex;
  height: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
}

.compare-bar.left {
  justify-content: flex-end;
}

.compare-bar i {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
}

.compare-bar.right i {
  background: linear-gradient(90deg, var(--river), #98cee3);
}

.drill-chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 300px;
}

.chart-grid-line {
  stroke: rgba(255, 255, 255, 0.13);
  stroke-width: 1;
}

.chart-axis-label,
.chart-axis-title,
.scatter-label {
  fill: #cbd1da;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
}

.chart-axis-title {
  fill: var(--muted);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.zero-line {
  stroke: rgba(255, 255, 255, 0.42);
  stroke-width: 1.5;
}

.run-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.run-line.pit {
  stroke: var(--gold);
}

.run-line.opp {
  stroke: #aeb5bf;
}

.margin-stem,
.total-stem {
  stroke-width: 8;
  stroke-linecap: round;
}

.margin-stem.win,
.total-stem {
  stroke: var(--gold);
}

.margin-stem.loss {
  stroke: var(--red);
}

.chart-hit {
  cursor: pointer;
}

.chart-hit circle {
  fill: #111821;
  stroke: var(--gold);
  stroke-width: 3;
  transition: r 140ms ease, fill 140ms ease, stroke 140ms ease;
}

.chart-hit:hover circle,
.chart-hit:focus-visible circle,
.chart-hit.selected circle {
  fill: var(--gold);
  stroke: #fff;
  outline: none;
}

.opp-dot {
  fill: #cbd1da;
  opacity: 0.85;
}

.scatter-point {
  cursor: pointer;
}

.scatter-point circle {
  fill: rgba(253, 184, 39, 0.42);
  stroke: rgba(253, 184, 39, 0.9);
  stroke-width: 2;
  transition: fill 140ms ease, stroke 140ms ease, transform 140ms ease;
}

.scatter-point.injured circle {
  fill: rgba(230, 111, 97, 0.4);
  stroke: rgba(230, 111, 97, 0.95);
}

.scatter-point:hover circle,
.scatter-point:focus-visible circle,
.scatter-point.selected circle {
  fill: rgba(253, 184, 39, 0.9);
  stroke: #fff;
  outline: none;
}

.scatter-point.selected circle {
  filter: drop-shadow(0 0 10px rgba(253, 184, 39, 0.55));
}

.scatter-label {
  fill: #eef2f6;
  font-size: 10px;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.8);
  stroke-width: 3px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 14px 13px;
  color: #c8ced8;
  font-size: 0.78rem;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-legend i {
  width: 18px;
  height: 9px;
  border-radius: 999px;
}

.legend-gold {
  background: linear-gradient(90deg, var(--gold), #8d690b);
}

.legend-silver {
  background: linear-gradient(90deg, #d8dde6, #606875);
}

.legend-red {
  background: linear-gradient(90deg, var(--red), #8b352d);
}

.chart-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  align-items: stretch;
  gap: 8px;
  margin-top: 12px;
}

.detail-card {
  display: grid;
  align-content: center;
  min-height: 84px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.detail-card.featured {
  grid-column: span 2;
  border-color: rgba(253, 184, 39, 0.32);
  background:
    linear-gradient(90deg, rgba(253, 184, 39, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.16);
}

.detail-card span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-card b {
  display: block;
  overflow: hidden;
  margin: 6px 0 4px;
  color: #fff;
  font-size: 1.08rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-card small {
  color: #c8ced8;
  line-height: 1.35;
}

.chart-detail .detail-link {
  align-self: center;
  min-height: 42px;
  padding: 0 12px;
  white-space: nowrap;
}

.recent-games-strip {
  display: grid;
  grid-template-columns: repeat(10, minmax(76px, 1fr));
  gap: 7px;
  overflow-x: auto;
  margin-bottom: 16px;
}

.recent-game-card {
  display: grid;
  gap: 5px;
  min-height: 88px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.recent-game-card.win {
  border-color: rgba(86, 192, 132, 0.35);
}

.recent-game-card.loss {
  border-color: rgba(230, 111, 97, 0.34);
}

.recent-game-card:hover,
.recent-game-card:focus-visible,
.trend-column:hover,
.trend-column:focus-visible {
  border-color: rgba(253, 184, 39, 0.48);
  background: rgba(253, 184, 39, 0.1);
  outline: none;
}

.recent-game-card span,
.recent-game-card small,
.trend-column small,
.rotation-stat span,
.depth-group small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 780;
}

.recent-game-card b {
  color: #fff;
  font-family: var(--mono);
  font-size: 1rem;
}

.trend-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.trend-summary article,
.situation-card {
  min-height: 90px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.trend-summary span,
.situation-card span,
.depth-group header span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trend-summary b,
.situation-card b {
  display: block;
  margin: 7px 0 4px;
  color: #fff;
  font-size: 1.25rem;
}

.trend-summary small,
.situation-card small {
  color: #c8ced8;
}

.trend-chart {
  display: grid;
  grid-template-columns: repeat(12, minmax(40px, 1fr));
  gap: 7px;
  align-items: end;
  min-height: 172px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.trend-column {
  display: grid;
  align-content: end;
  gap: 5px;
  min-height: 146px;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 7px;
  text-align: center;
}

.trend-bars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 3px;
  height: 92px;
}

.trend-bars i {
  display: block;
  height: var(--bar, 10%);
  min-height: 4px;
  border-radius: 4px 4px 2px 2px;
}

.trend-bars .for,
.trend-legend .for {
  background: linear-gradient(180deg, var(--gold), #8d690b);
}

.trend-bars .against,
.trend-legend .against {
  background: linear-gradient(180deg, #cfd5dd, #59616d);
}

.trend-column b {
  color: #fff;
  font-size: 0.72rem;
}

.trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  color: #c8ced8;
  font-size: 0.78rem;
}

.trend-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trend-legend i {
  width: 18px;
  height: 9px;
  border-radius: 999px;
}

.situational-report {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.rotation-board {
  display: grid;
  gap: 9px;
}

.rotation-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) repeat(3, minmax(74px, auto));
  align-items: center;
  gap: 12px;
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  padding: 10px;
  text-align: left;
}

.rotation-card:hover,
.rotation-card:focus-visible,
.depth-group button:hover,
.depth-group button:focus-visible {
  border-color: rgba(253, 184, 39, 0.48);
  background: rgba(253, 184, 39, 0.1);
  outline: none;
}

.rotation-card img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: contain;
  background: #050506;
}

.rotation-main b {
  display: block;
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rotation-main span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.rotation-stat {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.rotation-stat b {
  color: #fff;
  font-family: var(--mono);
  font-size: 1rem;
}

.depth-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.depth-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.depth-group header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.16);
}

.depth-group header b {
  color: var(--gold);
  font-family: var(--mono);
}

.depth-group div {
  display: grid;
}

.depth-group button {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  background: transparent;
  color: #fff;
  padding: 8px 10px;
  text-align: left;
}

.depth-group button:last-child {
  border-bottom: 0;
}

.depth-group img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: contain;
  background: #050506;
}

.depth-group button b,
.depth-group button small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.depth-group i {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 6px;
  border: 1px solid rgba(230, 111, 97, 0.45);
  border-radius: 5px;
  color: #ffd8d3;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 900;
}

.bullpen-board {
  min-height: 470px;
  padding: 48px 32px 28px;
  background:
    linear-gradient(180deg, rgba(19, 26, 35, 0.98), rgba(8, 10, 13, 0.98)),
    repeating-linear-gradient(90deg, transparent 0 80px, rgba(255, 255, 255, 0.025) 80px 81px);
}

.bullpen-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.bullpen-title-block {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bullpen-logo {
  width: 78px;
  height: 78px;
  padding: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.bullpen-title-block h2 {
  margin-bottom: 4px;
  color: #fff;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 0.95;
}

.bullpen-title-block p {
  margin: 0;
  color: #c9ced7;
  font-size: 1.02rem;
  font-weight: 760;
}

.pitch-legend {
  display: grid;
  justify-items: start;
  gap: 5px;
  margin-top: 12px;
  color: #cfd5dd;
  font-style: italic;
}

.pitch-legend strong {
  color: var(--paper);
}

.pitch-legend span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
}

.pitch-legend i {
  width: 30px;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.legend-three {
  background: linear-gradient(90deg, rgba(210, 213, 218, 0.34), rgba(125, 127, 129, 0.8));
}

.legend-yesterday {
  background: linear-gradient(90deg, var(--gold), #b38109);
}

.bullpen-scroll-wrap {
  position: relative;
}

.bullpen-rail {
  display: flex;
  gap: 42px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 0 36px 12px;
  scrollbar-color: rgba(253, 184, 39, 0.45) rgba(255, 255, 255, 0.06);
}

.bullpen-group {
  display: flex;
  gap: 38px;
  align-items: end;
  min-width: max-content;
}

.bullpen-group-label {
  align-self: start;
  min-width: 92px;
  padding-top: 14px;
  color: #b7bec9;
  font-size: 0.82rem;
  font-weight: 820;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  writing-mode: horizontal-tb;
}

.pitcher-card {
  scroll-snap-align: center;
  width: 96px;
  text-align: center;
}

.pitcher-photo-wrap {
  position: relative;
  width: 58px;
  height: 58px;
  margin: 0 auto 8px;
  border: 2px solid rgba(253, 184, 39, 0.34);
  border-radius: 50%;
  background: #050506;
}

.pitcher-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
}

.hand-badge {
  position: absolute;
  right: -5px;
  bottom: -2px;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: #10151d;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.pitcher-name {
  display: grid;
  min-height: 45px;
  align-content: start;
}

.pitcher-name span:first-child {
  color: #b6beca;
  font-size: 0.7rem;
  font-weight: 780;
}

.pitcher-name b {
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.05;
}

.pitcher-name small {
  color: #b9c0ca;
  font-weight: 740;
}

.pitch-bar {
  position: relative;
  overflow: hidden;
  width: 36px;
  height: 240px;
  margin: 10px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 5px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.34) 0 2px, transparent 2px 7px),
    rgba(0, 0, 0, 0.62);
}

.pitch-bar::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: var(--three-height, 0%);
  background: linear-gradient(180deg, rgba(220, 223, 226, 0.9), rgba(70, 72, 74, 0.84));
}

.pitch-bar::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: var(--yesterday-height, 0%);
  background: linear-gradient(180deg, var(--gold), #89680b);
}

.pitch-count,
.y-count {
  position: absolute;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.94rem;
  font-weight: 900;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
}

.pitch-count {
  bottom: max(6px, calc(var(--three-height, 0%) - 26px));
}

.y-count {
  bottom: max(6px, calc(var(--yesterday-height, 0%) - 24px));
  color: #111;
  text-shadow: none;
}

.availability {
  margin-top: 9px;
  color: #d2d8e0;
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.availability.hot {
  color: #ffcbca;
}

.availability.rested {
  color: #dcf6e6;
}

.rail-button {
  position: absolute;
  top: 46%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 50px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: rgba(4, 8, 13, 0.74);
  color: #fff;
}

.rail-button:hover,
.rail-button:focus-visible {
  border-color: rgba(253, 184, 39, 0.44);
  outline: none;
}

.rail-button.left {
  left: -20px;
}

.rail-button.right {
  right: -20px;
}

.rail-button span {
  width: 16px;
  height: 16px;
  border-top: 3px solid currentColor;
  border-left: 3px solid currentColor;
}

.rail-button.left span {
  transform: rotate(-45deg);
}

.rail-button.right span {
  transform: rotate(135deg);
}

.players-panel {
  min-height: 580px;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.segmented button,
.month-filter button {
  min-height: 34px;
  padding: 0 12px;
  background: transparent;
}

.segmented button.active,
.month-filter button.active {
  border-color: rgba(253, 184, 39, 0.42);
  background: rgba(253, 184, 39, 0.18);
  color: #fff;
}

.search-box input {
  width: min(220px, 48vw);
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  color: #fff;
  padding: 0 12px;
  outline: none;
}

.search-box input:focus {
  border-color: rgba(253, 184, 39, 0.52);
}

.player-directory {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.player-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.player-summary-card {
  min-height: 112px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(253, 184, 39, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.04);
}

.player-summary-card span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 840;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.player-summary-card b {
  display: block;
  margin: 8px 0 5px;
  color: #fff;
  font-family: var(--mono);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1;
}

.player-summary-card small {
  color: #c8ced8;
}

.player-browser-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.player-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.player-directory-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 236px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(253, 184, 39, 0.08), rgba(255, 255, 255, 0.025) 48%, rgba(79, 138, 163, 0.08)),
    rgba(0, 0, 0, 0.16);
  color: #fff;
  padding: 12px;
  text-align: left;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.player-directory-card.injured {
  border-color: rgba(230, 111, 97, 0.34);
  background:
    linear-gradient(145deg, rgba(230, 111, 97, 0.12), rgba(255, 255, 255, 0.025) 50%, rgba(253, 184, 39, 0.06)),
    rgba(0, 0, 0, 0.16);
}

.player-directory-card:hover,
.player-directory-card:focus-visible {
  border-color: rgba(253, 184, 39, 0.55);
  background-color: rgba(253, 184, 39, 0.08);
  outline: none;
}

.directory-card-header {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.directory-card-header img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: contain;
  background: #050506;
}

.directory-card-header b,
.directory-card-header small,
.directory-statline strong,
.directory-statline small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.directory-card-header b {
  color: #fff;
  font-size: 1rem;
}

.directory-card-header small,
.directory-statline small {
  color: var(--muted);
  font-size: 0.75rem;
}

.directory-card-header .status-badge {
  grid-column: 1 / -1;
  justify-self: start;
}

.directory-statline {
  display: block;
}

.directory-statline strong {
  margin-bottom: 3px;
  color: #fff;
  font-family: var(--mono);
  font-size: 1.22rem;
}

.directory-meters {
  display: grid;
  gap: 8px;
}

.directory-meter {
  display: grid;
  gap: 5px;
}

.directory-meter span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.directory-meter i {
  color: #cfd5de;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.directory-meter b {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.directory-meter em {
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.directory-meter strong {
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
}

.staff-panel {
  min-height: 580px;
}

.staff-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.staff-search-box input {
  width: min(240px, 48vw);
}

.staff-directory {
  display: grid;
  gap: 14px;
}

.staff-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.staff-summary-card {
  min-height: 112px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(253, 184, 39, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.04);
}

.staff-summary-card span,
.staff-card-meta i {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 840;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.staff-summary-card b {
  display: block;
  margin: 8px 0 5px;
  color: #fff;
  font-family: var(--mono);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1;
}

.staff-summary-card small {
  color: #c8ced8;
}

.staff-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.staff-org-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.staff-org-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 8px 12px;
  min-height: 126px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.16);
  color: #fff;
  padding: 13px;
  text-align: left;
}

.staff-org-card:hover,
.staff-org-card:focus-visible,
.staff-org-card.active {
  border-color: rgba(253, 184, 39, 0.48);
  background-color: rgba(253, 184, 39, 0.08);
  outline: none;
}

.staff-org-card span {
  min-width: 0;
}

.staff-org-card b {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 0.96rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-org-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.32;
}

.staff-org-card strong {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 1.5rem;
  line-height: 1;
}

.staff-org-card em {
  grid-column: 1 / -1;
  overflow: hidden;
  color: #c9d0da;
  font-size: 0.74rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 10px 12px;
  min-height: 154px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(253, 184, 39, 0.08), rgba(255, 255, 255, 0.025) 52%, rgba(79, 138, 163, 0.08)),
    rgba(0, 0, 0, 0.16);
  color: #fff;
  padding: 12px;
  text-align: left;
}

.staff-card.support {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025) 55%, rgba(253, 184, 39, 0.07)),
    rgba(0, 0, 0, 0.16);
}

.staff-card:hover,
.staff-card:focus-visible {
  border-color: rgba(253, 184, 39, 0.52);
  background-color: rgba(253, 184, 39, 0.08);
  outline: none;
}

.staff-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
}

.staff-avatar img,
.staff-related-card img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: contain;
  background: #050506;
}

.staff-initials {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(253, 184, 39, 0.32);
  border-radius: 50%;
  background: rgba(253, 184, 39, 0.12);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 900;
}

.staff-card-copy b,
.staff-card-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-card-copy b {
  color: #fff;
  font-size: 1rem;
}

.staff-card-copy small {
  color: #c8ced8;
  font-size: 0.78rem;
  line-height: 1.3;
}

.staff-card-meta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.staff-card-meta em {
  flex: 0 0 auto;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.staff-role-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.staff-role-card {
  min-height: 178px;
  padding: 15px;
  border: 1px solid rgba(253, 184, 39, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(253, 184, 39, 0.09), rgba(255, 255, 255, 0.028) 52%, rgba(79, 138, 163, 0.1)),
    rgba(6, 8, 12, 0.62);
}

.staff-role-card span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 840;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.staff-role-card b {
  display: block;
  margin: 9px 0 8px;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.15;
}

.staff-role-card p {
  margin: 0;
  color: #cbd2dc;
  font-size: 0.86rem;
  line-height: 1.48;
}

.table-shell {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stats-table,
.standings-table {
  width: 100%;
  border-collapse: collapse;
}

.stats-table {
  min-width: 980px;
}

th,
td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #111821;
  color: #c4cad3;
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

th button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  text-transform: inherit;
  letter-spacing: inherit;
}

th button::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(255, 255, 255, 0.42);
  opacity: 0;
}

th button.sorted::after {
  opacity: 1;
}

th button.asc::after {
  transform: rotate(180deg);
}

td {
  color: #e4e8ee;
  padding: 10px 12px;
  font-size: 0.89rem;
  white-space: nowrap;
}

th {
  padding: 0 12px;
}

tbody tr {
  transition: background 120ms ease;
}

tbody tr:hover {
  background: rgba(253, 184, 39, 0.08);
}

#players-body tr[data-player-id] {
  cursor: pointer;
}

.player-cell {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.player-cell img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: contain;
  background: #050506;
}

.player-cell b {
  display: block;
  color: #fff;
  font-size: 0.93rem;
}

.player-cell span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.injured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.injured-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 96px;
  border: 1px solid rgba(230, 111, 97, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(230, 111, 97, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.045);
  color: #fff;
  padding: 12px;
  text-align: left;
}

.injured-card:hover,
.injured-card:focus-visible {
  border-color: rgba(253, 184, 39, 0.42);
  background:
    linear-gradient(180deg, rgba(253, 184, 39, 0.1), rgba(230, 111, 97, 0.08)),
    rgba(255, 255, 255, 0.055);
  outline: none;
}

.injured-card img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: contain;
  background: #050506;
}

.injured-card b,
.injured-card span span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.injured-card span span {
  color: var(--muted);
  font-size: 0.76rem;
}

.injured-card .status-badge {
  grid-column: 1 / -1;
  width: fit-content;
}

.return-date,
.eta-note,
.injury-note {
  grid-column: 1 / -1;
  display: block;
}

.return-date {
  padding-top: 2px;
}

.return-date span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.return-date b {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: 0.95rem;
}

.injury-note {
  color: #f2c4bd;
  font-size: 0.78rem;
  line-height: 1.35;
}

.eta-note {
  color: #cfd5dd;
  font-size: 0.78rem;
  line-height: 1.35;
}

.month-filter {
  display: flex;
  overflow-x: auto;
  gap: 5px;
  max-width: 100%;
  padding-bottom: 2px;
}

.schedule-list {
  display: grid;
  gap: 10px;
  max-height: 720px;
  overflow: auto;
  padding-right: 4px;
}

.game-card {
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.game-date {
  color: #c8ced8;
  font-family: var(--mono);
  font-size: 0.84rem;
  font-weight: 760;
}

.game-opponent {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.game-opponent img {
  width: 35px;
  height: 35px;
}

.game-opponent b {
  display: block;
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-opponent span {
  color: var(--muted);
  font-size: 0.8rem;
}

.score-line {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: #fff;
  font-family: var(--mono);
  font-weight: 800;
}

.game-card-link {
  min-width: 82px;
  padding: 0 10px;
  white-space: nowrap;
}

.schedule-intel-panel {
  min-height: 360px;
}

.series-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.series-card {
  display: grid;
  gap: 14px;
  min-height: 248px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.18);
  padding: 15px;
}

.series-card.live,
.series-card.upcoming {
  border-color: rgba(253, 184, 39, 0.34);
  background:
    linear-gradient(145deg, rgba(253, 184, 39, 0.11), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.18);
}

.series-card.loss {
  border-color: rgba(230, 111, 97, 0.3);
}

.series-card-main {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.series-card-main img {
  width: 54px;
  height: 54px;
}

.series-card-main span,
.series-card-stats small {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.series-card-main b {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 1.08rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.series-card-main small,
.series-card-footer span {
  color: #c8ced8;
  font-size: 0.8rem;
  line-height: 1.35;
}

.series-card-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.series-card-stats > span {
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
}

.series-card-stats b {
  color: #fff;
  font-family: var(--mono);
  font-size: 1.18rem;
}

.series-card-stats em {
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
}

.series-game-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.series-game-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 820;
}

.series-game-pill.win {
  border-color: rgba(86, 192, 132, 0.42);
  color: #ddf9e6;
}

.series-game-pill.loss {
  border-color: rgba(230, 111, 97, 0.44);
  color: #ffe3df;
}

.series-game-pill.live,
.series-game-pill.next {
  border-color: rgba(253, 184, 39, 0.42);
  color: var(--gold);
}

.series-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.series-card-footer span {
  min-width: 0;
}

.series-card-footer .detail-link {
  flex: 0 0 auto;
}

.transactions-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.transaction-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  min-height: 126px;
  padding: 12px;
}

.transaction-item.move-il {
  border-color: rgba(230, 111, 97, 0.38);
  background:
    linear-gradient(90deg, rgba(230, 111, 97, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.045);
}

.transaction-item.move-up {
  border-color: rgba(86, 192, 132, 0.36);
}

.transaction-item.move-down {
  border-color: rgba(137, 146, 159, 0.36);
}

.transaction-item.move-rehab {
  border-color: rgba(253, 184, 39, 0.36);
}

.transaction-avatar img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: contain;
  background: #050506;
}

.transaction-copy {
  display: grid;
  gap: 9px;
}

.transaction-copy p {
  margin: 0;
  color: #d8dee7;
  font-size: 0.9rem;
  line-height: 1.42;
}

.transaction-copy button {
  justify-self: start;
  padding: 0 10px;
}

.transaction-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.move-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(253, 184, 39, 0.32);
  border-radius: 6px;
  background: rgba(253, 184, 39, 0.1);
  color: #fff;
}

.standings-table th,
.standings-table td {
  padding: 10px 8px;
}

.standings-table th {
  position: static;
}

.standings-table tbody tr.pirates-row {
  background: rgba(253, 184, 39, 0.12);
}

.team-standing-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-standing-cell img {
  width: 24px;
  height: 24px;
}

.split-deck {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.split-card {
  padding: 13px;
}

.split-card span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.split-card b {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 1.25rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  color: #979faa;
  font-size: 0.82rem;
}

.site-footer a {
  color: var(--gold);
}

.player-page {
  display: grid;
  gap: 18px;
  animation: page-rise 260ms ease both;
}

.player-page[hidden] {
  display: none;
}

.player-page-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(253, 184, 39, 0.36);
  border-radius: 8px;
  background: rgba(253, 184, 39, 0.12);
  color: #fff;
  padding: 0 14px;
  font-weight: 800;
}

.back-button:hover,
.back-button:focus-visible {
  background: rgba(253, 184, 39, 0.2);
  outline: none;
}

.player-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: 22px;
  min-height: 430px;
  padding: 54px 34px 28px;
}

.player-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.38;
  background:
    linear-gradient(115deg, rgba(253, 184, 39, 0.12), transparent 44%),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(255, 255, 255, 0.035) 18px 19px);
}

.player-identity {
  display: grid;
  grid-template-columns: clamp(120px, 18vw, 190px) minmax(0, 1fr);
  align-items: end;
  gap: 22px;
}

.player-portrait {
  position: relative;
  align-self: start;
}

.player-portrait::before {
  content: "";
  position: absolute;
  inset: 14px -8px -8px 14px;
  border: 1px solid rgba(253, 184, 39, 0.4);
  border-radius: 8px;
  background: rgba(253, 184, 39, 0.08);
}

.player-portrait img {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  object-fit: cover;
  background: #050506;
}

.jersey-tag {
  position: absolute;
  right: -10px;
  bottom: 12px;
  display: grid;
  place-items: center;
  min-width: 58px;
  height: 48px;
  border: 1px solid rgba(253, 184, 39, 0.5);
  border-radius: 7px;
  background: rgba(7, 9, 13, 0.92);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 1.18rem;
  font-weight: 900;
}

.player-nameplate h1 {
  max-width: 820px;
  margin-bottom: 12px;
  font-size: clamp(3rem, 6vw, 7.4rem);
  line-height: 0.88;
}

.player-nameplate p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: #cbd1da;
  font-size: 1.06rem;
  line-height: 1.55;
}

.player-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.player-link-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -6px 0 18px;
}

.player-link-strip a {
  min-width: 92px;
  padding: 0 10px;
}

.player-tags span,
.rank-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
  color: #d9dee6;
  font-size: 0.76rem;
  font-weight: 780;
}

.injury-alert {
  display: grid;
  gap: 4px;
  max-width: 720px;
  margin: 0 0 18px;
  padding: 13px 14px;
  border: 1px solid rgba(230, 111, 97, 0.45);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(230, 111, 97, 0.16), rgba(253, 184, 39, 0.06)),
    rgba(0, 0, 0, 0.2);
}

.injury-alert strong {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.injury-alert span {
  color: #f2c4bd;
  line-height: 1.4;
}

.player-feature-card {
  align-self: start;
  border: 1px solid rgba(253, 184, 39, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(253, 184, 39, 0.13), rgba(255, 255, 255, 0.04)),
    rgba(6, 8, 12, 0.66);
  padding: 18px;
}

.feature-number {
  display: block;
  margin: 4px 0 10px;
  color: #fff;
  font-family: var(--mono);
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  font-weight: 900;
  line-height: 0.95;
}

.feature-copy {
  margin: 0;
  color: #c9d0da;
  line-height: 1.45;
}

.role-feature {
  font-size: clamp(1.35rem, 2.8vw, 2.4rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.staff-portrait .staff-initials {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  height: auto;
  border-radius: 8px;
  font-size: clamp(2rem, 5vw, 4rem);
}

.staff-stat-grid .player-stat strong {
  overflow-wrap: anywhere;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.04;
}

.person-bio-panel {
  padding: 24px;
}

.person-bio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: 18px;
  align-items: start;
}

.bio-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.bio-snapshot-grid article {
  min-height: 112px;
  padding: 14px;
  border: 1px solid rgba(253, 184, 39, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(253, 184, 39, 0.09), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.04);
}

.bio-snapshot-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 840;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.bio-snapshot-grid strong {
  display: block;
  overflow-wrap: anywhere;
  margin: 8px 0 5px;
  color: #fff;
  font-family: var(--mono);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.05;
}

.bio-snapshot-grid small {
  color: #c8ced8;
  line-height: 1.35;
}

.bio-copy {
  display: grid;
  gap: 13px;
  color: #d8dee7;
  font-size: 1rem;
  line-height: 1.62;
}

.bio-copy p {
  margin: 0;
}

.bio-infobox {
  display: grid;
  gap: 8px;
}

.bio-infobox div {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.bio-infobox span,
.bio-team-timeline h3 {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 840;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.bio-infobox b {
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.3;
}

.bio-event-timeline {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.bio-event-timeline h3 {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 840;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.bio-event-timeline ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bio-event-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.bio-event-timeline li::before {
  content: "";
  position: absolute;
  left: 79px;
  top: 18px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: #080b10;
}

.bio-event-timeline li > span {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.3;
}

.bio-event-timeline b,
.bio-event-timeline small {
  display: block;
}

.bio-event-timeline b {
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.25;
}

.bio-event-timeline small {
  margin-top: 3px;
  color: #c8ced8;
  font-size: 0.8rem;
  line-height: 1.36;
}

.bio-team-timeline {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.bio-team-timeline h3 {
  margin: 0;
}

.bio-team-timeline div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bio-team-timeline span {
  display: inline-grid;
  gap: 2px;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid rgba(253, 184, 39, 0.28);
  border-radius: 7px;
  background: rgba(253, 184, 39, 0.09);
}

.bio-team-timeline b {
  color: #fff;
  font-size: 0.82rem;
}

.bio-team-timeline small {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 840;
}

.player-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.player-stat {
  min-height: 118px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(253, 184, 39, 0.08), rgba(255, 255, 255, 0.03)),
    rgba(17, 24, 33, 0.92);
}

.player-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.player-stat strong {
  display: block;
  margin: 8px 0 6px;
  color: #fff;
  font-family: var(--mono);
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  line-height: 1;
}

.player-stat small {
  color: var(--muted);
}

.player-detail-panel {
  padding: 24px;
}

.player-profile-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
  align-items: center;
}

.radar-wrap {
  display: grid;
  place-items: center;
  min-height: 330px;
}

.radar-chart {
  width: min(330px, 100%);
  height: auto;
  overflow: visible;
}

.radar-chart .grid {
  fill: none;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1;
}

.radar-chart .axis {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
}

.radar-chart .shape {
  fill: rgba(253, 184, 39, 0.26);
  stroke: var(--gold);
  stroke-width: 2;
}

.radar-chart .dot {
  fill: var(--gold);
}

.radar-chart text {
  fill: #d4dae3;
  font-family: var(--font);
  font-size: 9px;
  font-weight: 780;
  letter-spacing: 0;
}

.profile-bars {
  display: grid;
  gap: 12px;
}

.profile-bar {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 12px;
}

.profile-bar span {
  color: #d8dee7;
  font-size: 0.85rem;
  font-weight: 720;
}

.profile-bar b {
  color: var(--gold);
  font-family: var(--mono);
  text-align: right;
}

.rank-grid,
.ledger-grid,
.teammate-grid {
  display: grid;
  gap: 10px;
}

.rank-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rank-card,
.ledger-card,
.teammate-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.rank-card {
  min-height: 130px;
  padding: 15px;
}

.rank-card span,
.ledger-card span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rank-card strong {
  display: block;
  margin: 11px 0 7px;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

.rank-card small {
  color: #c5ccd5;
}

.ledger-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ledger-card {
  overflow: hidden;
}

.ledger-card header {
  padding: 13px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.16);
}

.ledger-table {
  width: 100%;
  border-collapse: collapse;
}

.ledger-table th {
  position: static;
}

.ledger-table th,
.ledger-table td {
  padding: 9px 11px;
  white-space: nowrap;
}

.ledger-table td:last-child,
.ledger-table th:last-child {
  text-align: right;
}

.teammate-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.teammate-card {
  display: grid;
  justify-items: start;
  gap: 8px;
  min-height: 142px;
  padding: 12px;
  color: #fff;
  text-align: left;
}

.teammate-card:hover,
.teammate-card:focus-visible {
  border-color: rgba(253, 184, 39, 0.42);
  background: rgba(253, 184, 39, 0.08);
  outline: none;
}

.teammate-card img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: contain;
  background: #050506;
}

.teammate-card b {
  display: block;
  overflow-wrap: anywhere;
}

.teammate-card span {
  color: var(--muted);
  font-size: 0.76rem;
}

.game-log-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.game-log-summary article {
  min-height: 112px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(253, 184, 39, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(17, 24, 33, 0.88);
}

.game-log-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.game-log-summary strong {
  display: block;
  overflow-wrap: anywhere;
  margin: 7px 0 5px;
  color: #fff;
  font-family: var(--mono);
  font-size: clamp(1.26rem, 2vw, 1.9rem);
  line-height: 1.05;
}

.game-log-summary small {
  color: var(--muted);
}

.game-log-table-wrap {
  overflow: auto;
  max-height: 620px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.game-log-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.game-log-table th {
  position: sticky;
  top: 0;
}

.game-log-table th,
.game-log-table td {
  padding: 10px 12px;
  vertical-align: middle;
}

.game-log-table td {
  white-space: nowrap;
}

.game-log-opponent {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.game-log-opponent img {
  width: 28px;
  height: 28px;
}

.game-log-opponent span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  max-width: min(380px, calc(100% - 36px));
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 14px;
  border: 1px solid rgba(253, 184, 39, 0.32);
  border-radius: 8px;
  background: rgba(9, 12, 17, 0.95);
  color: #fff;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.skeleton-line,
.skeleton-card {
  overflow: hidden;
  border-radius: 5px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
  background-size: 220% 100%;
  animation: shimmer 1.2s linear infinite;
}

.skeleton-line {
  width: 100%;
  height: 18px;
  margin-bottom: 12px;
}

.skeleton-line.short {
  width: 72%;
}

.skeleton-card {
  height: 180px;
  margin-top: 18px;
}

.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

@keyframes page-rise {
  from {
    transform: translateY(10px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.6);
    opacity: 1;
  }
}

@media (max-width: 1120px) {
  .dashboard-hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .span-8,
  .span-12,
  .span-7,
  .span-5,
  .span-4,
  .span-3 {
    grid-column: auto;
  }

  .stat-band {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .resource-grid,
  .transactions-list,
  .depth-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-hero-panel,
  .player-profile-grid,
  .person-bio-layout {
    grid-template-columns: 1fr;
  }

  .player-stat-grid,
  .rank-grid,
  .ledger-grid,
  .game-log-summary,
  .daily-watch-grid,
  .staff-summary-grid,
  .staff-org-map,
  .staff-role-board,
  .staff-card-grid,
  .bio-snapshot-grid,
  .player-summary-grid,
  .player-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .teammate-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .injured-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pulse-grid {
    grid-template-columns: 1fr;
  }

  .market-watch-board {
    grid-template-columns: 1fr;
  }

  .market-reliever-list,
  .market-focus-card {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 860px) {
  .site-shell {
    width: min(100% - 18px, 1440px);
    padding-top: 9px;
  }

  .topbar {
    position: static;
    align-items: stretch;
    flex-wrap: wrap;
  }

  .brand {
    flex: 1 1 100%;
  }

  .nav-links {
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    flex-basis: 100%;
  }

  .global-player-search {
    flex: 1 1 320px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .hero-main {
    grid-template-columns: 1fr;
    padding: 48px 18px 20px;
  }

  .hero-meta-grid,
  .stat-band,
  .split-deck,
  .player-stat-grid,
  .rank-grid,
  .ledger-grid,
  .game-log-summary,
  .daily-watch-grid,
  .fan-pulse-board,
  .contention-stat-grid,
  .market-metrics,
  .market-focus-card ul,
  .next-slate-strip,
  .staff-summary-grid,
  .staff-org-map,
  .staff-role-board,
  .staff-card-grid,
  .bio-snapshot-grid,
  .player-summary-grid,
  .player-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-hero-panel,
  .player-detail-panel {
    padding: 44px 18px 20px;
  }

  .player-identity {
    grid-template-columns: 128px minmax(0, 1fr);
  }

  .bullpen-board {
    padding: 44px 12px 20px;
  }

  .bullpen-header,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .bullpen-rail {
    gap: 24px;
    padding-inline: 20px;
  }

  .bullpen-group {
    gap: 24px;
  }

  .rail-button {
    display: none;
  }

  #team-pulse,
  #leaders-panel,
  .players-panel,
  .staff-panel,
  .injured-panel,
  .transactions-panel,
  .resource-panel,
  .primer-panel,
  .series-panel,
  .roster-map-panel,
  .trends-panel,
  .situational-panel,
  .rolling-panel,
  .chart-lab-panel,
  .compare-panel,
  .daily-watch-panel,
  .fan-pulse-panel,
  .contention-panel,
  .market-watch-panel,
  .rotation-panel,
  .depth-panel,
  .schedule-grid .scoreboard-panel,
  .next-game {
    padding: 18px;
  }

  .injured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .series-board {
    grid-template-columns: 1fr;
  }

  .score-line {
    justify-content: flex-start;
  }

  .game-card-link {
    justify-self: start;
  }

  .recent-games-strip {
    grid-template-columns: repeat(10, minmax(90px, 1fr));
  }

  .trend-chart {
    grid-template-columns: repeat(12, minmax(48px, 1fr));
    overflow-x: auto;
  }

  .rotation-card {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .rotation-stat {
    justify-items: start;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 2.48rem;
  }

  .stat-band,
  .hero-meta-grid,
  .primer-stack,
  .resource-grid,
  .transactions-list,
  .trend-summary,
  .situational-report,
  .depth-board,
  .split-deck,
  .player-stat-grid,
  .rank-grid,
  .ledger-grid,
  .game-log-summary,
  .daily-watch-grid,
  .fan-pulse-board,
  .contention-stat-grid,
  .market-metrics,
  .market-focus-card ul,
  .next-slate-strip,
  .staff-summary-grid,
  .staff-org-map,
  .staff-role-board,
  .staff-card-grid,
  .bio-snapshot-grid,
  .player-summary-grid,
  .player-card-grid {
    grid-template-columns: 1fr;
  }

  .race-meter-card,
  .market-reliever-row {
    grid-template-columns: 1fr;
  }

  .market-reliever-row strong,
  .market-reliever-row em {
    text-align: left;
  }

  .global-player-search {
    flex-basis: 100%;
    order: 2;
  }

  .bullpen-logo {
    width: 62px;
    height: 62px;
  }

  .pitch-bar {
    height: 210px;
  }

  .player-controls {
    justify-content: flex-start;
  }

  .player-browser-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .segmented,
  .search-box input {
    width: 100%;
  }

  .segmented button {
    flex: 1;
  }

  .player-identity {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .player-portrait {
    width: min(190px, 70vw);
    margin: 0 auto;
  }

  .player-tags {
    justify-content: center;
  }

  .player-link-strip {
    justify-content: center;
  }

  .chart-toggle {
    width: 100%;
  }

  .chart-toggle button {
    flex: 1;
  }

  .chart-control-row,
  .compare-controls {
    align-items: stretch;
    justify-content: stretch;
  }

  .control-select {
    width: 100%;
  }

  .compare-player-strip {
    grid-template-columns: 1fr;
  }

  .compare-player-card {
    grid-template-columns: 52px minmax(0, 1fr) auto;
  }

  .compare-player-card img {
    width: 52px;
    height: 52px;
  }

  .compare-metric-row {
    grid-template-columns: 62px minmax(60px, 1fr) 54px minmax(60px, 1fr) 62px;
    gap: 7px;
  }

  .metric-bar {
    grid-template-columns: 28px 38px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .metric-rank {
    grid-column: 1;
    width: 26px;
    height: 26px;
  }

  .metric-bar img {
    grid-column: 2;
    width: 38px;
    height: 38px;
  }

  .metric-player {
    grid-column: 3;
  }

  .metric-bar strong {
    grid-column: 4;
    grid-row: 1;
  }

  .metric-track {
    grid-column: 3 / 5;
    grid-row: 2;
  }

  .opponent-matrix {
    grid-template-columns: 1fr;
  }

  .series-card-stats {
    grid-template-columns: 1fr;
  }

  .series-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-card.featured {
    grid-column: auto;
  }

  .profile-bar {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .profile-bar b {
    text-align: left;
  }

  .teammate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .injured-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }
}
