:root {
  --bg: #090d0d;
  --bg-2: #101514;
  --panel: #202123;
  --panel-2: #2a2b2e;
  --panel-3: #151918;
  --ink: #f6f2ee;
  --muted: #b89d9d;
  --soft: #f3c0bd;
  --line: rgba(232, 116, 116, 0.34);
  --line-strong: rgba(255, 178, 171, 0.52);
  --red: #ce2f43;
  --red-dark: #9c1f31;
  --gold: #f7bb22;
  --blue: #c7d8ee;
  --green: #5dd389;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% 16%, rgba(81, 91, 112, 0.18), transparent 28rem),
    radial-gradient(circle at 84% 12%, rgba(209, 31, 50, 0.14), transparent 22rem),
    linear-gradient(180deg, #0b1010 0%, var(--bg) 42%, #080b0b 100%);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 78%);
}

body::after {
  position: fixed;
  inset: 68px 0 auto;
  z-index: -1;
  height: 540px;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(9, 13, 13, 0.9), rgba(9, 13, 13, 0.24), rgba(9, 13, 13, 0.92)),
    repeating-linear-gradient(90deg, transparent 0 78px, rgba(255, 255, 255, 0.035) 78px 80px),
    radial-gradient(circle at 52% 45%, rgba(40, 45, 54, 0.86), transparent 10rem);
  opacity: 0.9;
}

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

button,
input,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 78px;
  padding: 14px clamp(22px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 12, 12, 0.94);
  backdrop-filter: blur(18px);
}

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

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: white;
}

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

.brand strong {
  font-size: 16px;
  font-weight: 950;
  text-transform: uppercase;
}

.brand small {
  margin-top: 4px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
}

.nav-links a {
  position: relative;
  color: var(--soft);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.12em;
  padding: 9px 0;
  text-transform: uppercase;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--soft);
  content: "";
  opacity: 0;
  transform: scaleX(0.2);
  transition: 180ms ease;
}

.nav-links a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

main {
  width: min(1220px, calc(100% - 56px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  align-items: center;
  gap: clamp(28px, 6vw, 78px);
  min-height: 560px;
  padding: clamp(48px, 8vw, 88px) 0 46px;
}

.hero-copy {
  position: relative;
}

.hero-logo {
  display: block;
  width: min(190px, 45vw);
  aspect-ratio: 1;
  margin-bottom: 26px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 840px;
  font-size: clamp(2.9rem, 6.8vw, 6rem);
  font-style: italic;
  font-weight: 950;
  line-height: 0.96;
  text-transform: uppercase;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.52);
}

h1::first-line {
  color: white;
}

h2 {
  color: white;
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.hero-text {
  max-width: 680px;
  margin: 24px 0 0;
  color: #e8dcda;
  font-size: clamp(15px, 1.3vw, 16px);
  font-weight: 650;
  line-height: 1.7;
}

.announcement {
  max-width: 680px;
  margin: 22px 0 0;
  border: 1px solid rgba(255, 209, 100, 0.42);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  background: rgba(255, 209, 100, 0.1);
  color: #ffe9a6;
  font-weight: 800;
  line-height: 1.5;
  padding: 14px 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 950;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 0 20px;
  text-transform: uppercase;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--red);
  color: white;
  box-shadow: 0 16px 34px rgba(209, 31, 50, 0.24);
}

.button.primary:hover {
  background: #ea2439;
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
}

.pitch-panel {
  position: relative;
  min-height: 290px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 48%),
    linear-gradient(180deg, rgba(44, 44, 47, 0.96), rgba(23, 25, 24, 0.96));
  box-shadow: var(--shadow);
}

.pitch-panel::before {
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  content: "";
}

.pitch-panel::after {
  position: absolute;
  right: -44px;
  bottom: -62px;
  width: 180px;
  height: 180px;
  border: 18px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  content: "";
}

.pitch-visual {
  position: absolute;
  inset: 0;
  opacity: 0.22;
}

.pitch-line {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.28);
}

.pitch-line.center {
  inset: 15% auto 15% 50%;
  width: 0;
  border-width: 0 0 0 2px;
}

.pitch-line.center::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 112px;
  height: 112px;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.pitch-line.box {
  display: none;
}

.ball,
.player {
  display: none;
}

.next-card {
  position: absolute;
  inset: auto 24px 24px;
  padding: 22px;
  border: 1px solid rgba(255, 178, 171, 0.24);
  border-radius: var(--radius);
  background: rgba(12, 14, 14, 0.72);
  backdrop-filter: blur(12px);
}

