:root {
  --ml-bg:        #0b0e17;
  --ml-surface:   #121727;
  --ml-surface-2: #1a2036;
  --ml-border:    #232b45;
  --ml-accent:    #ff8a3d;
  --ml-accent-2:  #7c5cff;
  --ml-cyan:      #2ee6d6;
  --ml-text:      #e8ecf6;
  --ml-muted:     #8b96b2;
  --ml-sidebar-w: 232px;
  --ml-topbar-h:  62px;
}

body {
  background: var(--ml-bg);
  color: var(--ml-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}

.text-accent    { color: var(--ml-accent) !important; }
.text-secondary { color: var(--ml-muted) !important; }

/* ---------- Buttons ---------- */
.btn-accent {
  background: linear-gradient(135deg, var(--ml-accent), #ff5f6d);
  border: 0;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(255, 138, 61, .28);
}
.btn-accent:hover, .btn-accent:focus { color: #fff; filter: brightness(1.08); }

.btn-ghost {
  background: var(--ml-surface-2);
  border: 1px solid var(--ml-border);
  color: var(--ml-muted);
}
.btn-ghost:hover { color: var(--ml-text); border-color: var(--ml-accent); }

.btn-icon {
  background: var(--ml-surface-2);
  border: 1px solid var(--ml-border);
  color: var(--ml-text);
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; border-radius: 9px;
}
.btn-icon:hover { color: var(--ml-accent); border-color: var(--ml-accent); }

/* ---------- Topbar ---------- */
.ml-topbar {
  height: var(--ml-topbar-h);
  background: rgba(11, 14, 23, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ml-border);
  z-index: 1040;
}
.ml-brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; letter-spacing: -.02em; }
.ml-brand-text { color: var(--ml-text); font-size: 1.15rem; }
.ml-brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--ml-accent), var(--ml-accent-2));
  color: #fff; font-size: 1.05rem;
  box-shadow: 0 4px 14px rgba(124, 92, 255, .35);
}

/* ---------- Shell / sidebar ---------- */
.ml-shell { display: flex; align-items: flex-start; }

.ml-sidebar {
  width: var(--ml-sidebar-w);
  flex: 0 0 var(--ml-sidebar-w);
  background: var(--ml-surface);
  border-right: 1px solid var(--ml-border);
}
@media (min-width: 992px) {
  .ml-sidebar {
    position: sticky;
    top: var(--ml-topbar-h);
    height: calc(100vh - var(--ml-topbar-h));
    display: flex;
  }
  .ml-sidebar .offcanvas-body { overflow-y: auto; }
}
@media (max-width: 991.98px) {
  .ml-sidebar { --bs-offcanvas-width: 260px; }
}

.ml-nav { list-style: none; margin: 0; padding: .6rem; }
.ml-nav a {
  display: flex; align-items: center; gap: .7rem;
  padding: .58rem .7rem; border-radius: 9px;
  color: var(--ml-muted); text-decoration: none;
  font-size: .875rem; font-weight: 500;
}
.ml-nav a:hover { background: var(--ml-surface-2); color: var(--ml-text); }
.ml-nav a i { font-size: 1rem; width: 1.2rem; text-align: center; color: var(--ml-accent); }

.ml-nav-divider { height: 1px; background: var(--ml-border); margin: .3rem .9rem; }

.ml-support {
  display: flex; align-items: center; gap: .65rem;
  margin: .8rem; padding: .7rem .8rem;
  background: var(--ml-surface-2); border: 1px solid var(--ml-border); border-radius: 11px;
}
.ml-support i { color: var(--ml-cyan); font-size: 1.15rem; }

/* ---------- Main ---------- */
.ml-main {
  flex: 1 1 auto;
  min-width: 0;               /* lets rails shrink instead of stretching the page */
  padding: 1.25rem 1rem 2rem;
}
@media (min-width: 992px) { .ml-main { padding: 1.5rem 1.5rem 3rem; } }

.ml-section { margin-bottom: 2.25rem; }
.ml-section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: .9rem; flex-wrap: wrap;
}
.ml-section-title {
  display: flex; align-items: center; gap: .5rem;
  font-size: 1.05rem; font-weight: 700; margin: 0;
}
.ml-count {
  font-size: .7rem; font-weight: 600; color: var(--ml-muted);
  background: var(--ml-surface-2); border: 1px solid var(--ml-border);
  padding: .1rem .45rem; border-radius: 999px;
}

