:root {
  --ink: #171414;
  --charcoal: #242021;
  --gold: #f7b915;
  --gold-soft: #ffd760;
  --cream: #faf7ef;
  --line: rgba(23, 20, 20, 0.14);
  --muted: #706a61;
  --accent: #00a6a6;
  --shadow: 0 24px 70px rgba(23, 20, 20, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: relative;
  z-index: 20;
  color: #fff;
  background: var(--ink);
}

.main-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 104px;
  padding: 0 clamp(20px, 4vw, 64px);
}

.brand {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  min-width: 210px;
}

.brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1;
}

.brand strong {
  color: var(--gold);
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.brand small {
  margin-top: 6px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 2.4vw, 30px);
  align-items: center;
  font-weight: 850;
}

.nav-links a {
  position: relative;
  padding: 10px 0;
}

.nav-links a.active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--gold);
  content: "";
}

.sign-in,
.panel-heading a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 2px solid var(--gold);
  border-radius: 999px;
  font-weight: 850;
}

.championship-tracker {
  display: grid;
  gap: 18px;
  padding: 13px clamp(20px, 4vw, 64px) 15px;
  color: #fff;
  background: linear-gradient(90deg, #2c2526, #171414);
}

.championship-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  justify-content: center;
}

.championship-tabs h2,
.championship-tabs a,
.championship-tabs span {
  min-height: 27px;
  margin: 0;
  padding: 5px 9px;
  border: 2px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
}

.championship-tabs h2 {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  background: var(--gold);
}

.championship-tabs a,
.championship-tabs span {
  display: inline-flex;
  align-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.34);
}

.championship-tabs a.active {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.2);
}

.championship-tabs span {
  opacity: 0.7;
}

.championship-page-tabs {
  justify-content: flex-start;
  margin-top: 26px;
}

.championship-page-shell {
  padding: 28px clamp(20px, 4vw, 64px) 56px;
  background: var(--gold);
}

.championship-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.7fr);
  gap: 18px;
}

.championship-finals,
.championship-table-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.championship-finals {
  display: grid;
  gap: 1px;
}

.championship-panel-heading {
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--line);
}

.championship-panel-heading h2,
.championship-panel-heading h3 {
  margin: 0;
  font-size: 26px;
}

.championship-final-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  background: #fff;
}

.championship-final-card + .championship-final-card {
  border-top: 1px solid var(--line);
}

.championship-final-card header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.championship-final-card header span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.championship-match-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) var(--fixture-badge-size, 42px) 72px var(--fixture-badge-size, 42px) minmax(150px, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 58px;
}

.championship-match-row strong {
  text-align: center;
  font-size: 24px;
}

.championship-rubber-list {
  margin-top: 0;
}

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

.championship-table-card th,
.championship-table-card td {
  padding: 13px 12px;
}

.championship-table-card td:last-child,
.championship-table-card th:last-child {
  text-align: center;
}

.championship-table-card tbody tr:first-child {
  background: #fff8de;
}

.hero-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 500px);
  gap: 28px;
  align-items: end;
  overflow: hidden;
  padding: 58px clamp(20px, 4vw, 64px) 42px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 18%, rgba(247, 185, 21, 0.34), transparent 28%),
    linear-gradient(135deg, #171414 0%, #2f2929 58%, #f7b915 58%, #f7b915 100%);
}

.hero-band::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background: url("assets/BWM%20Logo%20White.png?v=20260709-1630") no-repeat -4% 78% / min(646px, 44vw) auto;
  opacity: 0.15;
}

