
main.dash-main { flex: 1; padding: 0; }

/* Sub-header: league selector + breadcrumb */
.dash-subheader {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  position: sticky;
  top: 56px;
  z-index: 100;
}
.dash-subheader-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 52px;
}
.league-selector-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.league-selector-label {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1px;
  white-space: nowrap;
}
#league-select {
  font-family: var(--sans);
  font-size: 13px; font-weight: 600;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: var(--r-sm);
  padding: 6px 28px 6px 10px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  min-width: 200px;
  max-width: 280px;
  transition: border-color 0.15s;
}
#league-select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(22,163,74,0.15);
}
.dash-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  flex: 1;
  overflow: hidden;
}
.bc-sep   { color: var(--muted2); }
.bc-link  { color: var(--blue); cursor: pointer; font-weight: 500; white-space: nowrap; }
.bc-link:hover { text-decoration: underline; }
.bc-active { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Content area */
.dash-content {
  max-width: 1300px;
  margin: 0 auto;
  padding: 28px 32px 64px;
}

/* View header */
.view-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.view-eyebrow {
  font-size: 10px; font-weight: 700; color: var(--green);
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 4px;
}
.view-title {
  font-size: 22px; font-weight: 800; color: var(--text);
  letter-spacing: -0.5px; line-height: 1.2;
}
.view-meta {
  font-size: 12px; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}

/* League table */
.league-table .pos-cell  { width: 36px; color: var(--muted); font-size: 12px; font-weight: 600; text-align: center; }
.league-table .team-cell { font-weight: 600; }
.tbl-team-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}
.tbl-team-link:hover { color: var(--blue); text-decoration: underline; }
.league-table .pts-cell  { font-weight: 700; color: var(--text); }
.league-table .form-cell { white-space: nowrap; }
.league-table .rating-cell { color: var(--blue); font-weight: 700; }
.league-table .team-link {
  color: var(--text);
  font-weight: 600;
  transition: color 0.12s;
}
.league-table .team-link:hover { color: var(--blue); }

/* Streak badges in table */
.streak-hot  { font-size: 11px; margin-left: 6px; }
.streak-cold { font-size: 11px; margin-left: 6px; }

/* Column visibility */
@media (max-width: 900px)  { .hide-md { display: none !important; } }
@media (max-width: 640px)  { .hide-sm { display: none !important; } }
@media (max-width: 480px)  { .hide-xs { display: none !important; } }

/* ── Team view ── */
.team-view {}
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--blue);
  margin-bottom: 20px; cursor: pointer;
  transition: opacity 0.15s;
}
.back-link:hover { opacity: 0.7; }

.team-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.team-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.team-stat-card.highlight {
  border-color: var(--green-mid);
  background: var(--green-lt);
}
.tsc-label {
  font-size: 10px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px;
}
.tsc-value {
  font-size: 22px; font-weight: 800; color: var(--text);
  letter-spacing: -0.5px; line-height: 1;
}
.tsc-value.green { color: var(--green); }
.tsc-value.red   { color: var(--red); }
.tsc-sub {
  font-size: 11px; color: var(--muted); margin-top: 3px;
}

