.grid-season-command,
.grid-season-calendar,
.grid-season-standings,
.grid-season-matchups,
.grid-season-membership,
.grid-season-correction,
.grid-season-playoff {
  margin-top: 22px;
  border: 1px solid color-mix(in srgb, var(--grid-line) 88%, #ef3547 12%);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(18, 22, 28, .98), rgba(8, 10, 13, .98));
  box-shadow: 0 16px 42px rgba(0, 0, 0, .22);
  overflow: hidden;
}

.grid-season-command > header,
.grid-season-calendar > header,
.grid-season-standings > header,
.grid-season-matchups > header,
.grid-season-membership > header,
.grid-season-correction > header,
.grid-season-playoff > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--grid-line);
  background: radial-gradient(circle at 90% 0, rgba(230, 42, 60, .14), transparent 34%);
}

.grid-season-command header span,
.grid-season-calendar header span,
.grid-season-standings header span,
.grid-season-matchups header span,
.grid-season-membership header span,
.grid-season-correction header span,
.grid-season-playoff header span,
.grid-season-command__rail span,
.grid-season-membership__summary span,
.grid-season-correction__chain span,
.grid-season-receipt span {
  display: block;
  color: var(--grid-red);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
}

.grid-season-command header h2,
.grid-season-calendar header h2,
.grid-season-standings header h2,
.grid-season-matchups header h2,
.grid-season-membership header h2,
.grid-season-correction header h2,
.grid-season-playoff header h2 {
  margin: 5px 0 7px;
  color: var(--grid-white);
  font-size: clamp(19px, 2.2vw, 28px);
  letter-spacing: -.025em;
}

.grid-season-command header p,
.grid-season-calendar header p,
.grid-season-standings header p,
.grid-season-matchups header p,
.grid-season-membership header p,
.grid-season-correction header p,
.grid-season-playoff header p {
  max-width: 720px;
  margin: 0;
  color: var(--grid-muted);
  line-height: 1.55;
}

.grid-season-command > header > strong,
.grid-season-membership > header > strong,
.grid-season-correction > header > strong,
.grid-season-playoff > header > strong {
  flex: 0 0 auto;
  color: var(--grid-white);
  font-size: 22px;
  text-align: right;
}

