:root {
  --bg: #0b1020;
  --card: #121a33;
  --text: #e9edf7;
  --muted: rgba(233,237,247,0.7);
  --line: rgba(233,237,247,0.12);
  --btn: #3b82f6;
  --danger: #ef4444;
  --ok: #22c55e;
  --warn: #f59e0b;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container {
  width: min(1100px, calc(100% - 24px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11,16,32,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 12px 0;
}
.brand { font-weight: 800; letter-spacing: 0.4px; }
.nav { display:flex; gap: 10px; align-items:center; }
.navlink { color: var(--text); text-decoration: none; opacity: 0.9; }
.navlink:hover { opacity: 1; text-decoration: underline; }
.navsep { opacity: 0.5; }
.navuser { opacity: 0.8; }

.footer {
  padding: 24px 0 40px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 32px;
}

h1 { margin: 18px 0 6px; }
p { margin: 8px 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin: 12px 0;
}

.alert {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.35);
  color: #ffd1d1;
  padding: 10px;
  border-radius: 12px;
}

.form label { display:block; margin: 10px 0; }
input, select {
  width: 100%;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  outline: none;
}
input:focus, select:focus { border-color: rgba(59,130,246,0.6); }

.btn {
  display:inline-block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 0;
  background: var(--btn);
  color: white;
  font-weight: 700;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.05); }

.dashboard-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 8px;
}

.filters .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: end;
}

@media (min-width: 900px) {
  .filters .grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr 180px;
  }
  .btn { width: auto; }
}

.match-head {
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
}
.teams { font-size: 16px; }
.meta { color: var(--muted); font-size: 13px; margin-top: 4px; }

.match-badges { display:flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.badge {
  display:inline-flex;
  align-items:center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--line);
  color: var(--text);
  opacity: 0.95;
}
.badge.live { border-color: rgba(34,197,94,0.6); background: rgba(34,197,94,0.12); }
.badge.soon { border-color: rgba(245,158,11,0.6); background: rgba(245,158,11,0.12); }
.badge.susp { border-color: rgba(239,68,68,0.6); background: rgba(239,68,68,0.12); }
.badge.signal { border-color: rgba(59,130,246,0.7); background: rgba(59,130,246,0.12); }

.legend {
  display:flex;
  align-items:center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  color: var(--muted);
}

.bm { margin-top: 10px; display: grid; gap: 8px; }
.bm-row {
  display:grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
}
@media (min-width: 700px) {
  .bm-row {
    grid-template-columns: 220px 1fr;
    align-items:center;
  }
}

.bm-name { display:flex; align-items:center; gap: 8px; }
.bm-odds { display:flex; gap: 10px; flex-wrap: wrap; }

.odd {
  display:inline-block;
  min-width: 68px;
  text-align:center;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  font-weight: 700;
}
.odd.value {
  border-color: rgba(245,158,11,0.75);
  background: rgba(245,158,11,0.12);
}


/* 2028 polish */
:root{
  --glass: rgba(255,255,255,0.05);
  --glass2: rgba(255,255,255,0.035);
  --shadow: 0 20px 60px rgba(0,0,0,0.45);
  --shadow2: 0 10px 30px rgba(0,0,0,0.35);
}

.card{
  box-shadow: var(--shadow2);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
}

.btn{
  box-shadow: 0 14px 30px rgba(59,130,246,0.25);
  transition: transform .12s ease, filter .12s ease;
}
.btn:active{ transform: translateY(1px) scale(0.99); }

.pill{
  background: var(--glass2);
  border-color: rgba(233,237,247,0.10);
}

.pill.livepill{
  border-color: rgba(34,197,94,0.45);
  background: rgba(34,197,94,0.10);
  color: rgba(233,237,247,0.95);
}

.leagueList{
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 900px){
  .leagueList{ grid-template-columns: 1fr 1fr; }
}

.leagueItem{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(233,237,247,0.12);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.leagueItem:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.045);
  border-color: rgba(233,237,247,0.18);
}
.leagueItem.live{
  border-color: rgba(34,197,94,0.35);
  background: rgba(34,197,94,0.06);
}

.leagueMain{ flex:1; }
.leagueName{ font-weight: 800; }
.leagueMeta{ margin-top:6px; display:flex; gap:8px; flex-wrap:wrap; }


/* --- Dashboard Blocks UI --- */
.leagueBox {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  padding: 12px;
}

.leagueList {
  margin-top: 10px;
  max-height: 320px;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid rgba(233,237,247,0.10);
}

.leagueItem {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(233,237,247,0.08);
  align-items: start;
  cursor: pointer;
}
.leagueItem:last-child { border-bottom: 0; }
.leagueItem:hover { background: rgba(255,255,255,0.04); }

.leagueMain { display:flex; flex-direction: column; gap: 6px; }
.leagueName { font-weight: 800; letter-spacing: 0.2px; }
.leagueMeta { display:flex; gap: 8px; flex-wrap: wrap; }

.pill.livepill {
  border-color: rgba(34,197,94,0.55);
  background: rgba(34,197,94,0.12);
  color: rgba(233,237,247,0.95);
}

.pill.dim {
  opacity: 0.75;
}

.condRow {
  display:grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 900px){
  .condRow { grid-template-columns: 1fr 1fr 1fr; }
}

.help {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

.hr {
  height: 1px;
  background: rgba(233,237,247,0.10);
  margin: 12px 0;
}

.blockCard { cursor: default; }
.blockCard:hover { background: rgba(255,255,255,0.04); }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display:none; }


.blocks-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 900px){
  .blocks-grid{ grid-template-columns: 1fr 1fr; }
}
.blockCard{
  align-items:flex-start !important;
}
.blockCard .muted.small{
  line-height: 1.35;
}


/* --- SweetAlert2 theming (match dark UI) --- */
.swal2-popup{
  background: var(--card) !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  box-shadow: var(--shadow) !important;
}

.swal2-title{
  color: var(--text) !important;
}

.swal2-html-container{
  color: var(--text) !important;
  margin: 0 !important;
}

