:root {
  --bg: #f7f7f2;
  --surface: #ffffff;
  --surface-soft: #fbfaf5;
  --ink: #202927;
  --muted: #687571;
  --line: rgba(32, 41, 39, 0.1);
  --green: #167a5a;
  --green-dark: #0f573f;
  --blue: #2f66b2;
  --coral: #e85f4c;
  --yellow: #f4b63f;
  --purple: #7057c8;
  --shadow: 0 14px 34px rgba(27, 38, 35, 0.08);
  --shadow-soft: 0 8px 22px rgba(27, 38, 35, 0.06);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-pill: 999px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 10%, rgba(244, 182, 63, 0.2), transparent 24%),
    radial-gradient(circle at 88% 8%, rgba(47, 102, 178, 0.16), transparent 27%),
    linear-gradient(135deg, rgba(22, 122, 90, 0.07), transparent 38%),
    var(--bg);
}

.site-closed {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.site-closed[hidden] {
  display: none;
}

.site-closed section {
  width: min(620px, 100%);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 85% 12%, rgba(244, 182, 63, 0.25), transparent 26%),
    rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  text-align: center;
}

.site-closed span {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.site-closed h1 {
  margin: 12px 0;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1;
}

.site-closed p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  min-height: 76px;
  margin: 0;
  padding: 14px max(20px, calc((100vw - 1200px) / 2));
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  gap: 22px;
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(32, 41, 39, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  justify-self: start;
}

.brand > span {
  display: block;
}

.brand strong,
.brand small {
  display: block;
}

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

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
}

.customer-nav {
  justify-self: center;
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(92px, auto));
  gap: 6px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.header-google-button {
  justify-self: end;
}

.nav-tab {
  height: 38px;
  border: 0;
  padding: 0 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  border-radius: var(--radius-pill);
}

.nav-tab.active {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

main {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 44px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--green);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 900;
}

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

h1 {
  font-size: clamp(36px, 6vw, 68px);
  line-height: 0.98;
  max-width: 820px;
}

h2 {
  font-size: 22px;
  line-height: 1.18;
}

.hero {
  min-height: min(720px, calc(100vh - 116px));
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 28px;
  align-items: center;
  padding: 46px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(244, 182, 63, 0.62), transparent 22%),
    radial-gradient(circle at 68% 78%, rgba(47, 102, 178, 0.58), transparent 28%),
    linear-gradient(90deg, rgba(11, 22, 20, 0.9) 0%, rgba(11, 22, 20, 0.68) 48%, rgba(11, 22, 20, 0.2) 100%),
    url("https://images.unsplash.com/photo-1556056504-5c7696c4c28d?auto=format&fit=crop&w=1900&q=88")
      center / cover;
  box-shadow: 0 24px 70px rgba(27, 38, 35, 0.18);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(244, 182, 63, 0.28), transparent 30%),
    linear-gradient(315deg, rgba(232, 95, 76, 0.24), transparent 34%),
    linear-gradient(180deg, transparent 52%, rgba(22, 122, 90, 0.42));
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
  line-height: 1.6;
}

.hero-copy h1 {
  color: #ffffff;
  text-wrap: balance;
}

.hero-kicker,
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-kicker {
  margin-bottom: 18px;
}

.hero-kicker span,
.hero-tags span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  backdrop-filter: blur(16px);
}

.hero-tags {
  margin-top: 24px;
}

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

.countdown-card {
  max-width: 680px;
  margin-top: 22px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  backdrop-filter: blur(18px);
}

.countdown-card span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.countdown-card strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
}

.countdown-units {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.countdown-units div {
  min-width: 0;
  padding: 10px 8px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.14);
  text-align: center;
}

.countdown-units dt {
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
}

.countdown-units dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.hero-board {
  min-height: 510px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 0.9fr 1fr 1fr;
  gap: 14px;
  transform: rotate(-0.6deg);
}

.hero-score-card,
.hero-fixture-card,
.match-strip,
.metric-card,
.panel,
.match-card,
.table-wrap,
.admin-login-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-score-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
  overflow: hidden;
}

.hero-fixture-card {
  grid-column: 1 / -1;
  padding: 22px;
  display: grid;
  align-content: center;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(47, 102, 178, 0.92), rgba(112, 87, 200, 0.88));
  overflow: hidden;
}

.hero-fixture-card span,
.hero-fixture-card small {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 850;
}

.hero-fixture-card strong {
  margin: 4px 0;
  font-size: clamp(48px, 7vw, 82px);
  line-height: 0.9;
  letter-spacing: 0;
}

.accent-green {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 40%),
    linear-gradient(135deg, #167a5a, #24a474);
}

.accent-blue {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 40%),
    linear-gradient(135deg, #2f66b2, #62a2d8);
}

.hero-score-card span,
.hero-score-card small {
  color: rgba(255, 255, 255, 0.78);
}

.hero-score-card strong {
  font-size: 66px;
  line-height: 1;
}