.ml-panel {
  background: var(--ml-surface);
  border: 1px solid var(--ml-border);
  border-radius: 14px;
  overflow: hidden;
}

/* ---------- Hero ---------- */
.ml-hero {
  position: relative; overflow: hidden;
  border-radius: 18px; margin-bottom: 2.25rem;
  padding: clamp(1.75rem, 5vw, 3.25rem);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(124, 92, 255, .35), transparent 55%),
    radial-gradient(90% 120% at 0% 100%, rgba(255, 138, 61, .28), transparent 60%),
    var(--ml-surface);
  border: 1px solid var(--ml-border);
}
.ml-hero-glow {
  position: absolute; inset: auto -10% -60% auto;
  width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 230, 214, .18), transparent 65%);
  pointer-events: none;
}
.ml-hero-inner { position: relative; max-width: 620px; }
.ml-hero-kicker {
  display: inline-block; margin-bottom: .75rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ml-cyan);
  background: rgba(46, 230, 214, .1);
  border: 1px solid rgba(46, 230, 214, .3);
  padding: .28rem .6rem; border-radius: 999px;
}
.ml-hero-title {
  font-size: clamp(1.9rem, 5.5vw, 3.2rem);
  font-weight: 900; letter-spacing: -.03em; line-height: 1.05; margin-bottom: .6rem;
}
.ml-hero-sub { color: var(--ml-muted); font-size: 1rem; margin-bottom: 1.5rem; }

.ml-pay-strip { display: flex; flex-wrap: wrap; gap: .5rem; }
.ml-pay {
  width: 42px; height: 30px; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ml-surface-2); border: 1px solid var(--ml-border);
  color: var(--ml-muted); font-size: .95rem;
}

/* ---------- Game cards ---------- */
.ml-rail {
  display: flex; gap: .75rem;
  overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  padding-bottom: .5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--ml-border) transparent;
}
.ml-rail::-webkit-scrollbar { height: 6px; }
.ml-rail::-webkit-scrollbar-thumb { background: var(--ml-border); border-radius: 99px; }
.ml-rail .ml-card { flex: 0 0 148px; scroll-snap-align: start; }

.ml-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .85rem;
}

.ml-card {
  display: block; text-decoration: none; color: inherit;
  border-radius: 12px; overflow: hidden;
  background: var(--ml-surface);
  border: 1px solid var(--ml-border);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.ml-card:hover {
  transform: translateY(-4px);
  border-color: var(--ml-accent);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .5);
}

.ml-card-thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--ml-surface-2);
  overflow: hidden;
}
.ml-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  position: relative; z-index: 1;      /* sits above the fallback tile */
  display: block;
}

/* Fallback tile is always painted underneath; the <img> covers it when it loads. */
.ml-card-fallback {
  position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em;
  color: rgba(255, 255, 255, .92);
  background: linear-gradient(150deg, hsl(var(--h) 62% 42%), hsl(calc(var(--h) + 45) 58% 24%));
}

.ml-card-play {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: rgba(11, 14, 23, .55);
  opacity: 0; transition: opacity .16s ease;
  font-size: 2rem; color: #fff;
}
.ml-card:hover .ml-card-play { opacity: 1; }