.team-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.team-section {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
}
.ts-title {
  font-size: 13px; font-weight: 700; color: var(--text);
  letter-spacing: -0.1px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

/* Season chart */
.chart-section {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  margin-bottom: 20px;
}
.chart-wrap { position: relative; height: 200px; }

/* Recent results list */
.result-row {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.result-row:last-child { border-bottom: none; }
.rr-date     { font-size: 11px; color: var(--muted); min-width: 70px; }
.rr-venue    { font-size: 10px; font-weight: 700; color: var(--muted2);
               background: var(--surface2); border-radius: 3px;
               padding: 2px 5px; min-width: 22px; text-align: center; }
.rr-opponent { flex: 1; font-weight: 500; color: var(--text); }
.rr-score    { font-weight: 700; color: var(--text); min-width: 36px; text-align: center; }

/* Home/away split table */
.split-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.split-table th {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--muted); padding: 0 8px 8px 0;
  text-align: right;
}
.split-table th:first-child { text-align: left; }
.split-table td { padding: 6px 8px 6px 0; text-align: right; color: var(--text2); }
.split-table td:first-child { text-align: left; font-weight: 600; color: var(--text); }
.split-table tr:last-child td { border-top: 1px solid var(--border); font-weight: 600; }

/* ── Fixture H2H view ── */
.fixture-header {
  text-align: center;
  margin-bottom: 28px;
}
.fixture-teams {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; margin-bottom: 8px;
}
.fixture-team-name {
  font-size: clamp(16px, 3vw, 24px); font-weight: 800;
  color: var(--text); letter-spacing: -0.5px;
}
.fixture-vs {
  font-size: 14px; font-weight: 700; color: var(--muted);
  padding: 0 8px;
}
.fixture-meta { font-size: 12px; color: var(--muted); }
.fixture-odds {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 12px; flex-wrap: wrap;
}
.odds-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 5px 14px;
  font-size: 12px; text-align: center;
}
.odds-chip-label { font-size: 10px; color: var(--muted); font-weight: 600; letter-spacing: 0.5px; }
.odds-chip-value { font-size: 16px; font-weight: 800; color: var(--text); }

.h2h-grid {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 0;
  margin-bottom: 28px;
}
.h2h-row {
  display: contents;
}
.h2h-row > div {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.h2h-row:first-child > div {
  background: var(--surface2);
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--muted);
  padding: 8px 12px;
}
.h2h-left  { justify-content: flex-end; text-align: right; }
.h2h-mid   { justify-content: center; text-align: center;
             font-size: 11px; font-weight: 700; color: var(--muted);
             background: var(--surface); border-left: 1px solid var(--border);
             border-right: 1px solid var(--border); }
.h2h-right { justify-content: flex-start; text-align: left; }
.h2h-val   { font-size: 14px; font-weight: 700; color: var(--text); }
.h2h-val.green { color: var(--green); }
.h2h-val.red   { color: var(--red);   }
.h2h-val.amber { color: var(--amber); }

.h2h-meetings { margin-bottom: 28px; }
.h2h-meeting-row {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.h2h-meeting-row:last-child { border-bottom: none; }
.h2h-meeting-date   { font-size: 11px; color: var(--muted); min-width: 72px; }
.h2h-meeting-season { font-size: 11px; color: var(--muted2); min-width: 72px; }
.h2h-meeting-home   { flex: 1; font-weight: 600; text-align: right; }
.h2h-meeting-score  { font-weight: 800; color: var(--text); min-width: 48px; text-align: center; }
.h2h-meeting-away   { flex: 1; font-weight: 600; }

@media (max-width: 768px) {
  .team-sections { grid-template-columns: 1fr; }
  .h2h-grid { grid-template-columns: 1fr 60px 1fr; }
  .dash-content { padding: 20px 16px 48px; }
  .dash-subheader { padding: 0 16px; }
  #league-select { min-width: 160px; font-size: 12px; }
  .view-title { font-size: 18px; }
}
@media (max-width: 480px) {
  .fixture-team-name { font-size: 15px; }
  .h2h-meeting-season { display: none; }
}

/* ── League view tabs ── */
.league-tabs {
  display: flex; gap: 4px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}
.tab-btn {
  font-family: var(--sans);
  font-size: 12px; font-weight: 600;
  color: var(--muted);
  background: none; border: none;
  padding: 8px 16px 10px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
  border-radius: 0;
  white-space: nowrap;
}
.tab-btn:hover  { color: var(--text); }
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); }

/* ── Stats cards row ── */
.league-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
  margin-bottom: var(--section-gap);
}
.lstat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 22px;
}
/* Primary cards (top 3) get a top accent to signal importance */
.league-stats-grid .lstat-card {
  border-top: 3px solid var(--blue);
}
.lstat-card-title {
  font-size: 12px; font-weight: 700;
  color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.8px; margin-bottom: 14px;
  display: flex; align-items: center; gap: 6px;
}