.match-strip {
  grid-column: 1 / -1;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 45%),
    linear-gradient(135deg, rgba(232, 95, 76, 0.94), rgba(244, 182, 63, 0.95)),
    var(--coral);
  color: #ffffff;
}

.match-strip span,
.match-strip small {
  color: rgba(255, 255, 255, 0.82);
}

.match-strip strong {
  margin: 8px 0;
  font-size: clamp(28px, 4vw, 44px);
}

.login-button,
.primary-button,
.secondary-button {
  min-height: 42px;
  border: 1px solid transparent;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 850;
  white-space: nowrap;
  border-radius: var(--radius-pill);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.login-button,
.primary-button {
  background: var(--green);
  border-color: var(--green);
  color: #ffffff;
}

.login-button:hover,
.primary-button:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-1px);
}

.login-button.logged-in {
  background: #182722;
  border-color: #182722;
}

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

.secondary-button:hover {
  border-color: rgba(32, 41, 39, 0.28);
  transform: translateY(-1px);
}

.full-width {
  width: 100%;
}

.google-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background:
    conic-gradient(#4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0),
    #ffffff;
}

.admin-google-button {
  min-height: 56px;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(32, 41, 39, 0.12);
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(28, 44, 39, 0.12);
}

.admin-google-button:hover {
  border-color: rgba(22, 132, 113, 0.34);
  background: #f8fbf9;
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(28, 44, 39, 0.16);
}

.header-google-button {
  min-height: 46px;
  gap: 10px;
  border-color: rgba(32, 41, 39, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(28, 44, 39, 0.1);
}

.header-google-button:hover,
.header-google-button.logged-in {
  border-color: rgba(22, 132, 113, 0.32);
  background: #ffffff;
  color: var(--ink);
}

.header-google-button .google-icon {
  width: 24px;
  height: 24px;
}

.header-google-button .google-icon span {
  width: 11px;
  height: 11px;
}

.google-icon {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(from -45deg, #4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0),
    #ffffff;
  box-shadow: inset 0 0 0 1px rgba(32, 41, 39, 0.08);
}

.google-icon span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ffffff;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

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

.photo-story {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.8fr) minmax(220px, 0.8fr);
  gap: 14px;
  margin: 0 0 18px;
}

.photo-tile {
  position: relative;
  min-height: 230px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-xl);
  color: #ffffff;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
  overflow: hidden;
}

.photo-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 22%, rgba(0, 0, 0, 0.7)),
    radial-gradient(circle at 20% 20%, rgba(244, 182, 63, 0.22), transparent 28%);
  pointer-events: none;
}

.photo-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(27, 38, 35, 0.12);
}

