/* Public MLB odds pages (/odds/mlb/*): a blurred tease of the real JB screener.
   Left of the divider: real odds for 4 books (free line-shopping). Right: the JB
   analytical wall, blurred (the moat). Uses the v2/v3 design tokens from base.html. */

.po-wrap {
  --po-accent: var(--accent, #00E676);
  --po-accent-dim: var(--accent-dim, rgba(0, 230, 118, .15));
  --po-bg: var(--bg-primary, #0A0A0F);
  --po-elev: var(--bg-elevated, #12121A);
  --po-border: var(--border, #2A2A3A);
  --po-text: var(--text-primary, #E8E6E3);
  --po-dim: var(--text-secondary, #9C9CAD);
  --po-mono: var(--font-mono, 'JetBrains Mono', monospace);
  --po-display: var(--font-display, 'Outfit', sans-serif);
  max-width: 1560px;
  margin: 0 auto;
  padding: clamp(20px, 5vw, 44px) clamp(12px, 4vw, 28px) 64px;
  color: var(--po-text);
}

/* ---- Hero ---- */
.po-hero h1 { font-family: var(--po-display); font-weight: 700; font-size: clamp(24px, 3.6vw, 38px); line-height: 1.15; margin: 0 0 8px; }
.po-hero .po-sub { color: var(--po-dim); font-size: 16px; line-height: 1.6; max-width: 74ch; margin: 0 0 16px; }
.po-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.po-updated { color: var(--po-dim); font-size: 13px; font-family: var(--po-mono); }
.po-live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--po-accent); margin-right: 6px; box-shadow: 0 0 8px var(--po-accent); animation: po-pulse 2s infinite; }
@keyframes po-pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* ---- CTAs ---- */
.po-cta { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; border-radius: 8px; padding: 11px 18px; font-size: 15px; cursor: pointer; border: 0; transition: transform .15s ease, box-shadow .15s ease; }
.po-cta-primary { background: linear-gradient(135deg, var(--gradient-start, #00E676), var(--gradient-end, #00BFA5)); color: #06110B; }
.po-cta-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0, 230, 118, .28); }
.po-cta-secondary { background: var(--po-elev); color: var(--po-accent); border: 1px solid var(--po-border); }
.po-cta-secondary:hover { background: var(--po-accent-dim); border-color: var(--po-accent); }
.po-cta-sm { padding: 7px 12px; font-size: 13px; }

/* ---- Market tabs ---- */
.po-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 14px; }
.po-tab { text-decoration: none; color: var(--po-dim); background: var(--po-elev); border: 1px solid var(--po-border); border-radius: 8px; padding: 8px 16px; font-size: 14px; font-weight: 500; }
.po-tab:hover { color: var(--po-text); border-color: var(--po-accent); }
.po-tab.is-active { color: var(--po-accent); border-color: var(--po-accent); background: var(--po-accent-dim); font-weight: 700; }
.po-tab-soon { opacity: .72; }
.po-tab-soon::after { content: "soon"; margin-left: 6px; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--po-dim); }
/* Teaser pills after the free tabs: members-only markets + "and many more!", all linking out
   (the market names to the homepage Available-markets section, "and many more!" to signup).
   Greyed (members-only), not accent, so they read as locked rather than active free tabs. */
.po-tab-more { color: var(--po-dim); border-style: dashed; border-color: var(--po-border); opacity: .82; }
.po-tab-more:hover { opacity: 1; color: var(--po-text); border-color: var(--po-dim); background: transparent; }

/* Breadcrumb trail (matches the JSON-LD BreadcrumbList on each page). */
.po-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 13px; color: var(--po-dim); margin: 2px 0 14px; }
.po-crumbs a { color: var(--po-dim); text-decoration: none; }
.po-crumbs a:hover { color: var(--po-accent); }
.po-crumb-sep { opacity: .5; }
.po-crumb-current { color: var(--po-text); }

/* "Coming soon" pill (muted, so it doesn't compete with the green best-price accent) */
.po-soon { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--po-dim); border: 1px solid var(--po-border); border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: middle; white-space: nowrap; }
/* Inside cards the pill gets its own line below the title; inline placement wraps unpredictably
   with the title length, leaving some cards inline and some broken onto line 2. */
.po-card .po-soon { display: block; width: fit-content; margin: 6px 0 0; }

/* ---- Odds table ---- */
.po-table-wrap { border: 1px solid var(--po-border); border-radius: 12px; overflow-x: auto; background: var(--po-bg); position: relative; }
.po-table { width: 100%; border-collapse: collapse; font-size: 14px; white-space: nowrap; }

/* group header (free | gated divider) */
.po-grp th { font-family: var(--po-display); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; border-bottom: 1px solid var(--po-border); background: var(--po-elev); white-space: normal; }
.po-grp .po-grp-free { color: var(--po-dim); text-align: left; }
.po-grp .po-grp-gated { color: var(--po-accent); text-align: left; border-left: 2px solid var(--po-accent); }
.po-grp .po-grp-gated .po-grp-note { color: var(--po-dim); font-weight: 400; text-transform: none; letter-spacing: 0; }
.po-grp .po-grp-gated .po-unlock-link { color: var(--po-accent); text-decoration: underline; font-weight: 700; margin-left: 8px; }

.po-table thead .po-cols th { position: sticky; top: 0; z-index: 1; background: var(--po-elev); font-family: var(--po-display); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--po-dim); padding: 10px 12px; text-align: center; border-bottom: 1px solid var(--po-border); }
.po-table thead .po-cols th.po-col-game, .po-table thead .po-cols th.po-col-pick { text-align: left; }
.po-gated-col { color: var(--po-accent) !important; border-left: 1px solid rgba(0,230,118,.25); }
.po-book-head { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; }
.po-book-head img { width: 20px; height: 20px; object-fit: contain; border-radius: 4px; }