.next-card span,
.next-card small {
  display: block;
  color: var(--soft);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.next-card strong {
  display: block;
  margin: 10px 0;
  color: white;
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 0 42px;
}

.status-strip article,
.panel,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    var(--panel);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.2);
}

.status-strip article {
  position: relative;
  overflow: hidden;
  min-height: 118px;
  padding: 22px;
}

.status-strip article::after {
  position: absolute;
  right: -24px;
  bottom: -34px;
  width: 86px;
  height: 86px;
  border: 12px solid rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  content: "";
}

.stat-value,
.stat-label {
  display: block;
}

.stat-value {
  color: white;
  font-size: clamp(28px, 3.6vw, 46px);
  font-weight: 950;
  line-height: 1;
}

.stat-label {
  margin-top: 9px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-header,
.panel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.section-header {
  margin: 54px 0 18px;
}

.match-centre {
  scroll-margin-top: 96px;
  margin-top: 54px;
}

.match-centre-header {
  margin: 0 0 16px;
}

.segmented-control {
  display: flex;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  padding: 4px;
}

.segment {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  padding: 0 13px;
  text-transform: uppercase;
}

.segment.is-active {
  background: var(--red);
  color: white;
}

.sport-tabs {
  display: flex;
  gap: 10px;
  margin: 0 0 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.sport-tab {
  display: inline-grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
  min-width: 158px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    var(--panel);
  color: white;
  cursor: pointer;
  padding: 12px;
  text-align: left;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.sport-tab:hover,
.sport-tab.is-active {
  border-color: var(--line-strong);
  background:
    linear-gradient(180deg, rgba(206, 47, 67, 0.22), transparent),
    var(--panel-2);
  transform: translateY(-1px);
}

.sport-tab .sport-icon {
  grid-row: 1 / 3;
  width: 42px;
  height: 42px;
}

.sport-tab span:not(.sport-icon) {
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

.sport-tab small {
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.sport-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.sport-feed {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    var(--panel);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.2);
}

.feed-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.12);
}

.feed-toolbar span,
.competition-heading span,
.match-teams small,
.detail-meta span,
.log-item small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.feed-toolbar strong {
  display: block;
  margin-top: 4px;
  color: white;
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
}

.competition-list {
  display: grid;
}

.competition-group + .competition-group {
  border-top: 1px solid var(--line);
}

.competition-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.035);
}

.competition-heading strong {
  display: block;
  color: white;
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

.match-list {
  display: grid;
}

.match-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 74px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
  background: transparent;
  color: white;
  cursor: pointer;
  padding: 12px 18px;
  text-align: left;
}

.match-row:hover,
.match-row.is-selected {
  background: rgba(206, 47, 67, 0.12);
}

.match-teams {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.match-teams strong,
.match-teams small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-teams strong {
  color: white;
  font-size: 16px;
  font-weight: 950;
}

.match-score {
  min-width: 58px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: white;
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
  padding: 10px;
  text-align: center;
}

.sport-sidebar {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.detail-panel {
  background:
    radial-gradient(circle at 90% 12%, rgba(247, 187, 34, 0.12), transparent 8rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    var(--panel);
}

.selected-match {
  display: grid;
  gap: 16px;
}

.selected-match h3 {
  margin: 0;
  color: white;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.selected-match p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.5;
}

.detail-score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 178, 171, 0.2);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.16);
  text-align: center;
}

.detail-score span {
  overflow-wrap: anywhere;
  color: white;
  font-size: 14px;
  font-weight: 950;
}

