/* =========================================================
   OddeminBet Markets Clone
   Add as /assets/css/markets.css
   Page: /markets/match.php
========================================================= */

:root {
  --odm-bg: #303533;
  --odm-bg-dark: #1f2523;
  --odm-panel: #262d2b;
  --odm-panel-2: #313937;
  --odm-panel-3: #3c4442;
  --odm-text: #f4f7f5;
  --odm-muted: #aab4b0;
  --odm-soft: #c7cfcb;
  --odm-green: #24e683;
  --odm-lime: #29ee84;
  --odm-blue: #28aeea;
  --odm-red: #ff3b46;
  --odm-yellow: #ffb733;
  --odm-purple: #8b5cf6;
  --odm-border: rgba(255,255,255,.075);
  --odm-shadow: 0 16px 40px rgba(0,0,0,.28);
  --odm-bottom: calc(116px + env(safe-area-inset-bottom));
}

html,
body {
  min-height: 100%;
  overflow-x: hidden !important;
  background: var(--odm-bg);
}

body.od-market-body {
  margin: 0;
  color: var(--odm-text);
  background:
    radial-gradient(circle at 18% 0%, rgba(36,230,131,.10), transparent 26%),
    radial-gradient(circle at 90% 10%, rgba(139,92,246,.08), transparent 24%),
    linear-gradient(180deg, #303533 0%, #252b29 44%, #1f2523 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  padding-bottom: var(--odm-bottom);
}

body.od-market-body *,
body.od-market-body *::before,
body.od-market-body *::after {
  box-sizing: border-box;
}

body.od-market-body svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.od-market-page {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: 8px 16px calc(130px + env(safe-area-inset-bottom));
}

.odm-match-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 14px 14px 18px;
  margin: 0 0 10px;
  border-radius: 18px;
  color: var(--odm-text);
  background:
    radial-gradient(circle at top right, rgba(36,230,131,.08), transparent 32%),
    linear-gradient(145deg, #29302e 0%, #252b29 100%);
  border: 1px solid var(--odm-border);
  box-shadow: var(--odm-shadow);
}

.odm-match-card.live {
  background:
    radial-gradient(circle at top right, rgba(255,59,70,.11), transparent 32%),
    linear-gradient(145deg, #29302e 0%, #252b29 100%);
}

.odm-match-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,.035), transparent);
  transform: translateX(-100%);
  animation: odmCardShine 4.2s ease-in-out infinite;
  pointer-events: none;
}

.odm-match-league-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.odm-league-name {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #9fa9a6;
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: .2px;
}

.odm-league-name svg {
  width: 17px;
  height: 17px;
  opacity: .8;
}

.odm-league-name span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.odm-star-btn,
.odm-pin-btn {
  border: 0;
  display: grid;
  place-items: center;
  color: #c6cfcb;
  background: rgba(255,255,255,.055);
  cursor: pointer;
}

.odm-star-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.odm-star-btn svg,
.odm-pin-btn svg {
  width: 18px;
  height: 18px;
}

.odm-teams-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.odm-team-block {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.odm-team-block.away {
  justify-items: end;
  text-align: right;
}

.odm-team-logo-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.06);
}

.odm-team-logo-wrap .team-logo,
.odm-team-logo-wrap img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
}

.odm-team-logo-wrap .team-placeholder-icon {
  width: 28px;
  height: 28px;
  color: var(--odm-green);
}

.odm-team-block strong {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 1000;
  letter-spacing: -.2px;
}

.odm-match-center {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
}

.odm-date-label,
.odm-live-phase {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--odm-muted);
  font-size: 12px;
  font-weight: 1000;
}

.odm-time-label {
  color: #fff;
  font-size: 16px;
  line-height: 1;
  font-weight: 1000;
}

.odm-live-phase.live {
  gap: 6px;
  color: var(--odm-blue);
  background: rgba(40,174,234,.08);
}

.odm-live-phase.live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--odm-red);
  box-shadow: 0 0 0 0 rgba(255,59,70,.60);
  animation: odmPulse 1.1s ease-in-out infinite;
}

.odm-scoreline {
  display: inline-grid;
  grid-template-columns: 36px 12px 36px;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-weight: 1000;
}

