:root {
  --bg: #0c111a;
  --bg-2: #111827;
  --panel: rgba(17, 24, 39, 0.82);
  --panel-strong: rgba(22, 29, 44, 0.92);
  --card: rgba(24, 32, 48, 0.82);
  --card-soft: rgba(255, 255, 255, 0.04);
  --text: #f5f7fb;
  --muted: #9da9b8;
  --accent: #d8b24a;
  --accent-2: #f5c84c;
  --accent-3: #58a6ff;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(216, 178, 74, 0.24);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

html {
  background:
    radial-gradient(circle at top left, rgba(88, 166, 255, 0.18), transparent 36%),
    radial-gradient(circle at top right, rgba(216, 178, 74, 0.16), transparent 30%),
    radial-gradient(circle at 50% -10%, rgba(245, 200, 76, 0.1), transparent 26%),
    linear-gradient(180deg, #0a0f17 0%, #0f1520 50%, #090d14 100%);
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 100%),
    linear-gradient(225deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 30%);
  background-size: 42px 42px, 42px 42px, 100% 100%;
  padding: 24px;
}

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

.num-gold {
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 0.01px currentColor;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  letter-spacing: -0.02em;
  margin-bottom: 0;
}

h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

p { line-height: 1.55; }

.page-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.topbar,
.footer,
.card,
.hero,
.match-row,
.stat-box,
.benefit-card,
.insight-item {
  backdrop-filter: blur(16px);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(19, 25, 38, 0.9), rgba(14, 19, 29, 0.84));
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 24px rgba(216, 178, 74, 0.5);
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  flex-wrap: wrap;
}

.nav a:hover,
.section-link:hover {
  color: var(--text);
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(245, 200, 76, 0.28);
  background: linear-gradient(135deg, rgba(245, 200, 76, 0.16), rgba(216, 178, 74, 0.08));
  color: var(--text);
  font-weight: 800;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.button-link:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 200, 76, 0.42);
  background: linear-gradient(135deg, rgba(245, 200, 76, 0.22), rgba(216, 178, 74, 0.12));
}

.content {
  padding: 26px 0 20px;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 22px;
  align-items: stretch;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(150deg, rgba(20, 27, 43, 0.96), rgba(15, 20, 31, 0.86)),
    radial-gradient(circle at top right, rgba(88, 166, 255, 0.18), transparent 30%),
    radial-gradient(circle at bottom left, rgba(216, 178, 74, 0.16), transparent 32%);
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}

.hero-home {
  overflow: hidden;
  position: relative;
}

.hero-detail {
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(150deg, rgba(18, 24, 38, 0.92), rgba(12, 17, 26, 0.92)),
    radial-gradient(circle at top right, rgba(245, 200, 76, 0.08), transparent 28%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.04), transparent 28%);
}

.hero-home::after {
  content: "";
  position: absolute;
  inset: auto -10% -30% auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
    background: radial-gradient(circle, rgba(216, 178, 74, 0.12), transparent 62%);
  pointer-events: none;
}

.hero-copy {
  display: grid;
  gap: 10px;
  align-content: start;
}

.eyebrow {
  margin: 0;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
}

.hero-home .eyebrow {
  font-size: clamp(0.96rem, 1.4vw, 1.08rem);
  letter-spacing: 0.18em;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.35rem, 2.8vw, 2.15rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.92rem;
}

.hero-panel {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.hero-detail .hero-panel {
  padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.015));
}

.hero-stat {
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  line-height: 0.92;
  font-weight: 900;
  color: var(--accent);
}

.hero-detail .hero-stat {
  font-size: clamp(2.25rem, 6.5vw, 3.6rem);
  color: var(--accent-2);
}

.hero-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
}

.hero-detail .hero-label {
  letter-spacing: 0.1em;
}

.hero-detail .hero-panel-note {
  font-size: 0.94rem;
  line-height: 1.5;
}

.hero-detail .pill {
  background: rgba(255, 255, 255, 0.03);
}

.hero-panel-note,
.support-copy,
.empty-state p,
.benefit-card p,
.insight-item p,
.story-note p,
.quote-meta {
  color: var(--muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}

.home-split {
  margin-bottom: 22px;
}

.card,
.benefit-card,
.insight-item {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--panel), rgba(16, 22, 34, 0.9));
  box-shadow: var(--shadow);
}