/* Result distribution bar */
.result-bar-wrap { margin-bottom: 10px; }
.result-bar {
  display: flex; height: 10px;
  border-radius: 5px; overflow: hidden;
  margin-bottom: 8px;
}
.result-bar-h { background: var(--green); }
.result-bar-d { background: var(--amber); }
.result-bar-a { background: var(--red);   }
.result-bar-labels {
  display: flex; justify-content: space-between;
  font-size: 12px;
}
.rbl-home  { color: var(--green); font-weight: 700; }
.rbl-draw  { color: var(--amber); font-weight: 700; text-align: center; }
.rbl-away  { color: var(--red);   font-weight: 700; text-align: right; }
.result-bar-odds {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--muted);
  margin-top: 4px;
}

/* Streak cards */
.streak-list { display: flex; flex-direction: column; gap: 7px; }
.streak-row {
  display: flex; align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.streak-team { font-weight: 600; color: var(--text); flex: 1; }
.streak-val-hot  { font-weight: 800; color: var(--green); margin: 0 8px; min-width: 20px; text-align: right; }
.streak-val-cold { font-weight: 800; color: var(--blue);  margin: 0 8px; min-width: 20px; text-align: right; }

/* CCI gauge */
.cci-gauge-wrap { margin-bottom: 10px; }
.cci-track {
  height: 10px; background: var(--surface2);
  border-radius: 5px; overflow: hidden;
  margin-bottom: 6px; position: relative;
}
.cci-fill { height: 100%; border-radius: 5px; transition: width 0.6s ease; }
.cci-value-row {
  display: flex; justify-content: space-between;
  align-items: baseline;
}
.cci-score { font-size: 24px; font-weight: 800; letter-spacing: -1px; }
.cci-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.cci-breakdown {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--border);
}
.cci-comp {
  font-size: 11px; color: var(--muted);
  display: flex; flex-direction: column; gap: 1px;
}
.cci-comp-label { font-weight: 600; color: var(--text2); font-size: 10px; }

/* Help icon - defined in main.css */
.tip-popup {
  position: fixed; z-index: 9999;
  background: var(--surface2); color: var(--text2);
  font-size: 13px; font-weight: 400; line-height: 1.65;
  padding: 10px 32px 10px 14px; border-radius: var(--r-sm);
  max-width: 280px; box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  border: 1px solid var(--border2);
  pointer-events: auto;
}
.tooltip-close {
  position: absolute; top: 6px; right: 8px;
  cursor: pointer; color: var(--muted2);
  font-size: 13px; background: none; border: none; line-height: 1;
}
.tooltip-close:hover { color: var(--text2); }

/* Fixture day separator */
.fixture-day-header {
  font-size: 11px; font-weight: 700;
  color: var(--muted); text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 14px 6px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.fixture-day-header:first-child { border-top: none; }

@media (max-width: 768px) {
  .league-stats-grid { grid-template-columns: 1fr; }
  .tab-btn { font-size: 11px; padding: 7px 10px 9px; }
}
/* ── Deep stats cards ── */
.deep-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
  margin-top: 0;
}
/* Deep/secondary cards do NOT get the accent border - plain style signals lower hierarchy */
.deep-stats-grid .lstat-card {
  background: var(--surface);
  border-left: 1px solid var(--border);
}

/* Home edge bar */
.edge-bar-track {
  height: 12px; border-radius: 6px;
  background: var(--surface2); overflow: hidden;
  margin: 10px 0 6px; position: relative;
}
.edge-bar-fill {
  height: 100%; border-radius: 6px;
  transition: width 0.5s ease;
}
.edge-trio {
  display: flex; justify-content: space-between;
  font-size: 12px; font-weight: 700; margin-top: 8px;
}

