/* Ninety — football predictions, light surface.
   Outfit carries the headline weight, Manrope everything that gets read in a
   hurry. Green is the brand, red appears only on a missed call. */

:root {
  --bg: #F1F4F0;
  --card: #FFFFFF;
  --ink: #0D1B16;
  --muted: #5F7168;
  --faint: #637569;

  --line: #E3E9E4;
  --line-2: #EEF2EE;

  --green-900: #06301F;
  --green-800: #0A4029;
  --green-700: #0C5C3C;
  --green-600: #10875A;
  --green-100: #E2F3E9;
  --green-50: #fbfbfb;

  --red: #DC2626;
  --red-50: #FEF2F2;

  --display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --text: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --shadow: 0 1px 2px rgba(13, 27, 22, 0.04), 0 10px 28px rgba(13, 27, 22, 0.05);
  --radius: 20px;

  --max: 1280px;
  --accent: #C7F04B;
  --accent-ink: #0F2E1C;
  --page-px: clamp(16px, 3.5vw, 36px);
  --row: 70px 190px minmax(260px, 1fr) 90px 70px 100px 88px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  max-width: 100%;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--green-600);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- top bar ---------- */

.topbar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--green-900, #06301F);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  width: 100%;
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page-px);
  height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  margin-right: 0;
  align-items: center;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.68);
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 140ms ease, background-color 140ms ease;
}