.grid-season-command > header > strong small,
.grid-season-membership > header > strong small,
.grid-season-correction > header > strong small,
.grid-season-playoff > header > strong small {
  display: block;
  margin-top: 3px;
  color: var(--grid-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.grid-season-mode,
.grid-season-calendar > header > div:last-child,
.grid-season-standings > header > div:last-child,
.grid-season-matchups > header > div:last-child {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 7px;
}

.grid-season-mode {
  padding: 16px 24px 0;
}

.grid-season-command__rail,
.grid-season-membership__summary,
.grid-season-correction__chain {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 16px 24px;
  border: 1px solid var(--grid-line);
  border-radius: 13px;
  background: var(--grid-line);
  overflow: hidden;
}

.grid-season-correction__chain {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-season-command__rail article,
.grid-season-membership__summary article,
.grid-season-correction__chain article {
  min-width: 0;
  padding: 16px;
  background: rgba(8, 11, 15, .96);
}

.grid-season-command__rail strong,
.grid-season-membership__summary strong,
.grid-season-correction__chain strong {
  display: block;
  margin-top: 7px;
  color: var(--grid-white);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.grid-season-command__rail small {
  display: block;
  margin-top: 5px;
  color: var(--grid-muted);
  line-height: 1.45;
}

.grid-season-command > footer,
.grid-season-membership > .grid-actions,
.grid-season-correction > .grid-actions,
.grid-season-playoff > .grid-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 0 24px 22px;
}

.grid-season-calendar__list,
.grid-season-matchups__list {
  padding: 0 24px 20px;
}

.grid-season-calendar__list article,
.grid-season-matchups__list article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 15px 0;
  border-bottom: 1px solid var(--grid-line);
}

.grid-season-calendar__list article > span,
.grid-season-matchups__list article > span {
  color: var(--grid-red);
  font-size: 12px;
  font-weight: 900;
}

.grid-season-calendar__list h3,
.grid-season-matchups__list strong {
  margin: 4px 0;
  color: var(--grid-white);
  font-size: 15px;
}

.grid-season-calendar__list p,
.grid-season-matchups__list small {
  display: block;
  margin: 0;
  color: var(--grid-muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.grid-season-calendar__list article > strong,
.grid-season-matchups__list article > em {
  color: var(--grid-white);
  font-size: 16px;
  font-style: normal;
  text-align: right;
}

.grid-season-calendar__list article > strong small {
  display: block;
  color: var(--grid-muted);
  font-size: 10px;
}

.grid-season-calendar .grid-evidence-note {
  margin: 0 24px 22px;
}

.grid-season-table {
  margin: 18px 24px;
  border: 1px solid var(--grid-line);
  border-radius: 13px;
  overflow: hidden;
}

.grid-season-table > div {
  display: grid;
  grid-template-columns: 45px minmax(0, 1.8fr) minmax(85px, .7fr) minmax(85px, .7fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 13px 15px;
  border-bottom: 1px solid var(--grid-line);
}

.grid-season-table > div:last-child { border-bottom: 0; }
.grid-season-table > div:first-child { background: rgba(255,255,255,.035); color: var(--grid-muted); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.grid-season-table > div > b { color: var(--grid-red); }
.grid-season-table > div > span:not([role="columnheader"]) { color: var(--grid-white); font-weight: 800; min-width: 0; }
.grid-season-table > div > span small { display: block; margin-top: 3px; color: var(--grid-muted); font-size: 10px; font-weight: 500; overflow-wrap: anywhere; }
.grid-season-table > div > strong { color: var(--grid-white); font-size: 13px; }

.grid-season-receipt,
.grid-season-membership > output,
.grid-season-correction > output,
.grid-season-playoff > output,
.grid-season-matchups > output {
  display: block;
  margin: 0 24px 22px;
  padding: 13px 15px;
  border: 1px solid color-mix(in srgb, var(--grid-line) 78%, var(--grid-red) 22%);
  border-radius: 10px;
  background: rgba(230, 42, 60, .055);
  color: var(--grid-copy);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.grid-season-receipt strong,
.grid-season-receipt small { display: block; margin-top: 4px; }
.grid-season-receipt strong { color: var(--grid-white); }
.grid-season-receipt small { color: var(--grid-muted); }
.grid-season-membership > output[role="alert"],
.grid-season-correction > output[role="alert"] { border-color: rgba(255, 175, 64, .4); background: rgba(255, 175, 64, .07); }

.grid-season-bracket {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 24px;
}

.grid-season-bracket article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--grid-line);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}

.grid-season-bracket article span { color: var(--grid-white); font-weight: 800; }
.grid-season-bracket article span:nth-of-type(2) { text-align: right; }
.grid-season-bracket article b { color: var(--grid-red); }
.grid-season-bracket article strong { grid-column: 1 / -1; padding-top: 10px; border-top: 1px solid var(--grid-line); color: var(--grid-muted); font-size: 11px; text-align: center; text-transform: uppercase; }
.grid-season-playoff__source { display: block; margin: 0 24px 18px; color: var(--grid-muted); line-height: 1.45; overflow-wrap: anywhere; }
.grid-season-playoff .grid-empty { margin: 18px 24px; }
.grid-season-correction > p { margin: 0 24px 22px; }

@media (max-width: 760px) {
  .grid-season-command,
  .grid-season-calendar,
  .grid-season-standings,
  .grid-season-matchups,
  .grid-season-membership,
  .grid-season-correction,
  .grid-season-playoff { margin-top: 16px; border-radius: 14px; }

  .grid-season-command > header,
  .grid-season-calendar > header,
  .grid-season-standings > header,
  .grid-season-matchups > header,
  .grid-season-membership > header,
  .grid-season-correction > header,
  .grid-season-playoff > header { display: block; padding: 18px; }

  .grid-season-command > header > strong,
  .grid-season-membership > header > strong,
  .grid-season-correction > header > strong,
  .grid-season-playoff > header > strong { margin-top: 14px; text-align: left; }

  .grid-season-calendar > header > div:last-child,
  .grid-season-standings > header > div:last-child,
  .grid-season-matchups > header > div:last-child { margin-top: 14px; }

  .grid-season-mode { padding: 14px 18px 0; }
  .grid-season-command__rail,
  .grid-season-membership__summary,
  .grid-season-correction__chain { grid-template-columns: 1fr; margin: 14px 18px; }
  .grid-season-command > footer,
  .grid-season-membership > .grid-actions,
  .grid-season-correction > .grid-actions,
  .grid-season-playoff > .grid-actions { padding: 0 18px 18px; }
  .grid-season-calendar__list,
  .grid-season-matchups__list { padding: 0 18px 16px; }
  .grid-season-calendar__list article,
  .grid-season-matchups__list article { grid-template-columns: 42px minmax(0, 1fr); gap: 10px; }
  .grid-season-calendar__list article > strong,
  .grid-season-matchups__list article > em { grid-column: 2; text-align: left; }
  .grid-season-calendar .grid-evidence-note,
  .grid-season-correction > p { margin: 0 18px 18px; }
  .grid-season-table { margin: 14px 18px; }
  .grid-season-table > div {
    grid-template-columns: 27px minmax(0, 1.5fr) minmax(48px, .55fr) minmax(52px, .6fr);
    gap: 6px;
    min-width: 0;
    padding: 11px 9px;
  }
  .grid-season-table > div:first-child { font-size: 8px; letter-spacing: .04em; }
  .grid-season-table > div > span:not([role="columnheader"]) { font-size: 12px; }
  .grid-season-table > div > span small { font-size: 8px; }
  .grid-season-table > div > strong { font-size: 11px; text-align: right; }
  .grid-season-receipt,
  .grid-season-membership > output,
  .grid-season-correction > output,
  .grid-season-playoff > output,
  .grid-season-matchups > output { margin: 0 18px 18px; }
  .grid-season-bracket { grid-template-columns: 1fr; padding: 16px 18px; }
  .grid-season-playoff__source { margin: 0 18px 16px; }
  .grid-season-playoff .grid-empty { margin: 16px 18px; }
}
