:root {
  --blue: #3a64a3;
  --white: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--blue);
  background-color: var(--white);
  line-height: 1.6;
}

html {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 1.5rem 0 0.75rem;
}

a {
  color: var(--blue);
}

section {
  margin-bottom: 2rem;
}

.note {
  color: #555;
  font-style: italic;
}

.hero {
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: #777;
}

.hero-fixture {
  font-size: 1.5rem;
  font-weight: 700;
}

.hero-countdown {
  font-weight: 600;
}

.ad-slot {
  min-height: 90px;
  margin: 1rem 0;
  border: 1px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.75rem;
}

.match-list, .news-list {
  list-style: none;
}

.match-list li, .news-list li {
  border-bottom: 1px solid #eee;
  padding: 0.5rem 0;
}

.match-list a {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  text-decoration: none;
}

.match-opponent {
  font-weight: 600;
  color: #222;
}

.badge {
  display: inline-block;
  min-width: 1.5rem;
  text-align: center;
  border-radius: 0.25rem;
  padding: 0 0.35rem;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
}

.badge-w { background: #2e7d32; }
.badge-d { background: #9e9e9e; }
.badge-l { background: #c62828; }

.news-source {
  color: #777;
  font-size: 0.85rem;
  margin-left: 0.5rem;
}

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

.league-table th, .league-table td {
  padding: 0.4rem 0.5rem;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.league-table th:nth-child(2), .league-table td:nth-child(2) {
  text-align: left;
}

.league-table tr.is-ipswich {
  background: #eaf1fb;
  font-weight: 700;
}

.next-match-detail dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.25rem 1rem;
}

.next-match-detail dt {
  color: #777;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: #777;
  margin-top: 1rem;
}

.match-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.match-pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.article {
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 0.5rem 0 1rem;
}

.season-table, .team-table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1rem;
}

.season-table th, .season-table td,
.team-table th, .team-table td {
  padding: 0.35rem 0.5rem;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.season-table td:first-child, .season-table th:first-child,
.team-table td:first-child, .team-table th:first-child {
  text-align: left;
}

.badge-tier {
  background: #607d8b;
}

.badge-former {
  background: #9e9e9e;
  font-size: 0.7rem;
  vertical-align: middle;
}

.season-summary dl, .team-record dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.25rem 1rem;
}

.season-summary dt, .team-record dt {
  color: #777;
}

.player-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
  gap: 1rem;
}

.player-card a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  gap: 0.25rem;
}

.player-card img, .player-headshot {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  object-fit: cover;
}

.avatar {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.avatar-lg {
  width: 6rem;
  height: 6rem;
  font-size: 1.5rem;
}

.player-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}

.player-name {
  font-weight: 600;
  color: #222;
  font-size: 0.85rem;
}

.player-number {
  color: #777;
  font-size: 0.75rem;
}

.bio-line {
  color: #555;
}

.fpl-card dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.25rem 1rem;
}

.fpl-card dt {
  color: #777;
}

.tier-chart {
  width: 100%;
  height: auto;
  color: var(--blue);
}