.odm-scoreline span {
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #414946;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  font-size: 19px;
}

.odm-scoreline em {
  color: #8e9995;
  font-style: normal;
  font-weight: 1000;
}

.odm-team-mini-stats {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b8c0bd;
  font-size: 11px;
  font-weight: 1000;
}

.odm-team-mini-stats i {
  width: 7px;
  height: 12px;
  border-radius: 2px;
  display: inline-block;
}

.odm-team-mini-stats .red { background: var(--odm-red); }
.odm-team-mini-stats .yellow { background: var(--odm-yellow); }
.odm-team-mini-stats .corner {
  width: 12px;
  height: 9px;
  border-radius: 0;
  background: none;
  border-left: 7px solid #fff;
  border-top: 7px solid transparent;
  opacity: .85;
}

.odm-media-panel,
.odm-video-panel {
  width: 100%;
  margin: 0 0 10px;
  overflow: hidden;
  border-radius: 17px;
  background: #24363f;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--odm-shadow);
}

.odm-media-head,
.odm-video-head {
  height: 44px;
  padding: 7px 8px;
  display: grid;
  grid-template-columns: 1fr 42px;
  align-items: center;
  gap: 8px;
  background: #35413f;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.odm-media-head span,
.odm-video-head span {
  height: 32px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: #3d4846;
  font-size: 15px;
  font-weight: 1000;
}

.odm-media-head svg,
.odm-video-head svg {
  width: 18px;
  height: 18px;
  color: var(--odm-yellow);
  animation: odmIconFloat 1.8s ease-in-out infinite;
}

.odm-video-head svg {
  color: var(--odm-red);
}

.odm-pin-btn {
  width: 42px;
  height: 34px;
  border-radius: 8px;
  background: #46514f;
}

.odm-pitch {
  min-height: 278px;
  display: grid;
  place-items: center;
  padding: 54px 34px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.06) 12.5%, transparent 12.5%, transparent 25%, rgba(255,255,255,.06) 25%, rgba(255,255,255,.06) 37.5%, transparent 37.5%, transparent 50%, rgba(255,255,255,.06) 50%, rgba(255,255,255,.06) 62.5%, transparent 62.5%, transparent 75%, rgba(255,255,255,.06) 75%, rgba(255,255,255,.06) 87.5%, transparent 87.5%),
    repeating-linear-gradient(90deg, #17692f 0 42px, #1f7938 42px 84px);
  position: relative;
}

.odm-pitch::before {
  content: "";
  position: absolute;
  inset: 22px 18px;
  border: 2px solid rgba(255,255,255,.60);
  pointer-events: none;
}

.odm-pitch::after {
  content: "";
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 50%;
  border-left: 2px solid rgba(255,255,255,.55);
  pointer-events: none;
}

.odm-tracker-card {
  position: relative;
  z-index: 2;
  width: min(100%, 640px);
  min-height: 140px;
  padding: 18px;
  border-radius: 9px;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: start;
  gap: 10px;
  color: #fff;
  background: #14242b;
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 14px 40px rgba(0,0,0,.42);
}

.odm-jersey-side {
  display: grid;
  justify-items: center;
  gap: 6px;
  font-weight: 1000;
}

.odm-jersey-svg {
  width: 43px;
  height: 43px;
  stroke: rgba(0,0,0,.35);
  stroke-width: 1.2;
  filter: drop-shadow(0 8px 10px rgba(0,0,0,.28));
}

.odm-jersey-svg path:first-child {
  fill: #ffcf24;
}

.odm-jersey-away path:first-child {
  fill: #ef3036;
}

.odm-versus {
  display: grid;
  justify-items: center;
  gap: 2px;
  color: #9ca8a4;
}

.odm-versus strong {
  color: #dce4e1;
  font-size: 23px;
  line-height: 1;
}

.odm-versus span {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 800;
}

