/* WinOdds market tiers by screen size.
   Phone (<768px): compact rows, one featured market (no extra markup is rendered).
   Laptop (768-1599px): compact rows plus a one-line strip of 2 extra markets.
   Wide (1600-2399px): expanded cards, AI panel plus an 8-market board.
   Ultra (>=2400px): one card per line, AI panel plus a full 20-market board that fills the width. */

/* ---------- shared tile ---------- */
body.sx.bk .nx-tile { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 8px 10px 10px;
  background: var(--t-bg2, #0b111b); border: 1px solid var(--t-line, #1d2636); border-radius: 10px; }
body.sx.bk .nx-tile .t { font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--t-muted, #9aa6ba);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.sx.bk .nx-tile .nx-x-odds { display: grid; gap: 6px; }
body.sx.bk .nx-tile .nx-x-odds.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.sx.bk .nx-tile .nx-x-odds.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.sx.bk .nx-tile .nx-x-odds.n1 { grid-template-columns: minmax(0, 1fr); }
body.sx.bk .nx-tile .odd { height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 0 9px; border-radius: 8px; background: var(--t-surf2, #172031); border: 1px solid var(--t-line, #1d2636);
  color: var(--t-text, #e8edf5); cursor: pointer; min-width: 0; }
body.sx.bk .nx-tile .odd .ol { font-size: 11px; color: var(--t-muted, #9aa6ba); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.sx.bk .nx-tile .odd .ov { font-weight: 700; flex: none; }
body.sx.bk .nx-tile .odd:hover { border-color: var(--t-lime, #a6f43c); }
body.sx.bk .nx-tile .odd.picked { background: var(--t-lime, #a6f43c); border-color: var(--t-lime, #a6f43c); color: #0b0f06; }
body.sx.bk .nx-tile .odd.picked .ol { color: #0b0f06; }

/* category accent on the tile edge */
body.sx.bk .nx-tile[data-cat="Goals"] { border-left: 3px solid #4fd1c5; }
body.sx.bk .nx-tile[data-cat="First Half"], body.sx.bk .nx-tile[data-cat="Halves"] { border-left: 3px solid #7f9cf5; }
body.sx.bk .nx-tile[data-cat="Handicap"] { border-left: 3px solid #f6ad55; }
body.sx.bk .nx-tile[data-cat="Score"], body.sx.bk .nx-tile[data-cat="Combos"] { border-left: 3px solid #b794f4; }
body.sx.bk .nx-tile[data-cat="Time"] { border-left: 3px solid #63b3ed; }
body.sx.bk .nx-tile[data-cat="Corners"] { border-left: 3px solid #68d391; }
body.sx.bk .nx-tile[data-cat="Cards"] { border-left: 3px solid #fc8181; }
body.sx.bk .nx-tile[data-cat="Players"] { border-left: 3px solid #f687b3; }
body.sx.bk .nx-tile[data-cat="Main"] { border-left: 3px solid var(--t-lime, #a6f43c); }

/* ---------- phone: nothing extra ---------- */
@media (max-width: 767px) {
  body.sx.bk .nx-lx, body.sx.bk .nx-x { display: none !important; }
}

/* ---------- laptop strip ---------- */
body.sx.bk .nx-lx { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
  margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--t-line2, #26324a); cursor: default; }
@media (min-width: 1600px) { body.sx.bk .nx-lx { display: none; } }

/* ---------- wide board ---------- */
body.sx.bk .nx-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
body.sx.bk .nx-x-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 4px; }
body.sx.bk .nx-x-cnt { font-size: 11px; color: var(--t-dim, #6b778c); }
body.sx.bk .nx-x-foot .nx-x-link { margin-top: 0; }
@media (min-width: 1600px) {
  body.sx.bk .nx-x { grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); }
}
@media (min-width: 2000px) and (max-width: 2399px) {
  body.sx.bk .nx-board { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.sx.bk .nx-x { grid-template-columns: minmax(0, .7fr) minmax(0, 1.6fr); }
}

/* ---------- ultra: one card per line, full board fills the width ---------- */
@media (min-width: 2400px) {
  body.sx.bk .nx-list-x.nx-tier-ultra { display: flex !important; flex-direction: column; gap: 14px; }
  body.sx.bk .nx-tier-ultra .nx-row { height: auto; }
  body.sx.bk .nx-x.nx-x-ultra { grid-template-columns: 380px minmax(0, 1fr); gap: 20px; }
  body.sx.bk .nx-x-ultra .nx-board { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
  body.sx.bk .nx-x-ultra .nx-tile .nx-x-odds.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 3200px) {
  body.sx.bk .nx-x-ultra .nx-board { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
}

/* ---------- very large screens: use the whole width, keep a small edge margin ---------- */
@media (min-width: 2800px) {
  body.sx.bk { --t-max: calc(100vw - 64px); }
  body.sx.bk .nx-wide { grid-template-columns: 300px minmax(0, 1fr) 380px; gap: 28px; }
}

/* Rows are centred flex columns, so the expanded panel must be told to use the full card width. */
@media (min-width: 1600px) {
  body.sx.bk .nx-list-x .nx-row > .nx-x { align-self: stretch; width: 100%; box-sizing: border-box; }
}
@media (min-width: 768px) and (max-width: 1599px) {
  body.sx.bk .nx-row > .nx-lx { align-self: stretch; width: 100%; box-sizing: border-box; }
}
