/* ═══════════════════════════════════════════════════════════════════════════
   EBD FRONTEND – Futuristic Dark UI v2.11
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Root & Reset ─────────────────────────────────────────────────────────── */
:root {
  --ebd-bg:        #0a0e1a;
  --ebd-bg2:       #0f1626;
  --ebd-bg3:       #141d30;
  --ebd-card:      #111827;
  --ebd-border:    rgba(255,255,255,0.07);
  --ebd-home:      #f97316;
  --ebd-away:      #38bdf8;
  --ebd-gold:      #eab308;
  --ebd-green:     #22c55e;
  --ebd-red:       #ef4444;
  --ebd-text:      #e2e8f0;
  --ebd-muted:     #64748b;
  --ebd-tbl-hdr:   rgba(255,255,255,0.06);
  --ebd-tbl-cell:  rgba(255,255,255,0.02);
  --ebd-glow-h:    rgba(249,115,22,.35);
  --ebd-glow-a:    rgba(56,189,248,.35);
  --ebd-glow-g:    rgba(34,197,94,.2);
  --radius:        12px;
  --radius-sm:     8px;
}

/* ── Light theme (toggle adds .ebd-theme-light on .ebd-wrap) ─────────────── */
.ebd-wrap.ebd-theme-light {
  --ebd-bg:     #f6f7fb;
  --ebd-bg2:    #ffffff;
  --ebd-bg3:    #eef2ff;
  --ebd-card:   #ffffff;
  --ebd-border: rgba(15,23,42,0.12);
  --ebd-text:   #0f172a;
  --ebd-muted:  #475569;
  --ebd-tbl-hdr: rgba(15,23,42,0.06);
  --ebd-tbl-cell: rgba(15,23,42,0.02);
  --ebd-glow-h: rgba(249,115,22,.18);
  --ebd-glow-a: rgba(56,189,248,.18);
  --ebd-glow-g: rgba(34,197,94,.14);
}

.ebd-wrap.ebd-theme-light .ebd-hero {
  background: linear-gradient(160deg, #ffffff 0%, #f6f7fb 70%);
}

.ebd-wrap.ebd-theme-light .ebd-nav {
  background: rgba(246,247,251,0.92);
}

.ebd-wrap.ebd-theme-light .ebd-score-sep { color: var(--ebd-muted); }

/* Ensure card variants don't force dark gradients in light mode */
.ebd-wrap.ebd-theme-light .ebd-card--h2h,
.ebd-wrap.ebd-theme-light .ebd-card--team,
.ebd-wrap.ebd-theme-light .ebd-card--npxg,
.ebd-wrap.ebd-theme-light .ebd-card--scoring,
.ebd-wrap.ebd-theme-light .ebd-card--topscorer,
.ebd-wrap.ebd-theme-light .ebd-card--keeper{
  background: var(--ebd-card) !important;
}

/* Panels that were too subtle on white */
.ebd-wrap.ebd-theme-light .ebd-ai-left,
.ebd-wrap.ebd-theme-light .ebd-ai-note,
.ebd-wrap.ebd-theme-light .ebd-form,
.ebd-wrap.ebd-theme-light .ebd-pred-intro,
.ebd-wrap.ebd-theme-light .ebd-inj-item,
.ebd-wrap.ebd-theme-light .ebd-trend,
.ebd-wrap.ebd-theme-light .ebd-npxg-item{
  background: rgba(15,23,42,0.03) !important;
  border-color: rgba(15,23,42,0.10) !important;
}

/* Remove neon glow / text-shadow on light */
.ebd-wrap.ebd-theme-light .ebd-score-n{ text-shadow:none !important; }
.ebd-wrap.ebd-theme-light .ebd-ppg-big{ text-shadow:none !important; }

/* Better contrast for bar overlays */
.ebd-wrap.ebd-theme-light .ebd-pl-bar-track{ background: rgba(15,23,42,0.05); }
.ebd-wrap.ebd-theme-light .ebd-pl-bar-text{ color: #0f172a; text-shadow:none; }

.ebd-wrap *,
.ebd-wrap *::before,
.ebd-wrap *::after { box-sizing: border-box; margin: 0; padding: 0; }

.ebd-wrap { background: var(--ebd-bg); color: var(--ebd-text); font-family: 'Inter', 'Segoe UI', sans-serif; font-size: 14px; line-height: 1.5; overflow-x: hidden; }
/* Keep pages edge-to-edge (only match pages) */
body.single-ebd_match, body.single-match{padding:0 !important; margin:0 !important;}
.ebd-dashboard { max-width: 1100px; margin: 0 auto; padding: 0 16px 48px; overflow-x: hidden; }

/* ── Color tokens ─────────────────────────────────────────────────────────── */
.ebd-home-col { color: var(--ebd-home) !important; }
.ebd-away-col { color: var(--ebd-away) !important; }

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.ebd-hero {
  background: linear-gradient(160deg, #0f1a2e 0%, #0a0e1a 60%);
  border-bottom: 1px solid var(--ebd-border);
  padding: 24px 0 28px;
  margin-bottom: 0;
}

.ebd-hero-meta {
  display: flex; flex-direction: column; gap: 4px;
  justify-content: center; align-items: center;
  width: 100%;
  margin-bottom: 18px;
}
.ebd-hero-meta-top{
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ebd-theme-switch{
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--ebd-muted);
}
.ebd-theme-switch-label{font-weight:700;opacity:.9;}
.ebd-switch{position:relative;display:inline-block;width:42px;height:22px;}
.ebd-switch input{opacity:0;width:0;height:0;}
.ebd-switch-slider{
  position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;
  background: rgba(255,255,255,.10);
  border: 1px solid var(--ebd-border);
  transition:.2s; border-radius:999px;
}
.ebd-switch-slider:before{
  position:absolute;content:"";
  height:16px;width:16px;left:3px;top:2px;
  background: var(--ebd-text);
  transition:.2s;border-radius:999px;
  opacity:.85;
}
.ebd-switch input:checked + .ebd-switch-slider{
  background: rgba(34,197,94,.14);
  border-color: rgba(34,197,94,.25);
}
.ebd-switch input:checked + .ebd-switch-slider:before{transform:translateX(20px);}

/* ── Theme toggle (new UI) ─────────────────────────────────────────────── */
.ebd-theme-toggle{
  position:absolute;
  right:0;
  display:flex;
  align-items:center;
}
.ebd-theme-toggle input{ position:absolute; opacity:0; width:0; height:0; }
.ebd-theme-toggle-ui{
  position:relative;
  width:76px;
  height:34px;
  border-radius:999px;
  border:1px solid var(--ebd-border);
  background:#0b1220;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 12px;
  cursor:pointer;
  user-select:none;
}
.ebd-theme-toggle-icon{ display:flex; align-items:center; justify-content:center; color:rgba(226,232,240,.92); }
.ebd-theme-toggle-icon--sun{ color:rgba(226,232,240,.55); }
.ebd-theme-toggle-knob{
  position:absolute;
  left:4px;
  top:4px;
  width:26px;
  height:26px;
  border-radius:999px;
  background:#f8fafc;
  box-shadow: 0 10px 18px rgba(0,0,0,.35);
  transition: transform .18s ease, background .18s ease;
}

/* Light checked */
.ebd-theme-toggle input:checked + .ebd-theme-toggle-ui{
  background:#e5e7eb;
  border-color: rgba(15,23,42,0.14);
}
.ebd-theme-toggle input:checked + .ebd-theme-toggle-ui .ebd-theme-toggle-icon--sun{ color:#0f172a; }
.ebd-theme-toggle input:checked + .ebd-theme-toggle-ui .ebd-theme-toggle-icon--moon{ color:rgba(15,23,42,.35); }
.ebd-theme-toggle input:checked + .ebd-theme-toggle-ui .ebd-theme-toggle-knob{
  transform: translateX(42px);
  background:#111827;
}

@media(max-width:640px){
  .ebd-theme-toggle-ui{ width:70px; height:32px; padding:0 10px; }
  .ebd-theme-toggle-knob{ width:24px; height:24px; }
  .ebd-theme-toggle input:checked + .ebd-theme-toggle-ui .ebd-theme-toggle-knob{ transform: translateX(38px); }
}
.ebd-hero-meta-main{ font-size: 12px; color: var(--ebd-muted); }
.ebd-hero-meta-sub{ font-size: 12px; color: var(--ebd-muted); }
.ebd-hero-meta-done{ color: var(--ebd-green); }
.ebd-meta-pill {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--ebd-border);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px; color: var(--ebd-muted);
}
.ebd-pill-time { color: var(--ebd-gold); border-color: rgba(234,179,8,.3); }
.ebd-pill-done { color: var(--ebd-green); border-color: rgba(34,197,94,.3); }
.ebd-pill-live {
  color: var(--ebd-home);
  border-color: rgba(249,115,22,.4);
  animation: ebd-pulse 2s ease-in-out infinite;
}
@keyframes ebd-pulse { 0%,100%{opacity:1} 50%{opacity:.65} }

.ebd-hero-teams {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.4fr) minmax(0,1fr);
  align-items: center;
  gap: 16px;
}

.ebd-hero-team {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}
.ebd-hero-team--home { justify-content: flex-start; }
.ebd-hero-team--away { justify-content: flex-start; flex-direction: row-reverse; width: 100%; justify-self: end; }
.ebd-hero-team--away .ebd-hero-info { text-align: right; }

.ebd-hero-info{ min-width:0; display:flex; flex-direction:column; gap:6px; }
.ebd-hero-topline{ display:flex; align-items:center; gap:10px; }
.ebd-hero-team--away .ebd-hero-topline{ justify-content:flex-end; }

.ebd-logo {
  width: 72px; height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255,255,255,.15));
  flex-shrink: 0;
}