.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-links a.is-active { color: var(--green-900); background: #D8F0E2; }

.picks {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 7px 8px 7px 14px;
  cursor: pointer;
  transition: background-color 140ms ease;
}

.picks:hover { background: rgba(255, 255, 255, 0.18); }

.picks b {
  font-size: 12px;
  font-weight: 700;
  color: var(--green-900);
  background: #D8F0E2;
  border-radius: 999px;
  min-width: 22px;
  padding: 2px 6px;
  text-align: center;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  font-family: var(--text);
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 120ms ease;
}

.btn:active { transform: translateY(1px); }

.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { background: #D6F86A; }

.btn-outline {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  backdrop-filter: blur(8px);
}

.btn-outline:hover { background: rgba(255, 255, 255, 0.16); }

.btn-green { background: var(--green-700); color: #fff; }
.btn-green:hover { background: var(--green-800); }

.btn-block { width: 100%; margin-top: 20px; }

/* ---------- hero ---------- */

.hero {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.hero-card {
  position: relative;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  background: var(--green-900);
  min-height: 280px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px var(--page-px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 36px;
  box-sizing: border-box;
  width: 100%;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  filter: saturate(1.08) brightness(1.05);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(96deg, rgba(6, 48, 31, 0.93) 0%, rgba(6, 48, 31, 0.78) 38%, rgba(6, 48, 31, 0.34) 78%, rgba(6, 48, 31, 0.2) 100%),
    linear-gradient(0deg, rgba(6, 48, 31, 0.35) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
}

.eyebrow {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
}

h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 10px 0 0;
}

.hero-lede {
  margin: 8px 0 0;
  max-width: 44ch;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-actions .btn {
  height: 38px;
  padding: 0 18px;
  font-size: 13px;
}

/* ---------- featured pick ---------- */

.pick-card {
  position: relative;
  z-index: 1;
  background: var(--card);
  border-radius: 16px;
  padding: 16px 18px;
  color: var(--ink);
  box-shadow: 0 16px 36px rgba(4, 30, 20, 0.22);
}

.pick-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  white-space: nowrap;
}

.pill-soft { background: var(--green-50); color: var(--green-700); }

.pick-meta { font-size: 11.5px; color: var(--faint); }

.pick-fixture {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
}

.pick-team.away { color: var(--muted); }

.pick-vs {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  font-family: var(--text);
}

.crest {
  width: 24px;
  height: 24px;
  flex: none;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--club, #ccc);
  color: var(--crest-ink, #fff);
  font-family: var(--text);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.crest-lg { width: 30px; height: 30px; border-radius: 8px; font-size: 10px; }

.pick-call {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
}

.pick-call b {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.prob-bar {
  display: flex;
  gap: 3px;
  height: 6px;
  margin-top: 8px;
  border-radius: 999px;
  overflow: hidden;
}

.prob-bar i { display: block; background: #E4EBE5; border-radius: 2px; }
.prob-bar i.on { background: var(--green-600); }

.prob-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 10.5px;
  color: var(--faint);
}

.pick-card .btn-block {
  margin-top: 12px;
  height: 38px;
  font-size: 13px;
}

.prob-legend .on { color: var(--green-700); font-weight: 700; }

/* ---------- stats ---------- */

.stats {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat b {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat b.dim { color: var(--faint); }
.stat span { font-size: 12px; color: var(--muted); }

/* ---------- board ---------- */

.board {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--page-px) 0;
  scroll-margin-top: 80px;
}

.board-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  padding: 28px 28px 24px;
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.board-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  color: #111827;
  letter-spacing: -0.02em;
  margin: 0;
}

.board-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: #6B7280;
  font-weight: 500;
}

.board-dates-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dates {
  display: flex;
  gap: 8px;
  align-items: center;
}

.date {
  width: 52px;
  padding: 6px 0 5px;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  background: #FFFFFF;
  text-align: center;
  cursor: pointer;
  font: inherit;
  transition: all 140ms ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.date:hover {
  border-color: #D1D5DB;
  background: #F9FAFB;
}

.date .date-month {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6B7280;
  line-height: 1.1;
}

.date .date-day {
  display: block;
  margin-top: 3px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  color: #1F2937;
  line-height: 1.1;
}

.date[aria-selected="true"] {
  background: #B9382A;
  border-color: #B9382A;
  color: #FFFFFF;
}

.date[aria-selected="true"] .date-month {
  color: rgba(255, 255, 255, 0.85);
}

.date[aria-selected="true"] .date-day {
  color: #FFFFFF;
}

.date-cal-btn {
  width: 44px;
  height: 48px;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  background: #FFFFFF;
  color: #6B7280;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 140ms ease;
  flex: none;
}

.date-cal-btn:hover {
  border-color: #D1D5DB;
  color: #111827;
  background: #F9FAFB;
}

/* markets */

.markets {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  margin-top: 22px;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.markets::-webkit-scrollbar {
  display: none;
}

.market {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  background: #F1F3F5;
  border: 1px solid transparent;
  border-radius: 9999px;
  padding: 8px 18px;
  cursor: pointer;
  white-space: nowrap;
  flex: none;
  transition: all 140ms ease;
}

.market:hover {
  background: #E5E7EB;
  color: #111827;
}

.market[aria-selected="true"] {
  background: #063A34;
  color: var(--accent, #C7F04B);
  font-weight: 700;
}

/* leagues: quiet row */

.leagues {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-bottom: 4px;
  border-bottom: none;
}

.league {
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: #5F7168;
  background: #EEF2EE;
  border: 1px solid transparent;
  border-radius: 9999px;
  padding: 6px 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 140ms ease;
}

.league:hover {
  background: #E2ECE5;
  color: #06301F;
  text-decoration: none;
}

.league[aria-pressed="true"],
.league.active {
  background: #06301F;
  border-color: #06301F;
  color: #C7F04B;
  font-weight: 700;
}

/* ---------- table ---------- */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 8px;
}

.table-head {
  display: grid;
  grid-template-columns: var(--row);
  gap: 12px;
  align-items: center;
  padding: 16px 14px 12px;
  border-bottom: 1px solid #E5E7EB;
  font-size: 12px;
  font-weight: 500;
  color: #6B7280;
  min-width: 820px;
}

.th-time { text-align: left; }
.th-league { text-align: left; }
.th-match { text-align: center; }
.th-tip { text-align: center; }
.th-odds { text-align: center; }
.th-prob { text-align: center; }
.th-action { text-align: right; }

.num { text-align: right; }

.matches {
  list-style: none;
  margin: 0;
  padding: 4px 0 0;
  min-width: 820px;
}

.match {
  display: grid;
  grid-template-columns: var(--row);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  margin: 2px 0;
  transition: background-color 140ms ease;
  border: none;
  cursor: pointer;
}

.match:nth-child(odd) {
  background: #FFFFFF;
}

.match:nth-child(even) {
  background: #F4F6F8;
}

.match:hover {
  background: #E8EEF4;
}

.m-fixture-link {
  display: contents;
  color: inherit;
  text-decoration: none;
}

.m-time {
  font-size: 13.5px;
  font-weight: 600;
  color: #374151;
}

.m-league {
  font-size: 13px;
  font-weight: 500;
  color: #4B5563;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-fixture {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.m-fixture-side {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.m-fixture-home {
  justify-content: flex-end;
}

.m-fixture-away {
  justify-content: flex-start;
}

.m-team {
  font-family: var(--display);
  font-size: 13.5px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-team.home {
  text-align: right;
}

.m-team.away {
  text-align: left;
}

.m-vs {
  font-size: 11px;
  font-weight: 600;
  color: #9CA3AF;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex: none;
  padding: 0 4px;
  text-align: center;
}

.crest {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-family: var(--display);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--club, #1A1A1A);
  color: var(--crest-ink, #FFFFFF);
  flex: none;
  overflow: hidden;
}

.crest img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.crest.crest-logo {
  background: transparent;
}

.crest-lg {
  width: 44px;
  height: 44px;
  font-size: 15px;
}

.m-tip {
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-odds {
  font-size: 13.5px;
  font-weight: 700;
  color: #16A34A;
  text-align: center;
}

.m-prob {
  display: flex;
  align-items: center;
  justify-content: center;
}

.confidence-badge {
  background: #D1FADF;
  color: #027A48;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  text-align: center;
}

.m-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.add {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  background: transparent;
  border: 1px solid #E5E7EB;
  border-radius: 50%;
  color: #9CA3AF;
  cursor: pointer;
  transition: all 140ms ease;
}

.add:hover {
  background: #063A34;
  border-color: #063A34;
  color: #FFFFFF;
}

.add[aria-pressed="true"] {
  background: #D1FADF;
  border-color: #A6F4C5;
  color: #027A48;
}

.add svg { width: 12px; height: 12px; }

/* Bottom Footer Buttons */

.board-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #E5E7EB;
  gap: 12px;
  flex-wrap: wrap;
}

.board-footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.board-footer-right {
  display: flex;
  align-items: center;
}

.btn-board-tg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0A6FA8;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color 140ms ease;
}

.btn-board-tg:hover {
  background: #085D8C;
  color: #FFFFFF;
}

.btn-board-banker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #B9382A;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: background-color 140ms ease;
}

.btn-board-banker:hover {
  background: #A02E22;
  color: #FFFFFF;
}

.btn-board-banker .arr,
.btn-board-all .arr {
  font-size: 16px;
  line-height: 1;
}

.btn-board-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  color: #374151;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 140ms ease;
}

.btn-board-all:hover {
  border-color: #D1D5DB;
  background: #F9FAFB;
  color: #111827;
}

.empty {
  padding: 40px 0;
  text-align: center;
  color: var(--faint);
  font-size: 14px;
  border-bottom: 1px solid var(--line-2);
}

/* ---------- upcoming picks ---------- */

.upcoming-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--page-px) 0;
}

.upcoming-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  padding: 24px 28px;
}

.upcoming-title {
  text-align: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
  color: #111827;
  letter-spacing: -0.015em;
  margin: 0;
}

.upcoming-scroll {
  width: 100%;
  overflow: hidden;
  padding: 20px 0 8px;
  position: relative;
  mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}

.upcoming-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: upcomingMarquee 100s linear infinite;
  will-change: transform;
}

.upcoming-track:hover {
  animation-play-state: paused;
}

@keyframes upcomingMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.upcoming-item {
  flex: 0 0 310px;
  width: 310px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.upcoming-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -2px rgba(0, 0, 0, 0.06);
}

.upcoming-item-fixture {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.upcoming-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  text-align: center;
  min-width: 0;
}

.upcoming-crest {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: contain;
  background: transparent;
  flex: none;
}

.upcoming-team-name {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}

.upcoming-time-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: none;
}

.upcoming-time {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  line-height: 1.1;
}

.upcoming-date {
  font-size: 12px;
  font-weight: 500;
  color: #6B7280;
  margin-top: 3px;
}

.upcoming-item-call {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.upcoming-tip-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
}

.upcoming-conf-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #D1FADF;
  color: #027A48;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- split section ---------- */

.split {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--page-px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 12px;
  scroll-margin-top: 80px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

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

h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  margin: 0;
}

.text-link { font-size: 12.5px; font-weight: 700; color: var(--green-700); }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.card-sub {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  max-width: 46ch;
}

.ledger { list-style: none; margin: 16px 0 0; padding: 0; }

.ledger li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 46px 88px;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line-2);
  font-size: 12.5px;
}

.res {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 4px 0;
  border-radius: 999px;
}

.res.win { color: var(--green-700); background: var(--green-50); }
.res.loss { color: var(--red); background: var(--red-50); }

.ledger .fixture { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ledger .score { font-weight: 700; text-align: right; }
.ledger .graded { font-size: 11px; color: var(--faint); text-align: right; }

/* standings */

.standings { width: 100%; border-collapse: collapse; margin-top: 12px; }

.standings th {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: left;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line);
}

.standings td {
  padding: 9px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--line-2);
}