.hero-copy,
.replay-pill {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(46px, 6.2vw, 92px);
  line-height: 0.94;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1 span {
  white-space: nowrap;
}

.hero-copy p:last-child {
  max-width: 610px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
  line-height: 1.5;
}

.round-summary {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: #fff;
  background: rgba(23, 20, 20, 0.58);
  backdrop-filter: blur(14px);
}

.round-summary span,
.round-summary small {
  display: block;
}

.round-summary span {
  color: var(--gold-soft);
  font-weight: 900;
  text-transform: uppercase;
}

.round-summary strong {
  display: block;
  margin: 8px 0;
  font-size: 40px;
  line-height: 1;
}

.round-summary small {
  color: rgba(255, 255, 255, 0.74);
  font-weight: 750;
}

.replay-pill {
  align-self: end;
  position: relative;
  display: block;
  justify-self: end;
  width: min(100%, 500px);
  aspect-ratio: 3.6 / 1.34;
  overflow: hidden;
  border: 3px solid rgba(247, 185, 21, 0.92);
  border-radius: 14px;
  color: #fff;
  background: rgba(23, 20, 20, 0.76);
  box-shadow: 0 22px 48px rgba(23, 20, 20, 0.36);
}

.replay-pill::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 20, 20, 0.08), rgba(23, 20, 20, 0.02) 55%, rgba(23, 20, 20, 0.26)),
    linear-gradient(0deg, rgba(23, 20, 20, 0.18), transparent 48%);
  content: "";
}

.replay-pill img {
  width: 82%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.replay-round {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 10px 16px 9px 18px;
  border-radius: 0 14px 0 0;
  color: var(--ink);
  background: var(--gold);
  font-size: 17px;
  font-weight: 950;
  text-transform: uppercase;
}

.replay-action {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  width: 30%;
  min-width: 128px;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding-left: 26px;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  background: linear-gradient(135deg, #211d1d, #0f0e0e);
}

.replay-action::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 14%;
  width: 4px;
  transform: skewX(-12deg);
  background: var(--gold);
  content: "";
}

.replay-action strong {
  z-index: 1;
  color: #fff;
  font-size: 18px;
  font-style: italic;
  font-weight: 950;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}

.replay-play {
  z-index: 1;
  display: inline-grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 3px solid var(--gold);
  border-radius: 50%;
}

.replay-play::before {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid var(--gold);
  content: "";
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.85fr);
  gap: 24px;
  padding: 28px clamp(20px, 4vw, 64px) 26px;
  background: var(--gold);
}

.fixtures-panel,
.table-panel {
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.fixtures-panel {
  --fixture-card-min-height: 52px;
  --fixture-row-padding: 7px 12px;
  --fixture-row-gap: 7px;
  --fixture-date-padding: 21px 20px;
  --fixture-date-column: 96px;
  --fixture-badge-size: 34px;
}

.panel-heading {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  min-height: 94px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}

.panel-heading h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1;
}

.panel-heading .section-kicker {
  color: var(--muted);
}

.panel-heading a {
  min-width: max-content;
  color: var(--ink);
  background: #fff;
}

.date-block {
  display: grid;
  grid-template-columns: var(--fixture-date-column, 112px) minmax(0, 1fr);
  gap: 18px;
  padding: var(--fixture-date-padding, 24px 26px);
  border-bottom: 1px solid var(--line);
}

.date-block:last-child {
  border-bottom: 0;
}

.date-block time {
  color: var(--muted);
  font-size: 18px;
  font-weight: 950;
}

.date-block time span {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 13px;
  text-transform: uppercase;
}

.date-block time small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.fixture-list {
  display: grid;
  gap: var(--fixture-row-gap, 10px);
}

.fixture-card {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) var(--fixture-badge-size, 42px) 56px var(--fixture-badge-size, 42px) minmax(90px, 1fr);
  gap: 9px;
  align-items: center;
  min-height: var(--fixture-card-min-height, 82px);
  padding: var(--fixture-row-padding, 14px 18px);
  border: 1px solid var(--line);
  border-left: 6px solid transparent;
  border-radius: 8px;
  background: #fff;
}