.photo-tile span {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.photo-tile strong {
  position: relative;
  z-index: 1;
  margin-top: 7px;
  font-size: 24px;
  line-height: 1;
}

.main-photo {
  min-height: 300px;
  background-image:
    radial-gradient(circle at 22% 18%, rgba(244, 182, 63, 0.78), transparent 24%),
    radial-gradient(circle at 80% 35%, rgba(47, 102, 178, 0.78), transparent 30%),
    linear-gradient(135deg, #133a31, #18202d 52%, #a43e35),
    url("https://images.unsplash.com/photo-1508098682722-e99c43a406b2?auto=format&fit=crop&w=1400&q=86");
}

.fan-photo {
  background-image:
    radial-gradient(circle at 18% 24%, rgba(232, 95, 76, 0.82), transparent 28%),
    radial-gradient(circle at 78% 20%, rgba(244, 182, 63, 0.78), transparent 30%),
    linear-gradient(135deg, #193d35, #25356a 56%, #e85f4c),
    url("https://images.unsplash.com/photo-1574629810360-7efbbe195018?auto=format&fit=crop&w=1000&q=86");
}

.pitch-photo {
  background-image:
    radial-gradient(circle at 20% 20%, rgba(22, 122, 90, 0.86), transparent 28%),
    radial-gradient(circle at 78% 22%, rgba(112, 87, 200, 0.76), transparent 30%),
    linear-gradient(135deg, #123328, #1c2547 52%, #2f66b2),
    url("https://images.unsplash.com/photo-1551958219-acbc608c6377?auto=format&fit=crop&w=1000&q=86");
}

.metric-card {
  min-height: 132px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.74);
}

.metric-card:nth-child(2) {
  background: rgba(255, 245, 220, 0.72);
}

.metric-card:nth-child(3) {
  background: rgba(238, 247, 255, 0.72);
}

.metric-card:nth-child(4) {
  background: rgba(241, 247, 239, 0.72);
}

.metric-card span,
.metric-card small {
  color: var(--muted);
}

.metric-card strong {
  font-size: 32px;
  line-height: 1;
}

.scoring-panel {
  margin: 0 0 18px;
  background: rgba(255, 255, 255, 0.78);
}

.scoring-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.scoring-grid article {
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(251, 250, 245, 0.76);
}

.scoring-grid strong,
.scoring-grid span {
  display: block;
}

.scoring-grid strong {
  font-size: 24px;
}

.scoring-grid span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.dashboard-layout,
.prediction-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.9fr);
  gap: 18px;
}

.panel {
  padding: 22px;
  background: rgba(255, 255, 255, 0.76);
}

.color-panel {
  background:
    linear-gradient(135deg, rgba(244, 182, 63, 0.18), transparent 45%),
    linear-gradient(45deg, rgba(47, 102, 178, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.78);
}

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

.section-toolbar {
  margin-bottom: 16px;
}

.status-pill {
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(251, 250, 245, 0.82);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.status-pill.live {
  border-color: rgba(22, 122, 90, 0.24);
  background: rgba(22, 122, 90, 0.1);
  color: var(--green-dark);
}

.timeline {
  margin-top: 22px;
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
}

.timeline-item > span {
  width: 14px;
  height: 14px;
  margin-top: 3px;
  border: 2px solid #b9c7bf;
  border-radius: var(--radius-pill);
  background: #ffffff;
}

.timeline-item.done > span {
  background: var(--green);
  border-color: var(--green);
}

.timeline-item.active > span {
  background: var(--coral);
  border-color: var(--coral);
}

.timeline-item strong {
  display: block;
  margin-bottom: 3px;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
}

.bracket-preview {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.bracket-preview div {
  display: grid;
  grid-template-columns: 84px 1fr 1fr;
  gap: 8px;
  align-items: center;
}

.bracket-preview span {
  color: var(--muted);
  font-size: 13px;
}

.bracket-preview strong {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(251, 250, 245, 0.76);
  overflow-wrap: anywhere;
}

.bracket-preview .champion {
  grid-template-columns: 84px 1fr;
}

.champion strong {
  border-color: rgba(232, 95, 76, 0.28);
  background: rgba(232, 95, 76, 0.08);
}

.segmented {
  display: inline-grid;
  grid-template-columns: repeat(12, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  overflow-x: auto;
  max-width: 100%;
}

.segment {
  height: 38px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  border-radius: var(--radius-pill);
}

.segment:last-child {
  border-right: 0;
}

.segment.active {
  background: var(--coral);
  color: #ffffff;
}

.match-list {
  display: grid;
  gap: 12px;
}

.prediction-main {
  display: grid;
  gap: 14px;
}

.general-predictions {
  background:
    linear-gradient(135deg, rgba(22, 122, 90, 0.1), transparent 44%),
    linear-gradient(45deg, rgba(232, 95, 76, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.78);
}

.general-grid,
.general-long-grid {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

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

.general-predictions label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.general-predictions input,
.general-predictions select,
.general-predictions textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.general-predictions input,
.general-predictions select {
  height: 44px;
  padding: 0 12px;
}

.team-picker {
  min-height: 182px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.66);
}

.team-picker-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.team-picker-controls input {
  height: 38px;
}

.team-picker-controls button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(251, 250, 245, 0.86);
  color: var(--ink);
  padding: 0 12px;
  font-weight: 900;
}

.team-picker-options {
  max-height: 154px;
  margin-top: 10px;
  display: grid;
  gap: 6px;
  overflow: auto;
  padding-right: 4px;
}

.team-picker-option {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid rgba(32, 41, 39, 0.08);
  border-radius: var(--radius-pill);
  background: rgba(251, 250, 245, 0.72);
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.team-picker-option input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.team-picker-empty {
  padding: 10px;
  color: var(--muted);
  font-size: 13px;
}

.match-date-divider {
  margin: 10px 0 2px;
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.match-card {
  min-height: 102px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 146px 1fr 96px;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.76);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.match-card:nth-child(2n) {
  background: rgba(255, 248, 232, 0.74);
}

.match-card:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 122, 90, 0.24);
  box-shadow: 0 16px 36px rgba(27, 38, 35, 0.1);
}

.team-name {
  font-weight: 900;
  min-width: 0;
  overflow-wrap: anywhere;
}

.match-meta {
  color: var(--muted);
  font-size: 13px;
}

.venue-meta {
  margin-top: 2px;
  color: #4f625c;
  font-weight: 800;
}

.score-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.score-inputs input,
.result-editor input {
  width: 58px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 900;
}

.score-inputs input:disabled,
.general-predictions input:disabled,
.general-predictions select:disabled,
.general-predictions textarea:disabled,
.team-picker button:disabled {
  opacity: 0.68;
  cursor: not-allowed;
  background: rgba(241, 238, 229, 0.8);
}

.lock-state {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(22, 122, 90, 0.2);
  border-radius: var(--radius-pill);
  background: rgba(22, 122, 90, 0.08);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.prediction-summary {
  align-self: start;
  position: sticky;
  top: 96px;
}

.prediction-lock-note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.prediction-lock-note.locked {
  color: var(--coral);
}

.prediction-stats {
  margin: 18px 0;
  display: grid;
  gap: 10px;
}

.prediction-stats div {
  min-height: 72px;
  padding: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(251, 250, 245, 0.76);
}

.prediction-stats span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.prediction-stats strong {
  font-size: 24px;
}

.standings {
  padding: 0;
  margin: 18px 0;
  display: grid;
  gap: 8px;
  list-style-position: inside;
}

.standings li {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(251, 250, 245, 0.76);
  padding: 11px 12px;
}

.field-label {
  display: block;
  margin: 14px 0 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

select,
.prediction-summary input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  padding: 0 10px;
}

.prediction-summary .primary-button {
  margin-top: 16px;
}

.table-wrap {
  background: rgba(255, 255, 255, 0.76);
  overflow: auto;
}

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

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

th {
  background: rgba(255, 243, 209, 0.78);
  color: #6d6250;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0;
}

td strong {
  display: block;
}

td span {
  color: var(--muted);
  font-size: 13px;
}

.admin-page {
  background:
    radial-gradient(circle at 18% 18%, rgba(112, 87, 200, 0.16), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(244, 182, 63, 0.18), transparent 25%),
    #f6f7f4;
}

.admin-shell {
  width: min(1720px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.admin-login {
  display: grid;
  gap: 24px;
}

.admin-login[hidden] {
  display: none;
}

.admin-login-card {
  padding: 26px;
  background: rgba(255, 255, 255, 0.78);
}

.admin-login-card h1 {
  font-size: 36px;
  line-height: 1.05;
}

.admin-login-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.login-form {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.login-form label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.login-form input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  padding: 0 12px;
}

.login-form button {
  margin-top: 6px;
}

.login-divider {
  margin: 18px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.login-divider::before,
.login-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

th:first-child {
  border-top-left-radius: var(--radius-md);
}

th:last-child {
  border-top-right-radius: var(--radius-md);
}

.admin-dashboard {
  display: grid;
  gap: 16px;
  width: 100%;
}

.admin-dashboard[hidden] {
  display: none;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(16px);
}

.admin-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(360px, 0.9fr) minmax(520px, 1.45fr);
  gap: 16px;
}

.admin-grid .wide-panel {
  grid-column: auto;
}

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

.vivid-panel {
  background:
    linear-gradient(135deg, rgba(232, 95, 76, 0.1), transparent 48%),
    rgba(255, 255, 255, 0.78);
}

.blue-panel {
  background:
    linear-gradient(135deg, rgba(47, 102, 178, 0.11), transparent 48%),
    rgba(255, 255, 255, 0.78);
}

.automation-list,
.phase-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.site-access-card {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.site-access-card strong,
.site-access-card span {
  display: block;
}

.site-access-card span {
  color: var(--muted);
  line-height: 1.45;
}

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

.admin-scoring-list div {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
}

.admin-scoring-list strong,
.admin-scoring-list span {
  display: block;
}

.admin-scoring-list span {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
}

.admin-match-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
  max-height: 430px;
  overflow: auto;
}

.admin-match-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.66);
}

.admin-match-row strong,
.admin-match-row span {
  display: block;
}

.admin-match-row span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.automation-list label {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
}

.automation-list input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.phase-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
  padding: 14px;
  text-align: left;
}

.phase-card.active {
  border-color: rgba(232, 95, 76, 0.34);
  background: rgba(232, 95, 76, 0.08);
}

.phase-card strong,
.phase-card span {
  display: block;
}

.phase-card span {
  margin-top: 4px;
  color: var(--muted);
}

.result-editor {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 70px 70px 1fr auto;
  gap: 10px;
  align-items: center;
}

.result-editor span {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.68);
  font-weight: 900;
}

.backup-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.backup-card {
  min-height: 210px;
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
}

.backup-card strong {
  font-size: 18px;
}

.backup-card span {
  color: var(--muted);
  line-height: 1.45;
}

.file-picker {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px dashed rgba(32, 41, 39, 0.28);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
}

#restoreBackupInput {
  display: none;
}

.backup-preview {
  min-height: 120px;
  margin: 14px 0 0;
  padding: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(24, 39, 34, 0.92);
  color: #e8fff4;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: #182722;
  color: #ffffff;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: 180ms ease;
  box-shadow: 0 18px 44px rgba(27, 38, 35, 0.18);
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.live-page {
  background: #f5f7fb;
  overflow-x: hidden;
}

.live-page .site-header {
  grid-template-columns: minmax(210px, 1fr) auto minmax(120px, 1fr);
  background: rgba(255, 255, 255, 0.92);
}

.live-page .customer-nav {
  grid-template-columns: repeat(4, minmax(86px, auto));
  border-radius: 8px;
}

.live-page .nav-tab {
  border-radius: 6px;
}

.live-page .nav-tab.active {
  background: #0b5cff;
  color: #ffffff;
}

.live-page main {
  width: min(1320px, calc(100% - 40px));
}

.live-hero {
  min-height: 520px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(7, 19, 39, 0.94), rgba(9, 30, 64, 0.72) 52%, rgba(9, 30, 64, 0.42)),
    url("https://images.unsplash.com/photo-1522778119026-d647f0596c20?auto=format&fit=crop&w=1900&q=88")
      center / cover;
}

.live-hero::after {
  background:
    linear-gradient(180deg, rgba(11, 92, 255, 0.1), transparent 42%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.35), transparent 55%);
}

.live-board {
  min-height: 430px;
  transform: none;
}

.next-match-card strong {
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1;
}

.live-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.72fr);
  gap: 18px;
  align-items: start;
}

