.track-wrap {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0 88px;
}

.track-live.pos-section {
  margin-top: 28px;
}

.track-title {
  margin: 0;
  font-size: clamp(52px, 7vw, 76px);
}

.track-lead {
  max-width: 38rem;
  margin: 16px 0 0;
  color: #b5b5b5;
  font-size: 17px;
  line-height: 1.5;
}

.track-block {
  margin-top: 48px;
}

.track-kicker {
  margin: 0 0 16px;
  color: var(--text);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.track-open {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.stat-board {
  margin-bottom: 16px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: #0c0c0c;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38);
}

.stat-board[hidden] { display: none; }

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

.stat-tile {
  min-width: 0;
  padding: 16px 18px 14px;
  border-radius: 14px;
  background: #141414;
}

.stat-tile b {
  display: block;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.stat-tile b.up { color: #86efac; }
.stat-tile b.down { color: #fca5a5; }

.stat-tile span {
  display: block;
  margin-top: 8px;
  color: #b5b5b5;
  font-size: 13px;
}

.stat-tile small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.stat-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  margin: 12px 10px 0;
  padding: 0;
  list-style: none;
}

.stat-meta li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.stat-meta b {
  color: var(--text);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.track-card,
.j-card,
.month-card {
  border: 1px solid rgba(247, 147, 26, 0.22);
  border-radius: 22px;
  background: linear-gradient(180deg, #191919 0%, #141414 100%);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.track-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.cal {
  overflow: hidden;
  border: 1px solid rgba(247, 147, 26, 0.35);
  border-radius: 16px;
  background: #1b1b1b;
  text-align: center;
}

.cal b,
.cal strong,
.cal small {
  display: block;
}

.cal b {
  background: rgba(247, 147, 26, 0.16);
  color: var(--orange);
  padding: 6px 0 5px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cal strong {
  padding-top: 7px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
}

.cal small {
  padding: 2px 0 8px;
  color: var(--muted);
  font-size: 11px;
}

.track-main h3,
.j-card h3,
.day-head {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
}

.pill.long { color: #86efac; background: rgba(34, 197, 94, 0.12); }
.pill.short { color: #fca5a5; background: rgba(239, 68, 68, 0.12); }
.pill.open,
.pill.partial,
.pill.close,
.pill.breakeven,
.pill.closed { color: #f3d2a6; background: rgba(247, 147, 26, 0.12); }

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 14px 0 0;
}

.facts dt { color: var(--muted); font-size: 12px; }
.facts dd { margin: 2px 0 0; font-size: 16px; font-variant-numeric: tabular-nums; }

.x-none,
.outcome,
.track-empty,
.stat-note {
  color: var(--muted);
}

.x-none,
.outcome { display: block; margin-top: 12px; font-size: 14px; line-height: 1.45; }
.outcome { color: #c8c8c8; }

.month-card {
  padding: 22px 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 72px),
    #0c0c0c;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}

.cal-nav {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.month-name {
  margin: 0;
  color: #f2f2f2;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-align: center;
}

.cal-arrow {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: transparent;
  color: #c8c8c8;
  font-size: 22px;
  line-height: 1;
}

.cal-arrow:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.cal-arrow:disabled {
  opacity: 0.28;
  cursor: default;
}

.dow,
.days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.days { grid-auto-rows: 168px; }

.dow span {
  color: #6e6e6e;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.day,
.day-pad {
  height: 100%;
  min-height: 0;
  border-radius: 12px;
}

.day {
  --heat: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  font: inherit;
  border: 1px solid rgba(255, 255, 255, 0.045);
  background: #111111;
  color: #6a6a6a;
  padding: 12px 12px 14px;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}

.day-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.day-id {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.day-ticker {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex: none;
}

.day-ticker-fallback {
  display: grid;
  place-items: center;
  background: #2a2a2a;
  color: #e8e8e8;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0;
}

.day strong {
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.day.up {
  color: #e8e8e8;
  border-color: rgba(46, 204, 113, 0.22);
  background: rgba(46, 204, 113, 0.1);
}

.day.down {
  color: #f3e4e4;
  border-color: rgba(224, 60, 60, 0.22);
  background: rgba(224, 60, 60, 0.08);
}

.day.soft {
  color: #f3e4e4;
  border-color: rgba(224, 60, 60, 0.16);
  background: rgba(224, 60, 60, 0.045);
}

.day.flat {
  color: #d8d8d8;
  border-color: rgba(255, 255, 255, 0.14);
  background: #161616;
}

.day.has:not(.up):not(.down):not(.flat) {
  color: #d8d8d8;
  border-color: rgba(255, 255, 255, 0.12);
  background: #161616;
}

.day .net {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.day .legs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.day .legs.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.day .leg {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
  min-width: 0;
}

.day .legs.split .leg {
  display: block;
}

.day .leg i,
.day .leg b,
.day .leg small {
  font-style: normal;
}

.day .legs.split .leg b:not(.sym),
.day .legs.split .leg small {
  display: block;
}

.leg-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 5px;
}

.leg-head .sym {
  color: #d8d8d8;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.day .leg .side {
  color: #9a9a9a;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.day .leg b {
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.day .legs.split .leg b:not(.sym) { margin-top: 3px; }

.day .net.up,
.day.up .net,
.day .leg b.up,
.j-card .r.up { color: #86efac; }

.day .net.down,
.day.down .net,
.day .leg b.down,
.j-card .r.down { color: #fca5a5; }

.day .net.soft,
.day.soft .net,
.day .leg b.down.soft,
.j-card .r.down.soft { color: #e7b4b4; }
.day .leg b.flat { color: #d8d8d8; }

.day .leg small {
  color: #b5b5b5;
  font-size: 11px;
  line-height: 1.2;
}

.day .legs.split .leg small { margin-top: 1px; }

.day.is-today { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.day.is-on { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55); }
.day:hover:not(.is-future) { border-color: rgba(255, 255, 255, 0.16); }
.day.is-future {
  border-color: transparent;
  background: transparent;
  color: #707070;
  cursor: default;
}


.day-list { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.day-head { margin: 18px 0 0; }

.j-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 6px 16px;
  align-items: center;
  min-height: 96px;
  padding: 20px 22px;
  background: #101010;
  border-color: rgba(255, 255, 255, 0.08);
  border-left-width: 3px;
}

.card-ticker { width: 22px; height: 22px; }

.card-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.j-card h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.j-card .outcome { margin: 6px 0 0; }

.side-badge {
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.side-badge.long {
  color: #c8f5d8;
  background: rgba(46, 204, 113, 0.1);
  border-color: rgba(46, 204, 113, 0.28);
}

.side-badge.short {
  color: #f6d0d0;
  background: rgba(224, 60, 60, 0.1);
  border-color: rgba(224, 60, 60, 0.28);
}

.j-card .r {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.j-card .r.flat { color: #b5b5b5; }

.j-card.short { border-left-color: rgba(224, 60, 60, 0.32); }
.j-card.long { border-left-color: rgba(46, 204, 113, 0.32); }

.stat-note {
  margin: 10px 10px 6px;
  font-size: 12px;
  line-height: 1.45;
}

.track-back {
  margin: 36px 0 4px;
}

.track-back .btn-secondary {
  width: auto;
}

@media (max-width: 980px) {
  .day .legs,
  .day .legs.split { display: none; }
  .day-top { flex-direction: column; align-items: flex-start; gap: 1px; }
  .day .net { font-size: 11px; }
  .day strong { font-size: 13px; }
  .days { grid-auto-rows: 76px; }
  .day, .day-pad { padding: 8px; }
}

@media (max-width: 800px) {
  .track-wrap { width: min(100% - 32px, 1120px); padding-top: 20px; }
  .stat-primary { grid-template-columns: 1fr 1fr; }
  .stat-tile { padding: 14px 14px 12px; }
  .track-card { grid-template-columns: 1fr; }
  .cal { display: flex; align-items: baseline; gap: 8px; width: fit-content; padding-right: 12px; }
  .cal b, .cal strong, .cal small { display: inline; padding: 8px 0; background: none; }
  .j-card .r { font-size: 24px; }
  .facts { grid-template-columns: 1fr; }
  .month-name { font-size: 26px; }
}