/* ROI badges */
.roi-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin-top: 4px;
}
.roi-item {
  display: flex; flex-direction: column;
  gap: 2px; padding: 8px 10px;
  background: var(--surface); border-radius: var(--r-sm);
  border: 1px solid var(--border);
}
.roi-label { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.roi-val   { font-size: 15px; font-weight: 800; }
.roi-pos   { color: var(--green); }
.roi-neg   { color: var(--red); }
.roi-nil   { color: var(--muted); }

/* Scoreline bars */
.scoreline-list { display: flex; flex-direction: column; gap: 7px; margin-top: 4px; }
.scoreline-row  { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.sc-label { font-weight: 700; color: var(--text); min-width: 30px; }
.sc-bar-wrap { flex: 1; height: 8px; background: var(--surface2); border-radius: 4px; overflow: hidden; }
.sc-bar  { height: 100%; border-radius: 4px; background: var(--green); opacity: 0.75; }
.sc-pct  { font-size: 11px; color: var(--muted); min-width: 32px; text-align: right; }

/* Over/Under */
.ou-rows { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.ou-row  { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.ou-label { font-weight: 700; color: var(--text); min-width: 40px; }
.ou-bar-wrap { flex: 1; height: 8px; background: var(--surface2); border-radius: 4px; overflow: hidden; }
.ou-bar  { height: 100%; border-radius: 4px; }
.ou-pct  { font-size: 11px; color: var(--muted); min-width: 36px; text-align: right; }
.ou-goals-label {
  font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: 20px; border: 1px solid;
  display: inline-block; margin-top: 10px;
}

/* Upsets */
.upset-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.upset-row  {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 8px 10px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--border);
  font-size: 12px;
}
.upset-odds {
  font-size: 15px; font-weight: 800; color: var(--amber);
  min-width: 36px; line-height: 1.2;
}
.upset-detail { flex: 1; }
.upset-teams  { font-weight: 600; color: var(--text); }
.upset-score  { font-size: 11px; color: var(--muted); margin-top: 1px; }

/* Fixtures expand/collapse */
.fixtures-day-group { border-bottom: 1px solid var(--border); }
.fixtures-day-group:last-child { border-bottom: none; }
.fixtures-expand-btn {
  width: 100%; padding: 9px 14px;
  background: var(--surface); border: none;
  border-top: 1px solid var(--border);
  font-family: var(--sans); font-size: 11px; font-weight: 700;
  color: var(--green); cursor: pointer; text-align: center;
  letter-spacing: 0.5px; text-transform: uppercase;
  transition: background 0.15s;
}
.fixtures-expand-btn:hover { background: var(--surface2); }

@media (max-width: 900px) {
  .deep-stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .deep-stats-grid { grid-template-columns: 1fr; }
  .roi-grid { grid-template-columns: 1fr 1fr; }
}
/* ── Team page enhancements ── */
.team-snapshot {
  background: linear-gradient(135deg, var(--green-lt) 0%, var(--bg) 100%);
  border: 1px solid var(--green-mid);
  border-radius: var(--r-lg);
  padding: 14px 18px;
  margin-bottom: 20px;
}
.team-snapshot-label {
  font-size: 10px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1.5px;
}
.team-snapshot-bullets {
  display: flex; flex-direction: column; gap: 0;
}
.snap-bullet {
  font-size: 13px; color: var(--text2); font-weight: 500;
}
.snap-sep { color: var(--border2); font-size: 12px; }

/* Betting profile row */
.betting-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
  margin-bottom: 0;
}
.bp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
}
.bp-card-title {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.8px;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 5px;
}

/* Fav/Dog mini bars */
.favdog-row {
  margin-bottom: 10px;
}
.favdog-label {
  font-size: 10px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px;
}
.favdog-bar {
  display: flex; height: 9px; border-radius: 4px; overflow: hidden;
  margin-bottom: 4px;
}
.favdog-nums {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--muted);
}

/* Home vs Away edge bars */
.hva-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px; font-size: 12px;
}
.hva-label { min-width: 38px; font-weight: 700; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.hva-bar-wrap { flex: 1; height: 8px; background: var(--surface2); border-radius: 4px; overflow: hidden; }
.hva-bar { height: 100%; border-radius: 4px; }
.hva-val { min-width: 36px; text-align: right; font-weight: 700; font-size: 12px; }

/* Chart trend badge */
.chart-trend-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 12px;
  border: 1px solid;
}