.live-controls {
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.fixture-search {
  min-width: min(360px, 100%);
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.fixture-search input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 12px;
  font-weight: 800;
}

.date-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 4px;
}

.date-rail button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #4a5855;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.date-rail button.active {
  border-color: #0b5cff;
  background: rgba(11, 92, 255, 0.1);
  color: #0b4ac7;
}

.live-match-card {
  min-height: 88px;
  grid-template-columns: 118px minmax(150px, 1fr) 150px minmax(150px, 1fr) minmax(190px, 0.8fr);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.live-match-card:nth-child(2n) {
  background: #ffffff;
}

.match-status-cell {
  display: grid;
  gap: 7px;
  justify-items: start;
}

.match-status-cell small,
.match-extra small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.team-cell {
  min-width: 0;
}

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

.score-display {
  min-height: 52px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  justify-items: center;
  border: 1px solid rgba(11, 92, 255, 0.14);
  border-radius: 8px;
  background: #f5f8ff;
}

.score-display strong {
  font-size: 30px;
  line-height: 1;
}

.score-display span {
  color: #6b7785;
  font-weight: 900;
}

.score-display .kickoff-time {
  grid-column: 1 / -1;
  color: #17253f;
  font-size: 17px;
}

.match-extra {
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.match-extra > span {
  color: #17253f;
  font-weight: 900;
}

.status-live {
  border-color: rgba(232, 95, 76, 0.32);
  background: rgba(232, 95, 76, 0.12);
  color: #b73525;
}

.status-finished {
  border-color: rgba(22, 122, 90, 0.26);
  background: rgba(22, 122, 90, 0.1);
  color: var(--green-dark);
}

.status-upcoming {
  border-color: rgba(11, 92, 255, 0.2);
  background: rgba(11, 92, 255, 0.08);
  color: #0b4ac7;
}

.status-special {
  border-color: rgba(244, 182, 63, 0.42);
  background: rgba(244, 182, 63, 0.14);
  color: #805704;
}

.state-live {
  border-color: rgba(232, 95, 76, 0.36);
  box-shadow: 0 14px 36px rgba(232, 95, 76, 0.1);
}

.live-summary {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 12px 16px;
  }

  .customer-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    grid-template-columns: repeat(3, 1fr);
  }

  .live-page .customer-nav {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero,
  .dashboard-layout,
  .prediction-layout,
  .live-layout,
  .admin-shell,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .hero-board {
    min-height: 360px;
    transform: none;
  }

  .countdown-card {
    grid-template-columns: 1fr;
  }

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

  .photo-story {
    grid-template-columns: 1fr;
  }

  .photo-tile,
  .main-photo {
    min-height: 260px;
  }

  .general-grid,
  .general-long-grid {
    grid-template-columns: 1fr;
  }

  .admin-grid .wide-panel {
    grid-column: auto;
  }

  .admin-grid .backup-panel {
    grid-column: auto;
  }

  .prediction-summary {
    position: static;
  }

  .live-match-card {
    grid-template-columns: 96px minmax(0, 1fr) 128px minmax(0, 1fr);
  }

  .match-extra {
    grid-column: 2 / -1;
    justify-items: start;
    text-align: left;
  }

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

@media (max-width: 680px) {
  .site-header {
    padding: 12px 14px;
  }

  .site-header .login-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  main,
  .admin-shell {
    width: min(100% - 28px, 1200px);
    padding-top: 18px;
  }

  .hero {
    min-height: auto;
  }

  .live-hero {
    display: block;
    grid-template-columns: minmax(0, 1fr);
    padding: 28px 18px;
  }

  .hero-copy,
  .hero-copy h1,
  .hero-copy > p:not(.eyebrow) {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .hero-copy h1 {
    font-size: 32px;
    line-height: 1.05;
    text-wrap: auto;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 16px;
    line-height: 1.5;
  }

  .hero-tags {
    gap: 7px;
  }

  .hero-tags span {
    min-height: 30px;
    padding: 0 10px;
    font-size: 11px;
  }

  .live-board {
    min-width: 0;
    margin-top: 18px;
  }

  .live-page .customer-nav {
    width: 100%;
    min-width: 0;
  }

  .live-page .nav-tab {
    padding: 0 8px;
    font-size: 14px;
  }

  .hero-actions,
  .section-toolbar,
  .panel-header,
  .admin-topbar,
  .admin-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .hero-board,
  .status-grid,
  .countdown-units,
  .admin-match-row {
    grid-template-columns: 1fr;
  }

  .live-page .customer-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .match-strip {
    grid-column: auto;
  }

  .match-card {
    grid-template-columns: 1fr;
  }

  .live-match-card {
    min-height: 0;
  }

  .away-team,
  .match-extra {
    justify-items: start;
    text-align: left;
  }

  .score-display {
    width: 100%;
  }

  .score-inputs {
    max-width: 170px;
  }

  .result-editor {
    grid-template-columns: 1fr 70px 70px 1fr;
  }

  .result-editor .primary-button {
    grid-column: 1 / -1;
  }
}

/* FIFA-style live tracking redesign */
.live-page {
  --nav-bg: #020d2b;
  --nav-bg-2: #051845;
  --fifa-blue: #0057ff;
  --fifa-red: #e50914;
  --fifa-green: #07883d;
  --fifa-text: #06122e;
  --fifa-muted: #667188;
  --fifa-line: #d9e0ec;
  --fifa-soft: #f6f8fc;
  background: #ffffff;
  color: var(--fifa-text);
  overflow-x: hidden;
}

.fifa-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 68px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  background: linear-gradient(90deg, var(--nav-bg), var(--nav-bg-2));
  color: #ffffff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.fifa-brand {
  min-height: 68px;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 0 32px;
  font-weight: 950;
  white-space: nowrap;
}

.fifa-brand > strong {
  font-size: 31px;
  letter-spacing: 0;
}

.trophy-mark {
  min-width: 35px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 18px 18px 8px 8px;
  font-size: 11px;
  font-weight: 950;
}

.fifa-brand > span:last-child {
  font-size: 20px;
}

.fifa-nav {
  height: 68px;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}

.fifa-nav::-webkit-scrollbar {
  display: none;
}

.fifa-nav a {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  padding: 0 22px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 850;
}

.fifa-nav a.active {
  background: var(--fifa-blue);
  color: #ffffff;
}

.fifa-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
}

.fifa-actions button,
.language-switch {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 900;
}

.fifa-actions button {
  padding: 0 14px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
}

.language-switch button {
  min-height: 30px;
  border: 0;
  background: transparent;
  padding: 0 10px;
  font-weight: 900;
}

.language-switch button.active {
  background: #ffffff;
  color: var(--nav-bg);
}

.live-page main {
  width: min(100%, 1600px);
  padding: 0 32px 42px;
}

.score-shell {
  padding-top: 28px;
  min-width: 0;
}

.score-heading {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.score-heading h1 {
  font-size: clamp(32px, 3vw, 42px);
  line-height: 1.05;
  color: var(--fifa-text);
}

.score-title {
  display: grid;
  gap: 8px;
}

.service-badge {
  width: fit-content;
  border: 1px solid rgba(0, 87, 255, 0.18);
  border-radius: 999px;
  background: #eef3ff;
  color: var(--fifa-blue);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 950;
}

.score-heading span {
  color: var(--fifa-muted);
  font-size: 13px;
  font-weight: 850;
}

.score-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 384px;
  gap: 24px;
  align-items: start;
}

.score-main {
  min-width: 0;
}

.filter-toolbar {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--fifa-line);
}