.po-table td { padding: 9px 12px; text-align: center; border-bottom: 1px solid var(--po-border); line-height: 1.25; }
.po-game-start td { border-top: 2px solid #20202c; }
.po-cell-game { text-align: left; position: sticky; left: 0; background: var(--po-bg); z-index: 1; box-shadow: 3px 0 6px -3px rgba(0,0,0,.8); }
.po-matchup { font-weight: 600; }
.po-time { font-family: var(--po-mono); font-size: 12px; color: var(--po-dim); }
.po-pick { text-align: left; font-weight: 500; cursor: help; }
.po-odd { font-family: var(--po-mono); font-weight: 600; font-variant-numeric: tabular-nums; }
.po-odd-empty { color: var(--po-dim); }
.po-odd { display: inline-block; padding: 3px 6px; }
.po-best { display: inline-block; padding: 4px 11px; background: var(--po-accent-dim); color: var(--po-accent); font-weight: 700; box-shadow: inset 0 0 0 1px var(--po-accent); border-radius: 8px; }

/* gated / blurred calc cells */
.po-gated { border-left: 1px solid rgba(0,230,118,.12); }
.po-blur { filter: blur(4.5px); user-select: none; font-family: var(--po-mono); font-weight: 600; color: var(--po-text); pointer-events: none; }
.po-chip { display: inline-block; min-width: 26px; padding: 2px 8px; border-radius: 5px; background: #333; color: #fff; }
.po-lock svg { width: 12px; height: 12px; vertical-align: -1px; fill: currentColor; opacity: .85; }

/* ---- Unlock veil banner over the gated region ---- */
.po-unlock { margin: 16px 0; padding: 18px 22px; border-radius: 12px; background: linear-gradient(90deg, var(--po-elev), rgba(0,230,118,.06)); border: 1px solid var(--po-accent); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.po-unlock-text { max-width: 62ch; }
.po-unlock-text strong { color: var(--po-accent); }
.po-unlock-text p { margin: 4px 0 0; color: var(--po-dim); font-size: 14px; line-height: 1.5; }
.po-more-pill { display: inline-block; font-family: var(--po-mono); font-size: 13px; color: var(--po-accent); background: var(--po-accent-dim); border: 1px dashed var(--po-accent); border-radius: 999px; padding: 3px 12px; }
.po-unlock-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; width: 100%; }
.po-book-strip { display: flex; flex-wrap: wrap; gap: 8px 10px; width: 100%; padding-top: 14px; border-top: 1px solid rgba(0,230,118,.18); }
.po-book-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--po-text); background: var(--po-bg); border: 1px solid var(--po-border); border-radius: 999px; padding: 4px 10px 4px 6px; }
.po-book-chip img { width: 16px; height: 16px; object-fit: contain; border-radius: 4px; }
.po-book-chip-states { font-family: var(--po-mono); font-size: 10px; color: var(--po-accent); background: var(--po-accent-dim); border: 1px solid rgba(0,230,118,.35); border-radius: 999px; padding: 1px 6px; letter-spacing: .02em; }