/* Enhanced recent results */
.recent-summary {
  display: flex; gap: 16px;
  padding: 8px 0 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.rsumm-item { font-size: 12px; }
.rsumm-label { color: var(--muted); }
.rsumm-val { font-weight: 700; color: var(--text); }

/* Market beat section */
.market-beat {
  background: linear-gradient(135deg, var(--green-lt) 0%, var(--bg) 100%);
  border: 1px solid var(--green-mid);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  margin-bottom: 24px;
}
.market-beat-title {
  font-size: 10px; font-weight: 700; color: var(--green);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px;
}
.market-beat-items { display: flex; gap: 24px; flex-wrap: wrap; }
.mbi { font-size: 13px; }
.mbi-val { font-weight: 800; color: var(--text); }
.mbi-label { color: var(--muted); }

@media (max-width: 900px) { .betting-profile-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .betting-profile-grid { grid-template-columns: 1fr; } }

/* HT state rows */
.ht-row {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 0; border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.ht-row:last-child { border-bottom: none; }
.ht-label { min-width: 72px; font-weight: 600; color: var(--text2); font-size: 11px; }
.ht-bars  { flex: 1; height: 6px; background: var(--surface2); border-radius: 3px; overflow: hidden; }
.ht-bar   { height: 100%; border-radius: 3px; }
.ht-win   { min-width: 36px; text-align: right; font-weight: 700; font-size: 11px; }
.ht-other { min-width: 28px; text-align: right; font-size: 11px; color: var(--muted); }
.ht-n     { font-size: 10px; color: var(--muted2); }

/* Scoreline card full-width below grid */
.bp-card.bp-wide { grid-column: 1 / -1; }

/* ── H2H page enhancements ── */
.match-snapshot {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 18px;
  margin-bottom: 20px;
}
.match-snapshot-label {
  font-size: 10px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 1.5px;
  display: block;
}
.match-snapshot-sep { color: var(--border2); }

.edge-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--card-gap);
  margin-bottom: 24px;
}
.edge-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue);  /* blue accent = analysis/insight */
  border-radius: var(--r-lg);
  padding: 18px 20px;
}
.edge-card-title {
  font-size: 11px; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 12px;
  display: flex; align-items: center; gap: 5px;
}
.edge-metric {
  font-size: 24px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.1;
}
.edge-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; margin-top: 6px;
}
.edge-sub {
  font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.5;
}

/* Enhanced stat grid delta */
.h2h-delta {
  font-size: 10px; font-weight: 700; color: var(--muted2);
  display: block; margin-top: 1px;
}
.h2h-delta.pos { color: var(--green); }
.h2h-delta.neg { color: var(--red); }

/* H2H summary bar */
.h2h-summary-bar {
  display: flex; gap: 24px; align-items: center;
  padding: 12px 16px;
  background: var(--surface2);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  font-size: 13px; flex-wrap: wrap;
}
.h2h-sum-item { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.h2h-sum-val  { font-size: 20px; font-weight: 800; line-height: 1; }
.h2h-sum-label { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* Betting Angles — dark card signals conclusions, not raw data */
.betting-angles {
  background: linear-gradient(135deg, var(--header-bg) 0%, #0f1929 100%);
  border: 1px solid var(--header-border);
  border-radius: var(--r-lg);
  padding: 20px 22px;
}
.betting-angles-title {
  font-size: 13px; font-weight: 700; color: var(--green-hi);
  letter-spacing: 0; margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.angle-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 13px; color: var(--header-text); line-height: 1.55;
}
.angle-item:last-child { border-bottom: none; }
.angle-icon { font-size: 15px; flex-shrink: 0; margin-top: 1px; }
.angle-text { flex: 1; }
.angle-text strong { color: var(--green-hi); }

@media (max-width: 900px) { .edge-cards-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .edge-cards-grid { grid-template-columns: 1fr; } }