.fixture-card.live-stream {
  position: relative;
  overflow: hidden;
  border-color: rgba(228, 31, 38, 0.22);
  border-left-color: #e41f26;
  background:
    radial-gradient(circle at 95% 35%, rgba(228, 31, 38, 0.12) 0 2px, transparent 2px) 0 0 / 15px 15px,
    linear-gradient(135deg, #fff 0%, #fff8f8 58%, #ffecec 100%);
  box-shadow: inset 0 0 0 1px rgba(228, 31, 38, 0.04);
}

.fixture-card.live-stream:not(.fixture-card-detailed) {
  grid-template-columns: minmax(110px, 1fr) var(--fixture-badge-size, 42px) minmax(72px, 96px) var(--fixture-badge-size, 42px) minmax(110px, 1fr);
}

.fixture-card.live-stream:not(.fixture-card-detailed) > strong {
  align-self: stretch;
  display: grid;
  place-items: center;
  min-height: 54px;
  border-inline: 1px solid rgba(228, 31, 38, 0.17);
  color: var(--ink);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  min-height: 22px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  background: #e41f26;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.fixture-card:not(.fixture-card-detailed) .live-badge {
  grid-column: 3;
  margin-top: -10px;
}

.live-badge::before {
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.detailed-live-badge {
  justify-self: start;
  margin-top: 12px;
}

.fixture-card small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.fixtures-panel .fixture-card small {
  display: none;
}

.team {
  min-width: 0;
  font-size: 16px;
  font-weight: 900;
}

.align-right {
  text-align: right;
}

.fixture-card strong {
  text-align: center;
  font-size: 18px;
}

.club-badge,
.mini-badge {
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: var(--ink);
  font-weight: 950;
}

.club-badge {
  width: var(--fixture-badge-size, 42px);
  height: var(--fixture-badge-size, 42px);
  border-radius: 50%;
  font-size: 12px;
}

.club-badge.gold,
.mini-badge {
  color: var(--ink);
  background: var(--gold);
}

.logo-badge {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}

.logo-badge.gold {
  background: #fff;
}

.logo-badge img {
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
}

.mini-badge.logo-badge img {
  padding: 3px;
}

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

.championship-points-col {
  border-left: 2px solid rgba(250, 181, 13, 0.55);
  background: #fffdf4;
  text-align: center;
}

th.championship-points-col {
  line-height: 1.1;
}

th.championship-points-col span {
  display: block;
}

th,
td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

thead th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

tbody th {
  font-size: 15px;
  line-height: 1.2;
}

td {
  font-weight: 850;
}

.mini-badge {
  display: inline-grid;
  width: 30px;
  height: 30px;
  margin-right: 10px;
  border-radius: 50%;
  font-size: 10px;
  vertical-align: middle;
}

.leader-row {
  background: #fff8de;
}

.lower-band {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0 clamp(20px, 4vw, 64px) 54px;
  background: var(--gold);
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 22px);
  width: 100%;
  min-height: 118px;
  padding: 24px 26px;
  background: var(--ink);
  border-radius: 8px;
}

.contact-icon-button {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 2px solid var(--gold);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
  transition:
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.contact-icon-button:hover,
.contact-icon-button:focus-visible {
  background: var(--gold-soft);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.contact-icon-button img {
  max-width: 36px;
  max-height: 36px;
  object-fit: contain;
}

.contact-icon-button.squashwa-link img {
  max-width: 44px;
  max-height: 44px;
}

.fixtures-page-hero {
  padding: 54px clamp(20px, 4vw, 64px) 32px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 12%, rgba(247, 185, 21, 0.34), transparent 30%),
    linear-gradient(135deg, #171414 0%, #2f2929 66%, #f7b915 66%);
}

.fixtures-page-hero h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.94;
  text-transform: uppercase;
}

.history-page-main {
  background: var(--gold);
}

.history-page-hero {
  position: relative;
  z-index: 1;
  overflow: visible;
  min-height: 228px;
}

.history-page-hero::after {
  position: absolute;
  right: clamp(-118px, -5vw, -62px);
  bottom: -183px;
  z-index: 1;
  width: min(676px, 44vw);
  height: 190%;
  pointer-events: none;
  content: "";
  background: url("assets/Arthur.png?v=20260709-1839") no-repeat bottom center / contain;
  opacity: 0.85;
}

.history-page-hero .eyebrow,
.history-page-hero h1 {
  position: relative;
  z-index: 2;
}

.page-note {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  font-weight: 800;
}

.fixtures-jump-nav {
  display: grid;
  gap: 12px;
  padding: 18px clamp(20px, 4vw, 64px);
  background: var(--gold);
}

.fixtures-jump-nav p {
  margin: 0;
  color: rgba(23, 20, 20, 0.68);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.fixtures-jump-nav div {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.fixtures-jump-nav div::-webkit-scrollbar {
  display: none;
}

.fixtures-jump-nav a {
  flex: 0 0 auto;
  min-width: 92px;
  padding: 10px 14px;
  border: 1px solid rgba(23, 20, 20, 0.18);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 8px 20px rgba(23, 20, 20, 0.08);
  font-weight: 950;
  text-align: center;
  text-decoration: none;
}

.fixtures-jump-nav a:hover {
  border-color: var(--ink);
  background: #fff8de;
}

.all-fixtures-shell {
  display: grid;
  gap: 18px;
  padding: 0 clamp(20px, 4vw, 64px) 56px;
  background: var(--gold);
}

.round-section {
  scroll-margin-top: 22px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.round-section header {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
}

.round-section header > div {
  display: grid;
  gap: 4px;
}

.round-section h2 {
  margin: 0;
  font-size: 28px;
}

.round-section header span {
  color: var(--muted);
  font-weight: 900;
}

.round-section header strong {
  color: var(--ink);
  font-size: 16px;
  text-align: right;
}

.round-section .fixture-list {
  padding: 18px 26px 22px;
}

.fixture-card-detailed {
  display: block;
}

.fixture-main-row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) var(--fixture-badge-size, 42px) 56px var(--fixture-badge-size, 42px) minmax(90px, 1fr);
  gap: 9px;
  align-items: center;
}

.fixture-card-detailed > small {
  display: block;
  margin-top: 10px;
}

.rubber-list {
  display: grid;
  gap: 1px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.rubber-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 42px;
  padding: 9px 12px;
  background: #fafafa;
  font-size: 14px;
  font-weight: 750;
}

.rubber-row strong {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  color: var(--ink);
  font-size: 14px;
}

.game-score {
  display: inline-grid;
  place-items: center;
  min-width: 58px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #e9e9e9;
  font-weight: 900;
}

.rubber-row span:last-child {
  text-align: right;
}

.empty-state {
  margin: 0;
  padding: 24px 26px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  font-weight: 850;
}

.history-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 28px;
  padding: 28px clamp(20px, 4vw, 64px) 56px;
  background: transparent;
}

.history-panel {
  min-width: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.history-side-column {
  display: grid;
  gap: 18px;
  align-content: start;
}

.history-table-wrap {
  overflow-x: auto;
}

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

.history-table th,
.history-table td {
  vertical-align: top;
}

.history-table tbody th {
  min-width: 210px;
}

.history-table td:first-child {
  width: 118px;
  color: var(--muted);
  font-weight: 950;
  white-space: nowrap;
}

.player-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.player-list span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fafafa;
  font-size: 13px;
  font-weight: 800;
}

.totals-table td {
  width: 82px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 950;
  text-align: center;
}

.player-totals-table tbody th {
  min-width: 0;
}

.player-total-link {
  color: inherit;
  text-decoration: none;
}

.player-total-link:hover {
  color: var(--gold);
}

.history-panel-action {
  padding: 18px 24px 24px;
}

.history-panel-action a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  padding: 10px 18px;
  border: 2px solid var(--gold);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 950;
  text-align: center;
}

.history-panel-action a:hover {
  background: var(--gold);
}

.player-stats-shell {
  padding: 28px clamp(20px, 4vw, 64px) 56px;
  background: var(--gold);
}

.player-stats-panel {
  max-width: 1120px;
  margin: 0 auto;
}

.player-stats-heading {
  align-items: center;
}

.player-search {
  display: grid;
  gap: 6px;
  min-width: min(320px, 42vw);
}

.player-search span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.player-search input {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.player-search input:focus {
  border-color: var(--gold);
  outline: 3px solid rgba(247, 185, 21, 0.28);
}

.player-stats-table th button {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 2px 8px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 950;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
}

.player-stats-table th button::after {
  grid-column: 1 / -1;
  min-width: 42px;
  color: var(--muted);
  font-size: 10px;
  content: "Sort";
}

.player-stats-table th button[data-active="desc"]::after {
  color: var(--ink);
  content: "High";
}

.player-stats-table th button[data-active="asc"]::after {
  color: var(--ink);
  content: "Low";
}

.player-stats-table th button[data-sort="name"][data-active="asc"]::after {
  content: "A-Z";
}

.player-stats-table th button[data-sort="name"][data-active="desc"]::after {
  content: "Z-A";
}

.player-stats-table th button[data-sort="club"][data-active="asc"]::after {
  content: "A-Z";
}

.player-stats-table th button[data-sort="club"][data-active="desc"]::after {
  content: "Z-A";
}

.player-stats-table th img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.player-name-cell {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.player-trophies {
  display: inline-flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
}

.player-trophies img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.player-club-badge {
  margin-right: 0;
}

.club-text-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fafafa;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.player-stats-table tbody th,
.player-stats-table td {
  font-size: 16px;
}

.player-stats-table td {
  text-align: center;
}

.rankings-panel {
  max-width: 980px;
}

.rankings-table th,
.rankings-table td {
  vertical-align: middle;
}

.rankings-table thead th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.rankings-table tbody th {
  min-width: 220px;
}

.rankings-table td {
  text-align: center;
}

.rankings-table td:first-child {
  width: 82px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.rankings-table td:last-child {
  font-size: 18px;
  font-weight: 950;
}

.ranking-titles,
.ranking-trophy-icons {
  display: inline-flex;
  align-items: center;
}

.ranking-titles {
  gap: 5px;
  font-weight: 950;
}

.ranking-player-cell {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ranking-trophy-icons {
  gap: 2px;
}

.ranking-trophy-icons img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}

.ranking-player-link {
  color: inherit;
  text-decoration: none;
}

.ranking-player-link:hover {
  color: var(--gold);
}

.rankings-club-badge {
  margin: 0 auto;
}

.club-missing {
  color: var(--muted);
  font-weight: 950;
}

.player-empty {
  margin: 0 24px 24px;
  box-shadow: none;
}

.teams-shell {
  padding: 28px clamp(20px, 4vw, 64px) 56px;
  background: var(--gold);
}

.teams-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
}

.team-pill-card {
  min-height: 330px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.team-pill-card header {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--line);
}

.team-title-block {
  display: flex;
  min-width: 0;
  gap: 14px;
  align-items: center;
}

.team-logo-badge {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.team-logo-badge img {
  width: 100%;
  height: 100%;
  padding: 5px;
  object-fit: contain;
}

.team-pill-card h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.05;
}

.team-standing {
  display: grid;
  min-width: 76px;
  padding: 8px 10px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: #fff8de;
  text-align: center;
}

.team-standing span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.team-standing strong {
  font-size: 18px;
  line-height: 1;
}

.team-averages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 22px 0;
}

.team-averages span {
  display: grid;
  gap: 2px;
  place-items: center;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf4;
  text-align: center;
}

.team-averages small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.team-averages strong {
  font-size: 18px;
  line-height: 1.05;
}

.team-championship-points {
  border-color: rgba(250, 181, 13, 0.65) !important;
  background: #fff8de !important;
}

.team-roster {
  display: grid;
  gap: 8px;
  padding: 6px 22px 22px;
}

.team-roster-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 58px 74px;
  gap: 10px;
  padding: 10px 32px 0 28px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-align: right;
  text-transform: uppercase;
}

.team-player {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 58px 74px;
  gap: 10px;
  align-items: center;
  min-height: 38px;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.team-pill-card.has-prize-pool .team-roster-head,
.team-pill-card.has-prize-pool .team-player {
  grid-template-columns: 46px minmax(0, 1fr) 58px 74px 74px;
}

a.team-player:hover {
  border-color: var(--gold);
  background: #fff8de;
}

.team-player-role {
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.team-player-name {
  min-width: 0;
}

.team-player-stat {
  text-align: right;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.1;
}

.team-player-prize {
  color: var(--ink);
  text-align: right;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.1;
}

.admin-login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 82% 15%, rgba(247, 185, 21, 0.38), transparent 32%),
    linear-gradient(135deg, #171414 0%, #2f2929 58%, #f7b915 58%, #f7b915 100%);
}

.admin-login-card {
  display: grid;
  gap: 24px;
  width: min(100%, 440px);
  padding: 30px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.admin-brand {
  color: var(--ink);
}

.admin-brand small {
  color: var(--ink);
}

.admin-login-card h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1;
}

.admin-form,
.admin-form label {
  display: grid;
  gap: 10px;
}

.admin-form label span,
.admin-help {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-form input,
.admin-search input {
  width: 100%;
}

.admin-form input {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.admin-form button {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: var(--gold);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.admin-error {
  margin: 0;
  color: #e41f26;
  font-weight: 900;
}

.admin-logout {
  cursor: pointer;
  font: inherit;
}

.admin-hero {
  padding-bottom: 44px;
}

.admin-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  padding: 28px clamp(20px, 4vw, 64px) 56px;
  background: var(--gold);
}

.admin-panel {
  align-self: start;
}

.admin-archive-panel {
  grid-column: 1 / -1;
}

.admin-help {
  margin: 0;
  padding: 0 24px 18px;
  text-transform: none;
}

.admin-archive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 0 24px 24px;
}

.admin-archive-actions button {
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: var(--gold);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
}

.admin-archive-actions button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.admin-status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.admin-round-list,
.admin-player-list {
  display: grid;
  gap: 14px;
  padding: 0 24px 24px;
}

.admin-round-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf4;
}

.admin-round-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.admin-round-card header strong {
  font-size: 18px;
}

.admin-round-card header span {
  color: var(--muted);
  font-weight: 900;
}

.admin-option-list,
.admin-player-list {
  display: grid;
}

.admin-option-list label,
.admin-player-toggle {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-weight: 850;
}

.admin-option-list label:last-child,
.admin-player-toggle:last-child {
  border-bottom: 0;
}

.admin-player-toggle {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-player-toggle span {
  display: grid;
  gap: 3px;
}

.admin-player-toggle small {
  color: var(--muted);
  font-weight: 850;
}

.admin-search {
  margin: 0 24px 18px;
}

@media (max-width: 1040px) {
  .sign-in {
    justify-self: end;
  }

  .hero-band,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .round-summary {
    max-width: 420px;
  }

  .history-shell {
    grid-template-columns: 1fr;
  }

  .championship-panel {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .teams-grid {
    grid-template-columns: 1fr;
  }

  .replay-pill {
    max-width: 540px;
  }
}

@media (max-width: 620px) {
  .team-pill-card header {
    align-items: flex-start;
  }

  .team-pill-card h2 {
    font-size: 19px;
  }

  .team-standing {
    min-width: 68px;
    padding: 7px 8px;
  }

  .team-averages {
    padding-right: 16px;
    padding-left: 16px;
  }

  .team-player {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 6px 10px;
  }

  .team-roster-head {
    display: none;
  }

  .team-pill-card.has-prize-pool .team-player {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .team-player-stat,
  .team-player-prize {
    grid-row: 2;
    text-align: left;
  }
}

@media (max-width: 720px) {
  .main-nav {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 88px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 58px;
    height: 58px;
  }

  .brand strong {
    font-size: 20px;
  }

  .sign-in {
    display: none;
  }

  .nav-links {
    gap: 14px;
    font-size: 14px;
  }

  .hero-band {
    padding-top: 42px;
    background:
      radial-gradient(circle at 85% 18%, rgba(247, 185, 21, 0.28), transparent 36%),
      linear-gradient(150deg, #171414 0%, #2f2929 72%, #f7b915 72%);
  }

  .hero-band::before {
    background-position: -18% 78%;
    background-size: min(442px, 82vw) auto;
    opacity: 0.13;
  }

  .history-page-hero {
    min-height: 220px;
  }

  .history-page-hero::after {
    right: -132px;
    bottom: -173px;
    width: min(416px, 72vw);
    height: 153%;
    opacity: 0.62;
  }

  .replay-pill {
    max-width: 360px;
  }

  .replay-round {
    padding: 8px 12px 7px 14px;
    font-size: 13px;
  }

  .replay-action {
    min-width: 112px;
    padding-left: 18px;
  }

  .replay-action strong {
    font-size: 15px;
  }

  .replay-play {
    width: 42px;
    height: 42px;
  }

  .replay-play::before {
    border-top-width: 9px;
    border-bottom-width: 9px;
    border-left-width: 14px;
  }

  .content-grid {
    padding-right: 14px;
    padding-left: 14px;
  }

  .championship-tracker {
    padding-right: 14px;
    padding-left: 14px;
  }

  .championship-tabs h2,
  .championship-tabs a,
  .championship-tabs span {
    min-height: 26px;
    padding: 5px 8px;
    font-size: 12px;
  }

  .championship-match-row {
    grid-template-columns: minmax(72px, 1fr) 34px 52px 34px minmax(72px, 1fr);
    gap: 8px;
  }

  .panel-heading,
  .date-block {
    padding-right: 18px;
    padding-left: 18px;
  }

  .date-block {
    grid-template-columns: 1fr;
  }

  .fixture-card {
    grid-template-columns: minmax(72px, 1fr) 34px 52px 34px minmax(72px, 1fr);
    gap: 8px;
    padding: 13px 12px;
  }

  .fixture-card.live-stream:not(.fixture-card-detailed) {
    grid-template-columns: minmax(72px, 1fr) 34px minmax(64px, 78px) 34px minmax(72px, 1fr);
  }

  .fixture-card.live-stream:not(.fixture-card-detailed) > strong {
    min-height: 48px;
  }

  .fixture-card:not(.fixture-card-detailed) .live-badge {
    margin-top: -8px;
    padding-inline: 8px;
    font-size: 10px;
  }

  .club-badge {
    width: 34px;
    height: 34px;
  }

  .team {
    font-size: 14px;
  }

  .fixture-card strong {
    font-size: 16px;
  }

  th,
  td {
    padding: 13px 8px;
  }

  .player-stats-table tbody th,
  .rankings-table tbody th {
    min-width: 150px;
  }

  .player-name-cell,
  .ranking-player-cell {
    display: inline-flex;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 4px 6px;
    align-items: center;
  }

  .player-trophies,
  .ranking-titles,
  .ranking-trophy-icons {
    flex: 0 0 auto;
    flex-wrap: wrap;
  }

  .player-trophies img,
  .ranking-trophy-icons img {
    width: 13px;
    height: 13px;
  }

  .lower-band {
    padding-right: 14px;
    padding-left: 14px;
  }

  .contact-card {
    min-height: 96px;
    padding: 18px;
  }

  .contact-icon-button {
    width: 54px;
    height: 54px;
  }

  .contact-icon-button img {
    max-width: 31px;
    max-height: 31px;
  }

  .contact-icon-button.squashwa-link img {
    max-width: 38px;
    max-height: 38px;
  }

  .round-section header {
    align-items: flex-start;
    flex-direction: column;
    padding-right: 18px;
    padding-left: 18px;
  }

  .round-section header strong {
    text-align: left;
  }

  .round-section .fixture-list {
    padding-right: 18px;
    padding-left: 18px;
  }

  .fixture-main-row {
    grid-template-columns: minmax(72px, 1fr) 34px 52px 34px minmax(72px, 1fr);
    gap: 8px;
  }

  .rubber-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .rubber-row strong {
    justify-content: flex-start;
  }

  .rubber-row span:last-child {
    text-align: left;
  }
}