.detail-score strong {
  color: var(--gold);
  font-size: 28px;
  font-weight: 950;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-meta span {
  border: 1px solid rgba(255, 178, 171, 0.22);
  border-radius: 999px;
  padding: 7px 9px;
}

.detail-updates {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.detail-updates article {
  border: 1px solid rgba(255, 178, 171, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  padding: 12px;
}

.detail-updates strong {
  color: white;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.detail-updates p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.sport-standings {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.sport-table-group {
  overflow: hidden;
  border: 1px solid rgba(255, 178, 171, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.sport-table-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 178, 171, 0.18);
}

.sport-table-heading strong {
  color: white;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sport-table-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-table-wrap {
  overflow-x: visible;
}

.mini-standings-table {
  min-width: 0;
  table-layout: fixed;
}

.mini-standings-table th,
.mini-standings-table td {
  padding: 10px 4px;
  font-size: 12px;
  white-space: nowrap;
}

.mini-standings-table th:nth-child(2),
.mini-standings-table td:nth-child(2) {
  width: 26%;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
}

.mini-standings-table th:first-child,
.mini-standings-table td:first-child {
  width: 8%;
}

.mini-standings-table th:nth-child(n + 3),
.mini-standings-table td:nth-child(n + 3) {
  width: 11%;
}

.fixture-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.sports-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.sport-card {
  display: grid;
  gap: 10px;
  min-height: 132px;
  align-content: center;
  justify-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.08), transparent 3.2rem),
    var(--panel);
  color: white;
  padding: 16px 10px;
  text-align: center;
}

.sport-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(255, 178, 171, 0.12);
  color: var(--soft);
  font-weight: 950;
}

.sport-card strong {
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

.sport-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.fixture-card {
  position: relative;
  display: grid;
  gap: 16px;
  min-height: 202px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 20% 26%, rgba(255, 255, 255, 0.07), transparent 4.6rem),
    var(--panel);
  padding: 18px;
}

.fixture-card::after {
  position: absolute;
  inset: auto -34px -44px auto;
  width: 110px;
  height: 110px;
  border: 13px solid rgba(255, 255, 255, 0.035);
  border-radius: 50%;
  content: "";
}

.fixture-meta,
.result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--soft);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  padding: 7px 10px;
  text-transform: uppercase;
}

.badge.live {
  background: rgba(209, 31, 50, 0.18);
  color: #ff5d68;
}

.badge.complete {
  background: rgba(93, 211, 137, 0.14);
  color: var(--green);
}

.teams {
  display: grid;
  gap: 10px;
}

.team-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  color: white;
  font-size: clamp(24px, 2.3vw, 32px);
  font-weight: 950;
}

.team-row span:first-child {
  overflow-wrap: anywhere;
}

.score {
  min-width: 40px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: white;
  padding: 4px 10px;
  text-align: center;
}

.fixture-note {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  margin-top: 18px;
}

.dashboard-grid.reverse {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.dashboard-grid.table-only {
  grid-template-columns: 1fr;
}

.panel {
  min-width: 0;
  padding: 22px;
}

.icon-button {
  display: grid;
  min-width: 46px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
}

.timeline,
.result-list,
.scorer-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.log-item,
.result-item,
.scorer-item {
  border: 1px solid rgba(255, 178, 171, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  padding: 14px;
}

.log-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
}

.minute,
.rank {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--red);
  color: white;
  font-weight: 950;
}

.log-item strong,
.result-item strong,
.scorer-item strong {
  display: block;
  margin-bottom: 4px;
  color: white;
}

.log-item p,
.result-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.result-item {
  display: grid;
  gap: 12px;
}

.table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}

.table-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.table-choice {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.07em;
  padding: 0 12px;
  text-transform: uppercase;
}

.table-choice:hover,
.table-choice.is-active {
  border-color: var(--line-strong);
  background: var(--red);
  color: white;
}

.selected-table-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.selected-sport-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 250, 241, 0.74)),
    var(--panel);
}

.selected-sport-table + .selected-sport-table {
  margin-top: 16px;
}

.selected-sport-table table {
  min-width: 0;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 15px 11px;
  text-align: left;
}

tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.025);
}

th {
  color: var(--soft);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

td {
  color: white;
  font-size: 14px;
}

td:not(:first-child),
th:not(:first-child) {
  text-align: center;
}

.scorer-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.rank {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
}

.goals {
  color: var(--gold);
  font-size: 24px;
  font-weight: 950;
}

.empty-state {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

label {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

label.wide {
  grid-column: 1 / -1;
}

input,
select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 178, 171, 0.28);
  border-radius: var(--radius);
  background: #111515;
  color: white;
  font-size: 14px;
  padding: 0 12px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 209, 100, 0.12);
}

input[type="color"] {
  min-height: 46px;
  padding: 4px;
}

.admin-body {
  background:
    radial-gradient(circle at 20% 18%, rgba(209, 31, 50, 0.14), transparent 24rem),
    linear-gradient(180deg, #0b1010, #080b0b);
}

.admin-body h1 {
  font-size: clamp(2.5rem, 4.8vw, 5rem);
}

.admin-shell {
  padding: 42px 0 72px;
}

.admin-lock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 480px);
  gap: 34px;
  align-items: center;
  min-height: calc(100vh - 170px);
}

.lock-form,
.editor-form {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    var(--panel);
  box-shadow: var(--shadow);
  padding: 24px;
}

.admin-tabs {
  width: max-content;
  max-width: 100%;
  margin: 10px 0 16px;
  overflow-x: auto;
}

