/* =========================================================================
   Big Odds feed — embeddable widget (bigodds-feed.html / bigodds-feed.js)

   Same visual kit as the Computer Picks (picks.css): Inter for text, Saira
   Condensed for the title, JetBrains Mono for prices; theme tokens below are
   the picks.css values, and brands.css (loaded after) re-skins them per
   brand — Sportingbet electric blue on white by default.

   The one thing this widget adds to the kit is the PRICE LADDER: the old
   price struck through, the boosted price as the largest type on the card,
   the uplift as a small pill. Everything else stays quiet.
   ========================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Saira+Condensed:wght@800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap');

:root,
[data-theme="si-light"] {
  --surface: #FFFFFF;
  --surface-2: #FBFAF7;
  --surface-sunken: #F2EFE9;
  --ink: #0B2234;
  --ink-muted: #4A5B68;
  --ink-faint: #5C6E7C;
  --accent: #FE4000;
  --accent-rgb: 254, 64, 0;
  --accent-ink: #FFFFFF;
  --line: rgba(11, 34, 52, 0.12);
  --line-strong: rgba(11, 34, 52, 0.22);
}
[data-theme="si-dark"] {
  --surface: #0B2234;
  --surface-2: #102C42;
  --surface-sunken: #081A28;
  --ink: #FFFFFF;
  --ink-muted: #9DB0BE;
  --ink-faint: #5C6E7C;
  --accent: #FE4000;
  --accent-rgb: 254, 64, 0;
  --accent-ink: #FFFFFF;
  --line: rgba(215, 221, 226, 0.16);
  --line-strong: rgba(215, 221, 226, 0.30);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* Embeds blend into the host article (transparent); the standalone preview
   gets a page ground so the card reads the way it will inside a post. */
body { background: transparent; }
body[data-standalone="1"] { background: var(--page, var(--surface-sunken)); padding: 24px 16px 40px; }
body[data-standalone="1"] #sbot-bigodds-feed-root { max-width: 720px; margin: 0 auto; }

#sbot-bigodds-feed-root {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  /* The widget is embedded at arbitrary widths: lay out by CONTAINER width,
     never by viewport (see the @container rules below). */
  container-type: inline-size;
}

.bf-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 18px 44px -30px rgba(0, 0, 0, 0.6);
}

/* ---------- Header ---------- */
.bf-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(420px 120px at 100% -40%, rgba(var(--accent-rgb), 0.16), transparent 60%),
    var(--surface-2);
}
.bf-title {
  margin: 0;
  font-family: 'Saira Condensed', 'Inter', sans-serif;
  font-weight: 800; font-size: 26px; line-height: 1;
  letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--accent);
}
.bf-sub { margin: 0; font-size: 12px; color: var(--ink-muted); }

/* ---------- Fixtures ---------- */
.bf-fixtures { list-style: none; margin: 0; padding: 0; }
.bf-fixture {
  padding: 12px 16px 14px;
  border-bottom: 1px solid var(--line);
  animation: bf-in 240ms ease-out both;
  animation-delay: calc(var(--i, 0) * 40ms);
}
.bf-fixture:last-child { border-bottom: 0; }
.bf-fx {
  display: flex; justify-content: space-between; gap: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-faint);
}
.bf-teams { margin: 4px 0 10px; font-size: 16px; font-weight: 700; line-height: 1.25; color: var(--ink); }
.bf-v { color: var(--ink-faint); font-weight: 500; }

/* ---------- Boosts ---------- */
.bf-boosts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
/* Narrow embed (mobile column): selection on top, then the ladder and the
   CTA side by side — the button sits next to the price it refers to and the
   card stays a third shorter than with a full-width button. */
.bf-boost {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}
.bf-boost-main { min-width: 0; grid-column: 1 / -1; }
.bf-cta { justify-self: end; }
.bf-chip {
  display: inline-block;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em; line-height: 1.6;
  padding: 0 8px; border-radius: 999px;
  background: var(--chip-bg, rgba(var(--accent-rgb), 0.10));
  color: var(--chip-ink, var(--ink));
}
/* The genuine "Big Odd" product is the one thing that stands out in the list. */
.bf-chip[data-type="big_odds"] { background: var(--accent); color: var(--accent-ink); }
.bf-sel { margin: 6px 0 2px; font-size: 15px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.bf-market { margin: 0; font-size: 12px; color: var(--ink-muted); }

/* The price ladder */
.bf-price {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}
.bf-was { font-size: 14px; color: var(--ink-muted); text-decoration: line-through; }
.bf-now { font-size: 28px; font-weight: 700; line-height: 1; color: var(--accent); }
.bf-pct {
  font-size: 11px; font-weight: 700; line-height: 1.5;
  padding: 0 6px; border-radius: 3px;
  background: rgba(var(--accent-rgb), 0.12); color: var(--accent);
}

.bf-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 18px;
  border-radius: 4px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: filter 120ms ease-out, transform 120ms ease-out;
}
.bf-cta:hover { filter: brightness(0.92); }
.bf-cta:active { transform: translateY(1px); }
.bf-cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Wide embed (article column on desktop): selection · ladder · CTA in one row. */
@container (min-width: 560px) {
  .bf-boost { grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 16px; }
  .bf-boost-main { grid-column: auto; }
  .bf-price { flex-wrap: nowrap; }
}

/* ---------- Carousel (layout=horizontal, the default) ----------
   One slide per boost, scroll-snap, arrows only when the strip overflows.
   Slides stretch to the tallest one so the CTAs line up along the bottom. */
.bf-track-wrap { position: relative; }
.bf-track {
  list-style: none; margin: 0;
  padding: 12px 16px 14px;
  display: flex; gap: 10px; align-items: stretch;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-padding: 0 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.bf-track::-webkit-scrollbar { display: none; }
.bf-slide {
  flex: 0 0 272px;
  flex-basis: min(272px, 100cqw - 48px);   /* one full card on a narrow embed */
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}
/* Competition over kickoff: side by side they wrap unevenly at 272 px. */
.bf-slide .bf-fx { flex-direction: column; gap: 2px; }
.bf-slide .bf-teams { margin: 0; font-size: 15px; }
.bf-slide .bf-boost-main { margin-top: 4px; }
.bf-slide .bf-sel {
  margin: 6px 0 2px; font-size: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bf-slide .bf-market { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-slide .bf-price { margin-top: auto; padding-top: 8px; }
.bf-slide .bf-cta { width: 100%; justify-self: stretch; }

.bf-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 1;
  width: 32px; height: 32px; padding: 0;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.bf-prev { left: 6px; }
.bf-next { right: 6px; }
.bf-arrow[hidden] { display: none; }
.bf-arrow:disabled { opacity: 0.35; cursor: default; }
.bf-arrow:not(:disabled):hover { background: var(--surface-2); }
.bf-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Footer / states ---------- */
.bf-foot { padding: 10px 16px 12px; font-size: 11px; line-height: 1.5; color: var(--ink-muted); border-top: 1px solid var(--line); }
.bf-note { margin: 0; }
/* Regulated legal line (SPA/MF) — same treatment as .pk-disclaimer on the
   Computer Picks widgets, so the two footers read as one system. */
.bf-legal { margin: 6px 0 0; font-size: 10.5px; line-height: 1.45; color: var(--ink-faint); font-style: italic; }
.bf-legal:empty { display: none; }
.bf-sample { color: var(--ink-faint); }
.bf-empty p { margin: 0; padding: 18px 16px; font-size: 14px; color: var(--ink-muted); }

@keyframes bf-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bf-fixture { animation: none; }
  .bf-cta { transition: none; }
}