.filter-group,
.filter-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-chip,
.tool-button,
.fixture-search input,
.date-arrow,
.score-sidebar select {
  height: 40px;
  border: 1px solid var(--fifa-line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--fifa-text);
  padding: 0 18px;
  font-weight: 850;
}

.filter-chip.active {
  border-color: var(--fifa-blue);
  background: var(--fifa-blue);
  color: #ffffff;
}

.chip-dot {
  width: 12px;
  height: 12px;
  margin-right: 8px;
  display: inline-block;
  border-radius: 50%;
  vertical-align: -1px;
}

.chip-dot.red {
  background: var(--fifa-red);
}

.chip-dot.green {
  border: 2px solid var(--fifa-green);
}

.chip-dot.clock {
  border: 2px solid var(--fifa-text);
}

.fixture-search {
  display: grid;
  gap: 4px;
  color: var(--fifa-muted);
  font-size: 11px;
  font-weight: 900;
}

.fixture-search input {
  width: min(260px, 100%);
}

.date-rail-wrap {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--fifa-line);
}

.date-arrow {
  width: 48px;
  padding: 0;
  background: var(--fifa-soft);
  font-size: 28px;
}

.date-rail {
  min-width: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(86px, 1fr);
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.date-rail::-webkit-scrollbar {
  display: none;
}

.date-rail button {
  min-height: 48px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--fifa-text);
  padding: 7px 10px;
  display: grid;
  place-items: center;
  gap: 2px;
  font-size: 12px;
}