/* ---- Hover popup, styled like the real JB app hover ---- */
.po-pop { position: fixed; z-index: 9999; display: none; max-height: 94vh; width: max-content; max-width: 92vw; border-radius: 10px; border: 2px solid var(--po-accent); background: #0b0b11; box-shadow: 0 0 0 1px rgba(0,230,118,.35), 0 0 18px rgba(0,230,118,.28), 0 14px 36px rgba(0,0,0,.72); overflow: hidden; }
.po-pop table { border-collapse: collapse; width: 100%; font-size: 11.5px; }
.po-pop td { padding: 3px 6px; border-bottom: 1px solid rgba(0, 230, 118, .3); }
.po-pop .po-pop-meta td { color: var(--po-text); font-weight: 600; white-space: nowrap; }
.po-pop .po-pop-k { color: var(--po-dim); font-weight: 600; text-transform: uppercase; font-size: 10px; letter-spacing: .04em; margin-right: 3px; }
.po-pop .po-book { font-weight: 600; white-space: nowrap; }
.po-pop-logo { width: 15px; height: 15px; object-fit: contain; border-radius: 4px; vertical-align: middle; margin-right: 6px; }
.po-pop .po-book span { vertical-align: middle; }
.po-pop .odds-value { font-family: var(--po-mono); font-weight: 600; text-align: right; color: var(--po-text); white-space: nowrap; padding-left: 2px; }
.po-pop .po-pop-locked .odds-value { filter: blur(4.5px); }
.po-pop .po-pop-locked .po-book { opacity: .78; }
.po-pop .po-pop-cta td { text-align: center; padding: 8px; border-bottom: 0; }
.po-pop .po-pop-cta .po-cta { display: block; white-space: normal; padding: 7px 8px; font-size: 12px; line-height: 1.25; }

/* ---- Prose / FAQ ---- */
.po-prose { margin: 32px 0; max-width: 78ch; line-height: 1.7; }
.po-prose h2 { font-family: var(--po-display); font-size: 22px; margin: 28px 0 12px; }
.po-prose p { color: var(--po-dim); margin: 0 0 12px; }
.po-prose a { color: var(--po-accent); text-decoration: none; }
.po-prose a:hover { text-decoration: underline; }

/* ---- Odds index: per-sport sections ---- */
.po-sport { margin-top: 32px; }
.po-sport-h { font-family: var(--po-display); font-size: 22px; margin: 0 0 12px; }
.po-sport-h a { color: var(--po-text); text-decoration: none; }
.po-sport-h a:hover { color: var(--po-accent); }
.po-faq { margin-top: 28px; }
.po-faq details { border: 1px solid var(--po-border); border-radius: 8px; padding: 14px 16px; margin-bottom: 8px; background: var(--po-elev); }
.po-faq summary { cursor: pointer; font-weight: 600; }
.po-faq details p { margin: 10px 0 0; color: var(--po-dim); line-height: 1.6; }
.po-empty { padding: 48px 24px; text-align: center; color: var(--po-dim); border: 1px dashed var(--po-border); border-radius: 12px; }
.po-foot-cta { margin-top: 36px; padding: 28px; text-align: center; border-radius: 12px; background: var(--po-elev); border: 1px solid var(--po-border); }
.po-foot-cta h2 { font-family: var(--po-display); margin: 0 0 8px; }
.po-foot-cta p { color: var(--po-dim); margin: 0 0 16px; }
.po-foot-cta .po-cta { margin: 4px; }

/* ---- Hub ---- */
.po-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 8px; }
.po-card { display: block; text-decoration: none; color: var(--po-text); background: var(--po-elev); border: 1px solid var(--po-border); border-radius: 12px; padding: 24px; transition: transform .15s ease, border-color .15s ease; }
.po-card:hover { transform: translateY(-2px); border-color: var(--po-accent); }
.po-card h3 { font-family: var(--po-display); margin: 0 0 6px; font-size: 19px; }
.po-card p { color: var(--po-dim); margin: 0; font-size: 14px; line-height: 1.5; }

@media (max-width: 640px) {
  .po-table { font-size: 13px; }
  .po-table td, .po-table thead .po-cols th { padding: 7px 9px; }
}