.ml-card-badge {
  position: absolute; z-index: 2; top: .4rem; left: .4rem;
  font-size: .6rem; font-weight: 600;
  background: rgba(11, 14, 23, .8);
  border: 1px solid var(--ml-border);
  color: var(--ml-muted);
  padding: .1rem .35rem; border-radius: 5px;
  max-width: calc(100% - .8rem);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.ml-card-body { padding: .5rem .6rem .6rem; }
.ml-card-title {
  font-size: .78rem; font-weight: 600; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ml-card-cat {
  font-size: .66rem; color: var(--ml-muted); margin-top: .1rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Game player ---------- */
.ml-crumbs {
  display: flex; align-items: center; gap: .45rem; flex-wrap: wrap;
  font-size: .78rem; color: var(--ml-muted); margin-bottom: .75rem;
}
.ml-crumbs a { color: var(--ml-muted); text-decoration: none; }
.ml-crumbs a:hover { color: var(--ml-accent); }
.ml-crumbs i { font-size: .62rem; opacity: .6; }
.ml-crumbs span { color: var(--ml-text); font-weight: 600; }

.ml-player {
  background: var(--ml-surface);
  border: 1px solid var(--ml-border);
  border-radius: 14px;
  overflow: hidden;
}

.ml-player-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .6rem .75rem;
  border-bottom: 1px solid var(--ml-border);
  background: var(--ml-surface-2);
}
.ml-player-meta { display: flex; align-items: center; gap: .6rem; min-width: 0; flex-wrap: wrap; }
.ml-player-name {
  font-weight: 700; font-size: .92rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw;
}
.ml-player-provider {
  font-size: .68rem; font-weight: 600; color: var(--ml-muted);
  border: 1px solid var(--ml-border); border-radius: 5px; padding: .1rem .4rem;
}

.ml-player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 380px;
  background: #05070d;
}
.ml-player-frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; display: block;
}
.ml-player-loading {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #05070d; pointer-events: none;
}

/* Fullscreen: the stage should fill the screen, and the chrome should shrink out of the way. */
.ml-player.is-fullscreen { border-radius: 0; border: 0; display: flex; flex-direction: column; }
.ml-player.is-fullscreen .ml-player-stage { flex: 1 1 auto; aspect-ratio: auto; min-height: 0; }

@media (max-width: 575.98px) {
  .ml-player-stage { aspect-ratio: 3 / 4; min-height: 0; }
  .ml-player-name { max-width: 50vw; }
}

/* ---------- Features / providers / chips ---------- */
.ml-feature {
  background: var(--ml-surface);
  border: 1px solid var(--ml-border);
  border-radius: 14px; padding: 1.15rem;
  height: 100%;
}
.ml-feature-icon {
  width: 40px; height: 40px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255, 138, 61, .2), rgba(124, 92, 255, .2));
  border: 1px solid var(--ml-border);
  color: var(--ml-accent); font-size: 1.1rem;
  margin-bottom: .75rem;
}

.ml-provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: .7rem;
}
.ml-provider {
  background: var(--ml-surface);
  border: 1px solid var(--ml-border);
  border-radius: 11px;
  padding: 1rem .75rem;
  text-align: center;
  font-size: .82rem; font-weight: 600; color: var(--ml-muted);
  transition: color .16s ease, border-color .16s ease;
}
.ml-provider:hover { color: var(--ml-text); border-color: var(--ml-accent-2); }

.ml-chip {
  text-decoration: none;
  font-size: .78rem; font-weight: 600;
  padding: .45rem .85rem; border-radius: 999px;
  color: hsl(var(--h) 70% 78%);
  background: hsl(var(--h) 55% 16%);
  border: 1px solid hsl(var(--h) 45% 28%);
}
.ml-chip:hover { color: #fff; background: hsl(var(--h) 60% 24%); }

.ml-badge-soft {
  background: rgba(124, 92, 255, .16);
  border: 1px solid rgba(124, 92, 255, .35);
  color: #b9a8ff;
  font-weight: 600;
}

/* ---------- Tables ---------- */
.ml-winners { --bs-table-bg: transparent; }
.ml-winners thead th {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ml-muted); font-weight: 600;
  border-bottom: 1px solid var(--ml-border) !important;
  padding: .8rem 1rem;
}
.ml-winners tbody td { padding: .7rem 1rem; font-size: .85rem; border-top: 1px solid rgba(35, 43, 69, .6); }
.ml-winners tbody tr:hover td { background: var(--ml-surface-2); }

.ml-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  font-size: .62rem; font-weight: 700; color: #fff;
  background: linear-gradient(140deg, hsl(var(--h) 60% 48%), hsl(calc(var(--h) + 40) 55% 32%));
  margin-right: .5rem;
}