.odm-form-line {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 11px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.odm-form-line > div:last-child {
  text-align: right;
}

.odm-form-line > span {
  color: #d5dcda;
  font-size: 12px;
  font-weight: 800;
}

.odm-form-chip {
  min-width: 20px;
  height: 20px;
  margin-right: 3px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #14242b;
  font-size: 11px;
  font-weight: 1000;
}

.odm-form-chip.w { background: #9bf13e; }
.odm-form-chip.l { background: #ff5d65; color: #fff; }
.odm-form-chip.d { background: #ffb733; }
.odm-form-empty { color: #7d8985; font-size: 11px; font-weight: 900; }

.odm-panel-message {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.10);
  color: #c4ceca;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.odm-tracker-stats {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.10);
}

.odm-tracker-row {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  gap: 7px;
  align-items: center;
  color: #d9e1df;
  font-size: 10px;
  font-weight: 1000;
}

.odm-tracker-row strong {
  text-align: center;
  color: #9da8a4;
  font-size: 9px;
}

.odm-tracker-row span:last-of-type { text-align: right; }
.odm-tracker-bar {
  grid-column: 1 / -1;
  height: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,.10);
  position: relative;
}

.odm-tracker-bar i {
  position: absolute;
  top: 0;
  bottom: 0;
}

.odm-tracker-bar .home { left: 0; background: var(--odm-green); }
.odm-tracker-bar .away { right: 0; background: var(--odm-red); }

.odm-video-box {
  height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 60px;
  color: #f5f5f5;
  background: #000;
  text-align: center;
}

.odm-video-box strong {
  padding: 0 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .05em;
}

.odm-video-box small {
  color: rgba(255,255,255,.45);
  font-size: 8px;
  letter-spacing: .08em;
}

.odm-notice,
.odm-lock-note,
.odm-empty-markets {
  display: none;
  margin: 0 0 10px;
  border-radius: 14px;
  padding: 10px 12px;
  color: #fff;
  background: rgba(255,59,70,.13);
  border: 1px dashed rgba(255,59,70,.24);
  font-size: 11px;
  font-weight: 900;
}

.odm-notice.show,
.odm-lock-note.show,
.odm-empty-markets { display: block; }

.odm-market-tabs {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 10px;
  margin: 0 0 8px;
  background: linear-gradient(180deg, rgba(31,37,35,.98), rgba(31,37,35,.78));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  scrollbar-width: none;
}

.odm-market-tabs::-webkit-scrollbar { display: none; }

.odm-market-tab {
  flex: 0 0 auto;
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #aeb8b4;
  background: #303735;
  font-size: 14px;
  font-weight: 1000;
  cursor: pointer;
}

.odm-market-tab span {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e6ece9;
  background: rgba(255,255,255,.08);
  font-size: 11px;
}

.odm-market-tab.active {
  color: #fff;
  background: #3c4441;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}

.odm-market-tab.active::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background: var(--odm-blue);
  box-shadow: 0 0 18px rgba(40,174,234,.45);
}

.odm-markets-shell {
  display: grid;
  gap: 10px;
}

.odm-market-group {
  overflow: hidden;
  border-radius: 16px;
  color: var(--odm-text);
  background: #252c2a;
  border: 1px solid rgba(255,255,255,.055);
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
}

.odm-market-title {
  width: 100%;
  min-height: 53px;
  border: 0;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  font-weight: 1000;
  text-align: left;
}

.odm-market-title > span {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.odm-market-title > span svg {
  width: 31px;
  height: 31px;
  padding: 8px;
  border-radius: 12px;
  color: #aeb8b4;
  background: #505856;
  animation: odmIconFloat 2.1s ease-in-out infinite;
}

.odm-market-title > svg {
  width: 31px;
  height: 31px;
  padding: 9px;
  border-radius: 12px;
  color: #aeb8b4;
  background: #505856;
  transition: transform .18s ease;
}

.odm-market-group.is-open .odm-market-title > svg {
  transform: rotate(180deg);
}

.odm-market-content {
  display: none;
  padding: 0 14px 14px;
}

.odm-market-group.is-open .odm-market-content {
  display: block;
}

.odm-odds-grid,
.market-grid,
.odds {
  display: grid;
  gap: 8px;
}

.odm-odds-grid.three,
.market-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.odm-odds-grid.two,
.odds {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.odm-odds-grid.stacked {
  grid-auto-flow: row;
}

.odm-odd,
.odd-box {
  min-width: 0;
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  color: #fff;
  background: #545b59;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.odm-odd small,
.odd-box small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #c3cbc7;
  font-size: 12px;
  line-height: 1.05;
  font-weight: 1000;
  text-transform: none;
}

.odm-odd span,
.odd-box span {
  color: #fff;
  font-size: 13px;
  line-height: 1;
  font-weight: 1000;
  font-variant-numeric: tabular-nums;
}

.odm-odd:hover,
.odd-box:hover {
  background: #606866;
}

.odm-odd.selected,
.odm-odd.is-selected,
.odm-odd.active,
.odm-odd.in-slip,
.odm-odd[aria-pressed="true"],
.odd-box.selected,
.odd-box.is-selected,
.odd-box.active,
.odd-box.in-slip,
.odd-box[aria-pressed="true"] {
  background: linear-gradient(135deg, #28ef83, #22e07d) !important;
  color: #07140f !important;
  border-color: rgba(40,239,131,.85) !important;
  box-shadow:
    0 12px 28px rgba(36,230,131,.26),
    inset 0 1px 0 rgba(255,255,255,.32) !important;
}

.odm-odd.selected small,
.odm-odd.selected span,
.odm-odd.is-selected small,
.odm-odd.is-selected span,
.odm-odd.active small,
.odm-odd.active span,
.odm-odd.in-slip small,
.odm-odd.in-slip span,
.odd-box.selected small,
.odd-box.selected span,
.odd-box.is-selected small,
.odd-box.is-selected span,
.odd-box.active small,
.odd-box.active span,
.odd-box.in-slip small,
.odd-box.in-slip span {
  color: #07140f !important;
}

.odm-deep-market-wrap .market-card,
.odm-deep-market-wrap .deep-market-card,
.odm-deep-market-wrap section,
.odm-deep-market-wrap .market-group {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.odm-hidden,
.hidden {
  display: none !important;
}

@keyframes odmPulse {
  0% { box-shadow: 0 0 0 0 rgba(255,59,70,.68); transform: scale(1); }
  70% { box-shadow: 0 0 0 9px rgba(255,59,70,0); transform: scale(1.08); }
  100% { box-shadow: 0 0 0 0 rgba(255,59,70,0); transform: scale(1); }
}

@keyframes odmIconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes odmCardShine {
  0%, 70% { transform: translateX(-120%); opacity: 0; }
  76% { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

@media (max-width: 520px) {
  .od-market-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .odm-match-card {
    padding: 12px 12px 15px;
    border-radius: 17px;
  }

  .odm-team-logo-wrap {
    width: 51px;
    height: 51px;
  }

  .odm-team-logo-wrap .team-logo,
  .odm-team-logo-wrap img {
    width: 42px;
    height: 42px;
  }

  .odm-team-block strong {
    font-size: 14px;
  }

  .odm-teams-stage {
    grid-template-columns: minmax(0, 1fr) 86px minmax(0, 1fr);
    gap: 7px;
  }

  .odm-pitch {
    min-height: 250px;
    padding: 48px 22px;
  }

  .odm-tracker-card {
    padding: 16px 14px;
  }

  .odm-video-box {
    height: 250px;
  }

  .odm-video-box strong {
    font-size: 14px;
  }

  .odm-market-title {
    min-height: 50px;
    font-size: 15px;
  }

  .odm-odd,
  .odd-box {
    min-height: 39px;
    padding: 7px 9px;
    border-radius: 11px;
  }

  .odm-odd small,
  .odd-box small {
    font-size: 11px;
  }

  .odm-odd span,
  .odd-box span {
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .od-market-page {
    padding-left: 10px;
    padding-right: 10px;
  }

  .odm-teams-stage {
    grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr);
  }

  .odm-team-logo-wrap {
    width: 46px;
    height: 46px;
  }

  .odm-team-logo-wrap .team-logo,
  .odm-team-logo-wrap img {
    width: 38px;
    height: 38px;
  }

  .odm-team-block strong {
    font-size: 13px;
  }

  .odm-scoreline {
    grid-template-columns: 32px 10px 32px;
  }

  .odm-scoreline span {
    height: 31px;
    font-size: 17px;
  }

  .odm-market-tab {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 13px;
  }
}

@media (min-width: 760px) {
  .od-market-page {
    max-width: 860px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* =========================================================
   MARKETS FIX ADDON
   Add this to the bottom of /assets/css/markets.css
   Fixes:
   1. full width desktop/mobile
   2. styled market tab counts
   3. selected odds lime green, unselected normal
   4. compact market page spacing
========================================================= */

/* FORCE FULL WIDTH EVERYWHERE */
html,
body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

body.od-market-body {
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 !important;
}

body.od-market-body .od-market-page,
body.od-market-body main.od-market-page {
  width: 100vw !important;
  max-width: 100vw !important;
  min-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
  box-sizing: border-box !important;
}

body.od-market-body .od-market-page > *,
body.od-market-body .odm-match-card,
body.od-market-body .odm-media-panel,
body.od-market-body .odm-video-panel,
body.od-market-body .odm-market-tabs,
body.od-market-body .odm-markets-shell,
body.od-market-body .odm-market-group,
body.od-market-body .odm-notice,
body.od-market-body .odm-lock-note {
  width: 100% !important;
  max-width: 100% !important;
}

/* DESKTOP MUST STILL BE FULL WIDTH */
@media (min-width: 768px) {
  body.od-market-body .od-market-page,
  body.od-market-body main.od-market-page {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  body.od-market-body .odm-markets-shell {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    align-items: start !important;
  }

  body.od-market-body .odm-market-group.odm-hidden {
    display: none !important;
  }
}

@media (min-width: 1180px) {
  body.od-market-body .od-market-page,
  body.od-market-body main.od-market-page {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  body.od-market-body .odm-markets-shell {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* KEEP THE CLONE COMPACT */
body.od-market-body .odm-match-card,
body.od-market-body .odm-media-panel,
body.od-market-body .odm-video-panel,
body.od-market-body .odm-market-group {
  border-radius: 16px !important;
}

body.od-market-body .odm-match-card {
  padding: 10px !important;
}

body.od-market-body .odm-media-panel,
body.od-market-body .odm-video-panel {
  margin-top: 8px !important;
  margin-bottom: 8px !important;
}

/* MARKET TABS: readable count badges */
body.od-market-body .odm-market-tabs {
  display: flex !important;
  gap: 8px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 7px 8px !important;
  margin: 8px 0 !important;
  scrollbar-width: none !important;
}

body.od-market-body .odm-market-tabs::-webkit-scrollbar {
  display: none !important;
}

body.od-market-body .odm-market-tab {
  min-height: 36px !important;
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 7px 10px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  background: rgba(255,255,255,.065) !important;
  color: #aeb8b5 !important;
  font-size: 12px !important;
  font-weight: 1000 !important;
  white-space: nowrap !important;
}

body.od-market-body .odm-market-tab-name {
  display: inline-flex !important;
  align-items: center !important;
  line-height: 1 !important;
}

body.od-market-body .odm-market-tab-count {
  min-width: 23px !important;
  height: 23px !important;
  padding: 0 7px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #111816 !important;
  background: rgba(255,255,255,.22) !important;
  font-size: 11px !important;
  font-weight: 1000 !important;
  line-height: 1 !important;
  font-variant-numeric: tabular-nums !important;
}

body.od-market-body .odm-market-tab.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #242b29, #353d3b) !important;
  border-color: rgba(35,236,137,.22) !important;
  box-shadow:
    0 10px 24px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.07) !important;
}

body.od-market-body .odm-market-tab.active .odm-market-tab-count {
  color: #07140f !important;
  background: linear-gradient(135deg, #c8ff00, #74ff35) !important;
  box-shadow: 0 7px 16px rgba(116,255,53,.22) !important;
}

/* COLLAPSIBLE GROUPS */
body.od-market-body .odm-market-title {
  min-height: 46px !important;
}

body.od-market-body .odm-market-group:not(.is-open) .odm-market-content {
  display: none !important;
}

/* ODDS NORMAL STATE */
body.od-market-body .odm-odd,
body.od-market-body .odd-box {
  transition:
    background .15s ease,
    color .15s ease,
    border-color .15s ease,
    box-shadow .15s ease,
    transform .12s ease !important;
}

body.od-market-body .odm-odd:not(.selected):not(.is-selected):not(.active):not(.in-slip):not([aria-pressed="true"]),
body.od-market-body .odd-box:not(.selected):not(.is-selected):not(.active):not(.in-slip):not([aria-pressed="true"]) {
  background: #555b59 !important;
  color: #f6faf8 !important;
  border-color: rgba(255,255,255,.075) !important;
  box-shadow:
    0 8px 18px rgba(0,0,0,.20),
    inset 0 1px 0 rgba(255,255,255,.05) !important;
}

body.od-market-body .odm-odd:not(.selected):not(.is-selected):not(.active):not(.in-slip):not([aria-pressed="true"]) small,
body.od-market-body .odd-box:not(.selected):not(.is-selected):not(.active):not(.in-slip):not([aria-pressed="true"]) small {
  color: #c2cbc7 !important;
}

body.od-market-body .odm-odd:not(.selected):not(.is-selected):not(.active):not(.in-slip):not([aria-pressed="true"]) span,
body.od-market-body .odd-box:not(.selected):not(.is-selected):not(.active):not(.in-slip):not([aria-pressed="true"]) span {
  color: #ffffff !important;
}

/* ODDS SELECTED STATE: LIME GREEN */
body.od-market-body .odm-odd.selected,
body.od-market-body .odm-odd.is-selected,
body.od-market-body .odm-odd.active,
body.od-market-body .odm-odd.in-slip,
body.od-market-body .odm-odd[aria-pressed="true"],
body.od-market-body .odd-box.selected,
body.od-market-body .odd-box.is-selected,
body.od-market-body .odd-box.active,
body.od-market-body .odd-box.in-slip,
body.od-market-body .odd-box[aria-pressed="true"] {
  background: linear-gradient(135deg, #c8ff00, #74ff35) !important;
  color: #061107 !important;
  border-color: rgba(200,255,0,.90) !important;
  box-shadow:
    0 12px 28px rgba(116,255,53,.30),
    0 0 0 4px rgba(200,255,0,.10),
    inset 0 1px 0 rgba(255,255,255,.42) !important;
  animation: none !important;
}

body.od-market-body .odm-odd.selected small,
body.od-market-body .odm-odd.selected span,
body.od-market-body .odm-odd.is-selected small,
body.od-market-body .odm-odd.is-selected span,
body.od-market-body .odm-odd.active small,
body.od-market-body .odm-odd.active span,
body.od-market-body .odm-odd.in-slip small,
body.od-market-body .odm-odd.in-slip span,
body.od-market-body .odm-odd[aria-pressed="true"] small,
body.od-market-body .odm-odd[aria-pressed="true"] span,
body.od-market-body .odd-box.selected small,
body.od-market-body .odd-box.selected span,
body.od-market-body .odd-box.is-selected small,
body.od-market-body .odd-box.is-selected span,
body.od-market-body .odd-box.active small,
body.od-market-body .odd-box.active span,
body.od-market-body .odd-box.in-slip small,
body.od-market-body .odd-box.in-slip span,
body.od-market-body .odd-box[aria-pressed="true"] small,
body.od-market-body .odd-box[aria-pressed="true"] span {
  color: #061107 !important;
}

/* LIVE TIMER DISPLAY */
body.od-market-body .odm-live-phase {
  min-width: 82px !important;
  justify-content: center !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: .02em !important;
}

/* MOBILE: extra compact */
@media (max-width: 520px) {
  body.od-market-body .od-market-page,
  body.od-market-body main.od-market-page {
    padding-left: 7px !important;
    padding-right: 7px !important;
  }

  body.od-market-body .odm-market-tab {
    min-height: 34px !important;
    padding: 6px 9px !important;
    font-size: 11px !important;
  }

  body.od-market-body .odm-market-tab-count {
    min-width: 21px !important;
    height: 21px !important;
    font-size: 10px !important;
  }

  body.od-market-body .odm-odd,
  body.od-market-body .odd-box {
    min-height: 40px !important;
  }
}