.date-rail button span {
  font-weight: 900;
}

.date-rail button strong {
  font-size: 11px;
}

.date-rail button.active {
  background: var(--fifa-blue);
  color: #ffffff;
}

.match-list {
  margin-top: 20px;
  gap: 14px;
}

.match-block {
  border: 1px solid var(--fifa-line);
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
}

.match-block + .match-block {
  margin-top: 14px;
}

.match-block-title {
  min-height: 42px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 950;
}

.block-dot {
  width: 12px;
  height: 12px;
  display: inline-block;
  border-radius: 50%;
  background: var(--fifa-blue);
}

.match-block.live .block-dot {
  background: var(--fifa-red);
}

.match-block.finished .block-dot {
  background: var(--fifa-green);
}

.match-block.date .block-dot {
  background: var(--fifa-blue);
}

.match-row {
  min-height: 74px;
  display: grid;
  grid-template-columns: minmax(160px, 0.78fr) minmax(210px, 1fr) 116px minmax(210px, 1fr);
  gap: 16px;
  align-items: center;
  padding: 0 16px;
  border-top: 1px solid var(--fifa-line);
}

.match-time {
  display: grid;
  gap: 4px;
}

.match-time strong {
  color: var(--fifa-red);
  font-size: 18px;
}

.match-time span {
  color: var(--fifa-muted);
  font-size: 12px;
  line-height: 1.3;
}