.standings tr:last-child td { border-bottom: 0; }
.standings td:first-child { color: var(--faint); width: 22px; }
.standings .crest { margin-right: 8px; vertical-align: middle; width: 22px; height: 22px; border-radius: 6px; font-size: 7.5px; }
.standings .strong { font-weight: 700; }

/* ---------- method ---------- */

.method {
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px var(--page-px) 0;
  scroll-margin-top: 80px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 16px;
}

.method h4 {
  font-family: var(--display);
  font-size: 14.5px;
  font-weight: 700;
  margin: 0 0 6px;
}

.method p { margin: 0; font-size: 13px; line-height: 1.65; color: var(--muted); }

/* ---------- footer ---------- */

.foot {
  margin-top: 44px;
  border-top: 1px solid var(--line);
  background: #EBEFEA;
}

.foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--page-px) 36px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

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

.foot p {
  margin: 8px 0 0;
  max-width: 52ch;
  font-size: 11.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
}

.foot-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.foot-links a:hover { color: var(--ink); }

/* ---------- responsive ---------- */

@media (max-width: 1060px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 36px var(--page-px);
  }

  .pick-card { max-width: 400px; }

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

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

  .method-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }

}

@media (max-width: 860px) {
  .nav-links { display: none; }

  .topbar-inner { gap: 12px; }

  .board-card { padding: 18px 14px; }

  .board-head { flex-direction: column; align-items: flex-start; gap: 14px; }

  .board-dates-wrap { width: 100%; overflow-x: auto; padding-bottom: 2px; }

  .dates { overflow-x: auto; padding-bottom: 2px; }

  .board-footer { flex-direction: column; align-items: stretch; }
  .board-footer-left { width: 100%; display: flex; gap: 8px; }
  .board-footer-left .btn-board-tg,
  .board-footer-left .btn-board-banker { flex: 1; text-align: center; }
  .board-footer-right { width: 100%; }
  .btn-board-all { width: 100%; justify-content: center; }

  .ledger li { grid-template-columns: 50px minmax(0, 1fr) 44px; }
  .ledger .graded { display: none; }

  /* Match Card Responsive Layout for Mobile & Medium Screens */
  .table-wrap {
    overflow-x: visible !important;
    min-width: 0 !important;
    width: 100% !important;
    margin-top: 10px !important;
  }

  .table-head {
    display: grid !important;
    grid-template-columns: auto 1fr 58px 48px 62px !important;
    gap: 6px !important;
    align-items: center !important;
    padding: 10px 12px !important;
    border-bottom: 1px solid #E5E7EB !important;
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .table-head .th-time,
  .table-head .th-league,
  .table-head .th-action {
    display: none !important;
  }

  .table-head .th-match {
    grid-column: 1 / 3 !important;
    text-align: left !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #6B7280 !important;
  }

  .table-head .th-tip {
    grid-column: 3 !important;
    text-align: center !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #6B7280 !important;
  }

  .table-head .th-odds {
    grid-column: 4 !important;
    text-align: center !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #6B7280 !important;
  }

  .table-head .th-prob {
    grid-column: 5 !important;
    text-align: center !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #6B7280 !important;
  }

  .prob-desktop { display: none !important; }
  .prob-mobile { display: inline !important; }

  .matches {
    min-width: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .match:not(.rw-card) {
    display: grid !important;
    grid-template-columns: auto 1fr 58px 48px 62px !important;
    grid-template-rows: auto auto !important;
    row-gap: 6px !important;
    column-gap: 6px !important;
    align-items: center !important;
    padding: 12px 12px !important;
    border-radius: 8px !important;
    margin: 2px 0 !important;
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-bottom: 1px solid rgba(229, 231, 235, 0.6) !important;
  }

  .match:not(.rw-card):nth-child(odd) { background: #FFFFFF; }
  .match:not(.rw-card):nth-child(even) { background: #F4F6F8; }

  .match .m-time {
    grid-row: 1 !important;
    grid-column: 1 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #374151 !important;
    white-space: nowrap !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 4px !important;
  }

  .match .m-date,
  .match .m-date-val {
    display: inline !important;
    font-size: 11px !important;
    color: #6B7280 !important;
  }

  .match .m-league {
    grid-row: 1 !important;
    grid-column: 2 / -1 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #4B5563 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: left !important;
    padding-left: 4px !important;
  }

  .match .m-fixture {
    grid-row: 2 !important;
    grid-column: 1 / 3 !important;
    width: 100% !important;
    display: block !important;
    min-width: 0 !important;
  }

  .match .m-fixture-link {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    width: 100% !important;
    text-decoration: none !important;
  }

  .match .m-fixture-side {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 7px !important;
    width: 100% !important;
    justify-content: flex-start !important;
  }

  .match .m-fixture-home .crest {
    order: 1 !important;
    flex-shrink: 0 !important;
  }

  .match .m-fixture-home .m-team {
    order: 2 !important;
    text-align: left !important;
  }

  .match .m-fixture-away .crest {
    order: 1 !important;
    flex-shrink: 0 !important;
  }

  .match .m-fixture-away .m-team {
    order: 2 !important;
    text-align: left !important;
  }

  .match .m-vs {
    display: none !important;
  }

  .match .m-score-box {
    display: none !important;
  }

  .match .m-team {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: calc(100vw - 230px) !important;
  }

  .match .crest {
    width: 19px !important;
    height: 19px !important;
    min-width: 19px !important;
    font-size: 9px !important;
  }

  .match .crest img {
    width: 17px !important;
    height: 17px !important;
    object-fit: contain !important;
  }

  .match .m-tip {
    grid-row: 2 !important;
    grid-column: 3 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    text-align: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .match .m-odds {
    grid-row: 2 !important;
    grid-column: 4 !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #10875A !important;
    text-align: center !important;
  }

  .match .m-prob {
    grid-row: 2 !important;
    grid-column: 5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
  }

  .match .confidence-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 3px 8px !important;
    border-radius: 999px !important;
    background: #D1FAE5 !important;
    color: #065F46 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
  }

  .match .m-action {
    grid-row: 1 !important;
    grid-column: 5 !important;
    justify-self: end !important;
    display: block !important;
  }

  .match .m-action .m-status {
    padding: 2px 6px !important;
    font-size: 11px !important;
    border-radius: 6px !important;
  }
}

@media (max-width: 560px) {
  .stats, .board, .split, .method { padding-left: 14px; padding-right: 14px; }
  .topbar-inner, .foot-inner { padding-left: 14px; padding-right: 14px; }

  .hero-card { border-radius: 0; }
  .hero-inner { padding: 24px 14px; }
  h1 { font-size: clamp(2rem, 9vw, 2.6rem); }

  .pick-card { padding: 16px; }

  .stat { padding: 14px 16px; }
  .stat b { font-size: 21px; }

  .card { padding: 18px; }
  .picks span { display: none; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- nav dropdowns (app routes, not mockup anchors) ---------- */

.nav-links .nav-item { position: relative; display: flex; }

.nav-links .nav-trigger {
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.68);
  padding: 8px 12px;
  border: 0;
  border-radius: 999px;
  background: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 140ms ease, background-color 140ms ease;
}

.nav-links .nav-trigger:hover,
.nav-links .nav-item.is-open .nav-trigger {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.caret { font-size: 9px; line-height: 1; opacity: 0.75; }

.nav-drop {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 70;
  min-width: 214px;
  max-height: 82vh;
  overflow-y: auto;
  scrollbar-width: thin;
  padding: 6px;
  background: var(--card, #fff);
  border: 1px solid var(--line, #E3E9E4);
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.14);
  display: none;
  flex-direction: column;
  gap: 2px;
}

/* Invisible bridge so mouse hover is never lost when moving between trigger and menu */
.nav-drop::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

.nav-item:hover .nav-drop,
.nav-item:focus-within .nav-drop,
.nav-item.is-open .nav-drop { display: flex; }

.nav-links .nav-drop a {
  display: block;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: none;
  white-space: nowrap;
}

.nav-links .nav-drop a:hover {
  color: var(--green-800);
  background: var(--green-50);
}

.topbar-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.18);
  margin: 0 4px;
}

.topbar-auth {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-auth .nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 20px;
  font-family: var(--text, "Manrope", sans-serif);
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: all 140ms ease;
  white-space: nowrap;
}

.topbar-auth .nav-btn-outline {
  background: transparent;
  color: #FFFFFF;
  border: 1.5px solid var(--accent, #C7F04B);
}

.topbar-auth .nav-btn-outline:hover {
  background: rgba(199, 240, 75, 0.12);
  border-color: var(--accent, #C7F04B);
  color: var(--accent, #C7F04B);
}

.topbar-auth .nav-btn-solid {
  background: var(--accent, #C7F04B);
  color: var(--green-900, #06301F);
  border: 1.5px solid var(--accent, #C7F04B);
  box-shadow: 0 2px 10px rgba(199, 240, 75, 0.28);
  font-weight: 800;
}

.topbar-auth .nav-btn-solid:hover {
  background: #b8e43a;
  border-color: #b8e43a;
  color: #06301F;
  transform: translateY(-1px);
}

.standings-empty { color: var(--faint); font-size: 12.5px; text-align: center; }

@media (max-width: 1024px) {
  .topbar-inner {
    height: 64px !important;
    padding: 0 16px !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
  }

  .brand { order: 1; }
  .topbar-divider { display: none !important; }
  .nav-links { display: none !important; }
  .nav-toggle { display: inline-flex !important; }

  .topbar-actions {
    order: 2;
    margin-left: auto;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  /* Auth buttons move inside the mobile drawer to prevent topbar overflow */
  .topbar-auth {
    display: none !important;
  }
}

/* empty rows inside the ledger keep the list full-width */
.ledger .empty {
  display: block;
  grid-template-columns: none;
  padding: 18px 0 6px;
  text-align: left;
  border-top: 1px solid var(--line-2);
  border-bottom: 0;
  line-height: 1.5;
}

/* real club badges (API-Sports) sit on a white tile so dark crests stay visible */
.crest-logo {
  background: #fff;
  border: 1px solid var(--line);
  padding: 3px;
}

.crest-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.crest-lg.crest-logo { padding: 4px; }

/* game result status in place of the old add-to-picks button */
.m-status {
  display: inline-block;
  min-width: 62px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

.m-status.pending { color: var(--faint); background: var(--line-2); }
.m-status.won { color: var(--green-700); background: var(--green-50); }
.m-status.lost { color: var(--red); background: var(--red-50); }

/* ---------- articles + league table row ---------- */

.split-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }

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

.article-tile { display: flex; flex-direction: column; gap: 8px; }

.article-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: var(--line-2);
}

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

.article-thumb-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  color: var(--green-700);
  background: var(--green-50);
}

.article-title {
  font-family: var(--display);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-tile:hover .article-title { color: var(--green-700); }

.article-meta { font-size: 11px; color: var(--faint); }

.article-empty { grid-column: 1 / -1; color: var(--faint); font-size: 13px; margin: 0; }

.view-all-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 18px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.view-all-btn:hover { background: var(--green-50); border-color: #CFE6D9; color: var(--green-800); }

.league-carousel { margin-top: 10px; }

.league-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 0 14px;
}

.league-arrow {
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--line-2);
  color: var(--muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease;
}

.league-arrow:hover { background: var(--green-50); color: var(--green-700); }

.league-dots { display: flex; align-items: center; gap: 0; }

.league-dot {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle, #D8E0DA 3px, transparent 3.5px);
  cursor: pointer;
}

.league-dot.is-active { background: radial-gradient(circle, var(--green-700) 3px, transparent 3.5px); }

.league-name { font-family: var(--display); font-size: 15px; font-weight: 700; margin: 0; }
.league-country { margin: 2px 0 0; font-size: 11.5px; color: var(--faint); }

.standings-league { margin-top: 10px; }
.standings-league th { padding-bottom: 8px; }

.standings-league .col-rank { width: 34px; padding-left: 10px; }

.standings-league td.col-rank { position: relative; padding-left: 10px; }

.rank-marker {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 26px;
  border-radius: 2px;
}

.rank-marker.cl { background: var(--green-600); }
.rank-marker.el { background: #3B82F6; }
.rank-marker.rel { background: #EF4444; }

.standings-team { display: inline-flex; align-items: center; gap: 8px; }

/* League slide expand / collapse */
.league-slide:not(.is-expanded) .league-row-extra {
  display: none !important;
}

.league-slide.is-expanded .league-row-extra {
  display: table-row;
  animation: fadeInLeagueRow 180ms ease;
}

@keyframes fadeInLeagueRow {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ledger-row {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 24px 0;
  scroll-margin-top: 80px;
}

@media (max-width: 1060px) {
  .split-main { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .ledger-row { padding-left: 14px; padding-right: 14px; }
}

/* admin-managed SEO copy at the bottom of the homepage */
.info-article {
  max-width: var(--max);
  margin: 24px auto 0;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.info-article h2 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
}

.info-article p { margin: 0 0 10px; }
.info-article p:last-child { margin-bottom: 0; }

@media (max-width: 560px) {
  .info-article { margin-left: 14px; margin-right: 14px; padding: 18px; }
}

/* ---------- site footer (ported from the app footer) ---------- */

.foot {
  margin-top: 44px;
  border-top: 0;
  background: var(--green-900);
  color: rgba(255, 255, 255, 0.72);
}

.foot-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px var(--page-px) 26px;
  display: grid;
  grid-template-columns: 1.7fr repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.foot-about .brand { color: #fff; font-size: 20px; }

.foot-about p {
  margin: 10px 0 0;
  max-width: 36ch;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
}

.foot-contact a { color: #D8F0E2; }
.foot-contact a:hover { color: #fff; }

.foot-tg {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.foot-tg:hover { background: rgba(255, 255, 255, 0.18); }

.foot-col h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.foot-col a {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.64);
}

.foot-col a:hover { color: #fff; }

.foot-badges {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--page-px) 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.foot-badges img { height: 30px; width: auto; opacity: 0.92; }

.foot-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); }

.foot-bottom-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--page-px) 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.foot-copy {
  margin: 0;
  max-width: none;
  font-size: 11.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

.foot-legal { display: flex; gap: 18px; flex-wrap: wrap; }

.foot-legal a { font-size: 11.5px; color: rgba(255, 255, 255, 0.66); }
.foot-legal a:hover { color: #fff; }

@media (max-width: 1060px) {
  .foot-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .foot-about { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .foot-main { grid-template-columns: minmax(0, 1fr); padding: 28px var(--page-px) 20px; }
  .foot-badges { padding: 0 var(--page-px) 18px; gap: 12px; }
  .foot-badges img { height: 26px; }
  .foot-bottom-inner { padding: 14px var(--page-px) 20px; }
}

/* article + league cards share the row height */
.split-main { align-items: stretch; }

.card-league,
.card-league .league-carousel,
.card-league .league-slide {
  display: flex;
  flex-direction: column;
}

.card-league .league-carousel,
.card-league .league-slide { flex: 1; }

.card-league .league-slide[hidden] { display: none; }

.card-league .view-all-btn { margin-top: auto; }

/* compact article tiles keep the left card shorter than the league card */
.card-articles { display: flex; flex-direction: column; }
.card-articles .view-all-btn { margin-top: auto; }

.article-tile {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 4px;
  align-items: center;
}

.article-thumb {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 92px;
  height: 92px;
  aspect-ratio: auto;
  border-radius: 14px;
}

.article-title {
  grid-column: 2;
  grid-row: 1;
  -webkit-line-clamp: 3;
}

.article-meta { grid-column: 2; grid-row: 2; }

/* ---------- footer: about + link grid + logo bar ---------- */

.foot-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 34px 30px;
  align-items: start;
}

.foot-about { grid-column: 1; grid-row: 1 / span 2; }
.foot-matches { grid-column: 2 / span 2; grid-row: 1; }
.foot-articles { grid-column: 4; grid-row: 1; }
.foot-competitions { grid-column: 2; grid-row: 2; }
.foot-navigation { grid-column: 3; grid-row: 2; }
.foot-categories { grid-column: 4; grid-row: 2; }

.foot-main h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}

.foot-about h2:not(:first-child) { margin-top: 26px; }

.foot-about p {
  margin: 0;
  max-width: 46ch;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
}

.foot-inline { display: flex; flex-wrap: wrap; align-items: center; }

.foot-inline a {
  font-size: 12.5px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.62);
}

.foot-inline a:hover { color: #fff; }
.foot-dot { color: rgba(255, 255, 255, 0.28); margin: 0 8px; }

.foot-mail { font-size: 12.5px; color: rgba(255, 255, 255, 0.62); }
.foot-mail:hover { color: #fff; }

.foot-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 26px;
}

.foot-middle {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px var(--page-px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.foot-logo { display: inline-flex; align-items: center; gap: 10px; }

.foot-logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  border: 2px solid #7FE3B0;
}

.foot-logo-text {
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: #fff;
}

.foot-social {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.foot-social:hover { background: rgba(255, 255, 255, 0.18); }

@media (max-width: 1060px) {
  .foot-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .foot-about { grid-column: 1 / -1; grid-row: auto; }
  .foot-matches { grid-column: 1 / -1; grid-row: auto; }
  .foot-articles,
  .foot-competitions,
  .foot-navigation,
  .foot-categories { grid-column: auto; grid-row: auto; }
}

@media (max-width: 560px) {
  .foot-main { grid-template-columns: minmax(0, 1fr); }
  .foot-two { grid-template-columns: minmax(0, 1fr); }
  .foot-middle { padding: 20px var(--page-px); }
}

/* footer: icon-only Telegram button */
.foot-social {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
}

.foot-social svg { width: 18px; height: 18px; }

/* admin-uploaded logo (homepage header/footer use the same partials) */
.topbar .brand-img { height: 34px; width: auto; display: block; }
.foot-logo-img { height: 36px; width: auto; display: block; }

/* footer content never wider than the page gutter */
.foot-about,
.foot-col { min-width: 0; }

.foot-about p,
.foot-col a,
.foot-inline a,
.foot-mail,
.foot-copy { overflow-wrap: anywhere; }

/* ---------- homepage sport news: one feature + recent list ---------- */

.news-eyebrow {
  margin: 0 0 2px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-900);
}

.news-heading {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.news-feature {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 320px;
  border-radius: 14px;
  overflow: hidden;
  background-color: #0D1B16;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-decoration: none;
}

.news-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 20, 14, 0.12) 30%, rgba(6, 20, 14, 0.92) 100%);
}

.news-feature-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
}

.news-date-chip {
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 8px;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.news-feature-title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
}

.news-feature-more { font-size: 12px; font-weight: 700; color: #fff; }

.news-list { display: grid; align-content: start; }

.news-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 14px;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
  text-decoration: none;
}

.news-item:last-child { border-bottom: 0; }

.news-item:hover .news-item-title { color: var(--green-700); }

.news-item-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 7px 0;
  border: 1px solid var(--green-900);
  border-radius: 10px;
  background: var(--green-900);
}

.news-item-date b { font-size: 15px; font-weight: 800; line-height: 1; color: var(--accent); }
.news-item-date i { font-style: normal; font-size: 8.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.news-item-date small { font-size: 8px; color: rgba(255, 255, 255, 0.6); }

.news-item-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.news-item-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item-meta { font-size: 10.5px; color: var(--faint); }
.news-chevron { font-size: 16px; color: var(--faint); text-align: right; }

@media (max-width: 900px) {
  .news-layout { grid-template-columns: minmax(0, 1fr); }
  .news-feature { min-height: 240px; }
}

/* footer: single column when there are only a few popular matches */
.foot-two--single { grid-template-columns: minmax(0, 1fr); }

/* =========================================================
   Modern Match Card System for Homepage Board
   ========================================================= */
.board .table-wrap {
  overflow: visible !important;
  width: 100% !important;
  min-width: 0 !important;
}

.board .table-head {
  display: none !important;
}

.board .matches {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 8px 0 0 !important;
}

.match.rw-card {
  display: block !important;
  position: relative !important;
  background: #FFFFFF !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 20px !important;
  padding: 18px 24px 16px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease !important;
  width: 100% !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.match.rw-card:hover {
  transform: translateY(-2px) !important;
  border-color: #10875A !important;
  box-shadow: 0 8px 24px rgba(6, 48, 31, 0.09) !important;
}

.rw-card-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  border-radius: 20px;
}

.rw-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rw-crest-wrap {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.rw-crest-img {
  max-width: 38px;
  max-height: 38px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.rw-crest-fallback {
  font-family: var(--display, 'Outfit', sans-serif);
  font-size: 13px;
  font-weight: 700;
  color: #6B7280;
  letter-spacing: 0.02em;
}

.rw-match-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 16px;
  min-width: 0;
}

.rw-team-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rw-team-home {
  align-items: flex-end;
  text-align: right;
}

.rw-team-away {
  align-items: flex-start;
  text-align: left;
}

.rw-team-name {
  font-family: var(--display, 'Outfit', sans-serif);
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.rw-form-dots {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
}

.rw-form-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  transition: transform 0.15s ease;
}

.rw-form-dot.form-w { background: #16A34A; }
.rw-form-dot.form-d { background: #EAB308; }
.rw-form-dot.form-l { background: #DC2626; }
.rw-form-dot.form-na { background: #D1D5DB; }

.rw-score-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #EDF3F0;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  padding: 6px 14px;
  min-width: 66px;
  flex-shrink: 0;
}

.rw-score-state {
  font-family: var(--text, 'Manrope', sans-serif);
  font-size: 10px;
  font-weight: 800;
  color: #7B8B83;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 2px;
}

.rw-score-val {
  font-family: var(--display, 'Outfit', sans-serif);
  font-size: 18px;
  font-weight: 800;
  color: #DC2626;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.rw-score-val.is-won { color: #DC2626; }
.rw-score-val.is-green { color: #16A34A; }
.rw-score-val.is-time { color: #06301F; font-size: 16px; }

.rw-card-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #F3F4F6;
  position: relative;
  z-index: 3;
  flex-wrap: wrap;
}

.rw-league-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--text, 'Manrope', sans-serif);
  font-size: 11px;
  font-weight: 700;
  color: #56657A;
  background: #F1F5F9;
  padding: 4px 10px;
  border-radius: 9999px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rw-pill-odds {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #EDF3F0;
  border-radius: 9999px;
  padding: 4px 14px 4px 5px;
  box-sizing: border-box;
}

.rw-tag-odds {
  background: #FFFFFF;
  color: #5F6B7E;
  font-family: var(--text, 'Manrope', sans-serif);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.rw-odds-values {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.rw-odd-item {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.rw-odd-lbl {
  font-family: var(--text, 'Manrope', sans-serif);
  font-size: 12px;
  font-weight: 600;
  color: #718096;
}

.rw-odd-num {
  font-family: var(--display, 'Outfit', sans-serif);
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
}

.rw-pill-tip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border: 1.5px solid #06301F;
  border-radius: 9999px;
  padding: 3px 5px 3px 4px;
  box-sizing: border-box;
}

.rw-tag-tip {
  background: #06301F;
  color: #FFFFFF;
  font-family: var(--text, 'Manrope', sans-serif);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  line-height: 1;
}

.rw-tip-text {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
}

.rw-tip-market {
  font-family: var(--text, 'Manrope', sans-serif);
  font-size: 13px;
  font-weight: 500;
  color: #5F6B7E;
}

.rw-tip-choice {
  font-family: var(--display, 'Outfit', sans-serif);
  font-size: 14px;
  font-weight: 800;
  color: #06301F;
}

.rw-tip-odds {
  font-family: var(--display, 'Outfit', sans-serif);
  font-size: 13.5px;
  font-weight: 800;
  color: #10875A;
}

.rw-tip-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 9999px;
  font-family: var(--text, 'Manrope', sans-serif);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.rw-tip-status.is-won {
  background: #E8F7F0;
  color: #0C7A4A;
  border: 1px solid rgba(12, 122, 74, 0.22);
}

.rw-tip-status.is-lost {
  background: #FEF2F2;
  color: #C81E1E;
  border: 1px solid rgba(220, 38, 38, 0.22);
}

.rw-tip-status.is-pending {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid rgba(180, 83, 9, 0.22);
}

.rw-tip-status.is-other {
  background: #F3F4F6;
  color: #4B5563;
  border: 1px solid #E5E7EB;
}

.rw-tip-status i {
  font-size: 10px;
}

@media (max-width: 768px) {
  .match.rw-card {
    padding: 16px 16px 14px !important;
  }
  .rw-crest-wrap {
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 5px;
  }
  .rw-crest-img {
    max-width: 30px;
    max-height: 30px;
  }
  .rw-team-name {
    font-size: 15px;
  }
  .rw-match-center {
    margin: 0 10px;
    gap: 10px;
  }
  .rw-score-pill {
    padding: 5px 10px;
    min-width: 58px;
  }
  .rw-score-val {
    font-size: 16px;
  }
  .rw-card-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
  }
  .rw-league-pill,
  .rw-pill-odds,
  .rw-pill-tip {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .match.rw-card {
    padding: 14px 12px 12px !important;
    border-radius: 16px !important;
  }
  .rw-crest-wrap {
    width: 38px;
    height: 38px;
    min-width: 38px;
    padding: 4px;
  }
  .rw-crest-img {
    max-width: 24px;
    max-height: 24px;
  }
  .rw-team-name {
    font-size: 14px;
  }
  .rw-form-dots {
    gap: 3px;
    margin-top: 4px;
  }
  .rw-form-dot {
    width: 7px;
    height: 7px;
  }
  .rw-score-pill {
    padding: 4px 8px;
    min-width: 50px;
  }
  .rw-score-state {
    font-size: 9px;
  }
  .rw-score-val {
    font-size: 15px;
  }
  .rw-odds-values {
    gap: 8px;
  }
  .rw-odd-lbl {
    font-size: 11px;
  }
  .rw-odd-num {
    font-size: 12.5px;
  }
  .rw-tip-market {
    font-size: 12px;
  }
  .rw-tip-choice {
    font-size: 13px;
  }
  .rw-tip-odds {
    font-size: 12.5px;
  }
  .rw-tip-status {
    padding: 2.5px 7px;
    font-size: 10px;
  }
}

/* Dark Mode Overrides for ninety.css */
html[data-theme="dark"] .match.rw-card {
  background: #112018 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

html[data-theme="dark"] .match.rw-card:hover {
  background: #15291E !important;
  border-color: #C7F04B !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .rw-crest-wrap {
  background: #16291F !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .rw-crest-fallback {
  color: #9BB0A5 !important;
}

html[data-theme="dark"] .rw-team-name {
  color: #F1F5F2 !important;
}

html[data-theme="dark"] .rw-form-dot.form-na {
  background: #374151 !important;
}

html[data-theme="dark"] .rw-score-pill {
  background: #16291F !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .rw-score-state {
  color: #9BB0A5 !important;
}

html[data-theme="dark"] .rw-score-val,
html[data-theme="dark"] .rw-score-val.is-won {
  color: #EF4444 !important;
}

html[data-theme="dark"] .rw-score-val.is-green {
  color: #C7F04B !important;
}

html[data-theme="dark"] .rw-score-val.is-time {
  color: #C7F04B !important;
}

html[data-theme="dark"] .rw-card-bottom {
  border-top-color: rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .rw-league-pill {
  background: #16291F !important;
  color: #9BB0A5 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .rw-pill-odds {
  background: #16291F !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .rw-tag-odds {
  background: #1E3729 !important;
  color: #9BB0A5 !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .rw-odd-lbl {
  color: #9BB0A5 !important;
}

html[data-theme="dark"] .rw-odd-num {
  color: #F1F5F2 !important;
}

html[data-theme="dark"] .rw-pill-tip {
  background: #16291F !important;
  border-color: #C7F04B !important;
}

html[data-theme="dark"] .rw-tag-tip {
  background: #C7F04B !important;
  color: #06301F !important;
}

html[data-theme="dark"] .rw-tip-market {
  color: #9BB0A5 !important;
}

html[data-theme="dark"] .rw-tip-choice {
  color: #F1F5F2 !important;
}

html[data-theme="dark"] .rw-tip-odds {
  color: #C7F04B !important;
}

html[data-theme="dark"] .rw-tip-status.is-won {
  background: rgba(199, 240, 75, 0.16) !important;
  color: #C7F04B !important;
  border-color: rgba(199, 240, 75, 0.35) !important;
}

html[data-theme="dark"] .rw-tip-status.is-lost {
  background: rgba(239, 68, 68, 0.18) !important;
  color: #F87171 !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
}

html[data-theme="dark"] .rw-tip-status.is-pending {
  background: rgba(245, 158, 11, 0.18) !important;
  color: #FBBF24 !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
}

html[data-theme="dark"] .rw-tip-status.is-other {
  background: #1E3729 !important;
  color: #9BB0A5 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