.admin-tab-panel {
  margin-top: 16px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.admin-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.admin-sport-tabs {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.admin-sport-tab {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 9px;
  min-width: 132px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: white;
  cursor: pointer;
  padding: 10px;
  text-align: left;
}

.admin-sport-tab span {
  display: grid;
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 178, 171, 0.12);
  color: var(--soft);
  font-size: 12px;
  font-weight: 950;
}

.admin-sport-tab strong {
  color: white;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-sport-tab small,
.admin-fixture-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.admin-sport-tab:hover,
.admin-sport-tab.is-active {
  border-color: var(--line-strong);
  background: rgba(206, 47, 67, 0.13);
}

.admin-fixture-meta {
  margin-top: 8px;
}

.admin-list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid rgba(255, 178, 171, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  color: white;
  cursor: pointer;
  padding: 14px;
  text-align: left;
}

.admin-list-item:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
}

.admin-list-item strong,
.admin-list-item small {
  display: block;
}

.admin-list-item small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}

.admin-list-item b {
  font-size: 24px;
}

.team-swatch {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255, 255, 255, 0.88);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--line);
}

.editor-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.editor-form.settings-form {
  max-width: 820px;
}

.wide {
  grid-column: 1 / -1;
}

.fixture-admin-detail {
  display: none;
}

.selected-fixture-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.selected-fixture-card span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button.danger {
  border-color: rgba(206, 47, 67, 0.35);
  background: rgba(206, 47, 67, 0.11);
  color: var(--red);
}

.form-status {
  min-height: 20px;
  margin: 0;
  color: var(--green);
  font-weight: 900;
}

.form-status.is-error {
  color: #ff6e79;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 76px;
  padding: 28px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.history-page {
  padding: clamp(48px, 7vw, 86px) 0 0;
}

.history-hero {
  max-width: 860px;
}

.history-byline {
  display: inline-flex;
  margin: 24px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--soft);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.08em;
  padding: 12px 14px;
  text-transform: uppercase;
}

.history-panel {
  max-width: 920px;
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 250, 241, 0.78)),
    var(--panel);
  box-shadow: var(--shadow);
  padding: clamp(22px, 4vw, 42px);
}

.history-panel p {
  margin: 0;
  color: #40383a;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.85;
}

.history-panel p + p {
  margin-top: 24px;
}

.history-accordions {
  max-width: 920px;
  margin-top: 28px;
}

.history-detail {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 250, 241, 0.78)),
    var(--panel);
  box-shadow: var(--shadow);
}

.history-detail + .history-detail {
  margin-top: 12px;
}

.history-detail summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
  letter-spacing: 0.08em;
  list-style: none;
  padding: 18px 20px;
  text-transform: uppercase;
}

.history-detail summary::-webkit-details-marker {
  display: none;
}

.history-detail summary::after {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 6px;
  background: rgba(206, 47, 67, 0.1);
  color: var(--red);
  content: "+";
  font-size: 22px;
  line-height: 1;
}

.history-detail[open] summary {
  border-bottom: 1px solid var(--line);
}

.history-detail[open] summary::after {
  content: "-";
}

.history-detail div {
  padding: 20px;
}

.history-detail p {
  margin: 0;
  color: #40383a;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.75;
}

.history-detail p + p {
  margin-top: 18px;
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero,
  .sport-layout,
  .dashboard-grid,
  .dashboard-grid.reverse,
  .admin-lock,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .pitch-panel {
    min-height: 320px;
  }

  .fixture-grid,
  .sports-grid,
  .status-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  main {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    padding: 14px 12px;
  }

  .nav-links {
    gap: 14px;
  }

  .hero-logo {
    width: 124px;
  }

  .section-header,
  .panel-header,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .segmented-control {
    width: 100%;
    overflow-x: auto;
  }

  .segment {
    white-space: nowrap;
  }

  .fixture-grid,
  .sports-grid,
  .status-strip,
  .editor-form {
    grid-template-columns: 1fr;
  }

  .match-centre-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .sport-tab {
    min-width: 140px;
  }

  .feed-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .match-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .match-row .badge {
    grid-column: 1 / 3;
    justify-self: start;
  }

  .match-score {
    min-width: 48px;
    font-size: 20px;
  }

  .mini-standings-table th,
  .mini-standings-table td {
    padding: 9px 3px;
    font-size: 11px;
  }

  .mini-standings-table th:nth-child(2),
  .mini-standings-table td:nth-child(2) {
    width: 28%;
  }

  .team-row {
    font-size: 24px;
  }

  .log-item {
    grid-template-columns: 1fr;
  }

  .history-page {
    padding-top: 34px;
  }

  .history-panel p {
    font-size: 15px;
    line-height: 1.7;
  }

  .history-detail summary {
    font-size: 14px;
    padding: 15px;
  }

  .history-detail div {
    padding: 15px;
  }
}

