
:root{--marketline-color:#a7f3d0;
  --brand:#22c55e; --brand-ink:#052e16; --ink:#111827; --muted:#6b7280;
  --bg:#0b1220; --card:#0f172a; --border:#1f2a44; --chip:#0b1529; --ok:#16a34a;
}
@media (prefers-color-scheme: light){
  :root{--marketline-color:#a7f3d0; --bg:#f6f7fb; --card:#ffffff; --border:#e5e7eb; --chip:#f1f5f9; --ink:#111827; --muted:#6b7280; }
}
html[data-theme="light"]{--marketline-color:#374151; --bg:#f6f7fb; --card:#ffffff; --border:#e5e7eb; --chip:#f1f5f9; --ink:#111827; --muted:#6b7280; }
html[data-theme="dark"]{ --bg:#0b1220; --card:#0f172a; --border:#1f2a44; --chip:#0b1529; --ink:#e5e7eb; --muted:#94a3b8; }
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--ink);font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial}
a{color:inherit;text-decoration:none}
/* Topbar */
.topbar{position:sticky; top:0; z-index:50; background:#0b1220; color:#fff; box-shadow:0 1px 0 rgba(255,255,255,.06), 0 10px 20px rgba(0,0,0,.08)}
.topbar-inner{height:56px; max-width:1200px; margin:0 auto; padding:0 16px; display:flex; align-items:center; gap:16px}
.topbar .brand{display:flex; align-items:center; gap:10px}
.topbar nav{margin-left:auto; display:flex; gap:14px}
.topbar nav a{color:#e5fbe5; font-weight:600; font-size:14px; opacity:.95; padding:8px 10px; border-radius:8px}
.topbar nav a:hover, .topbar nav a.active{background:rgba(255,255,255,.08)}
.theme-btn{margin-left:8px; appearance:none; border:1px solid rgba(255,255,255,.15); background:rgba(255,255,255,.06); color:#e5fbe5; padding:4px 8px; border-radius:10px; cursor:pointer; display:flex; align-items:center; gap:6px}
.theme-btn .icon-sun::before{content:"☀️"} .theme-btn .icon-moon::before{content:"🌙"}
/* Frame */
.container{max-width:1200px; margin:18px auto; padding:0 16px}
.meta{display:inline-flex; align-items:center; gap:10px; margin:8px 0 16px; color:#064e3b; background:#d1fae5; border:1px solid #a7f3d0; padding:8px 12px; border-radius:12px; font-size:13px}
.grid{display:grid; grid-template-columns:320px 1fr; gap:16px} @media (max-width:960px){ .grid{grid-template-columns:1fr} }
/* Sidebar */
.sidebar{background:var(--card); border:1px solid var(--border); border-radius:14px; padding:12px}
.side-title{font-size:14px; font-weight:800; margin:6px 0 10px}
.section{border-top:1px dashed var(--border); padding-top:10px; margin-top:10px}
.range-row{display:flex; align-items:center; gap:10px}
.range-row input[type="number"]{width:110px; padding:8px; border:1px solid var(--border); border-radius:10px; background:#0b0f17; color:var(--ink)}
html[data-theme="light"] .range-row input[type="number"]{background:#fff;color:#111827}
/* Dual range */
.dual-range{position:relative; height:32px; margin:8px 0 4px}
.dual-range input[type=range]{position:absolute; left:0; right:0; top:6px; width:100%; pointer-events:auto; background:transparent; -webkit-appearance:none}
.dual-range .track{position:absolute; left:0; right:0; top:14px; height:6px; background:#1f2a44; border-radius:999px}
.dual-range .range-fill{position:absolute; top:14px; height:6px; background:#22c55e; border-radius:999px; left:0; right:0}
input[type=range]{min:0;max:50}
input[type=range]::-webkit-slider-thumb{ -webkit-appearance:none; width:18px; height:18px; border-radius:50%; background:#22c55e; border:2px solid #0b1220 }
input[type=range]::-moz-range-thumb{ width:18px; height:18px; border-radius:50%; background:#22c55e; border:2px solid #0b1220 }
/* Chips */

/* --- Logo wrap standardization --- */
.logo-wrap{display:inline-flex; align-items:center; justify-content:center;
  width:var(--logo-width, 128px); height:var(--logo-height, 44px);
  padding:4px 8px; border-radius:12px; background:#fff; overflow:hidden;
}
.logo-wrap.round{border-radius:12px}
.logo-wrap.card{border-radius:14px}
.logo-wrap img{height:100%; width:auto; max-height:100%; object-fit:contain; display:block}

/* Force images inside chips and bookmaker cards to use the wrapper sizing */
.chip .logo-wrap{ --logo-width: var(--logo-width-menu, 128px); --logo-height: var(--logo-height-menu, 44px); padding:3px 8px; }
.bm .logo-wrap{ --logo-width: var(--logo-width-card, 140px); --logo-height: var(--logo-height-card, 52px); padding:6px 10px; }

/* Keep legacy sizing rules from conflicting */
.chip img, .bm img{ width:auto !important; height:auto !important; }

/* Mobile topbar: ensure no horizontal scrolling */
@media (max-width: 480px){
  .topbar-inner{ gap:8px; padding:0 12px; }
  .topbar nav{ gap:8px; flex-wrap:wrap; }
  .topbar nav a{ font-size:12px; padding:6px 8px; }
  .topbar .brand img{ width:150px; height:auto; }
  html, body{ overflow-x:hidden; }
}
/* Chips */
.chipbar{display:flex; flex-wrap:wrap; gap:8px; max-height:none; overflow:visible; padding:6px; background:var(--chip); border:1px dashed var(--border); border-radius:12px}
.chip{background:transparent; border:1px solid var(--border); border-radius:999px; padding:2px 6px; display:inline-flex; align-items:center; gap:6px; font-size:13px}
.chip input{margin:0} .chip img{width:72px; height:28px; object-fit:contain}
.side-actions{display:flex; gap:8px; margin-top:8px}
.btn{appearance:none; border:1px solid var(--border); background:#0b0f17; color:var(--ink); padding:8px 10px; border-radius:10px; cursor:pointer; font-weight:600}
html[data-theme="light"] .btn{background:#f8fafc; color:#111827}
/* Cards */
.list{display:flex; flex-direction:column; gap:12px}
.card{background:var(--card); border:1px solid var(--border); border-radius:16px; padding:12px; display:grid; grid-template-columns:1fr 180px; gap:10px; align-items:stretch; box-shadow:0 6px 12px rgba(0,0,0,.04)}
.winrow{display:flex; align-items:center; gap:10px; margin-top:4px}
.tag{background:#ecfdf5; color:#065f46; border:1px solid #a7f3d0; font-weight:900; font-size:13px; padding:4px 8px; border-radius:999px}
.marketline{font-size:14px; font-weight:700; color:var(--marketline-color); margin-top:4px}
.match{font-weight:800; font-size:16px; line-height:1.25; margin-top:4px}
.legs{display:grid; grid-template-columns:1fr 1fr; gap:10px; width:100%; margin-top:8px}
.leg{border:1px solid var(--border); border-radius:12px; padding:12px}
/* Clickable leg blocks */
.leg{ position:relative; transition:background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.leg:hover{ cursor:pointer; background:rgba(34,197,94,.12); border-color:#22c55e; box-shadow:0 0 0 2px rgba(34,197,94,.25) inset; cursor:pointer; }
.leg .leg-hit{ position:absolute; inset:0; border-radius:12px; z-index:5; display:block; }
.leg .odds, .leg .line, .leg .bm{ position:relative; z-index:2; }

.leg .line{font-weight:800}
.odds{display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:10px}
.odd{font-size:20px; font-weight:900}
.bm{display:flex; flex-direction:column; align-items:center; gap:6px; text-decoration:none}
.bm img{width:160px; height:56px; object-fit:contain; background:transparent; border-radius:0; padding:0}
.bm .bm-name{font-size:12px; color:#94a3b8}
/* Full-height action panel */
.actions{display:flex; align-items:center; justify-content:center}
.cta{background:#22c55e; color:#052e16; font-weight:900; text-decoration:none; border-radius:12px; width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; padding:10px}
.cta:hover{filter:brightness(.95)}
.cta .calc-ico{width:64px; height:40px; display:block}
/* Prose & calc */
.prose{max-width:900px; margin:0 auto}
.prose .muted{color:var(--muted)}
.prose h1{margin:6px 0 10px}
.prose p{line-height:1.6}
.calc-wrap .container{max-width:900px}
/* Footer */
.site-footer .container{max-width:1200px; margin:0 auto; padding:0 16px}

.bm img[alt*="starcasino"]{background:#fff; padding:4px; border-radius:6px;}


/* === HOTFIX 2025-09-09 ===================================== */

/* Make the action (CTA) column equal height with the legs/cards */
.card{ display:grid; grid-template-columns: 1fr 280px; gap:12px; align-items:stretch; }
.card > .content{ grid-column: 1 / 2; }
.card > .actions{ grid-column: 2 / 3; display:flex; align-items:stretch; }
.actions .cta{ width:100%; height:100%; display:flex; align-items:center; justify-content:center; border-radius:16px; }

/* Ensure the two legs inside the content are a 2-col grid */
.legs{ display:grid; grid-template-columns: 1fr 1fr; gap:10px; width:100%; margin-top:8px; }
.leg{ height:100%; display:flex; flex-direction:column; }

/* Calculator icon + label layout */
.cta .calc-ico{ width:auto; height:40px; display:block; }

/* Starcasino logo readability on dark: white card behind the logo */
.bm img[alt*="starcasino"], .bm img[alt*="Starcasino"]{
  background:#fff; padding:8px 10px; border-radius:10px;
}

/* Subtitle contrast on light theme (auto) */
@media (prefers-color-scheme: light){
  html[data-theme="auto"]{ --marketline-color:#374151; }
}

/* Header brand/logo larger */
.topbar .brand img{ height:32px; width:auto; }

/* Responsive: stack on mobile */
@media (max-width: 768px){
  .card{ grid-template-columns: 1fr; }
  .actions{ order: 3; }
  .actions .cta{ min-height: 120px; }
}
/* =========================================================== */


/* === HOTFIX 2025-09-09 v2 ================================ */
/* Make CTA (actions .cta) exactly same height as a leg block */
.card{ display:grid; grid-template-columns:1fr 1fr 180px; gap:12px; align-items:stretch; }
.card > div:first-child{ grid-column:1 / span 2; }
.card > .actions{ grid-column:3 / 4; display:flex; }
.actions .cta{ width:100%; height:100%; min-height:0; padding:20px; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:12px; border-radius:16px; }

/* Make calculator icon larger but proportional */
.cta .calc-ico{ width:64px; height:64px; }
/* ========================================================= */


/* === HOTFIX 2025-09-09 v3 ================================ */
/* Make CTA width ~1/4 of one leg (odds card) */
.card{ display:grid; grid-template-columns:1fr 1fr 0.25fr; gap:12px; align-items:stretch; }
.card > div:first-child{ grid-column:1 / span 2; }
.card > .actions{ grid-column:3 / 4; display:flex; }
.actions .cta{ width:100%; height:100%; min-height:0; padding:16px; display:flex; flex-direction:column; justify-content:center; align-items:center; gap:12px; border-radius:16px; }

/* Calculator icon stays large */
.cta .calc-ico{ width:64px; height:64px; }
/* ========================================================= */


/* === HOTFIX 2025-09-09 v4 ================================ */
/* Compact friendly CTA button */
.actions .cta{
  height:100px;
  min-height:unset;
  width:100%;
  padding:12px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:8px;
  border-radius:12px;
}
.cta .calc-ico{
  width:48px;
  height:48px;
}
/* ========================================================= */


/* === HOTFIX 2025-09-09 v5 (mini-cta) ===================== */
/* Revert card layout to block (hide old actions pane if any) */
.card{ display:block; }
.actions{ display:none !important; }

/* Legs now have a 3rd column for the mini-cta on desktop */
.legs{ display:grid; grid-template-columns: 1fr 1fr 120px; gap:10px; width:100%; margin-top:8px; }
.mini-cta{
  border:1px solid var(--border);
  border-radius:12px;
  text-decoration:none;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:8px;
  padding:10px;
  background:transparent;
  color:var(--ink);
  font-weight:900;
  text-align:center;
}
.mini-cta:hover{ background:#22c55e; color:#052e16; }
.mini-cta .mini-ico{ width:44px; height:44px; display:block; }
.mini-cta .mini-cta-label{ font-size:12px; letter-spacing:.3px; }

/* Mobile: stack; put mini-cta as a row with icon + text */
@media (max-width: 768px){
  .legs{ grid-template-columns: 1fr; }
  .mini-cta{ flex-direction:row; justify-content:center; gap:10px; }
  .mini-cta .mini-cta-label{ font-size:14px; }
}
/* ========================================================= */


/* === HOTFIX 2025-09-09 v6 (placement + style) ============= */
/* Ensure 3 columns on desktop and keep 1 column on small */
@media (min-width: 900px){
  .card .legs{ grid-template-columns: 1fr 1fr 140px !important; }
}

/* Mini-CTA visual refinement (no heavy box look) */
.mini-cta{
  border:1px dashed var(--border);
  background:transparent;
  border-radius:12px;
}
.mini-cta:hover{
  background:rgba(34,197,94,.12); /* subtle green tint */
  border-style:solid;
}
.mini-cta .mini-ico{
  width:40px;
  height:40px;
}
.mini-cta .mini-cta-label{ font-size:13px; }
/* ========================================================= */

/* === HOTFIX 2025-09-09 v7 (hover & visibility) ============ */
.mini-cta, .mini-cta:visited { color: var(--ink) !important; }
.mini-cta:hover { background: rgba(34,197,94,.12); border-color: var(--border); color: var(--ink) !important; }
.mini-cta .mini-ico { width:40px; height:40px; color: currentColor; }
/* ========================================================== */


/* --- Surebet logo adjustments --- */

.bm .logo-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
}
.bm .logo-wrap img{
  height:90%;
  width:auto;
  object-fit:contain;
}

/* Logo fine-tune: center + allow JS scaling */
.logo-wrap{justify-content:center; align-items:center}
.logo-wrap img{transform-origin:center center; display:block; margin:0 auto;}


/* Mobile nav fixes */
@media (max-width: 600px){
  .topbar-inner{ flex-wrap:wrap; height:auto; justify-content:space-between; }
  .topbar nav{ flex-wrap:wrap; gap:6px; width:100%; order:2; margin-left:0; justify-content:center; }
  .topbar nav a{ flex:1 1 auto; text-align:center; font-size:13px; padding:6px 4px; }
  .theme-btn{ order:3; margin:6px auto 0; }
}


/* --- Mobile topbar: no horizontal scroll, items wrap onto a new line --- */
@media (max-width: 480px){
  .topbar-inner{ height:auto; padding:8px 12px; gap:8px; flex-wrap:wrap; }
  .topbar .brand{ flex: 1 1 100%; }
  .topbar nav{ order: 2; margin-left:0; flex: 1 1 100%; display:flex; flex-wrap:wrap; gap:8px; }
  .topbar nav a{ font-size:12px; padding:6px 8px; }
  .theme-btn{ order: 3; margin-left:auto; }
  html, body{ overflow-x:hidden; }
}


/* --- Mobile topbar (v2): theme toggle top-right, nav below, no horizontal scroll --- */
@media (max-width: 480px){
  .topbar-inner{ height:auto; padding:8px 12px; gap:8px; flex-wrap:wrap; align-items:center; }
  .topbar .brand{ order:0; flex: 1 1 auto; }
  .theme-btn{ order:1; margin-left:auto; align-self:flex-start; }
  .topbar nav{ order:2; margin-left:0; flex: 1 1 100%; display:flex; flex-wrap:wrap; gap:8px; justify-content:space-between; }
  .topbar nav a{ font-size:12px; padding:6px 8px; }
  html, body{ overflow-x:hidden; }
}


/* --- Mobile topbar (v3 grid): brand left, toggle right, nav wraps below --- */
@media (max-width: 640px){
  .topbar-inner{
    display:grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand theme"
      "nav nav";
    gap:8px;
    padding:8px 12px;
    height:auto;
    align-items:center;
  }
  .topbar .brand{ grid-area: brand; }
  .theme-btn{ grid-area: theme; justify-self:end; margin-left:0; }
  .topbar nav{ grid-area: nav; margin-left:0; display:flex; flex-wrap:wrap; gap:8px; justify-content:space-between; }
  .topbar nav a{ font-size:12px; padding:6px 8px; }
  html, body{ overflow-x:hidden; }
}


/* --- Odd Calculator Dark Mode Fixes --- */
.table-odds, .table-odds table{
  background: #0e1525;
  color: #f1f1f1;
  border-collapse: collapse;
}
.table-odds th{
  background: #006699;
  color: #fff;
}
.table-odds td{
  background: #1a2235;
  color: #f1f1f1;
  border: 1px solid #2a3550;
}
.table-odds tr:nth-child(even) td{
  background: #121a2a;
}


/* --- Surebets hover effect for odds boxes --- */
.bm, .bm .odd-box{
  cursor:pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.bm:hover, .bm .odd-box:hover{
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
}


/* General table colors to help dark pages (odd calculator) */
html[data-theme="dark"] table{ background:transparent; color:var(--ink); border-color:var(--border); }
html[data-theme="dark"] th{ background:#0ea5e9; color:#fff; }
html[data-theme="dark"] td{ background:rgba(255,255,255,.02); }
html[data-theme="dark"] tr:nth-child(even) td{ background:rgba(255,255,255,.04); }
html[data-theme="dark"] tr:hover td{ background:rgba(34,197,94,.08); }
