html {
  background-color: #17511f;
  background-image: url("field-bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem;
  color: #1f2430;
  background: transparent;
}

header {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

header h1 {
  margin-top: 0;
  margin-bottom: 0.25rem;
}

header p {
  color: #555;
  margin-top: 0;
}

.week h2 {
  display: inline-block;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 2px solid #b20f03;
  padding: 0.3rem 0.75rem 0.25rem;
  border-radius: 6px 6px 0 0;
  margin-top: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  background: #fff;
}

th, td {
  text-align: left;
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid #e2e2e2;
}

th {
  background: #f0f0f0;
}

td.winner {
  font-weight: 700;
}

.record {
  color: #888;
  font-size: 0.85em;
}

.empty {
  color: #888;
  font-style: italic;
}

.no-football {
  color: #999;
  font-style: italic;
}

.class-switch a, .class-switch strong {
  margin-right: 0.75rem;
}

.team-search {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.team-search input[type="search"] {
  flex: 1 1 16rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}

.team-search button {
  padding: 0.45rem 0.9rem;
  border: 1px solid #b20f03;
  background: #b20f03;
  color: #fff;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
}

.team-search button:hover {
  background: #8e0c02;
}

.team-search-result {
  font-size: 0.85em;
  color: #666;
  width: 100%;
}


.table-scroll {
  overflow-x: auto;
}

table.record-grid {
  min-width: 46rem;
}

table.record-grid th, table.record-grid td {
  text-align: center;
  white-space: nowrap;
}

table.record-grid td:first-child,
table.record-grid th:first-child {
  text-align: left;
  white-space: normal;
}

table.record-grid th.group-region,
table.record-grid td.group-region {
  background: #fbeceb;
}

table.record-grid th.group-classification,
table.record-grid td.group-classification {
  background: #eef3fb;
}

table.record-grid th.group-total,
table.record-grid td.group-total {
  background: #eef7ee;
}

table.record-grid thead th.group-region,
table.record-grid thead th.group-classification,
table.record-grid thead th.group-total {
  color: #333;
}

table.record-grid td.col-gap,
table.record-grid th.col-gap,
table.record-grid th.group-gap {
  background: #fafafa;
  border-bottom: none;
  padding: 0;
  width: 0.75rem;
}