/* maak content scrollbaar als het groot is */
.swal2-popup .swal2-html-container{
  max-height: min(70vh, 720px);
  overflow: auto;
  padding-right: 6px;
}

/* buttons in jouw stijl */
.swal2-actions{ gap:10px; }
.swal2-styled{
  border-radius: 12px !important;
  font-weight: 800 !important;
  padding: 10px 14px !important;
}
.swal2-confirm{
  background: var(--btn) !important;
  box-shadow: 0 14px 30px rgba(59,130,246,0.25) !important;
}
.swal2-cancel{
  background: rgba(255,255,255,0.08) !important;
  color: var(--text) !important;
}

/* inputs/selects in dark mode */
.swal2-popup input,
.swal2-popup select{
  width: 100%;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
}
.swal2-popup input:focus,
.swal2-popup select:focus{
  border-color: rgba(59,130,246,0.6);
  outline: none;
}

/* headings in modal */
.swal2-popup h3{
  margin: 12px 0 8px;
}

/* leagueList in modal: niet dubbel border + beter scroll */
.swal2-popup .leagueBox{ background: rgba(255,255,255,0.02); }
.swal2-popup .leagueList{
  max-height: 280px;
  overflow: auto;
}

/* markets grid in modal: 2-3 kolommen ipv 1 */
.swal2-popup .bm-grid{
  grid-template-columns: 1fr;
}
@media (min-width: 800px){
  .swal2-popup .bm-grid{ grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px){
  .swal2-popup .bm-grid{ grid-template-columns: 1fr 1fr 1fr; }
}


/* --- Blocks list (100% breed) --- */
.blocks-grid--list{
  display:flex;
  flex-direction:column;
  gap: 12px;
}

.blockRow{
  display:flex;
  justify-content:space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(233,237,247,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
}
.blockRow:hover{
  background: rgba(255,255,255,0.045);
  border-color: rgba(233,237,247,0.18);
}

.blockLeft{ flex:1; min-width: 0; }
.blockTitleRow{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}
.blockTitle{
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.2px;
  line-height: 1.2;
}

.blockPills{
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.blockMeta{
  margin-top: 8px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.blockActions{
  display:flex;
  gap: 8px;
  align-items:flex-start;
}

/* buttons varianten */
.btnGhost{
  background: rgba(255,255,255,0.08);
  box-shadow: none;
}
.btnDanger{
  background: rgba(239,68,68,0.18);
  border: 1px solid rgba(239,68,68,0.35);
  box-shadow: none;
}

/* pill varianten */
.pillSoft{
  background: rgba(255,255,255,0.05);
  color: rgba(233,237,247,0.85);
}
.pillLiveCount{
  border-color: rgba(34,197,94,0.55);
  background: rgba(34,197,94,0.12);
  color: rgba(233,237,247,0.95);
}

/* market pills (andere kleur) */
.pillMarket{
  border-color: rgba(99,102,241,0.55);
  background: rgba(99,102,241,0.14);
  color: rgba(233,237,247,0.95);
}

/* specifieke market kleuren (optioneel) */
.pillMarket--ml{
  border-color: rgba(59,130,246,0.55);
  background: rgba(59,130,246,0.14);
}
.pillMarket--totals{
  border-color: rgba(245,158,11,0.55);
  background: rgba(245,158,11,0.14);
}
.pillMarket--spread{
  border-color: rgba(168,85,247,0.55);
  background: rgba(168,85,247,0.14);
}
.pillMarket--bothteamstoscore{
  border-color: rgba(34,197,94,0.40);
  background: rgba(34,197,94,0.08);
}

/* mobiel: actions onder elkaar */
@media (max-width: 720px){
  .blockRow{ flex-direction:column; }
  .blockTitleRow{ flex-direction:column; align-items:flex-start; }
  .blockPills{ justify-content:flex-start; }
  .blockActions .btn{ width:auto; }
}


/* blocks netjes 100% onder elkaar */
.blocks-grid--list{
  display:flex;
  flex-direction:column;
  gap: 12px;
}

/* 2 kolommen: links content, rechts acties */
.blockRow{
  display:grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(233,237,247,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
}
.blockRow:hover{
  background: rgba(255,255,255,0.045);
  border-color: rgba(233,237,247,0.18);
}

.blockLeft{ min-width:0; }

/* title + pills als “stack”: titel boven, pills eronder */
.blockTop{
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.blockTitle{
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.2px;
  line-height: 1.2;
}

.blockPills{
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
  justify-content:flex-start; /* niet naar rechts duwen */
}

.blockMeta{
  margin-top: 10px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* buttons rechts: nooit 100% breed */
.blockActions{
  display:flex;
  gap: 8px;
  align-items:flex-start;
  justify-content:flex-end;
  white-space: nowrap;
}

/* override jouw globale .btn { width:100% } */
.btnInline{
  width: auto !important;
  padding: 10px 14px;
}

/* varianten */
.btnGhost{
  background: rgba(255,255,255,0.08);
  box-shadow: none;
}
.btnDanger{
  background: rgba(239,68,68,0.18);
  border: 1px solid rgba(239,68,68,0.35);
  box-shadow: none;
}

/* pills: beetje strakker */
.pill{
  display:inline-flex;
  align-items:center;
  white-space: nowrap;
  line-height: 1;
  padding: 4px 10px;
}

/* mobiel: acties onderaan links */
@media (max-width: 720px){
  .blockRow{ grid-template-columns: 1fr; }
  .blockActions{ justify-content:flex-start; }
}



/* SweetAlert2 dark mode fixes (select/input in popup) */
.swal2-popup{
  background: #0b1220 !important;
  color: rgba(233,237,247,0.92) !important;
  border: 1px solid rgba(233,237,247,0.12) !important;
}

.swal2-title{ color: rgba(233,237,247,0.92) !important; }

.swal2-html-container{
  color: rgba(233,237,247,0.85) !important;
}

.swal2-input,
.swal2-textarea,
.swal2-select{
  background: rgba(255,255,255,0.06) !important;
  color: rgba(233,237,247,0.92) !important;
  border: 1px solid rgba(233,237,247,0.16) !important;
  border-radius: 12px !important;
  outline: none !important;
}

.swal2-input:focus,
.swal2-textarea:focus,
.swal2-select:focus{
  border-color: rgba(59,130,246,0.7) !important;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.18) !important;
}




/* Force native selects in dark mode (maakt dropdown zelf donker in moderne browsers) */
select,
.swal2-popup select{
  color-scheme: dark;
}

/* SweetAlert: style options correct (niet .swal2-select maar alle selects in popup) */
.swal2-popup select option{
  background: #0b1220;
  color: rgba(233,237,247,0.92);
}

/* Ook op de pagina zelf */
select option{
  background: #0b1220;
  color: rgba(233,237,247,0.92);
}



/* ===== 2028 DASHBOARD LAYOUT ===== */
.container { width: min(1400px, calc(100% - 24px)); } /* breder op desktop */

.dash-shell { padding-bottom: 14px; }

.dash-top{
  display:grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 10px;
}
@media (min-width: 980px){
  .dash-top{
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

.dash-kpis{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 720px){
  .dash-kpis{ grid-template-columns: 1fr 1fr 1fr; }
}

.kpi{
  border: 1px solid rgba(233,237,247,0.12);
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  box-shadow: var(--shadow2);
  position: relative;
  overflow: hidden;
}
.kpi:before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(600px 180px at 20% 0%, rgba(99,102,241,0.25), transparent 55%),
              radial-gradient(500px 200px at 90% 20%, rgba(59,130,246,0.18), transparent 55%),
              radial-gradient(500px 200px at 60% 120%, rgba(168,85,247,0.18), transparent 55%);
  opacity: .9;
  pointer-events:none;
  filter: blur(10px);
}
.kpi > *{ position: relative; z-index: 1; }

.kpi--a:before{ background: radial-gradient(600px 180px at 20% 0%, rgba(168,85,247,0.30), transparent 55%); }
.kpi--b:before{ background: radial-gradient(600px 180px at 20% 0%, rgba(34,197,94,0.20), transparent 55%); }
.kpi--c:before{ background: radial-gradient(600px 180px at 20% 0%, rgba(59,130,246,0.22), transparent 55%); }

.kpi-label{ font-weight: 800; letter-spacing: .2px; opacity: .95; }
.kpi-value{ font-size: 34px; font-weight: 900; margin-top: 8px; line-height: 1; }
.kpi-unit{ font-size: 14px; opacity: .8; margin-left: 6px; font-weight: 800; }

.dash-filters .grid{ grid-template-columns: 1fr; }
@media (min-width: 900px){
  .dash-filters .grid{ grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr 180px; }
}
.dash-subrow{
  margin-top: 10px;
  display:flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===== Sections: desktop tabs + mobile swipe ===== */
.section-tabs{
  display:none;
  gap: 8px;
  margin: 14px 0 8px;
  flex-wrap: wrap;
}
@media (min-width: 980px){
  .section-tabs{ display:flex; }
}
.tabbtn{
  border: 1px solid rgba(233,237,247,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(233,237,247,0.92);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}
.tabbtn:hover{ background: rgba(255,255,255,0.06); }
.tabbtn.is-active{
  border-color: rgba(168,85,247,0.55);
  box-shadow: 0 12px 30px rgba(168,85,247,0.18);
}

.sections-viewport{
  display:flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
}
@media (min-width: 980px){
  .sections-viewport{
    display:block;
    overflow: visible;
    scroll-snap-type: none;
  }
}
.dash-section{
  min-width: 92%;
  scroll-snap-align: start;
}
@media (min-width: 980px){
  .dash-section{ min-width: auto; }
}

.section-head{
  display:flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 10px;
}
.section-name{
  font-size: 16px;
  font-weight: 950;
  letter-spacing: .2px;
}

/* ===== Blocks grid ===== */
.blocks2028{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 980px){
  .blocks2028{ grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1260px){
  .blocks2028{ grid-template-columns: 1fr 1fr 1fr; }
}

.block2028{
  border: 1px solid rgba(233,237,247,0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  box-shadow: var(--shadow2);
  overflow: hidden;
}
.block2028-head{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(233,237,247,0.10);
}
.block2028-name{ font-weight: 950; letter-spacing: .2px; }
.block2028-meta .dot{ margin: 0 8px; opacity: .5; }
.block2028-badges{
  display:flex;
  gap: 8px;
  align-items: start;
}
.block2028-body{
  padding: 12px 14px 14px;
}

/* ===== Event rows (collapsed + expanded) ===== */
.event2028{
  border: 1px solid rgba(233,237,247,0.10);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  margin-bottom: 10px;
  overflow: hidden;
}
.event2028-sum{
  cursor: pointer;
  list-style: none;
  display:flex;
  gap: 12px;
  padding: 12px;
  align-items: center;
}
.event2028-sum::-webkit-details-marker{ display:none; }

.event-main{ flex: 1; min-width: 0; }
.event-teams{
  font-weight: 950;
  letter-spacing: .2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vs{ opacity: .6; font-weight: 900; margin: 0 6px; }
.event-meta{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.mini-odds{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.mini-pill{
  min-width: 104px;
  border: 1px solid rgba(233,237,247,0.12);
  background: rgba(255,255,255,0.03);
  border-radius: 14px;
  padding: 8px 10px;
  text-align: right;
}
.mini-k{ font-size: 11px; opacity: .75; font-weight: 900; }
.mini-v{ font-size: 16px; font-weight: 950; margin-top: 2px; }
.mini-s{ font-size: 11px; white-space: nowrap; overflow:hidden; text-overflow: ellipsis; }

.chev{ opacity: .6; font-weight: 900; }
details[open] .chev{ transform: rotate(180deg); }

.event2028-body{
  border-top: 1px solid rgba(233,237,247,0.08);
  padding: 10px 12px 12px;
}

.bkgrid2028{ display:grid; gap: 8px; }
.bkhead{
  display:grid;
  grid-template-columns: 1fr repeat(3, 82px);
  gap: 8px;
  padding: 0 2px 6px;
}
.bkrow2028{
  display:grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(233,237,247,0.10);
  border-radius: 14px;
  background: rgba(255,255,255,0.025);
}
.bkname{ font-weight: 900; opacity: .95; }

.bkodds{ display:flex; gap: 8px; }
.odd2028{
  min-width: 82px;
  text-align:center;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(233,237,247,0.12);
  background: rgba(255,255,255,0.03);
  font-weight: 950;
  position: relative;
  transition: transform .12s ease;
}
.odd2028 em{
  font-style: normal;
  font-weight: 950;
  opacity: .75;
  margin-left: 6px;
}

/* glow bij wijziging */
.odd2028.is-changed{
  animation: oddFlash 900ms ease-out 1;
  border-color: rgba(34,197,94,0.45);
}
.odd2028.is-changed.dir--1{ border-color: rgba(239,68,68,0.45); }
@keyframes oddFlash{
  0%   { box-shadow: 0 0 0 rgba(34,197,94,0.0); }
  30%  { box-shadow: 0 0 26px rgba(34,197,94,0.35); transform: translateY(-1px); }
  100% { box-shadow: 0 0 0 rgba(34,197,94,0.0); }
}

/* mobile tweaks */
@media (max-width: 720px){
  .event2028-sum{ flex-direction: column; align-items: stretch; }
  .mini-odds{ justify-content: flex-start; }
  .bkhead{ display:none; }
  .bkrow2028{ grid-template-columns: 1fr; }
  .bkodds{ justify-content: space-between; }
}


/* Collapsible filters */
.dash-filterwrap{
  margin-top: 10px;
  border-radius: 18px;
}
.dash-filtersum{
  list-style: none;
  cursor: pointer;
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border: 1px solid rgba(233,237,247,0.12);
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  box-shadow: var(--shadow2);
}
.dash-filtersum::-webkit-details-marker{ display:none; }
.sum-title{ font-weight: 950; letter-spacing: .2px; }
.sum-right{ display:flex; gap: 10px; align-items:center; }
.sum-chev{ opacity:.7; font-weight: 900; transition: transform .18s ease; }
.dash-filterwrap[open] .sum-chev{ transform: rotate(180deg); }
.dash-filterwrap > .dash-filters.card{
  margin-top: 10px;
}


  .upcpill{
    background: rgba(59,130,246,0.18);
    border: 1px solid rgba(59,130,246,0.35);
    color: #cfe3ff;
  }
  .nextpill{
    background: rgba(245,158,11,0.18);
    border: 1px solid rgba(245,158,11,0.35);
    color: #ffe6b3;
  }


@media (min-width: 980px){
  .blocks2028{ grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1260px){
  .blocks2028{ grid-template-columns: 1fr 1fr 1fr; }
}

.blocks2028{
  display:grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  align-items: start;
  justify-content: center;         /* center grid tracks */
  margin: 0 auto;                  /* center binnen sectie */
}
@media (max-width: 420px){
  .blocks2028{ grid-template-columns: 1fr; }
}



@media (min-width: 980px){
  .dash-section{
    width: 100%;
  }
}





.pillSoonCount{
  border-color: rgba(245,158,11,0.55);
  background: rgba(245,158,11,0.14);
  color: rgba(233,237,247,0.95);
}


.blocks2028{
  display:grid;
  gap: 12px;
  width: 100%;
  grid-template-columns: 1fr;     /* 1 kolom voor blocks (jij wilt brede block) */
}

/* als je later meerdere blocks in een sectie wilt, kan dit: */
/*
@media (min-width: 1100px){
  .blocks2028{ grid-template-columns: repeat(2, minmax(520px, 1fr)); }
}
@media (min-width: 1500px){
  .blocks2028{ grid-template-columns: repeat(3, minmax(520px, 1fr)); }
}
*/


.dash-shell{ width: 100%; max-width: none; }
.dash-section{ width: 100%; }
.sections-viewport{ width: 100%; }


.block2028.is-loading{
  opacity: .92;
}
.block2028.is-loading .block2028-head [data-action="refreshBlock"]{
  opacity: .6;
  pointer-events: none;
}


@media (max-width: 979px){
  /* stop horizontale carousel op mobiel */
  .sections-viewport{
    display:block;
    overflow: visible;
    scroll-snap-type: none;
    padding-bottom: 0;
  }
  .dash-section{
    min-width: auto;
    width: 100%;
    scroll-snap-align: unset;
  }

  /* blocks altijd volle breedte */
  .blocks2028{
    display:grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
}

@media (max-width: 720px){
  .event2028-sum{
    flex-direction: column;
    align-items: stretch;
  }

  .mini-odds{
    width: 100%;
    justify-content: flex-start;
  }

  .mini-pill{
    flex: 1 1 0;
    min-width: 0;           /* belangrijk: anders overflow */
    text-align: left;
  }

  .mini-s{
    max-width: 100%;
  }
}


@media (max-width: 720px){
  .bkrow2028{
    grid-template-columns: 1fr;
  }
  .bkodds{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .odd2028{
    min-width: 0;  /* voorkomt horizontale scroll */
  }
}


@media (max-width: 720px){
  .topbar-inner{
    flex-wrap: wrap;
    gap: 8px;
  }
  .nav{
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
  }
}




.scoreBig{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width: 74px;
  padding: 6px 10px;
  border-radius: 14px;
  border: 1px solid rgba(233,237,247,0.14);
  background: rgba(255,255,255,0.05);
  font-weight: 950;
  letter-spacing: .5px;
  margin: 0 10px;
  font-size: 16px;
}

.scoreBig.is-live{
  border-color: rgba(34,197,94,0.55);
  background: rgba(34,197,94,0.12);
  box-shadow: 0 0 20px rgba(34,197,94,0.18);
}

.event-teams{
  display:flex;
  align-items:center;
  gap: 6px;
  flex-wrap: nowrap;
}
.event-teams .team{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* layout binnen de summary */
.event2028-sum .event-row{
  display:flex;
  align-items:center;   /* score + teams verticaal gecentreerd */
  gap: 14px;
  min-width: 0;
}

/* vaste score kolom links */
.scoreCol{
  width: 84px;          /* vaste breedte */
  flex: 0 0 84px;       /* niet rekken/krimpen */
  display:flex;
  align-items:center;
  justify-content:center;
}

/* main gedeelte mag ellipsis krijgen */
.event2028-sum .event-main{
  flex: 1;
  min-width: 0;
}

/* teams netjes */
.event2028-sum .event-teams{
  display:flex;
  align-items:center;
  gap: 10px;
  min-width: 0;
  white-space: nowrap;
}

.event2028-sum .event-teams .team{
  overflow:hidden;
  text-overflow: ellipsis;
}

.event2028-sum .event-teams .vs{
  opacity: .55;
  font-size: 12px;
  flex: 0 0 auto;
}


.event2028-sum .mini-odds{
  margin-left: auto;   /* duwt odds naar rechts */
}
.event2028-sum .chev{
  margin-left: 10px;
  flex: 0 0 auto;
}


/* summary layout */
.event-row{
  display:flex;
  align-items:center;
  gap:14px;
  width:100%;
}

/* linker blok moet kunnen groeien */
.event-row .event-main{
  flex: 1 1 auto;
  min-width: 0;
}

/* rechter blok altijd rechts */
.event-row .event-right{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:12px;
  flex: 0 0 auto;
}

/* odds zelf netjes rechts uitlijnen */
.event-row .mini-odds{
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:flex-end;
}

/* chevron niet laten krimpen */
.event-row .chev{
  flex:0 0 auto;
}


@media (max-width: 720px){
  .dash-top{
    gap: 12px;
  }

  .dash-kpis{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .kpi{
    padding: 12px 12px;
    min-height: 76px;
  }

  .kpi-label{
    font-size: 12px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .kpi-value{
    font-size: 26px;
    line-height: 1;
    margin-top: 6px;
  }

  .kpi-sub{
    font-size: 11px;
    margin-top: 4px;
  }

  .kpi-unit{ font-size: 12px; }
}


@media (max-width: 720px){
  /* SUMMARY layout mag wrappen */
  .event-row{
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  /* score kolom blijft links, vaste breedte */
  .event-row .scoreCol{
    flex: 0 0 72px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* teams/meta nemen hele breedte naast score */
  .event-row .event-main{
    flex: 1 1 calc(100% - 82px);
    min-width: 0;
  }

  /* odds + chevron gaan op mobiel naar nieuwe regel */
  .event-row .event-right{
    flex: 1 1 100%;
    width: 100%;
    margin-left: 0;              /* belangrijk: anders blijft ie “pushen” */
    justify-content: space-between;
  }

  /* mini odds: 3 kolommen */
  .event-row .mini-odds{
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .event-row .mini-pill{
    padding: 8px 8px;
    min-width: 0;
  }

  .event-row .mini-k{ font-size: 11px; }
  .event-row .mini-v{ font-size: 14px; }
  .event-row .mini-s{
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .event-row .chev{
    margin-left: 10px;
  }
}



/* Topbar layout */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,16,32,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(233,237,247,0.08);
  transition: transform .22s ease, background .22s ease;
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 0;
}

.brand{
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: .2px;
}

/* Menu rechts */
.topnav{
  display:flex;
  align-items:center;
  gap: 10px;
  transition: opacity .18s ease, transform .18s ease;
}

.topnav a{ color: var(--text); text-decoration:none; opacity:.9; }
.topnav a:hover{ opacity:1; }
.navsep{ opacity:.5; }
.navuser{ opacity:.85; }

/* Hamburger (default verborgen) */
.hamburger{
  display:none;
  border: 1px solid rgba(233,237,247,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 18px;
  line-height: 1;
}

/* Scroll behavior: menu verbergen, logo laten staan */
.topbar.is-compact .topnav{
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

/* Mobile: hamburger + dropdown menu */
@media (max-width: 720px){
  .hamburger{ display:inline-flex; align-items:center; justify-content:center; }
  .topnav{
    position: absolute;
    right: 12px;
    top: 56px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    min-width: 220px;
    border-radius: 14px;
    border: 1px solid rgba(233,237,247,0.14);
    background: rgba(11,16,32,0.98);
    box-shadow: 0 18px 60px rgba(0,0,0,0.45);
  }

  /* als menu open is */
  .topbar.menu-open .topnav{ display:flex; }

  /* in compact mode blijft hamburger zichtbaar, menu dicht */
  .topbar.is-compact .topnav{
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}


#kpiLastUpdate{
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: .5px;
}

#kpiLastUpdate .lu{
  font-size: 12px;
  opacity: .7;
  margin-right: 6px;
}

#kpiLastUpdate .tv{
  font-size: 34px;   /* tweak naar smaak */
  line-height: 1;
}

#kpiLastUpdate .sep{
  opacity: .5;
  margin: 0 10px;
  font-size: 18px;
  vertical-align: middle;
}


.dash-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}

.dash-title{ min-width: 260px; }

.dash-kpis{
  display:grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap:14px;
  align-items:stretch;
}

/* tablet */
@media (max-width: 1100px){
  .dash-top{ flex-direction:column; }
  .dash-kpis{ grid-template-columns: repeat(2, minmax(180px, 1fr)); width:100%; }
}

/* mobiel */
@media (max-width: 600px){
  .dash-kpis{ grid-template-columns: 1fr; }
}


#kpiLastUpdate{
  white-space:nowrap;
  font-variant-numeric: tabular-nums;
}

#kpiLastUpdate .lu{
  font-size:12px;
  opacity:.7;
  margin-right:6px;
}

#kpiLastUpdate .tv{
  font-size:28px;
  line-height:1;
}

#kpiLastUpdate .sep{
  opacity:.6;
  margin:0 10px;
  font-size:16px;
  vertical-align:middle;
}


.dash-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.dash-title{
  min-width:220px;
}

.dash-kpis{
  display:grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap:12px;
  width:100%;
  max-width: 900px; /* of weghalen als je full width wilt */
}

.kpi{
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  padding:14px 16px;
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(10px);
  min-height: 84px;
}

.kpi-value{
  font-size:32px;
  font-weight:700;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.kpi-sub{
  margin-top:6px;
}

/* Tablet */
@media (max-width: 980px){
  .dash-kpis{
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    max-width: 100%;
  }
}

/* Mobile */
@media (max-width: 520px){
  .dash-top{
    flex-direction:column;
  }
  .dash-kpis{
    grid-template-columns: 1fr;
  }
  .kpi-value{
    font-size:28px;
  }
}


/* Mobiel: 4 KPI's in 1 rij */
@media (max-width: 720px){
  .dash-kpis{
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }

  .kpi{
    padding: 10px;
    min-height: 70px;
  }

  .kpi-label{
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .kpi-value{
    font-size: 22px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .kpi-sub{ font-size: 10px; }
}


#kpiLastUpdate{
  white-space: normal;
  line-height: 1.1;
}
#kpiLastUpdate .tv{
  font-size: 16px;
}


a.odd2028 { color: inherit; text-decoration: none; display:inline-block; }
a.odd2028:hover { text-decoration: underline; }


 .mini-odds a,
  .bkodds a {
    color: inherit;
    text-decoration: none;
  }
  .mini-odds a:visited,
  .bkodds a:visited {
    color: inherit;
  }
  .mini-odds a:hover,
  .bkodds a:hover {
    text-decoration: underline;
  }

 .mini-vlink { color: inherit; text-decoration: none; }
  .mini-vlink:hover { text-decoration: underline; }
  .mini-vlink:visited { color: inherit; }

/* Live: titel links, KPI's rechts */
.dash-top--live{
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: nowrap;
}

.dash-top--live .dash-title{
  flex: 1 1 auto;
  min-width: 260px;
}

.dash-top--live .dash-kpis{
  margin-left: auto;          /* <-- dit is de key */
  justify-content: flex-end;  /* als dash-kpis flex/grid is */
}

/* mobiel: netjes onder elkaar */
@media (max-width: 900px){
  .dash-top--live{
    flex-wrap: wrap;
  }
  .dash-top--live .dash-kpis{
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }
}


/* Live: KPI grid mag niet de 4-koloms dashboardbreedte blijven houden */
.dash-top--live .dash-kpis{
  display: flex;              /* i.p.v. grid */
  gap: 12px;
  margin-left: auto;          /* duw naar rechts */
  justify-content: flex-end;
}

/* mobiel: onder elkaar als je wilt */
@media (max-width: 900px){
  .dash-top--live{
    flex-wrap: wrap;
  }
  .dash-top--live .dash-kpis{
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
}


/* LIVE: KPI rij rechts, met dashboard-achtige kaartbreedte */
.dash-top--live{
  display:flex;
  align-items:flex-start;
  gap:20px;
}

.dash-top--live .dash-title{
  flex: 1 1 auto;
  min-width: 260px;
}

/* de wrapper krimpt naar content en staat rechts */
.dash-top--live .dash-kpis{
  margin-left:auto;
  display:flex;
  gap:12px;
  justify-content:flex-end;
  align-items:stretch;
  width:max-content;        /* <— belangrijk: niet full-width */
}

/* KPI cards zelf: geef ze dezelfde “kaart” maat */
.dash-top--live .dash-kpis .kpi{
  width: 220px;             /* tune: 210–260 wat jij mooi vindt */
  min-width: 220px;
}

/* responsive */
@media (max-width: 900px){
  .dash-top--live{
    flex-wrap:wrap;
  }
  .dash-top--live .dash-kpis{
    width:100%;
    margin-left:0;
    justify-content:flex-start;
  }
  .dash-top--live .dash-kpis .kpi{
    width: calc(50% - 6px);
    min-width: 0;
  }
}


.odd-arrow{
  margin-left: 6px;
  font-size: 12px;
  font-weight: 700;
  opacity: .9;
}

.odd-arrow.dir-1 { color: var(--ok); }
.odd-arrow.dir--1 { color: var(--danger); }

.odd2028.is-changed{
  outline: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 0 0 2px rgba(255,255,255,.06);
}


.odd-arrow{
  margin-left: 6px;
  font-size: 12px;
  font-weight: 700;
  opacity: .9;
}
.odd-arrow.dir-1 { color: var(--ok); }
.odd-arrow.dir--1 { color: var(--danger); }


.mini-v{
  display:flex;
  align-items:center;
  gap:6px;
}
.mini-vlink, .mini-vtxt{
  display:inline-block;
}
.odd-arrow{
  display:inline-block;
  font-size:12px;
  line-height:1;
  opacity:.9;
}
.odd-arrow.dir-1{ color: var(--ok); }
.odd-arrow.dir--1{ color: var(--danger); }


.oddWrap{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.bkodds{
  display:flex;
  gap:8px;
  justify-content:flex-end; /* of start, wat jij wil */
  flex-wrap:wrap;
}


.mini-pill{
  text-align: center;           /* i.p.v. right */
}

.mini-v{
  justify-content: center;      /* midden in pill */
  font-variant-numeric: tabular-nums;
}

.mini-vlink, .mini-vtxt{
  display:inline-flex;
  align-items:center;
}

.odd-arrow{
  margin-left: 4px;
  transform: translateY(-1px);
}


.oddWrap{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.bkodds{
  display:flex;
  gap:8px;
  justify-content:flex-end;
  flex-wrap:wrap;
}


/* header & rows: zelfde grid */
.bkhead,
.bkrow2028{
  display:grid;
  grid-template-columns: 1fr 110px 110px 110px; /* pas breedtes aan als je wil */
  gap: 10px;
  align-items:center;
}

/* bookmaker naam (kolom 1) */
.bkname{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* de odds (kolommen 2-4) */
.bkodds{
  display: contents; /* <-- super belangrijk: laat de 3 oddWraps direct in grid-cellen vallen */
}

/* de drie cellen */
.bkodds .oddWrap{
  justify-self:end;          /* rechts uitlijnen onder Home/Draw/Away */
  display:inline-flex;
  align-items:center;
  gap:6px;
}

/* header labels ook rechts onder elkaar */
.bkhead > span:nth-child(2),
.bkhead > span:nth-child(3),
.bkhead > span:nth-child(4){
  justify-self:end;
}


.mini-pill{
  display:grid;
  grid-template-rows: auto auto auto;
  justify-items:center;
  text-align:center;
}

.mini-v{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  line-height:1;
}

.mini-s{
  line-height:1.1;
}


/* === FIX: mini-odds altijd 3 gelijke kolommen === */
.event-row .mini-odds{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 10px;
  align-items: stretch;
  justify-content: end;
}

.event-row .mini-pill{
  width: 100%;
  min-width: 0;
  text-align: center;
  display: grid;
  grid-template-rows: auto auto auto;
  justify-items: center;
}

/* label */
.event-row .mini-k{
  font-size: 11px;
  opacity: .75;
  font-weight: 900;
  line-height: 1.1;
}

/* quote + pijl echt exact gecentreerd */
.event-row .mini-v{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  width: 100%;
}

/* bookmaker onder: ook centreren */
.event-row .mini-s{
  width: 100%;
  text-align: center;
  font-size: 11px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* op kleine schermen iets smaller */
@media (max-width: 720px){
  .event-row .mini-odds{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
}


/* =========================
   FINAL OVERRIDES (LIVE)
   Maak summary 1 strak grid
   ========================= */

/* 1) Event summary layout: score | teams | odds | chevron */
.event2028-sum .event-row{
  display: grid !important;
  grid-template-columns: 84px 1fr 360px 26px;
  align-items: center;
  column-gap: 14px;
  width: 100%;
}

/* score kolom */
.event2028-sum .scoreCol{
  width: 84px !important;
  flex: none !important;
}

/* 2) Laat wrapper wegvallen zodat mini-odds + chev echte grid items zijn */
.event2028-sum .event-right{
  display: contents !important;
}

/* 3) Mini-odds: altijd 3 gelijke kolommen, rechts uitlijnen */
.event2028-sum .mini-odds{
  width: 360px;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  justify-self: end;
  align-items: stretch;
}

/* 4) Pills: alles echt gecentreerd */
.event2028-sum .mini-pill{
  width: 100%;
  min-width: 0;
  text-align: center !important;
  display: grid;
  grid-template-rows: auto auto auto;
  justify-items: center;
}

.event2028-sum .mini-v{
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.event2028-sum .mini-s{
  width: 100%;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 5) Chevron: altijd helemaal rechts */
.event2028-sum .chev{
  justify-self: end;
  opacity: .65;
}

/* 6) Mobiel: odds op nieuwe regel */
@media (max-width: 720px){
  .event2028-sum .event-row{
    grid-template-columns: 72px 1fr;
    row-gap: 10px;
  }

  .event2028-sum .mini-odds{
    grid-column: 1 / -1;          /* hele breedte */
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    justify-self: stretch;
  }

  .event2028-sum .chev{
    grid-column: 2;
    grid-row: 1;                   /* chevron blijft naast teams */
    justify-self: end;
  }
}


/* =========================
   FIXPACK: alignment + mobile
   (plakken HELEMAAL ONDERAAN)
   ========================= */

/* 0) Lege pijl-span mag NIET ruimte innemen */
.odd-arrow:empty{
  display:none !important;
  margin-left:0 !important;
}

/* 1) Mini pills: force echte center uitlijning */
.mini-pill{
  text-align:center !important;
  display:grid !important;
  grid-template-rows: auto auto auto;
  justify-items:center !important;
}

.mini-k, .mini-s{
  width:100%;
  text-align:center !important;
  line-height:1.1;
}

.mini-v{
  width:100%;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px;
  line-height:1;
  margin-top:2px;
  font-variant-numeric: tabular-nums;
}

/* link moet niet “baseline” raar doen */
.mini-vlink, .mini-vtxt{
  display:inline-flex !important;
  align-items:center !important;
  line-height:1;
}

/* 2) Summary op desktop: oké je grid, maar maak chevron “simpel” */
.event2028-sum{
  position: relative;
}

/* 3) MOBIEL: stop met de ingewikkelde grid + contents aanpak.
      Maak het weer voorspelbaar:
      - rij 1: score + teams
      - rij 2: odds (3 kolommen)
      - chevron absoluut rechtsboven */
@media (max-width: 720px){

  /* zet summary layout terug naar flex */
  .event2028-sum .event-row{
    display:flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  /* bovenste lijn: score + teams */
  .event2028-sum .scoreCol{
    width:auto !important;
    flex:none !important;
    display:flex !important;
    justify-content:flex-start !important;
  }

  /* teams blok */
  .event2028-sum .event-main{
    width:100% !important;
  }

  /* odds onder teams, 3 kolommen */
  .event2028-sum .mini-odds{
    width:100% !important;
    display:grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    justify-content: stretch !important;
    align-items: stretch !important;
  }

  .event2028-sum .mini-pill{
    min-width:0 !important;
    padding: 8px 8px !important;
  }

  /* chevron altijd rechtsboven, nooit layout beïnvloeden */
  .event2028-sum .chev{
    position:absolute !important;
    top: 12px !important;
    right: 12px !important;
    margin: 0 !important;
  }

  /* event-right mag normaal blijven (geen contents op mobiel) */
  .event2028-sum .event-right{
    display:block !important;
    margin-left:0 !important;
  }
}



/* =========================
   FIX: Expanded odds (Away) zichtbaar op mobiel
   ========================= */
@media (max-width: 720px){

  /* header van tabel verbergen op mobiel (neemt ruimte + kan misalignen) */
  .bkhead{ display:none !important; }

  /* rij: bookmakernaam bovenaan, odds eronder in 3 kolommen */
  .bkrow2028{
    display:grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    align-items: start !important;
  }

  /* bookmakernaam volledige breedte */
  .bkrow2028 .bkname{
    width:100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* odds als 3-koloms grid */
  .bkrow2028 .bkodds{
    display:grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width:100% !important;
  }

  /* elke oddWrap vult zijn kolom */
  .bkrow2028 .bkodds .oddWrap{
    justify-self: stretch !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:6px;
    width:100%;
  }

  /* odds-knop zelf mag niet forceren */
  .bkrow2028 .odd2028{
    min-width:0 !important;
    width:100%;
  }
}



.scoreBig{ position: relative; cursor: pointer; }

.scoreBig:hover::after{
  content: attr(data-copy-eventid);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  border: 1px solid rgba(233,237,247,0.16);
  background: rgba(11,16,32,0.95);
  color: rgba(233,237,247,0.95);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 14px 40px rgba(0,0,0,0.4);
}

.scoreBig.copied{
  outline: 2px solid rgba(59,130,246,0.55);
  box-shadow: 0 0 0 6px rgba(59,130,246,0.14);
}


@keyframes goalFlash{
  0% { box-shadow: 0 0 0 rgba(34,197,94,0.0); transform: translateY(0); }
  25%{ box-shadow: 0 0 28px rgba(34,197,94,0.35); transform: translateY(-1px); }
  100%{ box-shadow: 0 0 0 rgba(34,197,94,0.0); transform: translateY(0); }
}
.scoreBig.is-goal{
  animation: goalFlash 900ms ease-out 2;
}

.pill.goalpill{
  border-color: rgba(34,197,94,0.60);
  background: rgba(34,197,94,0.16);
  color: rgba(233,237,247,0.98);
  font-weight: 950;
  letter-spacing: .4px;
}


.bkrow2028.is-susp{
  border-color: rgba(239,68,68,0.35);
  background: rgba(239,68,68,0.06);
}
.bkrow2028.is-susp .odd2028{
  opacity: .55;
}
.bkrow2028.is-susp .bkname::after{
  content: "SUSP";
  margin-left: 10px;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(239,68,68,0.40);
  background: rgba(239,68,68,0.12);
  color: rgba(255,210,210,0.95);
}


/* score hover tooltip + copied */
.scoreBig{ position: relative; cursor: pointer; }
.scoreBig:hover::after{
  content: attr(data-copy-eventid);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  border: 1px solid rgba(233,237,247,0.16);
  background: rgba(11,16,32,0.95);
  color: rgba(233,237,247,0.95);
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 14px 40px rgba(0,0,0,0.4);
}
.scoreBig.copied{
  outline: 2px solid rgba(59,130,246,0.55);
  box-shadow: 0 0 0 6px rgba(59,130,246,0.14);
}

/* GOAL glow */
@keyframes goalFlash{
  0% { box-shadow: 0 0 0 rgba(34,197,94,0.0); transform: translateY(0); }
  25%{ box-shadow: 0 0 28px rgba(34,197,94,0.35); transform: translateY(-1px); }
  100%{ box-shadow: 0 0 0 rgba(34,197,94,0.0); transform: translateY(0); }
}
.scoreBig.is-goal{ animation: goalFlash 900ms ease-out 2; }

.pill.goalpill{
  border-color: rgba(34,197,94,0.60);
  background: rgba(34,197,94,0.16);
  color: rgba(233,237,247,0.98);
  font-weight: 950;
  letter-spacing: .4px;
}

/* Suspended rows (expanded) */
.bkrow2028.is-susp{
  border-color: rgba(239,68,68,0.35);
  background: rgba(239,68,68,0.06);
}
.bkrow2028.is-susp .odd2028{ opacity: .55; }
.bkrow2028.is-susp .bkname::after{
  content: "SUSP";
  margin-left: 10px;
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(239,68,68,0.40);
  background: rgba(239,68,68,0.12);
  color: rgba(255,210,210,0.95);
}

/* Summary mini-pill suspended state */
.mini-pill.is-susp-mini{
  border-color: rgba(239,68,68,0.30);
  background: rgba(239,68,68,0.06);
  opacity: .9;
}
.suspTag{
  display:inline-block;
  font-weight:900;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(239,68,68,0.40);
  background: rgba(239,68,68,0.12);
  color: rgba(255,210,210,0.95);
}

/* BIG MOVE pill */
.pill.bigpill{
  border-color: rgba(245,158,11,0.60);
  background: rgba(245,158,11,0.16);
  color: rgba(233,237,247,0.98);
  font-weight: 950;
  letter-spacing: .4px;
}

/* BIG MOVE: laat de hele event row flikkeren */
@keyframes bigFlicker{
  0%   { box-shadow: 0 0 0 rgba(245,158,11,0.00); }
  20%  { box-shadow: 0 0 40px rgba(245,158,11,0.30); }
  40%  { box-shadow: 0 0 0 rgba(245,158,11,0.00); }
  60%  { box-shadow: 0 0 46px rgba(245,158,11,0.28); }
  100% { box-shadow: 0 0 0 rgba(245,158,11,0.00); }
}
.event2028.is-bigmove{
  animation: bigFlicker 900ms ease-in-out infinite;
  border-color: rgba(245,158,11,0.35);
}


/* DB export lijst compact */
.db-grid{
  display:grid;
  gap:10px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px){
  .db-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px){
  .db-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.db-item{
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  background: rgba(255,255,255,.03);
}
.db-item:hover{
  background: rgba(255,255,255,.05);
}
.db-name{
  font-weight:800;
  letter-spacing:.2px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.db-sub{
  font-size:11px;
  color: var(--muted);
  margin-top:2px;
}
.db-left{ min-width:0; }
.db-right{ display:flex; align-items:center; gap:10px; }
.db-chip{
  font-size:11px;
  padding:2px 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--muted);
}