/* ---------- Tabs & search ---------- */
.ml-tabs { display: flex; flex-wrap: wrap; gap: .45rem; }
.ml-tab {
  text-decoration: none; font-size: .78rem; font-weight: 600;
  padding: .45rem .8rem; border-radius: 9px;
  background: var(--ml-surface); border: 1px solid var(--ml-border);
  color: var(--ml-muted);
  display: inline-flex; align-items: center; gap: .4rem;
}
.ml-tab span { font-size: .65rem; opacity: .7; }
.ml-tab:hover { color: var(--ml-text); border-color: var(--ml-accent); }
.ml-tab.active {
  background: linear-gradient(135deg, var(--ml-accent), #ff5f6d);
  border-color: transparent; color: #fff;
}

.ml-search { position: relative; }
.ml-search i {
  position: absolute; left: .7rem; top: 50%; transform: translateY(-50%);
  color: var(--ml-muted); font-size: .85rem; pointer-events: none;
}
.ml-search input {
  background: var(--ml-surface); border: 1px solid var(--ml-border);
  border-radius: 9px; color: var(--ml-text);
  padding: .45rem .8rem .45rem 2.1rem;
  font-size: .82rem; min-width: 220px;
}
.ml-search input:focus {
  outline: none; border-color: var(--ml-accent);
  box-shadow: 0 0 0 3px rgba(255, 138, 61, .12);
}

/* ---------- Auth ---------- */
.ml-auth-wrap {
  display: flex; align-items: center; justify-content: center;
  min-height: calc(100vh - var(--ml-topbar-h) - 4rem);
  padding: 1rem 0;
}
.ml-auth-card {
  width: 100%; max-width: 400px;
  background: var(--ml-surface);
  border: 1px solid var(--ml-border);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}
.ml-auth-card .form-control {
  background: var(--ml-surface-2);
  border: 1px solid var(--ml-border);
  color: var(--ml-text);
  padding: .55rem .75rem;
}
.ml-auth-card .form-control:focus {
  background: var(--ml-surface-2);
  border-color: var(--ml-accent);
  box-shadow: 0 0 0 3px rgba(255, 138, 61, .12);
  color: var(--ml-text);
}
.ml-auth-card .form-text { color: var(--ml-muted); font-size: .72rem; }
.ml-auth-card a { text-decoration: none; }

.ml-pw { position: relative; }
.ml-pw .form-control { padding-right: 2.5rem; }
.ml-pw-toggle {
  position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: var(--ml-muted);
  padding: .35rem .5rem; line-height: 1;
}
.ml-pw-toggle:hover { color: var(--ml-accent); }

/* ---------- Footer ---------- */
.ml-footer {
  background: var(--ml-surface);
  border-top: 1px solid var(--ml-border);
  margin-top: 2rem;
}
.ml-footer-head {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--ml-text); font-weight: 700; margin-bottom: .75rem;
}
.ml-footer-links { list-style: none; padding: 0; margin: 0; }
.ml-footer-links a {
  color: var(--ml-muted); text-decoration: none; font-size: .8rem;
  display: block; padding: .18rem 0;
}
.ml-footer-links a:hover { color: var(--ml-accent); }

.ml-footer-bottom {
  border-top: 1px solid var(--ml-border);
  padding: 1.25rem 0;
  color: var(--ml-muted); font-size: .76rem;
}
.ml-age-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--ml-muted);
  font-size: .68rem; font-weight: 700;
}

