/* sports: game and play pages, play cards, reactions, quote cards */

.sports-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 16px;
  box-sizing: border-box;
}

.team-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: middle;
}

.score-team {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  /* The away side starts with a logo and the home side with a score; line them up by their
     middles, not their (different) baselines, or the home team sits lower. */
  vertical-align: middle;
}

.score-sep {
  color: #999;
  margin: 0 6px;
  vertical-align: middle;
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: #e53935;
  vertical-align: middle;
}

/* game header */

.game-header {
  padding: 16px;
  border: 1px solid #e3e3e3;
  border-radius: 3px;
  text-align: center;
}

.game-header-name {
  color: #666;
  font-size: 0.9rem;
}

.game-header-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 10px 0;
  font-size: 1.1rem;
}

.game-header-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 80px;
}

.game-header-team .team-logo {
  width: 48px;
  height: 48px;
}

.game-header-team strong {
  font-size: 2rem;
}

.game-header-status {
  font-weight: 700;
}

.game-header-status.live {
  color: #e53935;
}

.game-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 10px;
  flex-wrap: wrap;
}

.game-tools .filter,
.players-tools .filter {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: white;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.game-tools .filter.active,
.players-tools .filter.active {
  background: black;
  border-color: black;
  color: white;
}

.game-tools .spacer {
  flex: 1;
}

/* play cards */

.play-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.play-card {
  padding: 10px 12px;
  border: 1px solid #e3e3e3;
  border-left: 3px solid var(--team, #999);
  border-radius: 3px;
  background: white;
}

.play-card.scoring {
  background: #fcfcfc;
}

.play-card.new {
  animation: play-in 1.5s ease-out;
}

@keyframes play-in {
  from {
    background: #fff8d6;
  }
}

.play-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #777;
}

.play-score {
  font-variant-numeric: tabular-nums;
}

.play-text {
  margin-top: 4px;
  line-height: 1.4;
}

.play-team {
  margin-right: 6px;
  font-weight: 700;
  color: var(--team, #333);
}

.play-points {
  margin-left: 6px;
  font-weight: 700;
}

.play-links {
  display: flex;
  gap: 14px;
  margin-top: 6px;
  font-size: 0.85rem;
}

.play-links a,
.link-button {
  color: #555;
  text-decoration: none;
}

.play-links a:hover,
.link-button:hover {
  color: black;
  text-decoration: underline;
}

.link-button {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
}

/* reactions */

.reaction-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.reaction {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 34px;
  padding: 3px 7px;
  border: 1px solid #e3e3e3;
  border-radius: 3px;
  background: white;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.reaction:hover {
  border-color: #999;
}

.reaction.mine {
  border-color: black;
  background: #f2f2f2;
}

.reaction-emoji img.twemoji,
.reaction-emoji {
  width: 1.1em;
  height: 1.1em;
}

.reaction-count:empty {
  display: none;
}

/* games strip on the sports page */

.games-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.games-strip-title {
  margin: 4px 0 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #555;
}

.game-card {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid #e3e3e3;
  border-radius: 3px;
  color: inherit;
  text-decoration: none;
  font-size: 0.85rem;
  white-space: nowrap;
}

.game-card:hover {
  border-color: #999;
}

.game-card.live {
  border-color: #e53935;
}

.game-card-status {
  margin-bottom: 4px;
  font-size: 0.75rem;
  color: #666;
}

/* a quoted game or play inside a post */

.quote-card {
  display: block;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid #e3e3e3;
  border-radius: 3px;
  color: inherit;
  text-decoration: none;
  /* Post text keeps its line breaks (pre-wrap); the card's own markup spacing must not show. */
  white-space: normal;
}

.quote-card:hover {
  border-color: #999;
}

.quote-card-head {
  margin-bottom: 6px;
  font-size: 0.8rem;
  color: #666;
}

.quote-card .play-card {
  border-top: none;
  border-right: none;
  border-bottom: none;
  padding: 2px 10px;
}

/* play page composer and posts */

.play-composer {
  margin: 16px 0;
}

.play-composer textarea {
  width: 100%;
  box-sizing: border-box;
  height: 80px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font: inherit;
}

.play-composer-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.play-composer-row select,
.play-composer-row button {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: white;
  font: inherit;
}

.play-composer-row button {
  border-color: black;
  background: black;
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.play-composer-row button:disabled {
  opacity: 0.5;
}

.play-composer-status {
  flex: 1;
  font-size: 0.85rem;
  color: red;
}

.section-title {
  margin: 20px 0 8px;
  font-size: 1rem;
}

.sports-empty {
  color: #777;
  text-align: center;
  padding: 20px 0;
}

.mini-post {
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid #e3e3e3;
  border-radius: 3px;
}

.mini-post-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.mini-post-head img.pfp-small {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.mini-post-head a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.mini-post-head .muted {
  color: #777;
  font-weight: 400;
}

.mini-post-text {
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.back-link {
  display: inline-block;
  margin-bottom: 10px;
  color: #444;
  text-decoration: none;
  font-weight: 600;
}

.back-link:hover {
  color: black;
}

.sports-today {
  margin-bottom: 4px;
}

/* banner for big games */

.game-banner {
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 3px;
  font-weight: 700;
  text-align: center;
  text-transform: lowercase;
}

.game-banner.championship {
  background: #c9a227;
  color: black;
}

.game-banner.playoffs {
  background: black;
  color: white;
}

.game-banner.note {
  background: #f2f2f2;
  color: #333;
}

.game-card .game-banner {
  margin: 0 0 4px;
  padding: 1px 6px;
  font-size: 0.7rem;
}

.game-header-team a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: inherit;
  text-decoration: none;
}

.game-header-team a:hover span {
  text-decoration: underline;
}

/* team page */

.team-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid #e3e3e3;
  border-left: 4px solid var(--team, #999);
  border-radius: 3px;
}

.team-header .team-logo {
  width: 72px;
  height: 72px;
}

.team-header h1 {
  margin: 0;
  font-size: 1.5rem;
}

.team-header .team-league {
  color: #666;
  font-size: 0.85rem;
}

.team-header .team-followers {
  margin-top: 4px;
  font-size: 0.9rem;
  color: #444;
}

.team-header .spacer {
  flex: 1;
}

.follow-team-btn {
  padding: 8px 16px;
  border: 1px solid black;
  border-radius: 3px;
  background: black;
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.follow-team-btn.following {
  background: white;
  color: black;
}

.follow-team-btn:disabled {
  opacity: 0.6;
}

.team-games {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* A game with a team you follow: outlined in that team's color, same size as the others. */
.game-card.followed {
  padding: 7px 9px;
  border: 2px solid var(--team, #000);
}

.team-games .game-card {
  white-space: normal;
}

/* teams list */

.team-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.team-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #e3e3e3;
  border-radius: 3px;
  color: inherit;
  text-decoration: none;
}

.team-row:hover {
  border-color: #999;
}

.team-row .team-logo {
  width: 32px;
  height: 32px;
}

.league-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 16px;
}

.league-tabs a {
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
  color: black;
  text-decoration: none;
  font-size: 0.9rem;
}

.league-tabs a.active {
  background: black;
  border-color: black;
  color: white;
}

/* sports box on profiles */

.sports-box {
  padding: 14px;
  border: 1px solid #e3e3e3;
  border-radius: 3px;
}

.sports-box h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.sports-box .team-row {
  border: none;
  padding: 6px 0;
}

.sports-box .team-row .team-logo {
  width: 26px;
  height: 26px;
}

/* movies & tv, music and games strips on their community feeds (index.js loadMediaStrips) */

.media-strip {
  gap: 10px;
}

.media-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 104px;
  color: inherit;
  text-decoration: none;
  font-size: 0.8rem;
}

.media-card img,
.media-card-blank {
  display: block;
  width: 104px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 3px;
  background: #eee;
}

.media-music .media-card img,
.media-music .media-card-blank {
  aspect-ratio: 1;
}

.media-games .media-card img,
.media-games .media-card-blank {
  aspect-ratio: 3 / 4;
}

.media-card-title {
  display: -webkit-box;
  overflow: hidden;
  font-weight: 700;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.media-card-meta {
  overflow: hidden;
  color: #666;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-card:hover .media-card-title {
  text-decoration: underline;
}

.media-credit {
  margin: 4px 0 0;
  color: #888;
  font-size: 0.75rem;
}

/* movie, album and game pages (scripts/utils/mediaPage.js), built like the sports game page */

.media-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border: 1px solid #e3e3e3;
  border-left: 4px solid var(--cat, #999);
  border-radius: 3px;
}

.media-header-cover {
  flex-shrink: 0;
  width: 120px;
}

.media-header-cover img,
.media-header-cover > div {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 3px;
  background: #eee;
}

.media-header-cover.square img,
.media-header-cover.square > div {
  aspect-ratio: 1;
}

.media-header-cover.box img,
.media-header-cover.box > div {
  aspect-ratio: 3 / 4;
}

.media-header-info {
  min-width: 0;
}

.media-header-kicker {
  color: var(--cat, #666);
  font-size: 0.8rem;
  font-weight: 700;
}

.media-header h1 {
  margin: 2px 0 4px;
  font-size: 1.5rem;
  overflow-wrap: anywhere;
}

.media-header-subtitle {
  font-weight: 600;
}

.media-header-facts {
  margin-top: 4px;
  color: #666;
  font-size: 0.9rem;
}

.media-header-rating {
  margin-top: 8px;
  color: #c58c00;
  font-weight: 700;
}

.media-description {
  margin: 0 0 10px;
  color: #333;
  line-height: 1.5;
}

.media-page .album-tracks,
.media-page .game-gallery {
  margin: 10px 0;
  padding: 10px 14px;
  border: 1px solid #e3e3e3;
  border-radius: 3px;
}

.media-page .album-tracks summary,
.media-page .game-gallery summary {
  font-weight: 700;
  cursor: pointer;
}

.media-page .album-tracks ol {
  margin: 10px 0 0;
  padding-left: 22px;
}

.media-page .album-tracks li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
}

.media-page .play-composer select {
  margin-bottom: 8px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: white;
  font: inherit;
}

.review-stars {
  margin-top: 4px;
  color: #c58c00;
}

.media-posts .timeline-post {
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid #e3e3e3;
  border-radius: 3px;
  box-shadow: none;
}

@media (max-width: 600px) {
  .media-header {
    flex-direction: column;
  }
}

.media-header-rating.unrated {
  color: #777;
  font-weight: 400;
}

.play-composer-hint {
  flex: 1;
  color: #777;
  font-size: 0.85rem;
}

/* players: faces on play cards, box scores, player pages and rosters */
.player-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: var(--team, #999);
  color: white;
  font-weight: 700;
  object-fit: cover;
  object-position: top;
  vertical-align: middle;
}
img.player-avatar {
  background: #f2f2f2;
}
img.player-avatar:not([src]) {
  background: var(--team, #999);
}
.player-avatar.small {
  width: 28px;
  height: 28px;
  font-size: 11px;
}
.player-avatar.medium {
  width: 40px;
  height: 40px;
  font-size: 13px;
}
.player-avatar.large {
  width: 120px;
  height: 120px;
  font-size: 32px;
}
.player-avatar.team {
  border: none;
  border-radius: 0;
  background: none;
  object-fit: contain;
}
.play-faces {
  display: inline-flex;
  margin-right: 6px;
  vertical-align: middle;
}
.play-faces a + a {
  margin-left: -8px;
}
.play-faces a + a .player-avatar {
  box-shadow: 0 0 0 2px white;
}

.players-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.players-team {
  margin-bottom: 24px;
}
.players-team-name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.players-team-name .team-logo {
  width: 28px;
  height: 28px;
}
.teams-section-title,
.players-section-title {
  margin: 14px 0 6px;
  font-size: 0.85rem;
  color: #555;
}
.stat-table-wrap {
  overflow-x: auto;
  border: 1px solid #e3e3e3;
  border-radius: 3px;
}
.stat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  white-space: nowrap;
}
.stat-table th,
.stat-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #eee;
  text-align: right;
}
.stat-table th:first-child,
.stat-table td:first-child {
  position: sticky;
  left: 0;
  background: white;
  text-align: left;
}
.stat-table thead th {
  color: #555;
  font-weight: 700;
}
.stat-table .stat-group th {
  font-size: 0.75rem;
  color: #888;
  text-align: center;
  border-bottom: none;
}
.stat-table .stat-divider td {
  background: #fafafa;
  color: #555;
  font-size: 0.75rem;
  text-align: left;
}
.stat-player {
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}
.stat-player:hover strong {
  text-decoration: underline;
}
.stat-player small {
  color: #777;
}

.player-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid #e3e3e3;
  border-left: 4px solid var(--team, #999);
  border-radius: 3px;
}
.player-header h1 {
  margin: 0;
}
.player-team-line {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #555;
}
.player-team-line .team-logo {
  width: 22px;
  height: 22px;
}
.player-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.player-facts div {
  padding: 8px 10px;
  border: 1px solid #eee;
  border-radius: 3px;
}
.player-facts dt {
  color: #777;
  font-size: 0.75rem;
}
.player-facts dd {
  margin: 2px 0 0;
}
.player-games {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.player-game {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 8px 10px;
  border: 1px solid #e3e3e3;
  border-radius: 3px;
  color: inherit;
  text-decoration: none;
}
.player-game:hover {
  border-color: #999;
}
.player-game small {
  color: #555;
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}
.roster-player {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid #e3e3e3;
  border-radius: 3px;
  color: inherit;
  text-decoration: none;
}
.roster-player:hover {
  border-color: #999;
}
.roster-player small {
  display: block;
  color: #777;
}
.sports-box .player-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  color: inherit;
  text-decoration: none;
}

/* performance pages and quote cards */
.performance-key {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.performance-key-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 8px;
  border: 1px solid #e3e3e3;
  border-radius: 3px;
  text-align: center;
}
.performance-key-stat strong {
  font-size: 2.2rem;
  line-height: 1.1;
}
.performance-key-stat span {
  color: #555;
  font-size: 0.8rem;
}
.performance-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 6px;
  margin: 0 0 12px;
}
.performance-stat-grid div {
  padding: 6px 8px;
  border: 1px solid #eee;
  border-radius: 3px;
}
.performance-stat-grid dt {
  color: #777;
  font-size: 0.7rem;
}
.performance-stat-grid dd {
  margin: 2px 0 0;
  font-weight: 700;
}
.player-header h1 a {
  color: inherit;
  text-decoration: none;
}
.player-header h1 a:hover {
  text-decoration: underline;
}
.performance-quote-body {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
}
.performance-quote-body span {
  display: flex;
  flex-direction: column;
}
.performance-quote-body small {
  color: #555;
}

/* the right-hand column on sports pages */
.sports-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  padding: 0 16px;
}
.sports-layout .sports-page {
  flex: 1 1 680px;
  min-width: 0;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}
.sports-rightbar {
  display: grid;
  gap: 16px;
  flex: 0 0 300px;
  min-width: 0;
  padding: 20px 0;
}
.sports-side-card {
  padding: 14px;
  border: 1px solid #e3e3e3;
  border-radius: 3px;
  overflow-wrap: anywhere;
}
.sports-side-card h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}
.sports-side-note {
  margin: 0 0 8px;
  color: #777;
  font-size: 0.85rem;
}
.side-game {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  border-top: 1px solid #eee;
  color: inherit;
  text-decoration: none;
  font-size: 0.85rem;
}
/* The live / coming up card marks your teams' games with their color along the left. */
.side-game.followed {
  padding-left: 8px;
  border-left: 3px solid var(--team, #000);
}

.side-game:first-child {
  border-top: none;
  padding-top: 0;
}
.side-game-status {
  color: #777;
  font-size: 0.75rem;
}
.side-game-score {
  display: flex;
  align-items: center;
  gap: 6px;
}
.side-game:hover .side-game-score {
  text-decoration: underline;
}
.side-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem;
}
.side-row span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.side-row small {
  color: #777;
  font-size: 0.75rem;
}
.side-row:hover > span {
  text-decoration: underline;
}
.side-community-pic {
  width: 28px;
  height: 28px;
  border-radius: 3px;
  object-fit: cover;
}
.side-post {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  border-top: 1px solid #eee;
  color: inherit;
  text-decoration: none;
  font-size: 0.85rem;
}
.side-post:first-child {
  border-top: none;
  padding-top: 0;
}
.side-post small {
  color: #777;
}
.side-post:hover strong {
  text-decoration: underline;
}

/* Narrower windows put the cards under the page instead of beside it. */
@media (max-width: 1180px) {
  .sports-layout {
    flex-direction: column;
    align-items: stretch;
  }
  .sports-layout .sports-page,
  .sports-rightbar {
    flex: none;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
  }
  .sports-rightbar {
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    padding-top: 0;
  }
}

.sports-side-credit {
  margin: 8px 0 0;
  font-size: 0.75rem;
}
.sports-side-credit a {
  color: inherit;
}

/* Historical games use the same compact bordered cards and form controls as media pages. */
.historical-card {
  border: 1px solid #e3e3e3;
  border-radius: 3px;
  padding: 14px;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.historical-card small,
.game-facts,
.viewing-method {
  display: block;
  color: #666;
  font-size: 0.85rem;
  margin-top: 6px;
}
.historical-card p,
.historical-review-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.historical-page select,
#historicalReviews select,
#nominationForm input {
  font: inherit;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 8px;
  max-width: 100%;
  box-sizing: border-box;
}
#nominationForm input,
#nominationForm textarea,
#sportsReviewForm textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
}
#historicalReviews fieldset {
  border: 1px solid #ddd;
  border-radius: 3px;
  margin: 10px 0;
}
.viewing-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
}
.historical-team-stats div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #eee;
  padding: 6px 0;
}
.historical-team-stats dd {
  margin: 0;
}
@media (max-width: 600px) {
  .historical-page select,
  #historicalReviews select,
  #nominationForm input {
    font-size: 16px;
    min-height: 44px;
  }
  .viewing-choice {
    min-height: 44px;
  }
  #historicalReviews .game-tools {
    flex-wrap: wrap;
  }
}

