.football-page {
  --field-line: rgba(255, 255, 255, 0.2);
}

.team-giants {
  --team-primary: #0b2265;
  --team-accent: #a71930;
  --accent: #b31f39;
  --accent-soft: #fae9ed;
}

.team-jets {
  --team-primary: #125740;
  --team-accent: #ffffff;
  --accent: #14734f;
  --accent-soft: #e7f5ef;
}

.football-page .team-banner {
  min-height: 202px;
  background:
    linear-gradient(90deg, rgba(4, 17, 47, 0.93), rgba(11, 34, 101, 0.78)),
    repeating-linear-gradient(90deg, transparent 0 72px, var(--field-line) 72px 74px),
    var(--team-primary);
}

.team-giants .team-banner::after {
  background:
    linear-gradient(112deg, transparent 55%, rgba(167, 25, 48, 0.54)),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(255, 255, 255, 0.12) 34px 36px);
}

.team-jets .team-banner {
  background:
    linear-gradient(90deg, rgba(5, 47, 35, 0.96), rgba(18, 87, 64, 0.78)),
    repeating-linear-gradient(90deg, transparent 0 72px, var(--field-line) 72px 74px),
    var(--team-primary);
}

.team-jets .team-banner::after {
  background:
    linear-gradient(112deg, transparent 54%, rgba(255, 255, 255, 0.18)),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(255, 255, 255, 0.11) 34px 36px);
}

.football-page .team-mark {
  width: 142px;
  height: 142px;
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
}

.football-page .team-mark img {
  width: 118px;
  height: 118px;
  object-fit: contain;
}

.football-page .record-badge {
  border-color: color-mix(in srgb, var(--team-accent) 58%, #ffffff);
}

.quick-actions.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(620px, 100%);
}

.recap-pair {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 14px;
  align-items: stretch;
}

.recap-pair .content-card {
  height: 100%;
}

.full-recap-copy {
  color: #44546a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.72;
}

.full-recap-copy p {
  margin: 0 0 12px;
}

.full-recap-copy p:last-child {
  margin-bottom: 0;
}

.full-recap-copy p:first-child::first-letter {
  float: left;
  margin: 4px 7px 0 0;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 800;
  line-height: 0.8;
}

.football-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.football-stat-panel {
  min-width: 0;
  padding: 13px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: #fbfcfd;
}

.football-stat-panel h3,
.game-stats-block h3,
.scoring-block h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.game-stats-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 14px;
  align-items: start;
}

.game-stats-block,
.scoring-block {
  min-width: 0;
  padding: 13px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: #fbfcfd;
}

.game-stats-block.full-width,
.scoring-block {
  grid-column: 1 / -1;
}

.quarter-score th:first-child,
.quarter-score td:first-child {
  min-width: 86px;
  font-weight: 900;
}

.quarter-score td:last-child,
.quarter-score th:last-child {
  color: var(--ink);
  background: #eef2f6;
  font-weight: 900;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  min-width: 142px;
}

.comparison-table td:not(:first-child) {
  min-width: 74px;
  font-weight: 800;
}

.comparison-table tr.team-edge td:nth-child(2) {
  color: #fff;
  background: var(--team-primary);
}

.scoring-summary {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scoring-play {
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 8px;
  border-bottom: 1px solid #e1e6ec;
  color: #405168;
  font-size: 13px;
}

.scoring-play:last-child {
  border-bottom: 0;
}

.play-quarter {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.play-team {
  color: var(--ink);
  font-weight: 900;
}

.play-score {
  min-width: 42px;
  color: var(--ink);
  text-align: right;
  font-weight: 900;
}

.content-card:not(.expanded) .scoring-play:nth-child(n + 5) {
  display: none;
}

.football-page .utility-links {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 930px) {
  .football-page .team-mark {
    width: 116px;
    height: 116px;
  }

  .football-page .team-mark img {
    width: 96px;
    height: 96px;
  }

  .game-stats-layout {
    grid-template-columns: 1fr;
  }

  .quick-actions.two-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(620px, 100%);
  }

  .game-stats-block.full-width,
  .scoring-block {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .football-page .team-banner {
    padding-top: 18px;
  }

  .football-page .team-mark {
    width: 96px;
    height: 96px;
    border-radius: 20px;
  }

  .football-page .team-mark img {
    width: 82px;
    height: 82px;
  }

  .football-stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .recap-pair {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .quick-actions.two-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .full-recap-copy {
    font-size: 13px;
    line-height: 1.62;
  }

  .football-stat-panel,
  .game-stats-block,
  .scoring-block {
    padding: 10px;
  }

  .scoring-play {
    grid-template-columns: 66px 1fr;
    gap: 8px;
  }

  .play-score {
    grid-column: 2;
    text-align: left;
  }

  .football-page .utility-links {
    grid-template-columns: 1fr 1fr;
  }
}