/* ---------- Legal / Privacy pages ---------- */
.ml-toc { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.ml-toc li { margin-bottom: .35rem; }
.ml-toc a { color: var(--ml-muted); text-decoration: none; font-size: .85rem; }
.ml-toc a:hover { color: var(--ml-accent); }
@media (max-width: 575.98px) { .ml-toc { columns: 1; } }

.ml-legal { color: var(--ml-text); max-width: 900px; }
.ml-legal p { color: var(--ml-muted); font-size: .9rem; line-height: 1.65; margin-bottom: 1rem; }
.ml-legal p strong { color: var(--ml-text); }
.ml-legal ul { color: var(--ml-muted); font-size: .88rem; line-height: 1.6; margin-bottom: 0; padding-left: 1.15rem; }
.ml-legal ul li { margin-bottom: .3rem; }
.ml-legal-head {
  scroll-margin-top: calc(var(--ml-topbar-h) + 1rem);
  font-size: 1.15rem; font-weight: 700; color: var(--ml-text);
  margin: 2.25rem 0 .85rem; padding-top: .5rem;
  border-top: 1px solid var(--ml-border);
}
.ml-legal-subhead {
  font-size: .98rem; font-weight: 600; color: var(--ml-text);
  margin: 1.4rem 0 .6rem;
}
.ml-legal-table { border: 1px solid var(--ml-border); border-radius: 12px; overflow: hidden; }
.ml-legal-table thead th {
  background: var(--ml-surface-2); color: var(--ml-text);
  font-size: .78rem; text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 1px solid var(--ml-border);
}
.ml-legal-table td {
  vertical-align: top; color: var(--ml-muted); font-size: .85rem;
  border-bottom: 1px solid var(--ml-border);
}
.ml-legal-table td ul { margin-bottom: 0; }
.ml-legal-table tr:last-child td { border-bottom: 0; }

/* ---------- Casino / Sports switch ---------- */
.ml-switch {
  display: flex; gap: .25rem; padding: .2rem;
  background: var(--ml-surface-2); border: 1px solid var(--ml-border); border-radius: 10px;
}
.ml-switch a {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .38rem .85rem; border-radius: 8px;
  font-size: .8rem; font-weight: 600; color: var(--ml-muted); text-decoration: none;
}
.ml-switch a:hover { color: var(--ml-text); }
.ml-switch a.active { background: linear-gradient(135deg, var(--ml-accent), #ff5f6d); color: #fff; }
.ml-switch-block a { flex: 1 1 0; }

.ml-nav-label {
  padding: .9rem 1.3rem .1rem;
  font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ml-muted); opacity: .75;
}
.ml-nav + .ml-nav-label { border-top: 1px solid var(--ml-border); margin: 0 .6rem; padding-left: .7rem; padding-right: .7rem; }
.ml-nav-emoji { font-style: normal; font-size: .95rem !important; filter: saturate(.9); }

/* ---------- Home: casino / sports entry tiles ---------- */
.ml-entry {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.2rem; border-radius: 14px; height: 100%;
  background: var(--ml-surface); border: 1px solid var(--ml-border);
  color: var(--ml-text); text-decoration: none;
  transition: border-color .16s ease, transform .16s ease;
}
.ml-entry:hover { border-color: var(--ml-accent); transform: translateY(-2px); color: var(--ml-text); }
.ml-entry-icon {
  flex: 0 0 52px; height: 52px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #fff;
  background: linear-gradient(135deg, var(--ml-accent-2), var(--ml-cyan));
}
.ml-entry-icon.is-casino { background: linear-gradient(135deg, var(--ml-accent), #ff5f6d); }
.ml-entry-arrow { margin-left: auto; color: var(--ml-muted); font-size: 1.1rem; }

/* ---------- Sportsbook: fixtures ---------- */
.ml-live {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #ff4d5e; background: rgba(255, 77, 94, .12); border: 1px solid rgba(255, 77, 94, .35);
  padding: .08rem .4rem; border-radius: 5px;
}
.ml-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #ff4d5e; animation: ml-pulse 1.4s ease-in-out infinite; }
@keyframes ml-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .ml-live-dot { animation: none; } }

.ml-league-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem .9rem; background: var(--ml-surface-2); border-bottom: 1px solid var(--ml-border);
  font-size: .8rem; font-weight: 700;
}
.ml-league-market { font-size: .66rem; font-weight: 600; color: var(--ml-muted); text-transform: uppercase; letter-spacing: .06em; }

.ml-event {
  display: grid; align-items: center; gap: .5rem .75rem;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: .65rem .9rem;
  border-top: 1px solid rgba(35, 43, 69, .6);
}
.ml-league-head + .ml-event { border-top: 0; }
.ml-event:hover { background: rgba(26, 32, 54, .55); }

.ml-event-info { min-width: 0; color: inherit; text-decoration: none; }
.ml-event-meta {
  display: flex; align-items: center; gap: .45rem; flex-wrap: wrap;
  font-size: .7rem; color: var(--ml-muted); margin-bottom: .25rem;
}
.ml-event-clock { color: #ff8c97; font-weight: 600; }
.ml-event-league { opacity: .8; }
.ml-league .ml-event-league { display: none; }    /* already shown in the group header */
.ml-event-team {
  display: flex; justify-content: space-between; gap: .75rem;
  font-size: .85rem; font-weight: 600; line-height: 1.45;
}
.ml-event-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-event-team b { color: var(--ml-accent); font-weight: 800; }

.ml-event-odds { display: grid; gap: .4rem; }
.ml-event-odds-2 { grid-template-columns: repeat(2, 64px); }
.ml-event-odds-3 { grid-template-columns: repeat(3, 64px); }

.ml-event-more {
  font-size: .72rem; font-weight: 600; color: var(--ml-muted); text-decoration: none; white-space: nowrap;
}
.ml-event-more:hover { color: var(--ml-accent); }

@media (max-width: 575.98px) {
  .ml-event { grid-template-columns: minmax(0, 1fr) auto; }
  .ml-event-odds { grid-column: 1 / -1; grid-row: 2; }
  .ml-event-odds-2 { grid-template-columns: repeat(2, 1fr); }
  .ml-event-odds-3 { grid-template-columns: repeat(3, 1fr); }
  .ml-event-more { grid-column: 2; grid-row: 1; align-self: start; }
}

/* ---------- Odds buttons ---------- */
.ml-odd {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 44px; padding: .3rem .4rem; border-radius: 9px;
  background: var(--ml-surface-2); border: 1px solid var(--ml-border); color: var(--ml-text);
  transition: border-color .12s ease, background .12s ease;
}
.ml-odd:hover { border-color: var(--ml-accent-2); }
.ml-odd-label { font-size: .62rem; color: var(--ml-muted); line-height: 1.1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-odd-price { font-size: .86rem; font-weight: 800; color: var(--ml-cyan); font-variant-numeric: tabular-nums; }
.ml-odd.active { background: linear-gradient(135deg, var(--ml-accent), #ff5f6d); border-color: transparent; }
.ml-odd.active .ml-odd-label, .ml-odd.active .ml-odd-price { color: #fff; }

.ml-odd-wide { flex-direction: row; justify-content: space-between; gap: .75rem; padding: .55rem .8rem; }
.ml-odd-wide .ml-odd-label { font-size: .8rem; color: var(--ml-text); white-space: normal; text-align: left; }

/* ---------- Event page ---------- */
.ml-scoreboard {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  text-align: center; padding: 1.5rem 1rem;
}
.ml-scoreboard-team { font-weight: 800; font-size: clamp(.95rem, 2.5vw, 1.25rem); }
.ml-scoreboard-mid { min-width: 90px; }
.ml-scoreboard-score { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 900; color: var(--ml-accent); letter-spacing: .04em; }
.ml-market-head { padding: .65rem .9rem; font-size: .82rem; font-weight: 700; border-bottom: 1px solid var(--ml-border); background: var(--ml-surface-2); }
.ml-market-body { display: grid; gap: .45rem; padding: .75rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* ---------- Bet slip ---------- */
@media (min-width: 1200px) {
  .ml-slip {
    position: sticky; top: var(--ml-topbar-h);
    flex: 0 0 320px; width: 320px;
    height: calc(100vh - var(--ml-topbar-h));
    display: flex; flex-direction: column;
    background: var(--ml-surface); border-left: 1px solid var(--ml-border);
  }
}
@media (max-width: 1199.98px) {
  .ml-slip { --bs-offcanvas-width: 340px; background: var(--ml-surface); display: flex; flex-direction: column; }
}
.ml-slip-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1rem; border-bottom: 1px solid var(--ml-border);
}
.ml-slip-modes { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; padding: .6rem 1rem; }
.ml-slip-modes button {
  background: var(--ml-surface-2); border: 1px solid var(--ml-border); color: var(--ml-muted);
  font-size: .78rem; font-weight: 600; padding: .4rem; border-radius: 8px;
}
.ml-slip-modes button.active { color: #fff; border-color: var(--ml-accent); background: rgba(255, 138, 61, .15); }
.ml-slip-modes button:disabled { opacity: .45; }

.ml-slip-body { flex: 1 1 auto; overflow-y: auto; padding: 0 1rem .5rem; }
.ml-slip-empty { text-align: center; color: var(--ml-muted); font-size: .8rem; padding: 2.5rem .5rem; }
.ml-slip-empty i { font-size: 2rem; display: block; margin-bottom: .5rem; opacity: .5; }

.ml-slip-item {
  position: relative; padding: .6rem 2rem .6rem .7rem; margin-bottom: .5rem;
  background: var(--ml-surface-2); border: 1px solid var(--ml-border); border-radius: 10px;
}
.ml-slip-item.is-conflict { border-color: #ff4d5e; }
.ml-slip-item.is-changed .ml-slip-odds { color: #ffd166; }
.ml-slip-sel { font-size: .82rem; font-weight: 700; display: flex; justify-content: space-between; gap: .5rem; }
.ml-slip-odds { color: var(--ml-cyan); font-variant-numeric: tabular-nums; }
.ml-slip-mkt, .ml-slip-ev { font-size: .7rem; color: var(--ml-muted); }
.ml-slip-remove {
  position: absolute; top: .45rem; right: .4rem;
  background: none; border: 0; color: var(--ml-muted); padding: .1rem .3rem; line-height: 1;
}
.ml-slip-remove:hover { color: #ff4d5e; }

.ml-slip-foot { padding: .85rem 1rem 1rem; border-top: 1px solid var(--ml-border); background: var(--ml-surface); }
.ml-slip-foot .form-control { background: var(--ml-surface-2); border-color: var(--ml-border); color: var(--ml-text); }
.ml-slip-foot .form-control:focus { border-color: var(--ml-accent); box-shadow: 0 0 0 3px rgba(255, 138, 61, .12); }
.ml-slip-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; }
.ml-slip-quick button {
  background: var(--ml-surface-2); border: 1px solid var(--ml-border); color: var(--ml-muted);
  font-size: .7rem; font-weight: 600; padding: .3rem 0; border-radius: 7px;
}
.ml-slip-quick button:hover { color: var(--ml-text); border-color: var(--ml-accent); }
.ml-slip-sum { display: grid; grid-template-columns: 1fr auto; gap: .2rem .5rem; font-size: .8rem; margin: 0 0 .75rem; }
.ml-slip-sum dt { font-weight: 500; color: var(--ml-muted); }
.ml-slip-sum dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.ml-slip-msg { font-size: .76rem; border-radius: 8px; padding: .45rem .6rem; margin-bottom: .6rem; }
.ml-slip-msg.is-error { background: rgba(255, 77, 94, .12); color: #ff8c97; border: 1px solid rgba(255, 77, 94, .3); }
.ml-slip-msg.is-ok { background: rgba(46, 230, 214, .1); color: var(--ml-cyan); border: 1px solid rgba(46, 230, 214, .3); }
.ml-slip-note { font-size: .66rem; color: var(--ml-muted); text-align: center; margin: .6rem 0 0; }
.ml-slip-note a { color: var(--ml-muted); }

.ml-slip-fab {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 1030;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .65rem 1rem; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, var(--ml-accent), #ff5f6d); color: #fff;
  font-size: .85rem; font-weight: 700; box-shadow: 0 10px 28px rgba(0, 0, 0, .5);
}
.ml-slip-fab span { background: rgba(0, 0, 0, .25); border-radius: 999px; padding: 0 .45rem; font-size: .75rem; }

/* ---------- My bets ---------- */
.ml-bet { padding: .9rem 1rem; border-top: 1px solid var(--ml-border); }
.ml-bet:first-child { border-top: 0; }
.ml-bet-leg { font-size: .82rem; padding: .3rem 0; display: flex; justify-content: space-between; gap: 1rem; }
.ml-bet-status { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .15rem .45rem; border-radius: 5px; }
.ml-bet-status.is-open { color: var(--ml-cyan); background: rgba(46, 230, 214, .1); }
.ml-bet-status.is-won  { color: #4ade80; background: rgba(74, 222, 128, .12); }
.ml-bet-status.is-lost { color: #ff8c97; background: rgba(255, 77, 94, .12); }
.ml-bet-status.is-void { color: var(--ml-muted); background: var(--ml-surface-2); }