.stat-player small + small {
  display: block;
  margin-top: 3px;
}

.sports-discovery {
  margin: 12px 0 20px;
}
.sports-discovery-history {
  margin-bottom: 14px;
}
.sports-discovery-history a {
  display: inline-block;
  text-decoration: none;
}
.sports-discovery-teams {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.sports-discovery-teams > span {
  color: #666;
  font-size: 0.85rem;
  white-space: nowrap;
}
.sports-discovery .league-tabs {
  margin: 0;
  gap: 6px;
}
.player-accolade-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.player-accolade {
  padding: 6px 9px;
  border: 1px solid #d8c798;
  border-radius: 3px;
  background: #fcfaf3;
  text-decoration: none;
  font-size: 0.85rem;
}
.accolade-management {
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 12px;
  margin-top: 12px;
}
.accolade-management input,
.accolade-management select,
.accolade-management textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  font: inherit;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 8px;
  margin: 5px 0 12px;
}
[data-kind='sportsGames'] .search-local-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
[data-kind='sportsGames'] .game-card {
  width: auto;
  min-width: 0;
}
@media (max-width: 600px) {
  .sports-discovery-teams {
    flex-direction: column;
    gap: 8px;
  }
  .sports-discovery a,
  .player-accolade {
    min-height: 44px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
  }
  .accolade-management input,
  .accolade-management select {
    font-size: 16px;
    min-height: 44px;
  }
  [data-kind='sportsGames'] .search-local-results {
    grid-template-columns: minmax(0, 1fr);
  }
}
.search-sports-game .game-card {
  display: block;
  white-space: normal;
}
.search-sports-game > small {
  display: block;
  margin: 5px 0;
}
@media (max-width: 600px) {
  .sports-discovery .league-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }
  .sports-discovery .league-tabs a {
    justify-content: center;
  }
}
.accolade-management .button-secondary {
  background: white;
  color: black;
  border-color: black;
}
.player-accolade {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