.team-side {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

.team-side strong {
  min-width: 0;
  color: var(--fifa-text);
  font-size: 17px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.away-side {
  justify-content: flex-end;
}

.flag {
  width: 48px;
  height: 32px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  background: var(--fifa-soft);
}

.flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flag-fallback {
  font-size: 12px;
  font-weight: 950;
}

.mini-flag {
  width: 22px;
  height: 15px;
  flex: 0 0 22px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.mini-flag .flag {
  width: 100% !important;
  height: 100% !important;
  box-shadow: none;
}

.mini-flag .flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.score-display {
  min-height: 38px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  gap: 5px;
  border-radius: 6px;
  background: #061a48;
  color: #ffffff;
  padding: 4px 10px;
}

.state-live .score-display {
  background: linear-gradient(180deg, #f01822, #c90012);
}

.score-display strong,
.score-display span {
  color: #ffffff;
  font-size: 20px;
  font-weight: 950;
}

.score-display .kickoff-time {
  grid-column: 1 / -1;
  color: var(--fifa-blue);
  font-size: 16px;
  background: transparent;
}

.score-display:has(.kickoff-time) {
  background: transparent;
  color: var(--fifa-blue);
}

.score-display small {
  grid-column: 1 / -1;
  color: var(--fifa-muted);
  font-size: 11px;
  font-weight: 800;
}

.score-sidebar {
  display: grid;
  gap: 24px;
  padding-left: 22px;
  border-left: 1px solid var(--fifa-line);
}

.side-card {
  border: 1px solid var(--fifa-line);
  border-radius: 6px;
  background: #ffffff;
  padding: 22px 20px;
}

.side-card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.side-card h2 {
  margin: 0;
  font-size: 18px;
}

.side-card a {
  color: var(--fifa-blue);
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.score-sidebar select {
  width: 132px;
  margin-bottom: 18px;
}

.standings-table {
  display: grid;
  gap: 0;
}

.standing-head,
.standing-row {
  display: grid;
  grid-template-columns: 22px minmax(130px, 1fr) repeat(6, 22px);
  gap: 4px;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid var(--fifa-line);
  font-size: 13px;
}

.standing-head {
  min-height: 32px;
  color: var(--fifa-muted);
  font-size: 11px;
  font-weight: 950;
}

.standing-row strong {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.standing-row .flag {
  width: 22px !important;
  height: 15px !important;
  flex: 0 0 22px !important;
}

.standing-row .flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-shell {
  padding-top: 28px;
}

.content-heading {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.content-heading h1 {
  color: var(--fifa-text);
  font-size: clamp(32px, 3vw, 42px);
  line-height: 1.05;
}

.content-heading span,
.content-link {
  color: var(--fifa-muted);
  font-size: 14px;
  font-weight: 850;
}

.content-link {
  color: var(--fifa-blue);
}

.content-panel,
.group-card,
.team-card,
.feature-grid article,
.stat-card {
  border: 1px solid var(--fifa-line);
  border-radius: 6px;
  background: #ffffff;
}

.fixture-table {
  display: grid;
}

.fixture-row {
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(126px, 0.8fr) minmax(160px, 1fr) 88px minmax(160px, 1fr) 82px 104px;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--fifa-line);
}

.fixture-row:last-child {
  border-bottom: 0;
}

.fixture-row > div {
  min-width: 0;
}

.fixture-row > div:first-child,
.team-card,
.stat-card {
  display: grid;
  gap: 5px;
}

.fixture-row strong,
.team-card strong {
  color: var(--fifa-text);
  font-weight: 900;
}

.fixture-row span,
.team-card span,
.team-card small,
.feature-grid span,
.fixture-stage {
  color: var(--fifa-muted);
  font-size: 12px;
  line-height: 1.35;
}

.fixture-row > div:nth-child(2),
.fixture-row > div:nth-child(4) {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fixture-score {
  min-height: 36px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #061a48;
  color: #ffffff;
  font-size: 18px;
  font-weight: 950;
}

.fixture-score.score-time {
  min-height: 32px;
  background: #eef3ff;
  color: var(--fifa-blue);
  font-size: 13px;
  font-weight: 900;
}

.fixture-state {
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--fifa-soft);
  color: var(--fifa-text);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.fixture-state.live {
  background: rgba(229, 9, 20, 0.1);
  color: var(--fifa-red);
}

.fixture-state.finished {
  background: rgba(7, 136, 61, 0.1);
  color: var(--fifa-green);
}

.group-grid,
.team-grid,
.feature-grid,
.stats-grid {
  display: grid;
  gap: 16px;
}

.group-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.group-card {
  padding: 16px;
}

.group-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.group-card h2 {
  margin: 0;
  font-size: 18px;
}

.standing-head.compact,
.standing-row.compact {
  grid-template-columns: 22px minmax(110px, 1fr) 28px 34px 28px;
}

.team-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-card {
  min-height: 126px;
  padding: 16px;
  align-content: start;
}

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

.team-card-title strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid article {
  min-height: 140px;
  padding: 20px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.feature-grid strong {
  color: var(--fifa-text);
  font-size: 22px;
}

.stats-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.stat-card {
  min-height: 112px;
  padding: 18px;
  align-content: center;
}

.stat-card span {
  color: var(--fifa-muted);
  font-size: 13px;
  font-weight: 900;
}

.stat-card strong {
  color: var(--fifa-text);
  font-size: 34px;
  line-height: 1;
}

@media (max-width: 1200px) {
  .fifa-header {
    grid-template-columns: 1fr auto;
  }

  .fifa-nav {
    grid-column: 1 / -1;
    order: 3;
    height: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .score-layout {
    grid-template-columns: 1fr;
  }

  .score-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-left: 0;
    border-left: 0;
  }

  .group-grid,
  .team-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .fifa-header,
  .fifa-nav,
  .score-shell {
    min-width: 0;
  }

  .fifa-brand {
    min-width: 0;
    gap: 12px;
    padding: 0 16px;
  }

  .fifa-brand > strong {
    font-size: 24px;
  }

  .trophy-mark {
    display: none;
  }

  .fifa-brand > span:last-child {
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .fifa-actions {
    padding: 0 12px;
  }

  .fifa-nav {
    width: 100%;
    max-width: 100vw;
    scroll-snap-type: x proximity;
  }

  .fifa-nav a {
    padding: 0 20px;
    scroll-snap-align: start;
  }

  .live-page main {
    padding: 0 14px 28px;
  }

  .filter-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-group,
  .filter-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fixture-search {
    grid-column: 1 / -1;
  }

  .fixture-search input,
  .filter-chip,
  .tool-button {
    width: 100%;
  }

  .date-rail-wrap {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .score-sidebar {
    grid-template-columns: 1fr;
  }

  .match-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
    overflow: hidden;
  }

  .match-time {
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .team-side,
  .away-side {
    justify-content: flex-start;
  }

  .away-side {
    flex-direction: row;
  }

  .team-side strong {
    flex: 0 1 auto;
    max-width: 100%;
  }

  .away-side .flag {
    order: -1;
  }

  .score-display {
    width: min(150px, 100%);
    justify-self: center;
  }

  .standing-head,
  .standing-row {
    grid-template-columns: 22px minmax(90px, 1fr) repeat(6, 24px);
    font-size: 12px;
  }

  .content-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .fixture-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .fixture-row > div:nth-child(4) {
    justify-content: flex-start;
  }

  .fixture-score {
    width: min(140px, 100%);
  }

  .group-grid,
  .team-grid,
  .feature-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .fifa-header {
    grid-template-columns: 1fr;
  }

  .score-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-group,
  .filter-tools {
    grid-template-columns: 1fr;
  }

  .fifa-actions {
    display: none;
  }

  .standing-head,
  .standing-row {
    grid-template-columns: 22px minmax(110px, 1fr) 24px 24px 24px 24px 28px 24px;
    overflow-x: auto;
  }

  .match-block-title {
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }

  .match-row {
    min-height: 0;
    gap: 9px;
    padding: 12px;
  }

  .match-time strong {
    font-size: 15px;
  }

  .team-side {
    gap: 10px;
  }

  .team-side strong {
    font-size: 15px;
    line-height: 1.18;
  }

  .flag {
    width: 36px;
    height: 24px;
  }

  .score-display {
    width: min(116px, 100%);
    min-height: 32px;
    gap: 3px;
    padding: 3px 7px;
  }

  .score-display strong,
  .score-display span {
    font-size: 16px;
  }

  .score-display .kickoff-time {
    font-size: 13px;
  }

  .score-display small {
    font-size: 9px;
  }
}