.card {
  padding: 22px;
}

.narrow {
  max-width: 760px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 16px;
}

.section-head p {
  color: var(--muted);
  margin-bottom: 0;
}

.section-link {
  color: var(--accent);
  font-weight: 700;
}

.feature-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.feature-prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.feature-prices > div {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card-soft);
}

.price-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.feature-prices strong {
  display: block;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.support-copy {
  margin-bottom: 0;
}

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

.insight-item {
  padding: 16px 18px;
}

.insight-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

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

.match-row {
  display: grid;
  grid-template-columns: 1.25fr repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
  align-items: stretch;
}

.match-row:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}

.match-main {
  display: grid;
  gap: 10px;
  align-content: start;
}

.match-teams {
  font-size: clamp(1.08rem, 1.9vw, 1.4rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.match-datetime {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.96rem;
}

.match-date {
  color: var(--muted);
}

.match-meta,
.match-time,
.footer,
.muted {
  color: var(--muted);
}

.match-datetime .match-time {
  color: var(--text);
  font-weight: 700;
}

.match-prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.match-price-panel {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 100%;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card-soft);
}

.match-price-panel.over {
  border-color: rgba(88, 166, 255, 0.26);
  background: linear-gradient(180deg, rgba(88, 166, 255, 0.1), rgba(255, 255, 255, 0.03));
}

.match-price-panel.under {
  border-color: rgba(245, 200, 76, 0.24);
  background: linear-gradient(180deg, rgba(245, 200, 76, 0.1), rgba(255, 255, 255, 0.03));
}

.match-price-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

.match-price-panel strong {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.featured-card .feature-meta {
  justify-content: space-between;
}

.empty-state {
  padding: 22px;
  border-radius: 20px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.empty-state h3 {
  margin-bottom: 6px;
}

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

.benefit-card {
  padding: 18px;
}

.detail-grid {
  align-items: start;
}

.story-card {
  overflow: hidden;
}

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

.quote-feature {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.quote-feature.accent {
  border-color: rgba(245, 200, 76, 0.24);
  background: linear-gradient(180deg, rgba(245, 200, 76, 0.08), rgba(255, 255, 255, 0.02));
}

.quote-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.76rem;
}

.quote-feature strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 8px;
}

.quote-meta {
  font-size: 0.94rem;
}

.editorial-odds {
  margin-top: 18px;
}

.editorial-verdict {
  margin-top: 18px;
}

.analysis-card {
  position: relative;
  margin-top: 20px;
  padding-bottom: 58px;
}

.analysis-card .section-head {
  margin-bottom: 10px;
}

.analysis-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.analysis-summary {
  font-size: 1.05rem;
  margin-bottom: 12px;
  max-width: 76ch;
}

.analysis-source {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 14px;
}

.analysis-source code {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.88rem;
}

.analysis-body {
  display: grid;
  gap: 16px;
  max-width: 78ch;
}

.analysis-body h2,
.analysis-body h3 {
  margin-bottom: 0;
}

.analysis-body p,
.analysis-body li {
  color: var(--text);
}

.analysis-body ul,
.analysis-body ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.analysis-body blockquote {
  margin: 0;
  padding: 14px 16px;
  border-left: 3px solid rgba(245, 200, 76, 0.5);
  border-radius: 0 14px 14px 0;
  background: rgba(245, 200, 76, 0.08);
}

.analysis-edit-fab {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(245, 200, 76, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  opacity: 0;
  transform: translateY(4px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.analysis-card:hover .analysis-edit-fab,
.analysis-card:focus-within .analysis-edit-fab,
.analysis-edit-fab:focus-visible {
  opacity: 0.65;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.analysis-edit-fab:hover {
  opacity: 1;
  transform: translateY(-1px);
  border-color: rgba(245, 200, 76, 0.4);
  color: var(--accent-2);
}

.analysis-edit-fab svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.admin-grid {
  margin-bottom: 22px;
}

.admin-board {
  padding-bottom: 18px;
}

.analysis-list {
  display: grid;
  gap: 14px;
}

.analysis-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.8fr);
  gap: 16px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.analysis-row.is-ready {
  border-color: rgba(245, 200, 76, 0.16);
}

.analysis-row.is-pending {
  border-color: rgba(88, 166, 255, 0.14);
}

.analysis-main {
  display: grid;
  gap: 10px;
}

.analysis-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.analysis-status,
.analysis-path {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.analysis-status {
  color: var(--accent-2);
  border-color: rgba(245, 200, 76, 0.22);
}

.analysis-row h3 {
  margin-bottom: 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.analysis-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.96rem;
}

.analysis-preview {
  margin-bottom: 0;
  color: var(--muted);
}

.analysis-side {
  display: grid;
  align-content: start;
  gap: 12px;
  padding-left: 4px;
  border-left: 1px solid var(--line);
}

.analysis-note {
  margin-bottom: 0;
  color: var(--text);
}

.analysis-preview-shell {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.analysis-preview-shell summary {
  cursor: pointer;
  color: var(--accent-2);
  font-weight: 800;
  list-style: none;
  margin-bottom: 12px;
}

.analysis-preview-shell summary::-webkit-details-marker {
  display: none;
}

.analysis-preview-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 16px;
}

.analysis-preview-rendered,
.analysis-preview-raw textarea {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.analysis-preview-rendered {
  padding: 18px;
}

.analysis-preview-raw {
  display: grid;
  gap: 10px;
}

.analysis-preview-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.analysis-preview-raw textarea {
  min-height: 320px;
  width: 100%;
  padding: 16px 18px;
  color: var(--text);
  font: inherit;
  line-height: 1.55;
  resize: vertical;
}

.story-note {
  margin-top: 16px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.story-note h3 {
  margin-bottom: 8px;
}

.detail-footnote {
  margin-top: 20px;
}

.odds-table {
  display: grid;
  gap: 10px;
}

.odds-head,
.odds-row {
  display: grid;
  grid-template-columns: 1.2fr 0.4fr 0.4fr;
  gap: 12px;
  align-items: center;
}

.odds-head {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0 8px;
}

.odds-row {
  padding: 14px 8px;
  border-top: 1px solid var(--line);
}

.bookmaker {
  font-weight: 700;
}

.odds-link {
  display: inline-flex;
  justify-content: center;
  min-width: 74px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
}

.odds-link.is-best {
  background: linear-gradient(180deg, rgba(245, 200, 76, 0.18), rgba(216, 178, 74, 0.08));
  color: var(--accent-2);
  border-color: rgba(245, 200, 76, 0.32);
  box-shadow: inset 0 0 0 1px rgba(245, 200, 76, 0.12);
}

.odds-link.is-secondary {
  background: #05070c;
  color: var(--accent-2);
  border-color: rgba(245, 200, 76, 0.22);
}

.odds-link.is-secondary:hover {
  border-color: rgba(245, 200, 76, 0.4);
  color: #ffe27a;
}

.stats-stack {
  display: grid;
  gap: 12px;
}

.stat-box {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.stat-box strong {
  color: var(--accent);
}

.verdict {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(245, 200, 76, 0.08);
  border: 1px solid rgba(245, 200, 76, 0.2);
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(19, 25, 38, 0.9), rgba(14, 19, 29, 0.84));
  margin-top: 22px;
}

.footer-copy {
  display: flex;
  align-items: center;
  min-width: 0;
}

.footer-copy p {
  margin-bottom: 0;
  line-height: 1.45;
}

.footer-admin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(245, 200, 76, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  opacity: 0;
  transform: translateY(4px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.footer:hover .footer-admin-link,
.footer-admin-link:focus-visible {
  opacity: 0.7;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.footer-admin-link:hover {
  opacity: 1;
  border-color: rgba(245, 200, 76, 0.4);
  color: var(--accent-2);
}

.footer-admin-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@media (max-width: 920px) {
  .hero,
  .grid-2,
  .benefit-grid,
  .match-row {
    grid-template-columns: 1fr;
  }

  .home-split {
    margin-bottom: 30px;
  }

  .feature-prices {
    grid-template-columns: 1fr;
  }

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

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

  .footer,
  .topbar,
  .section-head,
  .analysis-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-admin-link {
    align-self: flex-end;
  }

  .analysis-row {
    grid-template-columns: 1fr;
  }

  .analysis-side {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 12px;
  }

  .analysis-preview-split {
    grid-template-columns: 1fr;
  }

  .analysis-card {
    padding-bottom: 64px;
  }

  .analysis-edit-fab {
    right: 14px;
    bottom: 14px;
  }
}