/* Light theme */
:root {
  --bg: #fffaf1;
  --bg-2: #fff3df;
  --panel: #ffffff;
  --panel-2: #fff6e8;
  --panel-3: #fffdf8;
  --ink: #191f24;
  --muted: #756569;
  --soft: #8d2735;
  --line: rgba(206, 47, 67, 0.2);
  --line-strong: rgba(206, 47, 67, 0.36);
  --shadow: 0 18px 46px rgba(113, 61, 24, 0.12);
}

body,
.admin-body {
  background:
    radial-gradient(circle at 18% 10%, rgba(247, 187, 34, 0.2), transparent 22rem),
    radial-gradient(circle at 88% 6%, rgba(206, 47, 67, 0.12), transparent 20rem),
    linear-gradient(180deg, #fffaf1 0%, #fff7eb 44%, #ffffff 100%);
  color: var(--ink);
}

body::before {
  background:
    linear-gradient(90deg, rgba(206, 47, 67, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(247, 187, 34, 0.06) 1px, transparent 1px);
}

body::after {
  background:
    linear-gradient(90deg, rgba(255, 250, 241, 0.94), rgba(255, 250, 241, 0.46), rgba(255, 250, 241, 0.94)),
    repeating-linear-gradient(90deg, transparent 0 78px, rgba(206, 47, 67, 0.04) 78px 80px),
    radial-gradient(circle at 52% 45%, rgba(247, 187, 34, 0.14), transparent 10rem);
  opacity: 1;
}

.topbar {
  background: rgba(255, 255, 255, 0.92);
}

.brand strong,
h1,
h1::first-line,
h2,
.next-card strong,
.stat-value,
.sport-tab,
.sport-tab span:not(.sport-icon),
.admin-sport-tab,
.admin-sport-tab strong,
.sport-feed,
.feed-toolbar strong,
.competition-heading strong,
.match-teams strong,
.match-score,
.selected-match h3,
.detail-score span,
.log-item strong,
.result-item strong,
.scorer-item strong,
.sport-table-heading strong,
td,
.team-row,
.sport-card,
.sport-card strong,
.fixture-card,
.admin-list-item,
.form-status,
.empty-state strong {
  color: var(--ink);
  text-shadow: none;
}

.hero-text {
  color: #4e4446;
}

.announcement {
  background: rgba(247, 187, 34, 0.18);
  color: #6f4d00;
}

.pitch-panel,
.next-card,
.status-strip article,
.panel,
.admin-panel,
.sport-tab,
.admin-sport-tab,
.sport-feed,
.sport-card,
.fixture-card,
.lock-form,
.editor-form,
.admin-list-item,
.log-item,
.result-item,
.scorer-item,
.sport-table-group,
.detail-updates article {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 250, 241, 0.74)),
    var(--panel);
  box-shadow: var(--shadow);
}

.pitch-panel::before,
.pitch-line,
.pitch-line.center::after {
  border-color: rgba(206, 47, 67, 0.16);
}

.pitch-panel::after,
.status-strip article::after,
.fixture-card::after {
  border-color: rgba(247, 187, 34, 0.18);
}

.next-card {
  background: rgba(255, 255, 255, 0.78);
}

.button.secondary,
.segmented-control,
.icon-button {
  background: rgba(255, 255, 255, 0.78);
}

.sport-tab:hover,
.sport-tab.is-active,
.admin-sport-tab:hover,
.admin-sport-tab.is-active {
  background:
    linear-gradient(180deg, rgba(247, 187, 34, 0.26), rgba(206, 47, 67, 0.08)),
    var(--panel);
}

.sport-icon,
.admin-sport-tab span,
.rank {
  background: rgba(206, 47, 67, 0.1);
  color: var(--red);
}

.feed-toolbar,
.competition-heading {
  background: rgba(255, 246, 232, 0.72);
}

.match-row {
  color: var(--ink);
}

.match-row:hover,
.match-row.is-selected {
  background: rgba(206, 47, 67, 0.08);
}

.match-score,
.score,
.detail-score {
  background: rgba(255, 246, 232, 0.9);
}

.detail-panel {
  background:
    radial-gradient(circle at 90% 12%, rgba(247, 187, 34, 0.18), transparent 8rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 250, 241, 0.74)),
    var(--panel);
}

tr:nth-child(even) td {
  background: rgba(247, 187, 34, 0.08);
}

th,
td {
  border-bottom-color: rgba(206, 47, 67, 0.11);
}

input,
select {
  background: #ffffff;
  color: var(--ink);
}

.footer {
  background: rgba(255, 255, 255, 0.72);
}