.ebd-hero-team-name {
  font-size: clamp(14px, 0.55vw + 13px, 18px);
  font-weight: 700;
  letter-spacing: -.3px;
  line-height: 1.15;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.ebd-hero-sub { display: flex; gap: 0; align-items: center; margin-top: 0; }
.ebd-hero-team--away .ebd-hero-sub { justify-content: flex-end; }

.ebd-pos-badge {
  background: rgba(255,255,255,.08);
  border-radius: 4px; padding: 2px 6px;
  font-size: 11px; font-weight: 600; color: var(--ebd-muted);
}
.ebd-ppg-pill {
  background: rgba(234,179,8,.12);
  border: 1px solid rgba(234,179,8,.3);
  border-radius: 10px; padding: 2px 8px;
  font-size: 11px; font-weight: 700; color: var(--ebd-gold);
}

/* Center (match info) */
.ebd-hero-mid{ text-align:center; min-width:0; }
.ebd-hero-mid-title{ font-size: clamp(16px, 0.7vw + 14px, 20px); font-weight: 800; letter-spacing:-.4px; line-height:1.2; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap:anywhere; text-wrap: balance; }
.ebd-hero-mid-sub{ font-size: 12px; color: var(--ebd-away); margin-top: 2px; }
.ebd-hero-mid-title .ebd-hero-mid-sub{ display:block; font-weight:400; }
.ebd-hero-mid-score{ display:flex; align-items:center; gap:8px; justify-content:center; margin-top: 8px; }

/* Score box */
.ebd-score { display: flex; align-items: center; gap: 8px; justify-content: center; }
.ebd-score-n {
  font-size: 38px; font-weight: 900; line-height: 1;
  letter-spacing: -2px;
  text-shadow: 0 0 24px currentColor;
}
.ebd-score-sep { font-size: 36px; color: var(--ebd-muted); font-weight: 300; }
.ebd-score-lbl { font-size: 11px; color: var(--ebd-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }

.ebd-vs {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.ebd-vs span {
  font-size: 42px; font-weight: 800; color: var(--ebd-muted);
  letter-spacing: -1px;
}
.ebd-exp-g {
  font-size: 12px; color: var(--ebd-gold);
  background: rgba(234,179,8,.1);
  border: 1px solid rgba(234,179,8,.25);
  border-radius: 12px; padding: 3px 10px;
}

/* ── BODY ────────────────────────────────────────────────────────────────── */
.ebd-body { display: flex; flex-direction: column; gap: 20px; }

/* ── CARDS ───────────────────────────────────────────────────────────────── */
.ebd-card {
  background: var(--ebd-card);
  border: 1px solid var(--ebd-border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.ebd-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
}
.ebd-card--full { width: 100%; }

.ebd-card--result-full .ebd-card-hdr { margin-bottom: 18px; }
.ebd-result-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  gap: 24px;
  align-items: start;
}
.ebd-result-left {
  display: block;
}
.ebd-result-topline {
  display:grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  gap: 18px;
  align-items:start;
}
.ebd-result-center {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  min-width: 96px;
}
.ebd-result-scoreline {
  font-size: clamp(32px, 1.8vw + 18px, 44px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1.5px;
  text-align: center;
}
.ebd-result-half {
  text-align: center;
  font-size: 13px;
  color: var(--ebd-muted);
  margin-top: 8px;
}
.ebd-result-team {
  min-width: 0;
}
.ebd-result-team--home { text-align:right; }
.ebd-result-team--away { text-align:left; }
.ebd-result-team--home .ebd-result-events { align-items:flex-end; }
.ebd-result-team--away .ebd-result-events { align-items:flex-start; }
.ebd-result-team--home .ebd-result-event {
  grid-template-columns: minmax(0,1fr) 42px;
}
.ebd-result-team--home .ebd-result-minute {
  order:2;
  text-align:left;
}
.ebd-result-team--home .ebd-result-event-copy {
  order:1;
}
.ebd-result-team-name {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.2;
}
.ebd-result-events {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ebd-result-event {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.ebd-result-minute {
  font-size: 13px;
  font-weight: 800;
  color: var(--ebd-muted);
  text-align: right;
}
.ebd-result-event-copy {
  min-width: 0;
}
.ebd-result-event-main {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.ebd-result-event-meta {
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  color: var(--ebd-muted);
  line-height: 1.25;
}
.ebd-result-empty {
  font-size: 12px;
  color: var(--ebd-muted);
}
.ebd-result-right .ebd-cmp-row:first-child {
  padding-top: 0;
}

/* Card header */
.ebd-card-hdr {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ebd-border);
}
.ebd-hdr-icon { font-size: 18px; }
.ebd-hdr-mini-logo{width:30px;height:30px;object-fit:contain;opacity:.85;filter:drop-shadow(0 0 6px rgba(255,255,255,.12));}
.ebd-hdr-title {
  font-size: 16px; font-weight: 700; color: var(--ebd-text);
  flex: 1;
}
.ebd-hdr-sub { font-size: 12px; color: var(--ebd-muted); }
.ebd-hdr-left{display:flex;align-items:center;gap:10px;min-width:0;}
.ebd-card-hdr--inline-sub{justify-content:space-between;flex-wrap:nowrap;}
.ebd-card-hdr--inline-sub .ebd-hdr-title{flex:0 1 auto;}
.ebd-card-hdr--inline-sub .ebd-hdr-sub{flex:0 0 auto;white-space:nowrap;}

/* ── Form tabs (Alles / Thuis / Uit) ─────────────────────────────────── */
.ebd-card-hdr--tabs{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.ebd-card-hdr--tabs .ebd-hdr-left{display:flex;align-items:center;gap:10px;min-width:0;}
.ebd-form-tabs{display:flex;gap:6px;flex:0 0 auto;}
.ebd-form-tab{
  border:1px solid var(--ebd-border);
  background: rgba(255,255,255,.04);
  color: var(--ebd-muted);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.ebd-theme-light .ebd-form-tab{background: rgba(15,23,42,0.03);}
.ebd-form-tab.is-active{color: var(--ebd-text); border-color: rgba(234,179,8,.35);}
.ebd-form-badges{display:block;}
.ebd-form-badges-row{display:flex;gap:6px;flex-wrap:wrap;}
@media(max-width:640px){
  .ebd-form-tab{padding:5px 8px;font-size:11px;}
}


/* ── 2-COL ROW ───────────────────────────────────────────────────────────── */
.ebd-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media(max-width:700px){ .ebd-row-2 { grid-template-columns: 1fr; } }

/* ── TABLES (shared) ─────────────────────────────────────────────────────── */
.ebd-tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  border: 1px solid var(--ebd-border);
  border-radius: 12px;
  overflow: hidden;
}
.ebd-tbl thead tr { border-bottom: none; }
.ebd-tbl th {
  padding: 9px 10px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ebd-text);
  background: var(--ebd-tbl-hdr);
  border-bottom: 1px solid var(--ebd-border);
  text-align: left;
}
.ebd-tbl td {
  padding: 9px 10px;
  color: var(--ebd-text);
  border-bottom: 1px solid var(--ebd-border);
  border-right: 1px solid var(--ebd-border);
}
.ebd-tbl th:last-child,
.ebd-tbl td:last-child { border-right: none; }
.ebd-tbl tbody tr:last-child td { border-bottom: none; }
.ebd-tbl tbody tr:hover td { background: var(--ebd-tbl-cell); }

.ebd-th-home { color: var(--ebd-home) !important; }
.ebd-th-away { color: var(--ebd-away) !important; }

/* Odds table */
.ebd-td-odds {
  font-size: 15px; font-weight: 700;
  color: var(--ebd-gold);
  letter-spacing: -.3px;
}
.ebd-td-stat { font-weight: 600; }

/* Prediction table */
.ebd-tbl--pred .ebd-td-lbl { color: var(--ebd-text); font-weight: 500; }
.ebd-td-pct { font-weight: 700; font-size: 14px; text-align: center; }
.ebd-td-avg {
  background: rgba(255,255,255,.03);
  border-left: 1px solid var(--ebd-border) !important;
  font-weight: 800;
}
.ebd-tbl--pred td, .ebd-tbl--pred th { text-align: center; }
.ebd-tbl--pred td:first-child, .ebd-tbl--pred th:first-child { text-align: left; }

/* Team table */
.ebd-tbl--team td:first-child { color: var(--ebd-muted); font-size: 12px; }
.ebd-tbl--team td:nth-child(2) { font-weight: 600; }

/* Mini table */
.ebd-tbl--mini { font-size: 12px; }
.ebd-tbl--mini td { padding: 5px 8px; color: var(--ebd-muted); }
.ebd-tbl--mini td:last-child { font-weight: 700; color: var(--ebd-text); text-align: right; }

/* Player table */
.ebd-tbl--pl .ebd-td-pl { font-weight: 500; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ebd-td-n { text-align: center; font-weight: 600; font-size: 13px; }
.ebd-td-dim { color: var(--ebd-muted); font-size: 12px; }
.ebd-pl-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--ebd-border); }
.ebd-nodata { color: var(--ebd-muted); font-size: 13px; padding: 12px 0; }

/* H2H table */
.ebd-tbl--h2h .ebd-td-date { color: var(--ebd-muted); font-size: 12px; white-space: nowrap; }
.ebd-tbl--h2h th:nth-child(1), .ebd-tbl--h2h td:nth-child(1) { border-right: 1px solid var(--ebd-border); }
.ebd-tbl--h2h .ebd-td-score { font-weight: 800; font-size: 15px; text-align: center; letter-spacing: -.5px; color: var(--ebd-text); white-space: nowrap; }
.ebd-tbl--h2h td { text-align: center; }
.ebd-tbl--h2h .ebd-td-match { text-align: left; font-size: 13px; }
.ebd-row-hw { background: rgba(249,115,22,.04) !important; }
.ebd-row-aw { background: rgba(56,189,248,.04) !important; }
.ebd-row-dr { background: rgba(234,179,8,.03) !important; }
.ebd-badge-y { color: var(--ebd-green); font-weight: 700; }
.ebd-badge-n { color: var(--ebd-red); font-weight: 700; }

/* ── H2H HERO CARD ───────────────────────────────────────────────────────── */
.ebd-card--h2h { background: linear-gradient(135deg, #0d1520 0%, #111827 100%); }

.ebd-rings {
  display: flex; justify-content: center; align-items: center;
  gap: 20px; padding: 8px 0 16px;
}
.ebd-ring-wrap {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  position: relative;
}
.ebd-ring-svg { width: 80px; height: 80px; }
.ebd-ring-txt {
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  text-align: center; pointer-events: none;
}
.ebd-ring-pct { font-size: 16px; font-weight: 800; line-height: 1; }
.ebd-ring-sub { font-size: 9px; color: var(--ebd-muted); line-height: 1.3; }
.ebd-ring-name {
  font-size: 11px; font-weight: 600;
  text-align: center; max-width: 80px;
  line-height: 1.2;
}

.ebd-h2h-bets {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 12px 0 4px;
  border-top: 1px solid var(--ebd-border);
}
.ebd-hbet { text-align: center; flex: 1; min-width: 60px; }
.ebd-hbet-v { font-size: 16px; font-weight: 800; color: var(--ebd-text); }
.ebd-hbet-l { font-size: 10px; color: var(--ebd-muted); margin-top: 2px; }

/* ── PREDICTION INTRO ────────────────────────────────────────────────────── */
.ebd-pred-intro {
  font-size: 13px; color: var(--ebd-muted);
  margin-bottom: 14px;
  padding: 10px 12px;
  background: rgba(255,255,255,.03);
  border-radius: var(--radius-sm);
}

/* ── TEAM CARD ───────────────────────────────────────────────────────────── */
.ebd-card--team { background: linear-gradient(160deg, #101620 0%, var(--ebd-card) 100%); }
.ebd-card-logo { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }

.ebd-form {
  display: flex; align-items: center; gap: 0;
  margin-bottom: 14px;
  padding: 10px 12px;
  background: rgba(255,255,255,.03);
  border-radius: var(--radius-sm);
}
.ebd-form-lbl { font-size: 11px; color: var(--ebd-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px;  margin-right:10px;}
.ebd-form-badges { display: flex; gap: 0; }
.ebd-fb {
  width: 24px; height: 24px;
  border-radius: 0;
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ebd-fw { background: var(--ebd-green); color: #000; }
.ebd-fd { background: var(--ebd-gold); color: #000; }
.ebd-fl { background: var(--ebd-red); color: #fff; }

.ebd-rec {
  display: flex; gap: 8px; align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--ebd-border);
}
.ebd-rec span { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.ebd-rec-w { background: rgba(34,197,94,.15); color: var(--ebd-green); }
.ebd-rec-d { background: rgba(234,179,8,.15); color: var(--ebd-gold); }
.ebd-rec-l { background: rgba(239,68,68,.15); color: var(--ebd-red); }
.ebd-rec-ppg { background: rgba(249,115,22,.15); color: var(--ebd-home); margin-left: auto; }

/* ── COMPARISON BARS ─────────────────────────────────────────────────────── */
.ebd-cmp-names {
  display: flex; justify-content: space-between;
  padding: 0 8px 12px;
  font-size: 13px; font-weight: 700;
}
.ebd-cmp-row {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.03);
}
.ebd-cmp-row:last-child { border-bottom: none; }
.ebd-cmp-hv { font-weight: 700; font-size: 14px; text-align: right; }
.ebd-cmp-av { font-weight: 700; font-size: 14px; }
.ebd-cmp-lbl { font-size: 11px; color: var(--ebd-muted); margin-bottom: 5px; text-align: center; }
.ebd-cmp-bar {
  height: 8px;
  background: rgba(255,255,255,.06);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
}
.ebd-bar-h {
  height: 100%;
  background: linear-gradient(90deg, var(--ebd-home), rgba(249,115,22,.7));
  border-radius: 4px 0 0 4px;
  transition: width .4s ease;
}
.ebd-bar-a {
  height: 100%;
  background: linear-gradient(90deg, rgba(56,189,248,.7), var(--ebd-away));
  border-radius: 0 4px 4px 0;
  transition: width .4s ease;
}



/* ── AI VOORSPELLING (API-Football) ─────────────────────────────────────── */
.ebd-ai-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}
.ebd-ai-left{
  position:relative;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  min-height: 360px;
  display:flex;
  align-items:stretch;
  justify-content:center;
}
.ebd-ai-radar-wrap{
  position:relative;
  width:min(100%, 560px);
  height:clamp(360px, 42vw, 560px);
  margin:0 auto;
}
.ebd-ai-left canvas{ width:100% !important; height:100% !important; display:block; }
.ebd-ai-info-btn{
  position:absolute;
  top:12px;
  right:12px;
  width:28px;
  height:28px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.05);
  color:var(--ebd-text);
  font-size:14px;
  font-weight:700;
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:3;
}
.ebd-ai-info-pop{
  position:absolute;
  top:46px;
  right:12px;
  width:min(360px, calc(100% - 24px));
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(15,23,42,.96);
  box-shadow:0 18px 40px rgba(0,0,0,.28);
  z-index:4;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.ebd-ai-info-pop[hidden]{ display:none !important; }
.ebd-ai-note{ margin:10px 2px 16px; padding:10px 12px; border-radius:10px; background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.07); }
.ebd-ai-formulas{ margin-top:14px; display:flex; flex-direction:column; gap:4px; }
@media (max-width: 820px){
  .ebd-ai-grid{ grid-template-columns: 1fr; }
  .ebd-ai-left{ min-height:auto; }
  .ebd-ai-radar-wrap{ width:100%; max-width:none; height:clamp(320px, 78vw, 430px); }
  .ebd-ai-info-pop{ left:12px; right:12px; width:auto; }
}

/* ── INJURIES (API-Football) ─────────────────────────────────────────── */
.ebd-inj-list{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; }
.ebd-inj-item{ display:flex; gap:10px; align-items:center; padding:10px 12px; border-radius:12px; background: rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.06); }
.ebd-inj-photo{ width:34px; height:34px; border-radius:999px; object-fit:cover; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08); flex:0 0 auto; }
.ebd-inj-main{ min-width:0; display:flex; flex-direction:column; gap:2px; }
.ebd-inj-name{ font-size:13px; font-weight:700; color: var(--ebd-text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ebd-inj-sub{ font-size:12px; color: var(--ebd-muted); line-height:1.25; }
/* ebd-inj-tag removed (we show all info in the sub line) */

/* ── TRENDS (FootyStats) ───────────────────────────────────────────────── */
.ebd-trends{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; }
.ebd-trend{ display:flex; gap:10px; align-items:flex-start; padding:10px 12px; border-radius:12px; background: rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.06); }
.ebd-trend-dot{ flex:0 0 auto; width:10px; height:10px; border-radius:999px; margin-top:4px; background: rgba(255,255,255,.25); box-shadow: 0 0 10px rgba(255,255,255,.08); }
.ebd-trend-txt{ font-size:13px; line-height:1.35; color: var(--ebd-text); }
.ebd-trend--great{ border-color: rgba(34,197,94,.25); }
.ebd-trend--bad{ border-color: rgba(239,68,68,.25); }
.ebd-trend--chart{ border-color: rgba(59,130,246,.25); }
.ebd-trend--great .ebd-trend-dot{ background: rgba(34,197,94,.85); box-shadow: 0 0 12px rgba(34,197,94,.25); }
.ebd-trend--bad .ebd-trend-dot{ background: rgba(239,68,68,.85); box-shadow: 0 0 12px rgba(239,68,68,.25); }
.ebd-trend--chart .ebd-trend-dot{ background: rgba(59,130,246,.85); box-shadow: 0 0 12px rgba(59,130,246,.25); }
/* ── xG CHART ────────────────────────────────────────────────────────────── */
.ebd-xg-wrap {
  position: relative;
  height: 160px;
}

/* ── CORNERS ─────────────────────────────────────────────────────────────── */
.ebd-corners-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 20px;
}
.ebd-corners-side { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ebd-corners-logo { width: 44px; height: 44px; object-fit: contain; }
.ebd-corners-name { font-size: 13px; font-weight: 700; text-align: center; }
.ebd-corners-mid {
  text-align: center;
  padding: 16px;
  background: rgba(255,255,255,.04);
  border-radius: var(--radius-sm);
  border: 1px solid var(--ebd-border);
}
.ebd-corners-total-lbl { font-size: 10px; color: var(--ebd-muted); text-transform: uppercase; letter-spacing: .5px; }
.ebd-corners-total { font-size: 36px; font-weight: 800; color: var(--ebd-gold); line-height: 1; margin: 4px 0; }
.ebd-corners-sub { font-size: 11px; color: var(--ebd-muted); }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media(max-width:640px){
  .ebd-hero-teams { grid-template-columns: 1fr auto 1fr; gap: 10px; }
  .ebd-hero-team--home { justify-content: flex-start; }
  /* keep away block pinned to the right (row-reverse => flex-start aligns right) */
  .ebd-hero-team--away { justify-content: flex-start; justify-self: end; }
  .ebd-hero-score { order: 0; }
  .ebd-score-n { font-size: 40px; }
  .ebd-logo { width: 52px; height: 52px; }
  .ebd-hero-name { font-size: 16px; }
  .ebd-rings { gap: 12px; }
  .ebd-ring-svg { width: 64px; height: 64px; }
  .ebd-corners-wrap { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ebd-corners-mid { grid-column: 1 / -1; order: 3; }
  /* v3.3.1 tweaks */
  .ebd-hero-team-name{font-size:12px; line-height:1.2;}
  .ebd-hero-mid-title{font-size:15px; line-height:1.2;}
  .ebd-hero-info{gap:6px;}
  .ebd-card-hdr .ebd-hdr-title{flex:1 1 0;} /* keep icon+title on same line */
  .ebd-card-hdr--inline-sub{flex-wrap:nowrap;align-items:center;}
  .ebd-card-hdr--inline-sub .ebd-hdr-sub{flex:0 0 auto;order:3;margin-top:0;}
  .ebd-card-hdr--inline-sub .ebd-hdr-title{order:2;}
  .ebd-card-hdr--inline-sub .ebd-hdr-left{order:1;min-width:0;}
  /* standings: tighter + fixed widths */
  .ebd-tbl--standing{table-layout:fixed;}
  .ebd-tbl--standing th, .ebd-tbl--standing td{padding:4px 2px;font-size:10.5px;}
  /* make # and Team columns as small as possible while keeping all columns visible */
  .ebd-tbl--standing th:nth-child(1), .ebd-tbl--standing td:nth-child(1){width:16px;}
  .ebd-tbl--standing th:nth-child(2), .ebd-tbl--standing td:nth-child(2){width:90px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .ebd-tbl--standing th:nth-child(3), .ebd-tbl--standing td:nth-child(3){width:20px;}
  .ebd-tbl--standing th:nth-child(4), .ebd-tbl--standing td:nth-child(4),
  .ebd-tbl--standing th:nth-child(5), .ebd-tbl--standing td:nth-child(5),
  .ebd-tbl--standing th:nth-child(6), .ebd-tbl--standing td:nth-child(6),
  .ebd-tbl--standing th:nth-child(7), .ebd-tbl--standing td:nth-child(7),
  .ebd-tbl--standing th:nth-child(8), .ebd-tbl--standing td:nth-child(8),
  .ebd-tbl--standing th:nth-child(9), .ebd-tbl--standing td:nth-child(9){width:20px;}
  .ebd-tbl--standing th:nth-child(10), .ebd-tbl--standing td:nth-child(10){width:24px;}
  .ebd-result-grid{grid-template-columns:1fr;gap:18px;}
  .ebd-result-teams{grid-template-columns:1fr;}
  .ebd-result-scoreline{font-size:32px;}
  .ebd-result-event{grid-template-columns:38px minmax(0,1fr);}
  /* previous meetings */
  .ebd-tbl--h2h th, .ebd-tbl--h2h td{padding:6px 4px;font-size:11px;}

}


@media(max-width:480px){
  .ebd-tbl--pred th:nth-child(4),
  .ebd-tbl--pred td:nth-child(4) { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   NEW SECTIONS v2.2
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── CURRENT FORM HERO ────────────────────────────────────────────────────── */
.ebd-form-hero {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 16px;
  align-items: start;
}
.ebd-form-hero-side { display: flex; flex-direction: column; gap: 10px; }
.ebd-form-hero-side--away { align-items: flex-end; }
.ebd-form-side-tabs { display: flex; gap: 4px; }
.ebd-form-hero-side--away .ebd-form-side-tabs { justify-content: flex-end; }
.ebd-form-hero-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: var(--ebd-muted);
}
.ebd-form-hero-top {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.ebd-form-hero-side--away .ebd-form-hero-top { align-items: flex-end; text-align: right; }
.ebd-form-logo { width: 52px; height: 52px; object-fit: contain; }
.ebd-ppg-big {
  font-size: 38px; font-weight: 900; line-height: 1;
  letter-spacing: -1px;
  text-shadow: 0 0 20px currentColor;
}
.ebd-form-badges-row { display: flex; gap: 0; flex-wrap: wrap; }

.ebd-form-hero-bar-wrap {
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
  padding: 12px 0;
}
.ebd-ppg-bars {
  width: 100%; height: 12px;
  border-radius: 6px; overflow: hidden;
  display: flex;
  background: rgba(255,255,255,.06);
}
.ebd-ppg-bar-h { height: 100%; background: linear-gradient(90deg,var(--ebd-home),rgba(249,115,22,.6)); border-radius:6px 0 0 6px; transition:width .5s ease; }
.ebd-ppg-bar-a { height: 100%; background: linear-gradient(90deg,rgba(56,189,248,.6),var(--ebd-away)); border-radius:0 6px 6px 0; transition:width .5s ease; }
.ebd-ppg-diff {
  font-size: 13px; color: var(--ebd-muted); text-align: center; line-height: 1.5;
}
.ebd-ppg-diff-icon { font-size: 16px; display: block; margin-bottom: 4px; }

/* Recent matches */
.ebd-recent-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--ebd-border);
}
.ebd-recent-title { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.ebd-recent-row {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.03);
  font-size: 12px;
}
.ebd-recent-row--away { justify-content: flex-end; }
.ebd-rec-badge {
  width: 20px; height: 20px; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; flex-shrink: 0;
}
.ebd-rec-r-w { background:rgba(34,197,94,.2);color:var(--ebd-green); }
.ebd-rec-r-d { background:rgba(234,179,8,.2);color:var(--ebd-gold); }
.ebd-rec-r-l { background:rgba(239,68,68,.2);color:var(--ebd-red); }
.ebd-rec-opp { flex: 1; color: var(--ebd-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ebd-rec-sc { font-weight: 700; font-size: 12px; white-space: nowrap; padding: 2px 6px; border-radius: 4px; }

/* ── WILL TEAM SCORE? ─────────────────────────────────────────────────────── */
.ebd-card--scoring { background: linear-gradient(150deg, #0d1828 0%, var(--ebd-card) 100%); }

.ebd-scoring-body {
  display: grid; grid-template-columns: 90px 1fr 90px;
  align-items: center; gap: 16px;
  padding: 8px 0;
}
.ebd-scoring-side {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px; text-align: center;
}
.ebd-scoring-logo { width: 48px; height: 48px; object-fit: contain; }
.ebd-scoring-stat { font-size: 26px; font-weight: 900; line-height: 1; }
.ebd-scoring-sublbl { font-size: 10px; color: var(--ebd-muted); line-height: 1.3; text-align: center; }

.ebd-scoring-mid { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ebd-chance-icon { font-size: 22px; }
.ebd-chance-lbl { font-size: 18px; font-weight: 800; color: var(--ebd-text); }
.ebd-chance-bar-wrap { width: 100%; }
.ebd-chance-bar {
  height: 10px; width: 100%;
  background: rgba(255,255,255,.06);
  border-radius: 5px; overflow: hidden;
}
.ebd-chance-fill { height: 100%; border-radius: 5px; transition: width .5s ease; }
.ebd-home-fill { background: linear-gradient(90deg, var(--ebd-home), rgba(249,115,22,.6)); }
.ebd-away-fill { background: linear-gradient(90deg, var(--ebd-away), rgba(56,189,248,.6)); }
.ebd-chance-desc { font-size: 12px; color: var(--ebd-muted); text-align: center; line-height: 1.5; }

/* ── DUAL PLAYER TABLES ───────────────────────────────────────────────────── */
.ebd-dual-pl-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ebd-dual-pl-side {}
.ebd-dual-pl-title { font-size: 12px; font-weight: 700; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .5px; }
.ebd-tbl--mini-pl .ebd-td-pl { font-size: 12px; font-weight: 500; }
.ebd-tbl--mini-pl td { padding: 7px 8px; }
.ebd-tbl--mini-pl th { font-size: 10px; }

/* ── SHOTS CARD ───────────────────────────────────────────────────────────── */
.ebd-dropdown-wrap { margin-left: auto; }
.ebd-shots-toggle, .ebd-card select {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--ebd-border);
  border-radius: 6px;
  color: var(--ebd-text);
  font-size: 12px;
  padding: 5px 10px;
  cursor: pointer;
  outline: none;
}
.ebd-shots-toggle:focus { border-color: var(--ebd-home); }

.ebd-shots-grid { display: flex; flex-direction: column; gap: 16px; }
.ebd-shots-row {}
.ebd-shots-lbl { font-size: 12px; color: var(--ebd-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }
.ebd-shots-vals {
  display: grid; grid-template-columns: 48px 1fr 48px;
  align-items: center; gap: 10px;
}
.ebd-shots-hval, .ebd-shots-aval {
  font-size: 20px; font-weight: 800; line-height: 1;
  text-align: center;
}
.ebd-shots-aval { text-align: center; }
.ebd-shots-names {
  display: flex; justify-content: space-between;
  margin-top: 4px; font-size: 11px; font-weight: 600;
  padding: 0 58px;
}

/* ── CORNERS TABLE ────────────────────────────────────────────────────────── */
.ebd-tbl--corners .ebd-td-lbl { font-weight: 600; }
.ebd-corners-avg-note {
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(255,255,255,.03);
  border-radius: var(--radius-sm);
  font-size: 13px; color: var(--ebd-muted);
  text-align: center;
}
.ebd-gold { color: var(--ebd-gold) !important; }

/* ── RESPONSIVE additions ─────────────────────────────────────────────────── */
@media(max-width:640px){
  .ebd-form-hero { grid-template-columns: 1fr; }
  .ebd-form-hero-bar-wrap { order: -1; }
  .ebd-form-hero-side--away { align-items: flex-end; }
  .ebd-scoring-body { grid-template-columns: 70px 1fr 70px; gap: 10px; }
  .ebd-scoring-stat { font-size: 20px; }
  .ebd-dual-pl-wrap { grid-template-columns: 1fr; }
  .ebd-recent-wrap { grid-template-columns: 1fr; }
  .ebd-shots-names { padding: 0 58px; font-size: 10px; }
}


/* v3.3.7 – targeted fixes */
.ebd-formmini-badges { display: flex; align-items: center; gap: 0; flex-wrap: nowrap; }
.ebd-recent-row--match { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; }
.ebd-recent-row--match .ebd-rec-team--home { min-width: 0; text-align: left; }
.ebd-recent-row--match .ebd-rec-team--away { min-width: 0; text-align: right; }
.ebd-recent-row--match .ebd-rec-sc { justify-self: center; }
.ebd-recent-row--away { justify-content: initial; }

/* ── SMALL FORM BADGES in hero ────────────────────────────────────────────── */
.ebd-fb--sm { width: 18px; height: 18px; font-size: 9px; border-radius: 0; }

/* ── LEAGUE STANDING TABLE ───────────────────────────────────────────────── */
.ebd-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ebd-tbl--standing { min-width: 460px; }
.ebd-tbl--standing .ebd-td-pos { font-weight: 700; color: var(--ebd-muted); width: 28px; }
.ebd-tbl--standing .ebd-td-team-name { font-weight: 600; text-align: left; min-width: 120px; }
.ebd-tbl--standing .ebd-td-pts { font-weight: 800; }
.ebd-tbl--standing .ebd-td-pos-num { color: var(--ebd-green); font-weight: 700; }
.ebd-tbl--standing .ebd-td-neg-num { color: var(--ebd-red); font-weight: 700; }
.ebd-tbl--standing th { text-align: center; }
.ebd-tbl--standing th:nth-child(2) { text-align: left; }

.ebd-stand-home {
    background: rgba(249,115,22,.07) !important;
    border-left: 3px solid var(--ebd-home);
}
.ebd-stand-away {
    background: rgba(56,189,248,.07) !important;
    border-left: 3px solid var(--ebd-away);
}
.ebd-stand-home td, .ebd-stand-away td { position: relative; }

/* ── SHOTS PER PLAYER TABLE ──────────────────────────────────────────────── */
.ebd-tbl--pl-shots .ebd-td-pl { font-size: 12px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ebd-tbl--pl-shots td { padding: 7px 8px; }

/* ── xG DUO CHARTS ───────────────────────────────────────────────────────── */
.ebd-xg-duo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.ebd-xg-half-hdr {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.ebd-xg-half-title { font-size: 13px; font-weight: 700; color: var(--ebd-muted); text-transform: uppercase; letter-spacing: .5px; }
.ebd-xg-select {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--ebd-border);
  border-radius: 6px; color: var(--ebd-text);
  font-size: 12px; padding: 4px 8px; cursor: pointer; outline: none;
}
.ebd-xg-chart-wrap { position: relative; height: 160px; }
@media(max-width:640px){ .ebd-xg-duo { grid-template-columns: 1fr; } }

/* ── H2H STAT TABLE ──────────────────────────────────────────────────────── */
.ebd-h2h-stat-tbl {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--ebd-border);
}
.ebd-tbl--h2h-stats .ebd-td-lbl { font-size: 12px; color: var(--ebd-muted); }
.ebd-tbl--h2h-stats .ebd-td-n { font-weight: 700; text-align: center; font-size: 14px; }

/* ── Percentage cell background colors ───────────────────────────────────── */
.ebd-tbl--pred .ebd-td-pct,
.ebd-tbl--corners .ebd-td-pct {
  padding: 8px 6px;
  border-radius: 4px;
  font-weight: 700;
  transition: background .2s;
}
.ebd-tbl--pred td,
.ebd-tbl--corners td {
  padding: 7px 6px;
}

/* ── H2H BAR ─────────────────────────────────────────────────────────────── */
.ebd-h2h-bar-wrap { padding: 4px 0 8px; }
.ebd-h2h-summary{ margin-top:12px; display:flex; flex-direction:column; gap:4px; }
.ebd-h2h-bar-logos {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.ebd-h2h-bar-team {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  min-width: 100px;
}
.ebd-h2h-bar-team--away { align-items: flex-end; }
.ebd-h2h-logo { width: 48px; height: 48px; object-fit: contain; }
.ebd-h2h-bar-name { font-size: 13px; font-weight: 700; }
.ebd-h2h-bar-pct { font-size: 12px; font-weight: 600; }
.ebd-h2h-bar-center { text-align: center; flex: 1; }
.ebd-h2h-total-n { font-size: 28px; font-weight: 900; color: var(--ebd-text); line-height: 1; }
.ebd-h2h-total-lbl { font-size: 11px; color: var(--ebd-muted); margin-top: 2px; }

.ebd-h2h-bar-track {
  display: flex; width: 100%; height: 32px;
  border-radius: 6px; overflow: hidden;
}
.ebd-h2h-seg {
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: #fff;
  transition: width .4s ease;
  min-width: 0;
}
.ebd-h2h-seg span { white-space: nowrap; }
.ebd-h2h-seg--home { background: var(--ebd-home); }
.ebd-h2h-seg--draw { background: var(--ebd-gold); color: #000; }
.ebd-h2h-seg--away { background: var(--ebd-away); color: #000; }

.ebd-h2h-bar-labels {
  display: flex; justify-content: space-between;
  margin-top: 8px; font-size: 12px;
}
.ebd-h2h-bar-lbl { text-align: center; font-weight: 600; line-height: 1.4; }

/* ── TOPSCORER CARDS ─────────────────────────────────────────────────────── */
.ebd-card--topscorer {
  background: linear-gradient(150deg, #0f1a2e 0%, var(--ebd-card) 100%);
}
.ebd-topscorer-body {
  display: flex; gap: 16px; align-items: flex-start;
}
.ebd-topscorer-left {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.ebd-topscorer-photo {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ebd-border);
  background: var(--ebd-bg3);
}
.ebd-topscorer-photo-placeholder {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 900;
  background: rgba(255,255,255,.04);
}
.ebd-topscorer-club-logo {
  width: 28px; height: 28px; object-fit: contain;
}
.ebd-topscorer-right { flex: 1; min-width: 0; }
.ebd-topscorer-name {
  font-size: 18px; font-weight: 800;
  line-height: 1.2; margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ebd-topscorer-pos {
  font-size: 12px; color: var(--ebd-muted); margin-bottom: 14px;
}
.ebd-topscorer-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.ebd-ts-stat { text-align: center; }
.ebd-ts-val {
  font-size: 22px; font-weight: 900; line-height: 1;
  color: var(--ebd-text);
}
.ebd-ts-lbl {
  font-size: 10px; color: var(--ebd-muted);
  margin-top: 3px; text-transform: uppercase; letter-spacing: .3px;
}

@media(max-width:480px){
  .ebd-topscorer-stats { grid-template-columns: repeat(2,1fr); }
  .ebd-topscorer-photo, .ebd-topscorer-photo-placeholder { width: 60px; height: 60px; }
  .ebd-topscorer-name { font-size: 15px; }
}

/* ── PLAYER BAR LISTS (Topscorers / Assists) ─────────────────────────────── */
.ebd-pl-bar-section { margin-bottom: 18px; }
.ebd-pl-bar-section:last-child { margin-bottom: 0; }
.ebd-pl-bar-team-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; margin-bottom: 8px;
}
.ebd-pl-bar-row {
  display: block;
  padding: 4px 0;
}
.ebd-pl-bar-info {
  display: flex; align-items: center; gap: 6px;
  overflow: hidden;
}
.ebd-pl-nat {
  font-size: 11px; color: var(--ebd-muted); flex-shrink: 0;
  font-style: italic;
}
.ebd-pl-name {
  font-size: 13px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ebd-pl-bar-track {
  position: relative;
  height: 30px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--ebd-border);
  border-radius: 6px;
  overflow: hidden;
}

.ebd-pl-bar-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  height: 100%;
  border-radius: 6px;
  transition: width .4s ease;
  z-index: 1;
}

.ebd-pl-bar-fill--home {
  background: linear-gradient(90deg, rgba(249,115,22,.5), rgba(249,115,22,.85));
}
.ebd-pl-bar-fill--away {
  background: linear-gradient(90deg, rgba(56,189,248,.5), rgba(56,189,248,.85));
}

.ebd-pl-bar-text{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 10px;
  font-size:13px; font-weight:600;
  color:#e2e8f0;
  z-index:2;
  pointer-events:none;
}
.ebd-pl-bar-text-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ebd-pl-bar-text-val{flex:0 0 auto;margin-left:10px;}
.ebd-pl-bar-val {
  font-size: 14px; font-weight: 800;
  text-align: right; white-space: nowrap;
}

/* ── ENHANCED PERCENTAGE COLOR SCALE (via PHP ebd_bg_col / ebd_col) ──────── */
/* 5-step scale: 0%, 1-29%, 30-49%, 50-69%, 70-89%, 90-100% */
/* Applied inline via PHP - CSS just ensures text contrast */
.ebd-tbl--pred .ebd-td-pct,
.ebd-tbl--corners .ebd-td-pct {
  font-weight: 800;
  font-size: 13px;
}

@media(max-width:480px){
  .ebd-pl-name { font-size: 12px; }
}

/* hero-away override (consolidated below) */

/* ── NAVIGATION BAR ──────────────────────────────────────────────────────── */
.ebd-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,14,26,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ebd-border);
  margin-bottom: 20px;
}
.ebd-nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ebd-nav-inner::-webkit-scrollbar { display: none; }
.ebd-nav-link {
  display: block; padding: 12px 18px;
  font-size: 12px; font-weight: 600;
  color: var(--ebd-muted);
  text-decoration: none;
  text-transform: uppercase; letter-spacing: .6px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.ebd-nav-link:hover, .ebd-nav-link.ebd-nav-active {
  color: var(--ebd-home);
  border-bottom-color: var(--ebd-home);
}
.ebd-section-anchor {
  display: block; height: 0;
  margin-top: -52px; padding-top: 52px;
  visibility: hidden;
}

/* ── OVERRIDE v2.7 rules that conflict ───────────────────────────────────── */
/* v2.7 had hero-team--home as flex-end, this overrides it */

/* ── GOALS VOOR / GOALS TEGEN TABLES ────────────────────────────────────── */
.ebd-tbl--goals-for,
.ebd-tbl--goals-ag { width: 100%; }

.ebd-tbl--goals-for .ebd-td-pct,
.ebd-tbl--goals-ag  .ebd-td-pct {
  padding: 7px 6px; border-radius: 4px;
  font-weight: 800; font-size: 13px;
  text-align: center;
}
.ebd-tbl--goals-for td,
.ebd-tbl--goals-ag  td { padding: 6px 6px; }

/* Goals bar */
.ebd-goals-bar-wrap { margin-top: 14px; }
.ebd-goals-bar-lbl {
  font-size: 11px; color: var(--ebd-muted);
  text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: 6px;
}
.ebd-goals-bar-track {
  display: flex; width: 100%; height: 28px;
  border-radius: 6px; overflow: hidden;
}
.ebd-goals-seg {
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff;
  min-width: 0; transition: width .4s;
}
.ebd-goals-seg span { white-space: nowrap; }
.ebd-goals-seg--home { background: var(--ebd-home); }
.ebd-goals-seg--away { background: var(--ebd-away); color: #000; }

/* ── GOALS LOGO BAR (above goals tables) ─────────────────────────────────── */
.ebd-goals-logo-bar { margin-bottom: 14px; display: flex; flex-direction: column; gap: 10px; }
.ebd-glb-team { display: flex; align-items: center; gap: 10px; }
.ebd-glb-logo { width: 32px; height: 32px; object-fit: contain; flex-shrink: 0; }
.ebd-glb-track {
  flex: 1; height: 26px;
  background: rgba(255,255,255,.05);
  border-radius: 4px; overflow: hidden;
}
.ebd-glb-fill {
  height: 100%; display: flex; align-items: center;
  padding: 0 10px; min-width: 40px;
  border-radius: 4px; transition: width .4s;
  font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden;
}
.ebd-glb-fill--home { background: rgba(34,197,94,0.75); color: #fff; }
.ebd-glb-fill--away { background: rgba(239,68,68,0.70);  color: #fff; }
.ebd-glb-sub { font-size: 11px; color: var(--ebd-muted); white-space: nowrap; min-width: 80px; }

/* Remove old goals bar */
.ebd-goals-bar-wrap { display: none; }

/* Table column widths (no Gem. column) */
.ebd-tbl--goals-for .ebd-td-pct,
.ebd-tbl--goals-ag  .ebd-td-pct { width: 30%; text-align: center; }

/* ── GLB sub hidden ──────────────────────────────────────────────────────── */
.ebd-glb-sub { display: none; }

/* ── KEEPER CARD slight tint ─────────────────────────────────────────────── */
.ebd-card--keeper .ebd-topscorer-stats { grid-template-columns: repeat(3,1fr); }

/* ── GOALS PER 15 MIN CHART ──────────────────────────────────────────────── */
.ebd-g15-wrap { padding: 8px 0 4px; height: 190px; position: relative; }
.ebd-g15-canvas { width: 100% !important; }

/* ── SEASON STATS COMPARISON TABLE ──────────────────────────────────────── */
.ebd-tbl--season-stats { width: 100%; }
.ebd-tbl--season-stats th,
.ebd-tbl--season-stats td { padding: 8px 10px; }
.ebd-tbl--season-stats thead th:first-child { text-align: right; }
.ebd-tbl--season-stats thead th:last-child  { text-align: left; }
.ebd-tss-lbl {
  text-align: center !important;
  font-size: 12px; color: var(--ebd-muted);
  white-space: nowrap;
}
.ebd-tss-val {
  text-align: center;
  font-size: 15px; font-weight: 700;
  width: 30%;
}
.ebd-tss-best {
  font-size: 17px;
  background: rgba(255,255,255,.04);
  border-radius: 6px;
}
.ebd-tbl--season-stats thead th:first-child,
.ebd-tbl--season-stats .ebd-tss-val:first-child { text-align: right; }
.ebd-tbl--season-stats thead th:last-child,
.ebd-tbl--season-stats .ebd-tss-val:last-child  { text-align: left; }

/* ── ODDS TABS ───────────────────────────────────────────────────────────── */
.ebd-card--odds { }
.ebd-odds-tabs {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-bottom: 14px;
}
.ebd-otab {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--ebd-muted);
  border-radius: 5px;
  padding: 5px 12px;
  font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all .18s;
  white-space: nowrap;
}
.ebd-otab:hover { background: rgba(255,255,255,.12); color: #e2e8f0; }
.ebd-otab--active {
  background: var(--ebd-accent);
  border-color: var(--ebd-accent);
  color: #fff;
}
.ebd-otab-pane { display: none; }
.ebd-otab-pane--active { display: block; }

/* Odds table */
.ebd-tbl--odds td, .ebd-tbl--odds th { padding: 7px 8px; }
.ebd-td-odds {
  font-size: 15px; font-weight: 800;
  color: var(--ebd-gold);
  text-align: center; width: 70px;
}
.ebd-odds-pct { text-align: center; font-size: 12px; color: var(--ebd-muted); }
.ebd-muted { color: var(--ebd-muted); font-size: 12px; }

/* Bookmaker comparison table */
.ebd-bm-market-title {
  font-size: 13px; font-weight: 700;
  color: var(--ebd-gold); letter-spacing: .4px;
  margin: 14px 0 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ebd-bm-market-title:first-child { margin-top: 0; }
.ebd-tbl--bm th { font-size: 11px; white-space: nowrap; }
.ebd-tbl--bm .ebd-bm-outcome-lbl { font-weight: 600; white-space: nowrap; }
.ebd-bm-best {
  color: var(--ebd-green) !important;
  font-weight: 800;
}

/* ── EV VOORSPELLINGEN TABLE ─────────────────────────────────────────────── */
.ebd-card--voorspl { }
.ebd-otab-pane2 { display: none; }
.ebd-otab-pane2--active { display: block; }

.ebd-tbl--ev { width: 100%; }
.ebd-tbl--ev th {
  font-size: 11px; text-align: center;
  padding: 8px 6px; line-height: 1.3;
}
.ebd-tbl--ev th:first-child { text-align: left; }
.ebd-tbl--ev td { padding: 9px 6px; vertical-align: middle; }

.ebd-ev-lbl   { font-weight: 600; font-size: 13px; min-width: 130px; }
.ebd-ev-sub   { font-size: 10px; color: var(--ebd-muted); margin-top: 2px; }
.ebd-ev-stat  { text-align: center; font-size: 13px; font-weight: 600; }
.ebd-ev-implied { text-align: center; font-size: 13px; color: var(--ebd-muted); }
.ebd-ev-num   { text-align: center; font-weight: 800; font-size: 14px; }
.ebd-ev-pos   { color: var(--ebd-green); }
.ebd-ev-neg   { color: var(--ebd-red); }
.ebd-ev-verdict {
  text-align: center; font-weight: 800;
  font-size: 12px; border-radius: 5px;
  padding: 4px 8px;
}
.ebd-ev-good { background: rgba(34,197,94,.2);  color: var(--ebd-green); }
.ebd-ev-bad  { background: rgba(239,68,68,.15); color: var(--ebd-red); }

/* Alternating rows */
.ebd-tbl--ev tbody tr:nth-child(even) { background: rgba(255,255,255,.025); }


/* ── npxG vs Goals cards ─────────────────────────────────────────────── */
.ebd-card--npxg{
  background: linear-gradient(150deg, #0f1a2e 0%, var(--ebd-card) 100%);
}
.ebd-npxg-list{display:flex;flex-direction:column;gap:10px;}
.ebd-npxg-item{display:flex;gap:12px;align-items:flex-start;padding:10px;border:1px solid var(--ebd-border);border-radius:12px;background:rgba(255,255,255,.02);}
.ebd-npxg-item--big{padding:14px;}
.ebd-npxg-photo{width:54px;height:54px;border-radius:50%;object-fit:cover;border:2px solid var(--ebd-border);background:var(--ebd-bg3);flex-shrink:0;}
.ebd-npxg-item--big .ebd-npxg-photo{width:72px;height:72px;}
.ebd-npxg-photo--ph{display:flex;align-items:center;justify-content:center;font-weight:900;font-size:26px;color:var(--ebd-text);}
.ebd-npxg-mid{flex:1;min-width:0;}
.ebd-npxg-name{font-weight:800;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ebd-npxg-item--big .ebd-npxg-name{font-size:17px;}
.ebd-npxg-metrics{display:flex;gap:10px;flex-wrap:wrap;font-size:12px;color:var(--ebd-muted);margin-top:4px;}
.ebd-npxg-metrics strong{color:var(--ebd-text);font-weight:800;}
.ebd-npxg-diff{font-weight:900;color:var(--ebd-gold,#eab308);}
.ebd-npxg-bar{margin-top:8px;}
.ebd-npxg-track{position:relative;height:10px;border-radius:999px;background:rgba(255,255,255,.06);overflow:hidden;}
.ebd-npxg-fill{position:absolute;left:0;top:0;bottom:0;width:100%;background:rgba(255,255,255,.10);}
.ebd-npxg-goals{position:absolute;left:0;top:0;bottom:0;background:rgba(34,197,94,.45);}
.ebd-npxg-bar-lbl{font-size:10px;color:var(--ebd-muted);margin-top:4px;text-transform:uppercase;letter-spacing:.4px;}


/* ── Mobile tightening (only) ────────────────────────────────────────── */
@media(max-width:640px){
  .ebd-dashboard{padding:0 0 42px;}
  .ebd-hero{padding:18px 0 18px;margin-bottom:0;}
  .ebd-hero-meta{gap:6px;padding:0 10px;}

  /* mobile hero layout like widget: center info on its own row */
  .ebd-hero-teams{grid-template-columns:1fr 1fr;grid-template-areas:'mid mid' 'home away';gap:12px;padding:0 10px;}
  .ebd-hero-mid{grid-area:mid;}
  .ebd-hero-team--home{grid-area:home;}
  .ebd-hero-team--away{grid-area:away;}
  .ebd-hero-team--away{width:auto; margin-left:auto; justify-content:flex-start;}

  .ebd-hero-mid-title{font-size:16px;white-space:normal;}

  .ebd-logo{width:52px;height:52px;}
  .ebd-score-n{font-size:34px;}

  /* headers: title full width, sub below */
  .ebd-card{padding:10px;border-radius:0;border-left:none;border-right:none;}
  .ebd-card-hdr{flex-wrap:wrap;align-items:flex-start;gap:8px;margin-bottom:12px;padding-bottom:10px;}
  .ebd-hdr-title{flex:1 1 auto;order:2;min-width:0;}
  .ebd-hdr-sub{flex:0 0 100%;order:3;margin-top:-4px;}
  .ebd-dropdown-wrap{flex:0 0 100%;order:4;margin-top:6px;}
  .ebd-hdr-icon,.ebd-hdr-mini-logo{order:1;}

  /* tables: allow horizontal scrolling */
  .ebd-table-wrap{margin:0;padding:0;}

  /* predictions table: show home+away, hide average to fit */
  .ebd-tbl--pred{table-layout:fixed;width:100%;}
  .ebd-tbl--pred th,
  .ebd-tbl--pred td{padding:6px 4px;font-size:12px;}
  .ebd-tbl--pred th:nth-child(4),
  .ebd-tbl--pred td:nth-child(4){display:none;}
  .ebd-tbl--pred td:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

  /* goals per 15 min: keep chart visible */
  .ebd-g15-wrap{height:200px;}
  .ebd-g15-canvas{height:200px !important;}

  /* current form: show home/away next to each other on mobile */
  .ebd-form-hero{grid-template-columns:1fr 1fr;grid-template-areas:'home away' 'bar bar';gap:12px;}
  .ebd-form-hero-side--home{grid-area:home;}
  .ebd-form-hero-side--away{grid-area:away;}
  .ebd-form-hero-bar-wrap{grid-area:bar;order:0;}
}

@media(max-width:380px){
  .ebd-hero-score .ebd-vs span{display:none;}
}

@media(max-width:640px){
  #ebd-standing-card .ebd-table-wrap{margin:0;padding:0;overflow-x:hidden;}
  /* show ALL columns on mobile without scrolling */
  #ebd-standing-card .ebd-tbl--standing{table-layout:fixed;width:100%;min-width:0 !important;}
  #ebd-standing-card .ebd-tbl--standing th,
  #ebd-standing-card .ebd-tbl--standing td{padding:3px 2px;font-size:12px;line-height:1.15;}
  #ebd-standing-card .ebd-tbl--standing th{white-space:nowrap;}
  #ebd-standing-card .ebd-tbl--standing th:nth-child(1),
  #ebd-standing-card .ebd-tbl--standing td:nth-child(1){width:3ch;text-align:center;}
  #ebd-standing-card .ebd-tbl--standing th:nth-child(2),
  #ebd-standing-card .ebd-tbl--standing td:nth-child(2){
    width:auto;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    text-align:left;
  }
  #ebd-standing-card .ebd-tbl--standing th:nth-child(3),
  #ebd-standing-card .ebd-tbl--standing td:nth-child(3){width:3ch;text-align:center;}
  #ebd-standing-card .ebd-tbl--standing th:nth-child(4),
  #ebd-standing-card .ebd-tbl--standing td:nth-child(4),
  #ebd-standing-card .ebd-tbl--standing th:nth-child(5),
  #ebd-standing-card .ebd-tbl--standing td:nth-child(5),
  #ebd-standing-card .ebd-tbl--standing th:nth-child(6),
  #ebd-standing-card .ebd-tbl--standing td:nth-child(6){width:3ch;text-align:center;}
  #ebd-standing-card .ebd-tbl--standing th:nth-child(7),
  #ebd-standing-card .ebd-tbl--standing td:nth-child(7),
  #ebd-standing-card .ebd-tbl--standing th:nth-child(8),
  #ebd-standing-card .ebd-tbl--standing td:nth-child(8),
  #ebd-standing-card .ebd-tbl--standing th:nth-child(9),
  #ebd-standing-card .ebd-tbl--standing td:nth-child(9),
  #ebd-standing-card .ebd-tbl--standing th:nth-child(10),
  #ebd-standing-card .ebd-tbl--standing td:nth-child(10){width:4ch;text-align:center;}
}


.ebd-wrap.ebd-theme-light .ebd-ai-left{background: rgba(15,23,42,0.04) !important; border:1px solid rgba(15,23,42,0.14) !important;}

/* Better tabs contrast in light mode */
.ebd-wrap.ebd-theme-light .ebd-otab{background: rgba(15,23,42,.04); border-color: rgba(15,23,42,.12); color: var(--ebd-text);} 
.ebd-wrap.ebd-theme-light .ebd-otab:hover{background: rgba(15,23,42,.06); color: var(--ebd-text);} 
.ebd-wrap.ebd-theme-light .ebd-otab--active{background:#0f172a; border-color:#0f172a; color:#fff;}


/* Select readability */
.ebd-dropdown-wrap select, .ebd-dropdown-wrap select option, .ebd-pl-shots-toggle, .ebd-pl-shots-toggle option{color: var(--ebd-text); background: var(--ebd-bg2);}
.ebd-wrap.ebd-theme-light .ebd-dropdown-wrap select, .ebd-wrap.ebd-theme-light .ebd-dropdown-wrap select option, .ebd-wrap.ebd-theme-light .ebd-pl-shots-toggle, .ebd-wrap.ebd-theme-light .ebd-pl-shots-toggle option{color:#0f172a; background:#ffffff;}

/* ═══════════════════════════════════════════════════════════════════════════
   MODERN GLASS UI OVERRIDE v3.3.7.2
   Styling-only refresh: no functional logic changed.
   ═══════════════════════════════════════════════════════════════════════════ */

.ebd-wrap{
  --ebd-bg: #07111f;
  --ebd-bg2: #0b1627;
  --ebd-bg3: #111d33;
  --ebd-card: rgba(11,22,39,.72);
  --ebd-border: rgba(255,255,255,.10);
  --ebd-border-strong: rgba(255,255,255,.16);
  --ebd-text: #ecf4ff;
  --ebd-muted: #94a7c4;
  --ebd-tbl-hdr: rgba(255,255,255,.05);
  --ebd-tbl-cell: rgba(255,255,255,.03);
  --ebd-shadow-lg: 0 30px 70px rgba(2,8,23,.45);
  --ebd-shadow-md: 0 20px 45px rgba(2,8,23,.28);
  --ebd-shadow-sm: 0 12px 30px rgba(2,8,23,.18);
  --radius: 24px;
  --radius-sm: 18px;
  color-scheme: dark;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -.01em;
  background:
    radial-gradient(circle at top left, rgba(56,189,248,.10), transparent 28%),
    radial-gradient(circle at top right, rgba(249,115,22,.10), transparent 26%),
    linear-gradient(180deg, #07111f 0%, #0b1526 44%, #0d1727 100%);
  position: relative;
  isolation: isolate;
}

.ebd-wrap::before,
.ebd-wrap::after{
  content:"";
  position: fixed;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(70px);
  opacity: .7;
  z-index: -1;
}
.ebd-wrap::before{
  width: 280px;
  height: 280px;
  top: 84px;
  left: max(16px, calc(50% - 700px));
  background: rgba(56,189,248,.10);
}
.ebd-wrap::after{
  width: 300px;
  height: 300px;
  top: 24px;
  right: max(16px, calc(50% - 720px));
  background: rgba(249,115,22,.11);
}

.ebd-wrap.ebd-theme-light{
  --ebd-bg: #f2f7fd;
  --ebd-bg2: #ffffff;
  --ebd-bg3: #e7eef8;
  --ebd-card: rgba(255,255,255,.74);
  --ebd-border: rgba(15,23,42,.10);
  --ebd-border-strong: rgba(15,23,42,.15);
  --ebd-text: #0f172a;
  --ebd-muted: #5b6b82;
  --ebd-tbl-hdr: rgba(255,255,255,.72);
  --ebd-tbl-cell: rgba(15,23,42,.025);
  --ebd-shadow-lg: 0 30px 70px rgba(15,23,42,.10);
  --ebd-shadow-md: 0 18px 40px rgba(15,23,42,.08);
  --ebd-shadow-sm: 0 10px 24px rgba(15,23,42,.06);
  color-scheme: light;
  background:
    radial-gradient(circle at top left, rgba(56,189,248,.10), transparent 30%),
    radial-gradient(circle at top right, rgba(249,115,22,.08), transparent 28%),
    linear-gradient(180deg, #f2f7fd 0%, #edf3fa 100%);
}

body.single-ebd_match,
body.single-match{
  background: transparent !important;
}

.ebd-dashboard,
.ebd-nav-inner{
  max-width: 1240px;
}

.ebd-dashboard{
  padding: 22px 20px 56px;
}

.ebd-body,
.ebd-row-2,
.ebd-ai-grid,
.ebd-dual-pl-wrap,
.ebd-recent-wrap{
  gap: 24px;
}

.ebd-hero{
  position: relative;
  overflow: visible;
  z-index: 250;
  margin: 18px auto 0;
  padding: 30px 24px 32px;
  max-width: 1240px;
  border: 1px solid var(--ebd-border);
  border-radius: 0 0 30px 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015)),
    linear-gradient(135deg, rgba(56,189,248,.10), transparent 34%),
    linear-gradient(135deg, rgba(249,115,22,.08), transparent 42%),
    var(--ebd-card);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--ebd-shadow-lg);
}

.ebd-wrap.ebd-theme-light .ebd-hero{
  background:
    linear-gradient(180deg, rgba(255,255,255,.68), rgba(255,255,255,.54)),
    linear-gradient(135deg, rgba(56,189,248,.10), transparent 34%),
    linear-gradient(135deg, rgba(249,115,22,.06), transparent 44%),
    var(--ebd-card);
}

.ebd-hero::before{
  content:"";
  position:absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(255,255,255,.16), transparent 35%),
    linear-gradient(90deg, transparent, rgba(255,255,255,.04), transparent);
  pointer-events:none;
}

.ebd-hero-meta,
.ebd-hero-teams,
.ebd-nav-inner,
.ebd-card,
.ebd-card-hdr,
.ebd-form-hero,
.ebd-scoring-body,
.ebd-ai-left,
.ebd-npxg-item,
.ebd-inj-item,
.ebd-trend,
.ebd-tbl,
.ebd-tbl th,
.ebd-tbl td,
.ebd-meta-pill,
.ebd-nav-link,
.ebd-form-tab,
.ebd-shots-toggle,
.ebd-card select,
.ebd-theme-toggle-ui,
.ebd-odds-tabs .ebd-otab,
.ebd-rec-sc,
.ebd-pos-badge,
.ebd-formmini-badge,
.ebd-rec-badge{
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease, opacity .18s ease;
}

.ebd-theme-toggle-ui,
.ebd-switch-slider,
.ebd-meta-pill,
.ebd-pos-badge,
.ebd-form-tab,
.ebd-otab,
.ebd-shots-toggle,
.ebd-card select,
.ebd-rec-sc,
.ebd-rec-badge,
.ebd-formmini-badge{
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.ebd-theme-toggle-ui{
  width: 82px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--ebd-border-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 24px rgba(2,8,23,.18);
}
.ebd-theme-toggle-knob{
  box-shadow: 0 10px 20px rgba(2,8,23,.22);
}
.ebd-wrap.ebd-theme-light .ebd-theme-toggle-ui{
  background: rgba(255,255,255,.75);
}

.ebd-hero-meta-top{ margin-bottom: 6px; }
.ebd-hero-meta-main,
.ebd-hero-meta-sub,
.ebd-hdr-sub,
.ebd-ev-sub,
.ebd-hero-mid-sub,
.ebd-cmp-lbl,
.ebd-scoring-sublbl,
.ebd-muted{ letter-spacing: .01em; }

.ebd-meta-pill,
.ebd-pos-badge{
  background: rgba(255,255,255,.06);
  border: 1px solid var(--ebd-border);
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 700;
}

.ebd-logo,
.ebd-scoring-logo,
.ebd-card-logo,
.ebd-hdr-mini-logo{
  filter: drop-shadow(0 12px 22px rgba(2,8,23,.18));
}

.ebd-logo{
  width: 78px;
  height: 78px;
}

.ebd-hero-team-name,
.ebd-hdr-title,
.ebd-dual-pl-title,
.ebd-recent-title,
.ebd-bm-market-title,
.ebd-npxg-name,
.ebd-chance-lbl{
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: -.02em;
}

.ebd-hero-team-name{
  font-size: 19px;
  font-weight: 800;
}

.ebd-hero-mid-title{
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 900;
  letter-spacing: -.04em;
}

.ebd-hero-mid-sub{
  color: var(--ebd-muted);
  font-size: 13px;
  margin-top: 8px;
}

.ebd-score-n{
  font-size: clamp(40px, 4.5vw, 56px);
  line-height: .95;
  letter-spacing: -.06em;
  text-shadow: none;
}

.ebd-score-sep,
.ebd-vs{ opacity: .65; }

.ebd-nav{
  top: 12px;
  margin: 10px 16px 26px;
  background: rgba(11,22,39,.62);
  border: 1px solid var(--ebd-border);
  border-radius: 18px;
  box-shadow: var(--ebd-shadow-sm);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}
.ebd-wrap.ebd-theme-light .ebd-nav{
  background: rgba(255,255,255,.72);
}

.ebd-nav-inner{
  padding: 0 !important;
  gap: 8px !important;
}

.ebd-nav-link{
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 11px 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  border-bottom: none;
}

.ebd-nav-link:hover,
.ebd-nav-link.ebd-nav-active{
  color: var(--ebd-text);
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.ebd-wrap.ebd-theme-light .ebd-nav-link:hover,
.ebd-wrap.ebd-theme-light .ebd-nav-link.ebd-nav-active{
  border-color: rgba(15,23,42,.10);
  background: rgba(15,23,42,.045);
}

.ebd-card,
.ebd-card--h2h,
.ebd-card--team,
.ebd-card--npxg,
.ebd-card--scoring,
.ebd-card--topscorer,
.ebd-card--keeper,
.ebd-card--ai{
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)),
    var(--ebd-card) !important;
  border: 1px solid var(--ebd-border) !important;
  border-radius: 26px;
  box-shadow: var(--ebd-shadow-md);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.ebd-wrap.ebd-theme-light .ebd-card,
.ebd-wrap.ebd-theme-light .ebd-card--h2h,
.ebd-wrap.ebd-theme-light .ebd-card--team,
.ebd-wrap.ebd-theme-light .ebd-card--npxg,
.ebd-wrap.ebd-theme-light .ebd-card--scoring,
.ebd-wrap.ebd-theme-light .ebd-card--topscorer,
.ebd-wrap.ebd-theme-light .ebd-card--keeper,
.ebd-wrap.ebd-theme-light .ebd-card--ai{
  background:
    linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,255,255,.60)),
    var(--ebd-card) !important;
}

.ebd-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 26px 60px rgba(2,8,23,.22);
}

.ebd-card::before{
  height: 2px;
  background: linear-gradient(90deg, rgba(56,189,248,0), rgba(56,189,248,.35), rgba(249,115,22,.35), rgba(249,115,22,0));
  opacity: .9;
}

.ebd-card-hdr{
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ebd-wrap.ebd-theme-light .ebd-card-hdr{
  border-bottom-color: rgba(15,23,42,.08);
}

.ebd-hdr-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--ebd-border);
  font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.ebd-hdr-title{
  font-size: 18px;
  font-weight: 800;
}

.ebd-hdr-sub{
  font-size: 12px;
  font-weight: 700;
}

.ebd-form-tab,
.ebd-otab,
.ebd-shots-toggle,
.ebd-card select{
  background: rgba(255,255,255,.05);
  border: 1px solid var(--ebd-border);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.ebd-form-tab:hover,
.ebd-otab:hover,
.ebd-shots-toggle:hover,
.ebd-card select:hover{
  border-color: var(--ebd-border-strong);
  color: var(--ebd-text);
}

.ebd-form-tab.is-active,
.ebd-otab--active{
  background: linear-gradient(135deg, rgba(249,115,22,.18), rgba(56,189,248,.12));
  color: var(--ebd-text);
  border-color: rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 20px rgba(2,8,23,.10);
}

.ebd-wrap.ebd-theme-light .ebd-form-tab,
.ebd-wrap.ebd-theme-light .ebd-otab,
.ebd-wrap.ebd-theme-light .ebd-shots-toggle,
.ebd-wrap.ebd-theme-light .ebd-card select{
  background: rgba(255,255,255,.66);
}

.ebd-wrap.ebd-theme-light .ebd-form-tab.is-active,
.ebd-wrap.ebd-theme-light .ebd-otab--active{
  background: linear-gradient(135deg, rgba(249,115,22,.12), rgba(56,189,248,.10));
  border-color: rgba(15,23,42,.10);
  color: #0f172a;
}

.ebd-tbl{
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,.02);
}

.ebd-wrap.ebd-theme-light .ebd-tbl{
  background: rgba(255,255,255,.46);
}

.ebd-tbl th{
  padding: 11px 12px;
  font-size: 10px;
  background: rgba(255,255,255,.05);
  color: var(--ebd-muted);
  border-bottom-color: rgba(255,255,255,.08);
}

.ebd-wrap.ebd-theme-light .ebd-tbl th{
  background: rgba(255,255,255,.70);
  border-bottom-color: rgba(15,23,42,.08);
}

.ebd-tbl td{
  padding: 11px 12px;
  border-right-color: rgba(255,255,255,.06);
  border-bottom-color: rgba(255,255,255,.06);
}

.ebd-wrap.ebd-theme-light .ebd-tbl td{
  border-right-color: rgba(15,23,42,.06);
  border-bottom-color: rgba(15,23,42,.06);
}

.ebd-tbl tbody tr:hover td{
  background: rgba(255,255,255,.035);
}

.ebd-wrap.ebd-theme-light .ebd-tbl tbody tr:hover td{
  background: rgba(15,23,42,.028);
}

.ebd-td-avg,
.ebd-tss-best,
.ebd-bm-best,
.ebd-ev-verdict,
.ebd-rec-sc{
  border-radius: 12px;
}

.ebd-cmp-bar,
.ebd-chance-bar,
.ebd-npxg-track,
.ebd-pl-bar-track,
.ebd-bar-track,
.ebd-form-hero-bar,
.ebd-formmini-bar-track{
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 999px;
  overflow: hidden;
}

.ebd-wrap.ebd-theme-light .ebd-cmp-bar,
.ebd-wrap.ebd-theme-light .ebd-chance-bar,
.ebd-wrap.ebd-theme-light .ebd-npxg-track,
.ebd-wrap.ebd-theme-light .ebd-pl-bar-track,
.ebd-wrap.ebd-theme-light .ebd-bar-track,
.ebd-wrap.ebd-theme-light .ebd-form-hero-bar,
.ebd-wrap.ebd-theme-light .ebd-formmini-bar-track{
  background: rgba(15,23,42,.05) !important;
  border-color: rgba(15,23,42,.05);
}

.ebd-ai-left,
.ebd-ai-note,
.ebd-form,
.ebd-pred-intro,
.ebd-inj-item,
.ebd-trend,
.ebd-npxg-item,
.ebd-formmini-item,
.ebd-pl-row{
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.ebd-wrap.ebd-theme-light .ebd-ai-left,
.ebd-wrap.ebd-theme-light .ebd-ai-note,
.ebd-wrap.ebd-theme-light .ebd-form,
.ebd-wrap.ebd-theme-light .ebd-pred-intro,
.ebd-wrap.ebd-theme-light .ebd-inj-item,
.ebd-wrap.ebd-theme-light .ebd-trend,
.ebd-wrap.ebd-theme-light .ebd-npxg-item,
.ebd-wrap.ebd-theme-light .ebd-formmini-item,
.ebd-wrap.ebd-theme-light .ebd-pl-row{
  background: rgba(255,255,255,.58) !important;
  border-color: rgba(15,23,42,.08) !important;
}

canvas{
  filter: saturate(1.05);
}

.ebd-home-col{
  color: #ff9a4a !important;
}
.ebd-away-col{
  color: #58d1ff !important;
}

.ebd-ev-good,
.ebd-rec-r-w,
.ebd-bm-best{
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.ebd-theme-light .ebd-home-col{ color: #ea6a11 !important; }
.ebd-theme-light .ebd-away-col{ color: #0284c7 !important; }

.ebd-scoring-stat,
.ebd-td-odds,
.ebd-ev-num,
.ebd-ppg-big,
.ebd-cmp-hv,
.ebd-cmp-av{
  letter-spacing: -.03em;
}

.ebd-table-wrap{
  border-radius: 20px;
}

@media(max-width: 900px){
  .ebd-dashboard{ padding: 18px 14px 48px; }
  .ebd-hero{ margin: 12px 14px 0; padding: 24px 16px 24px; border-radius: 0 0 24px 24px; }
  .ebd-nav{ margin: 10px 14px 22px; }
  .ebd-nav-inner{ padding: 0; gap: 6px; }
}

@media(max-width: 640px){
  .ebd-wrap::before,
  .ebd-wrap::after{ display:none; }
  .ebd-dashboard{ padding: 0 0 42px; }
  .ebd-hero{ margin: 0; border-radius: 0 0 24px 24px; }
  .ebd-nav{ margin: 10px 10px 18px; top: 8px; border-radius: 16px; }
  .ebd-nav-link{ padding: 10px 12px; font-size: 10px; }
  .ebd-card,
  .ebd-card--h2h,
  .ebd-card--team,
  .ebd-card--npxg,
  .ebd-card--scoring,
  .ebd-card--topscorer,
  .ebd-card--keeper,
  .ebd-card--ai{
    border-radius: 22px;
  }
  .ebd-hdr-icon{ width: 30px; height: 30px; border-radius: 10px; font-size: 15px; }
  .ebd-hdr-title{ font-size: 16px; }
}

/* v3.3.11 targeted fixes */
.ebd-hero-mid-score{
  display:none !important;
}

.ebd-hero-team-name{
  font-size: clamp(11px, 0.45vw + 10px, 15px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.03em;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  text-wrap: nowrap !important;
}

.ebd-hero-info{
  min-width: 0;
}

@media(max-width:640px){
  .ebd-result-teams{
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
    gap: 10px;
  }

  .ebd-result-team{
    min-width: 0;
  }

  .ebd-hero-team-name{
    font-size: 10px !important;
    line-height: 1.05 !important;
    letter-spacing: -.04em;
  }

  .ebd-hero-team{
    gap: 8px;
  }

  .ebd-logo{
    width: 44px;
    height: 44px;
  }

  .ebd-tbl--ev{
    width: 100%;
    table-layout: fixed;
  }

  .ebd-tbl--ev th,
  .ebd-tbl--ev td{
    padding: 6px 3px;
    font-size: 9px;
    line-height: 1.15;
  }

  .ebd-tbl--ev th:nth-child(1),
  .ebd-tbl--ev td:nth-child(1){ width:25%; }

  .ebd-tbl--ev th:nth-child(2),
  .ebd-tbl--ev td:nth-child(2),
  .ebd-tbl--ev th:nth-child(3),
  .ebd-tbl--ev td:nth-child(3),
  .ebd-tbl--ev th:nth-child(4),
  .ebd-tbl--ev td:nth-child(4),
  .ebd-tbl--ev th:nth-child(5),
  .ebd-tbl--ev td:nth-child(5),
  .ebd-tbl--ev th:nth-child(6),
  .ebd-tbl--ev td:nth-child(6){ width:15%; }

  .ebd-ev-lbl{
    min-width: 0;
    font-size: 10px;
    line-height: 1.15;
  }

  .ebd-ev-sub{
    font-size: 8px;
    line-height: 1.1;
  }

  .ebd-ev-stat,
  .ebd-ev-implied,
  .ebd-ev-num,
  .ebd-td-odds{
    font-size: 10px;
  }

  .ebd-ev-verdict{
    font-size: 9px;
    padding: 3px 4px;
    line-height: 1.1;
  }
}


/* v3.3.12 targeted fixes */
.ebd-hero-mid-title,
.ebd-hdr-title{
  font-weight: 700 !important;
}

.ebd-tbl--ev td.ebd-ev-verdict{
  border-radius: 0 !important;
  box-shadow: none !important;
}

.ebd-tbl--ev td.ebd-ev-verdict.ebd-ev-good{
  background: rgba(34,197,94,.22) !important;
  color: var(--ebd-green) !important;
}

.ebd-tbl--ev td.ebd-ev-verdict.ebd-ev-bad{
  background: rgba(239,68,68,.18) !important;
  color: var(--ebd-red) !important;
}

@media(max-width:640px){
  .ebd-tbl--ev th,
  .ebd-tbl--ev td{
    font-size: 10px;
  }

  .ebd-ev-stat,
  .ebd-ev-implied,
  .ebd-ev-num,
  .ebd-td-odds{
    font-size: 11px;
  }

  .ebd-ev-verdict{
    font-size: 10px;
    padding: 4px 4px;
  }
}


/* v3.3.21 targeted fixes */
.ebd-season-note{
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(255,255,255,.03);
  font-size: 13px;
  color: var(--ebd-muted);
  text-align: center;
  border-radius: 0;
}

.ebd-hero{
  margin-top: 0 !important;
}

.ebd-nav{
  margin-top: 0 !important;
}

.ebd-card,
.ebd-card--h2h,
.ebd-card--team,
.ebd-card--npxg,
.ebd-card--scoring,
.ebd-card--topscorer,
.ebd-card--keeper,
.ebd-card--ai,
.ebd-card--result-full,
.ebd-table-wrap,
.table-wrap,
.ebd-tbl,
.ebd-tbl th,
.ebd-tbl td{
  border-radius: 0 !important;
}

@media(max-width: 900px){
  .ebd-hero{ margin: 0 !important; }
  .ebd-nav{ margin: 0 14px 22px !important; }
}

@media(max-width: 640px){
  .ebd-hero{ margin: 0 !important; border-radius: 0 !important; }
  .ebd-nav{ margin: 0 10px 18px !important; border-radius: 0 !important; }
}


/* v3.3.22 targeted fixes */
.ebd-dashboard{
  padding-top: 0 !important;
}

.ebd-hero{
  border-radius: 0 !important;
}

.ebd-nav{
  margin: 0 !important;
  border-radius: 0 0 5px 5px !important;
}

.ebd-card,
.ebd-card--h2h,
.ebd-card--team,
.ebd-card--npxg,
.ebd-card--scoring,
.ebd-card--topscorer,
.ebd-card--keeper,
.ebd-card--ai,
.ebd-card--result-full,
.ebd-table-wrap,
.table-wrap,
.ebd-tbl,
.ebd-ai-left,
.ebd-ai-note,
.ebd-form,
.ebd-pred-intro,
.ebd-inj-item,
.ebd-trend,
.ebd-npxg-item,
.ebd-formmini-item,
.ebd-pl-row{
  border-radius: 5px !important;
}

.ebd-form-tab,
.ebd-otab,
.ebd-shots-toggle,
.ebd-card select,
.ebd-theme-toggle-ui,
.ebd-switch-slider{
  border-radius: 10px !important;
}

.ebd-trend--chart{
  border-radius: 10px !important;
}

@media(max-width: 900px){
  .ebd-nav{
    margin: 0 !important;
  }
}

@media(max-width: 640px){
  .ebd-nav{
    margin: 0 !important;
    border-radius: 0 0 5px 5px !important;
  }
}


/* v3.3.23 tweaks */
.ebd-nav-link{font-weight:700 !important;}
.ebd-npxg-name{font-weight:700 !important;}
.ebd-ppg-pill{border-radius:10px !important;}

.ebd-wrap.ebd-theme-light .ebd-ai-info-btn{
  background:rgba(15,23,42,.04);
  border-color:rgba(15,23,42,.16);
  color:#0f172a;
}
.ebd-wrap.ebd-theme-light .ebd-ai-info-pop{
  background:#ffffff;
  border-color:rgba(15,23,42,.12);
  box-shadow:0 16px 36px rgba(15,23,42,.16);
}


@media (max-width: 820px){
  .ebd-result-topline{
    grid-template-columns: 1fr;
    gap:14px;
  }
  .ebd-result-team--home,
  .ebd-result-team--away{
    text-align:left;
  }
  .ebd-result-team--home .ebd-result-events,
  .ebd-result-team--away .ebd-result-events{
    align-items:flex-start;
  }
  .ebd-result-team--home .ebd-result-event{
    grid-template-columns: 42px minmax(0,1fr);
  }
  .ebd-result-team--home .ebd-result-minute,
  .ebd-result-team--home .ebd-result-event-copy{
    order:initial;
    text-align:right;
  }
}

@media(max-width:767px){
  .ebd-tbl--h2h{table-layout:fixed;width:100%;}
  .ebd-tbl--h2h th, .ebd-tbl--h2h td{padding:5px 3px;font-size:10px;}
  .ebd-tbl--h2h th:nth-child(1), .ebd-tbl--h2h td:nth-child(1){width:19%; border-right:1px solid var(--ebd-border);}
  .ebd-tbl--h2h th:nth-child(2), .ebd-tbl--h2h td:nth-child(2){width:45%;}
  .ebd-tbl--h2h th:nth-child(3), .ebd-tbl--h2h td:nth-child(3){width:15%;}
  .ebd-tbl--h2h th:nth-child(4), .ebd-tbl--h2h td:nth-child(4){width:6%;}
  .ebd-tbl--h2h th:nth-child(5), .ebd-tbl--h2h td:nth-child(5){width:15%;}
  .ebd-tbl--h2h td:nth-child(2), .ebd-tbl--h2h th:nth-child(2){white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px;}
  .ebd-tbl--h2h .ebd-td-date{font-size:9px;}
  .ebd-tbl--h2h .ebd-td-score{font-size:11px;letter-spacing:0;}
  .ebd-tbl--h2h .ebd-badge-y, .ebd-tbl--h2h .ebd-badge-n{font-size:8px;}
}


/* v3.3.36 mobile result layout tweak */
@media (max-width: 820px){
  .ebd-card--result-full .ebd-result-topline{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
  }
  .ebd-card--result-full .ebd-result-center{
    grid-column: 1 / -1;
    order: -1;
    width: 100%;
    margin-bottom: 2px;
  }
  .ebd-card--result-full .ebd-result-team{
    width: 100%;
    min-width: 0;
  }
  .ebd-card--result-full .ebd-result-team--home,
  .ebd-card--result-full .ebd-result-team--away{
    text-align: left;
  }
  .ebd-card--result-full .ebd-result-team--home .ebd-result-events,
  .ebd-card--result-full .ebd-result-team--away .ebd-result-events{
    align-items: flex-start;
  }
  .ebd-card--result-full .ebd-result-team--home .ebd-result-event{
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .ebd-card--result-full .ebd-result-team--home .ebd-result-minute,
  .ebd-card--result-full .ebd-result-team--home .ebd-result-event-copy{
    order: initial;
    text-align: left;
  }
}


/* v3.3.36.2 voorspellingen info button */
.ebd-card--voorspl .ebd-card-hdr{
  position: relative;
  padding-right: 44px;
}
.ebd-card--voorspl .ebd-voorspl-info-btn{
  top: 0;
  right: 0;
}
.ebd-card--voorspl .ebd-voorspl-info-pop{
  top: 34px;
  right: 0;
}

@media (max-width: 820px){
  .ebd-card--result-full .ebd-result-team{
    width: 100%;
    min-width: 0;
  }
  .ebd-card--result-full .ebd-result-team--home{
    justify-self: end;
    text-align: right;
  }
  .ebd-card--result-full .ebd-result-team--away{
    justify-self: start;
    text-align: left;
  }
  .ebd-card--result-full .ebd-result-team--home .ebd-result-events{
    align-items: flex-end;
  }
  .ebd-card--result-full .ebd-result-team--away .ebd-result-events{
    align-items: flex-start;
  }
  .ebd-card--result-full .ebd-result-team--home .ebd-result-event{
    grid-template-columns: minmax(0,1fr) 42px;
  }
  .ebd-card--result-full .ebd-result-team--home .ebd-result-minute{
    order: 2;
    text-align: left;
  }
  .ebd-card--result-full .ebd-result-team--home .ebd-result-event-copy{
    order: 1;
    text-align: right;
  }
}


/* v3.3.36.5 typography tune */
.ebd-hero-team-name{font-weight:700 !important;}
.ebd-result-event-main{font-weight:500 !important;}


/* v3.3.36.1 PPG + mobile result alignment */
@media (max-width: 820px){
  .ebd-card--result-full .ebd-result-topline{
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
    gap: 10px 12px;
    align-items: start;
  }
  .ebd-card--result-full .ebd-result-team{
    display: contents;
  }
  .ebd-card--result-full .ebd-result-center{
    grid-column: 2;
    grid-row: 1;
    order: 0;
    width: auto;
    min-width: 82px;
    margin-bottom: 0;
  }
  .ebd-card--result-full .ebd-result-team-name{
    margin-bottom: 0;
    align-self: center;
    line-height: 1.15;
  }
  .ebd-card--result-full .ebd-result-team-name.ebd-result-team--home{
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    text-align: right;
  }
  .ebd-card--result-full .ebd-result-team-name.ebd-result-team--away{
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
    text-align: left;
  }
  .ebd-card--result-full .ebd-result-team--home .ebd-result-team-name{
    justify-self: end;
  }
  .ebd-card--result-full .ebd-result-team--away .ebd-result-team-name{
    justify-self: start;
  }
  .ebd-card--result-full .ebd-result-team--home .ebd-result-events,
  .ebd-card--result-full .ebd-result-team--home .ebd-result-empty{
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
    width: 100%;
    align-items: flex-end;
    text-align: right;
  }
  .ebd-card--result-full .ebd-result-team--away .ebd-result-events,
  .ebd-card--result-full .ebd-result-team--away .ebd-result-empty{
    grid-column: 3;
    grid-row: 2;
    justify-self: start;
    width: 100%;
    align-items: flex-start;
    text-align: left;
  }
  .ebd-card--result-full .ebd-result-team--home .ebd-result-event{
    grid-template-columns: minmax(0,1fr) 42px;
  }
  .ebd-card--result-full .ebd-result-team--home .ebd-result-minute{
    order: 2;
    text-align: left;
  }
  .ebd-card--result-full .ebd-result-team--home .ebd-result-event-copy{
    order: 1;
    text-align: right;
  }
}


/* ── Custom patch ────────────────────────────────────────────────────────── */

/* Getallen in tabellen: font-weight 700 */
.ebd-td-n,
.ebd-td-pct,
.ebd-td-stat,
.ebd-td-odds,
.ebd-td-avg,
.ebd-td-n.ebd-shots-avg-val,
.ebd-td-n.ebd-shots-tot-val { font-weight: 700 !important; }

/* npxg-bar-lbl verborgen */
.ebd-npxg-bar-lbl { display: none !important; }

/* Shots per speler: logo + teamnaam header */
.ebd-pl-shots-title-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ebd-border);
}
.ebd-pl-shots-title-hdr .ebd-pl-title {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
  text-align: right;
  flex: 1;
}

/* Mobiel: topscorers & assists hdr-sub rechts (niet eronder) */
@media(max-width:640px){
  .ebd-card-hdr--inline-sub .ebd-hdr-sub {
    flex: 0 0 auto !important;
    width: auto !important;
    order: 3 !important;
    margin-top: 0 !important;
    white-space: nowrap;
  }
  .ebd-card-hdr--inline-sub {
    flex-wrap: nowrap !important;
    align-items: center !important;
  }
}

/* v3.3.36.7 related nav */
.ebd-nav-inner--related{
  padding: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(30,77,52,.22), rgba(30,77,52,.10)) !important;
}
.ebd-nav-link--related{
  color: var(--ebd-text) !important;
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
}
.ebd-nav-link--related:hover,
.ebd-nav-link--related:focus-visible{
  background: rgba(37,99,235,.16);
  border-color: rgba(96,165,250,.24);
  color: var(--ebd-text) !important;
}
.ebd-wrap.ebd-theme-light .ebd-nav-inner--related{
  border-bottom-color: rgba(15,23,42,.08);
  background: rgba(15,23,42,.04) !important;
}
.ebd-wrap.ebd-theme-light .ebd-nav-link--related{
  background: rgba(255,255,255,.55);
  border-color: rgba(15,23,42,.08);
}
.ebd-wrap.ebd-theme-light .ebd-nav-link--related:hover,
.ebd-wrap.ebd-theme-light .ebd-nav-link--related:focus-visible{
  background: rgba(59,130,246,.10);
  border-color: rgba(59,130,246,.18);
}

/* ── Nav links: geen knopstijl ───────────────────────────────────────────── */
.ebd-nav .ebd-nav-link{
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: 2px solid transparent !important;
}
.ebd-nav .ebd-nav-link:hover,
.ebd-nav .ebd-nav-link.ebd-nav-active{
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: 2px solid var(--ebd-home) !important;
  color: var(--ebd-home) !important;
}

/* =========================
   EBD archive /statistieken
   ========================= */
.ebd-archive-wrap {
  padding: 24px 0 32px;
}

.ebd-archive-dashboard {
  max-width: 1180px;
  margin: 0 auto;
}

.ebd-archive-hero {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr .9fr;
  gap: 18px;
  align-items: stretch;
}

.ebd-archive-intro,
.ebd-archive-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ebd-archive-title {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -.03em;
}

.ebd-archive-copy {
  margin: 0;
  color: var(--ebd-muted, #94a3b8);
  font-size: 15px;
  line-height: 1.65;
}

.ebd-archive-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ebd-archive-stat {
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 18px;
}

.ebd-archive-stat-value {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.ebd-archive-stat-label {
  font-size: 13px;
  color: var(--ebd-muted, #94a3b8);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.ebd-archive-leagues {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ebd-archive-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(148,163,184,.10);
  border: 1px solid rgba(148,163,184,.16);
  color: var(--ebd-text, #e2e8f0);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.ebd-archive-pill--league {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ebd-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ebd-archive-match-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ebd-archive-match-card:hover {
  transform: translateY(-2px);
  border-color: rgba(249,115,22,.35);
  box-shadow: 0 14px 32px rgba(2,6,23,.22);
}

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

.ebd-archive-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.ebd-archive-status--upcoming {
  background: rgba(34,197,94,.16);
  color: #86efac;
}

.ebd-archive-status--finished {
  background: rgba(56,189,248,.16);
  color: #7dd3fc;
}

.ebd-archive-matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.ebd-archive-team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
}

.ebd-archive-team--away {
  justify-content: flex-end;
  text-align: right;
}

.ebd-archive-team span {
  display: block;
  min-width: 0;
}

.ebd-archive-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex: 0 0 30px;
}

.ebd-archive-vs,
.ebd-archive-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15,23,42,.45);
  border: 1px solid rgba(148,163,184,.18);
  font-weight: 800;
}

.ebd-archive-score {
  color: var(--ebd-gold, #f59e0b);
}

.ebd-archive-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ebd-muted, #94a3b8);
  font-size: 14px;
}

.ebd-archive-round {
  color: var(--ebd-text, #e2e8f0);
  font-size: 13px;
  font-weight: 700;
}

.ebd-archive-cta {
  margin-top: auto;
  color: var(--ebd-gold, #f59e0b);
  font-weight: 800;
  font-size: 14px;
}

.ebd-archive-empty {
  margin: 0;
}

@media (max-width: 1100px) {
  .ebd-archive-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .ebd-archive-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ebd-archive-summary {
    grid-template-columns: 1fr;
  }

  .ebd-archive-card-top,
  .ebd-archive-meta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .ebd-archive-matchup {
    grid-template-columns: 1fr;
  }

  .ebd-archive-team,
  .ebd-archive-team--away {
    justify-content: flex-start;
    text-align: left;
  }

  .ebd-archive-vs,
  .ebd-archive-score {
    justify-self: flex-start;
  }
}

/* =========================
   EBD archive /statistieken refinements
   ========================= */
.ebd-wrap.ebd-theme-light.ebd-archive-wrap {
  background: var(--ebd-bg);
}

.ebd-archive-hero {
  display: grid;
  grid-template-columns: .28fr 1.72fr;
  gap: 18px;
  align-items: center;
}

.ebd-archive-filter-card {
  margin-top: 16px;
}

.ebd-archive-filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.ebd-archive-filter-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--ebd-text);
}

.ebd-archive-filter-select-wrap {
  min-width: 240px;
}

.ebd-archive-filter-select {
  width: 100%;
  min-height: 42px;
}

.ebd-archive-pill {
  background: rgba(15,23,42,.04);
  border: 1px solid rgba(15,23,42,.10);
  color: var(--ebd-text);
}

.ebd-archive-pill strong {
  color: var(--ebd-home);
  font-weight: 800;
}

.ebd-archive-pill--filter {
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.ebd-archive-pill--filter:hover,
.ebd-archive-pill--filter.is-active {
  border-color: rgba(249,115,22,.35);
  background: rgba(249,115,22,.10);
  transform: translateY(-1px);
}

.ebd-archive-status--upcoming {
  background: rgba(34,197,94,.14);
  color: #15803d;
}

.ebd-archive-status--finished {
  background: rgba(59,130,246,.12);
  color: #2563eb;
}

.ebd-archive-match-card:hover {
  box-shadow: 0 14px 32px rgba(15,23,42,.10);
}

.ebd-archive-logo {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

.ebd-archive-vs,
.ebd-archive-score {
  min-width: 68px;
  background: rgba(15,23,42,.05);
  border: 1px solid rgba(15,23,42,.08);
}

.ebd-archive-score {
  color: var(--ebd-home);
}

.ebd-archive-result-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15,23,42,.035);
  border: 1px solid rgba(15,23,42,.07);
}

.ebd-archive-result-label {
  font-size: 12px;
  color: var(--ebd-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
}

.ebd-archive-result-value {
  font-size: 18px;
  color: var(--ebd-text);
  font-weight: 900;
}

@media (max-width: 1100px) {
  .ebd-archive-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ebd-archive-filter-row,
  .ebd-archive-card-top,
  .ebd-archive-meta-row,
  .ebd-archive-result-line {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* =========================
   EBD archive /statistieken public light pass
   ========================= */
body.post-type-archive-ebd_match .site-content-wrapper,
body.post-type-archive-ebd_match .rh-content-wrap {
  padding-top: 0 !important;
}

body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap {
  --ebd-bg: #f5f7fb;
  --ebd-bg2: #ffffff;
  --ebd-bg3: #eef3f9;
  --ebd-card: #ffffff;
  --ebd-border: rgba(15,23,42,.08);
  --ebd-text: #0f172a;
  --ebd-muted: #64748b;
  background: #f5f7fb !important;
  color: #0f172a !important;
  padding: 0 0 28px !important;
}

body.post-type-archive-ebd_match .ebd-archive-dashboard {
  max-width: 1120px;
  margin: 0 auto;
}

body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-dashboard {
  background: transparent !important;
}

body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-hero,
body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-card,
body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-match-card {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(15,23,42,.08) !important;
  box-shadow: 0 10px 30px rgba(15,23,42,.05) !important;
}

body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-hero {
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  padding: 28px !important;
}

body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-hero-meta {
  gap: 6px;
}

body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-hero-meta-main {
  font-size: 13px;
  font-weight: 800;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: .08em;
}

body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-hero-meta-sub,
body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-copy,
body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-card-hdr .ebd-hdr-sub,
body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-meta-row,
body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-nodata {
  color: #64748b !important;
}

body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-card-hdr {
  border-bottom: 1px solid rgba(15,23,42,.08);
}

body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-filter-card,
body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-section-card {
  margin-top: 16px;
}

body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-match-card {
  gap: 16px;
}

body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-match-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(15,23,42,.08) !important;
  border-color: rgba(249,115,22,.28) !important;
}

body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-pill,
body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-vs,
body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-score,
body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-result-line {
  background: #f8fafc !important;
  border-color: rgba(15,23,42,.08) !important;
  color: #0f172a !important;
}

body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-team,
body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-hdr-title,
body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-title,
body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-result-value,
body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-round,
body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-filter-label {
  color: #0f172a !important;
}

body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,.08);
  padding: 4px;
}

body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-dropdown-wrap select,
body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-dropdown-wrap select option {
  background: #ffffff !important;
  color: #0f172a !important;
}

@media (max-width: 767px) {
  body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap {
    padding-bottom: 20px !important;
  }

  body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-hero {
    padding: 20px !important;
  }
}


body.single-ebd_match,
body.post-type-archive-ebd_match {
  margin: 0 !important;
}

html body.single-ebd_match #rhSplashSearch,
html body.post-type-archive-ebd_match #rhSplashSearch {
  display: none !important;
}

html body.single-ebd_match,
html body.post-type-archive-ebd_match,
html body.single-ebd_match .site,
html body.post-type-archive-ebd_match .site {
  background: #f3f3f3;
}

body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-hero-meta-main {
  display: none !important;
}

body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-hero-meta {
  padding: 0 !important;
  margin: 0 !important;
}

body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-copy {
  max-width: 860px;
}

body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-pagination {
  margin-top: 22px;
}

body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-pagination ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-pagination li {
  margin: 0;
  padding: 0;
}

body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-pagination li::before {
  display: none !important;
}

body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-pagination a,
body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.10);
  background: #ffffff;
  color: #0f172a !important;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(15,23,42,.04);
}

body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-pagination a:hover {
  border-color: rgba(249,115,22,.28);
  color: #f97316 !important;
}

body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-pagination .current {
  background: #f97316;
  border-color: #f97316;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(249,115,22,.24);
}


/* =========================
   EBD archive /statistieken v6 tweaks
   ========================= */
body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-team {
  font-weight: 700 !important;
}

body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-hero {
  grid-template-columns: 1fr !important;
}

body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-filter-row {
  justify-content: flex-end;
}

@media (max-width: 640px) {
  body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-matchup {
    grid-template-columns: 1fr auto 1fr !important;
    gap: 10px !important;
    align-items: start !important;
  }

  body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-team,
  body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-team--away {
    flex-direction: column;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: center !important;
    gap: 6px !important;
  }

  body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-team span {
    font-size: 13px;
    line-height: 1.25;
  }

  body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-logo {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }

  body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-vs,
  body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-score {
    align-self: start;
    justify-self: center !important;
    min-width: 48px;
    padding: 6px 8px;
    margin-top: 4px;
  }

  body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-card-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-meta-row {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
  }

  body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-result-line,
  body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-round {
    display: none;
  }

  body.post-type-archive-ebd_match .ebd-wrap.ebd-archive-wrap .ebd-archive-cta {
    margin-top: 8px;
    font-size: 14px;
  }
}


/* ── Hero meta / competition dropdown fixes ───────────────────────────── */
.ebd-hero-meta{
  position: relative;
  z-index: 260;
  align-items: stretch;
}
.ebd-hero-meta-top{
  display:block;
  width:100%;
}
.ebd-hero-meta-main{
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ebd-theme-toggle{
  position: static;
  margin-left:0;
  flex-shrink:0;
  grid-column:3;
  justify-self:end;
  z-index:1002;
}
.ebd-hero-meta-sub--league-row{
  position:relative;
  z-index:1001;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:10px;
  width:100%;
}
.ebd-hero-meta-done{
  grid-column:1;
  justify-self:start;
}
.ebd-hero-league-menu{
  position:relative;
  grid-column:2;
  justify-self:center;
  flex-shrink:0;
  z-index:1003;
}
.ebd-hero-league-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid var(--ebd-border);
  background:rgba(255,255,255,.06);
  color:var(--ebd-text);
  font:inherit;
  font-size:12px;
  font-weight:700;
  line-height:1;
  cursor:pointer;
}
.ebd-wrap.ebd-theme-light .ebd-hero-league-btn{
  background:rgba(255,255,255,.75);
}
.ebd-hero-league-caret{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:transform .18s ease;
}
.ebd-hero-league-btn[aria-expanded="true"] .ebd-hero-league-caret{
  transform:rotate(180deg);
}
.ebd-hero-league-dropdown{
  position:absolute;
  top:calc(100% + 10px);
  left:50%;
  transform:translateX(-50%);
  width:min(360px, calc(100vw - 32px));
  background:#0f1626;
  border:1px solid var(--ebd-border);
  border-radius:14px;
  box-shadow:0 20px 40px rgba(2,8,23,.22);
  z-index:99999;
  isolation:isolate;
  overflow:hidden;
}
.ebd-wrap.ebd-theme-light .ebd-hero-league-dropdown{
  background:#ffffff;
}
.ebd-hero-league-dropdown-hdr{
  padding:10px 12px 8px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--ebd-muted);
  border-bottom:1px solid var(--ebd-border);
}
.ebd-hero-league-dropdown-list{
  display:flex;
  flex-direction:column;
}
.ebd-hero-league-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:5px 12px;
  text-decoration:none;
  color:var(--ebd-text);
  border-top:1px solid rgba(255,255,255,.04);
}
.ebd-wrap.ebd-theme-light .ebd-hero-league-item{
  border-top:1px solid rgba(15,23,42,.05);
}
.ebd-hero-league-item:first-child{
  border-top:none;
}
.ebd-hero-league-item:hover{
  background:rgba(255,255,255,.04);
}
.ebd-hero-league-item.is-current{
  background:rgba(255,255,255,.06);
}
.ebd-wrap.ebd-theme-light .ebd-hero-league-item:hover{
  background:rgba(15,23,42,.03);
}
.ebd-hero-league-item-match{
  font-size:13px;
  font-weight:700;
  min-width:0;
}
.ebd-hero-league-item-time{
  flex-shrink:0;
  font-size:11px;
  color:var(--ebd-muted);
  white-space:nowrap;
}

@media(max-width:640px){
  .ebd-hero-meta-sub--league-row{
    flex-wrap:wrap;
  }
  .ebd-theme-toggle-ui{
    width:58px !important;
    height:28px !important;
    padding:0 8px !important;
  }
  .ebd-theme-toggle-icon svg{
    width:12px;
    height:12px;
  }
  .ebd-theme-toggle-knob{
    width:20px !important;
    height:20px !important;
    left:4px;
    top:3px;
  }
  .ebd-theme-toggle input:checked + .ebd-theme-toggle-ui .ebd-theme-toggle-knob{
    transform: translateX(30px) !important;
  }
  .ebd-hero-meta-main{
    font-size:11px;
  }
  .ebd-hero-league-dropdown{
    width:min(320px, calc(100vw - 20px));
  }
  .ebd-hero-league-item{
    align-items:flex-start;
    flex-direction:column;
    gap:4px;
  }
  .ebd-hero-league-item-time{
    white-space:normal;
  }
}

.ebd-ai-left,
.ebd-ai-note{
  color: var(--ebd-text);
}
