/* ═══════════════════════════════════════════════════════════════════════════
   BLUEBAST — Sports Betting Platform
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Fonts ── */
@font-face { font-family: FuturaPTCond-Bold; src: url(/fonts/futura-pt_cond-bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: FuturaPTCond-BoldObl; src: url(/fonts/futura-pt_cond-bold-oblique.woff2) format('woff2'); font-style: oblique; font-weight: 700; font-display: swap; }

/* ── CSS Variables (Default brand: bluebast) ── */
:root {
  --bg-primary: #1a1a1a;
  --bg-card: #282828;
  --bg-section: #383838;
  --bg-odds: #505050;
  --bg-odds-hover: #636363;
  --text-odds: #ffdf1b;
  --text-primary: #fff;
  --text-secondary: #ccc;
  --text-muted: #888;
  --text-suspended: #a7a7a7;
  --green-live: #8aba57;
  --green-accent: #189970;
  --green-tab: #28f38c;
  --green-bright: #28ffbb;
  --border-subtle: hsla(0,0%,100%,.1);
  --pod-gradient: linear-gradient(126deg, #404a47, #444);
  --header-gradient: linear-gradient(#003d2e, #173c33 50px);
  --header-wide-gradient: linear-gradient(90deg, #282828, #005440 calc((100% - 1450px)/2), #005440 calc(100vw - (100% - 1450px)/2), #282828);
  --sidebar-bg: #282828;
  --league-gradient: linear-gradient(160deg, #373d3a 0%, #383838 200px);
  --brand-accent: #28ffbb;
  --brand-logo: url(/images/bluebast.svg);
}

/* ── Brand Overrides ── */
.bluebast { --brand-logo: url(/images/bluebast.svg); }
/* Brand: bluebast — bluebast.vip */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.12) transparent; }

/* ── Accessibility ── */
:focus-visible { outline: 2px solid var(--green-bright); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }

/* ── Touch target minimums ── */
@media (pointer: coarse) {
  .ds-nav-item { min-height: 44px; line-height: 44px; }
  .ovm-ParticipantOddsOnly { min-height: 44px; display: flex; align-items: center; justify-content: center; }
  .ovm-Fixture { min-height: 56px; }
  .ds-sb-item { min-height: 44px; }
  .msd-grid-cell, .msd-sel-row { min-height: 44px; }
  .ds-btn-login, .ds-btn-join { min-height: 44px; padding: 8px 16px; }
}

/* ── (mobile text overflow now in comprehensive responsive section below) ── */

/* ── Text selection brand color ── */
::selection { background: var(--green-bright); color: #1a1a1a; }

/* ── Input placeholder styling ── */
.ds-login-input::placeholder, .ds-bs-stake-input::placeholder { color: rgba(255,255,255,0.3); }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════════════════ */
/* Top bar (Sporte | Live | Casino | Live Casino) */
.ds-topbar {
  display: flex; align-items: center; gap: 20px;
  padding: 6px 16px; background: #111; font-size: 11px;
}
.ds-topbar-item { color: #888; cursor: pointer; transition: color 0.15s; }
.ds-topbar-item:hover { color: #ccc; }
.ds-topbar-active { color: var(--green-bright); }
@media (max-width: 784px) {
  .ds-topbar { display: none; }
}

.ds-header {
  background: var(--header-gradient);
  display: flex;
  align-items: center;
  padding: 0 12px;
  height: 50px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.ds-header-logo {
  height: 26px;
  width: auto;
  cursor: pointer;
  margin-right: 16px;
  flex: 0 0 auto;
  content: var(--brand-logo);
}
.ds-nav { display: flex; gap: 0; flex: 0 0 auto; }
.ds-nav-item {
  padding: 0 10px;
  font-family: FuturaPTCond-BoldObl, FuturaPTCond-Bold, -apple-system, sans-serif;
  font-size: 12px;
  font-style: oblique;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  height: 50px; line-height: 50px;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  user-select: none;
}
.ds-nav-item:hover { color: #fff; }
.ds-nav-item.active { color: #fff; border-bottom-color: var(--green-bright); }
.ds-nav-count { font-size: 10px; opacity: 0.5; margin-left: 3px; font-weight: 400; }
.ds-nav-live-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-live); margin-right: 4px; vertical-align: middle;
  animation: pulse-dot 1.5s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes pulse-dot {
  0%,100% { opacity: 1; } 50% { opacity: 0.4; }
}

/* Search */
.ds-search-wrap {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  padding: 0 8px;
}
.ds-search {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 6px 10px 6px 28px;
  color: #fff;
  font-size: 12px;
  width: 180px;
  max-width: 100%;
  outline: none;
  transition: width 0.3s, background 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none'%3E%3Ccircle cx='6' cy='6' r='5' stroke='%23888' stroke-width='1.5'/%3E%3Cline x1='10' y1='10' x2='13' y2='13' stroke='%23888' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 8px center;
}
.ds-search:focus { background-color: rgba(255,255,255,0.12); width: 240px; }
.ds-search::placeholder { color: rgba(255,255,255,0.35); }

/* ═══════════════════════════════════════════════════════════════════════════
   LAYOUT: Sidebar + Main
   ═══════════════════════════════════════════════════════════════════════════ */
.ds-container {
  display: flex;
  min-height: calc(100vh - 50px);
}

/* Sidebar */
.ds-sidebar {
  width: 220px;
  flex: 0 0 220px;
  background: #282828;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 40px;
}
.ds-sidebar::-webkit-scrollbar { width: 3px; }
.ds-sb-section { padding: 4px 0; }
.ds-sb-header {
  padding: 10px 14px 6px;
  font-family: FuturaPTCond-BoldObl, FuturaPTCond-Bold, -apple-system, sans-serif;
  font-style: oblique;
  font-size: 12px;
  font-weight: 700;
  color: var(--green-bright);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.ds-sb-item {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: color 0.2s;
  gap: 0;
  user-select: none;
  background: #282828;
}
.ds-sb-item:hover { color: #48dbac; }
.ds-sb-item.active { color: #48dbac; }
.ds-sb-icon {
  width: 15px; height: 15px; flex: 0 0 20px;
  background-size: contain; background-repeat: no-repeat; background-position: left center;
  margin-right: 5px;
}
.ds-sb-icon-soccer { background-image: url(/images/zClass_Soccer.svg); }
.ds-sb-icon-basketball { background-image: url(/images/zClass_Basketball.svg); }
.ds-sb-icon-tennis { background-image: url(/images/zClass_Tennis.svg); }
.ds-sb-icon-hockey { background-image: url(/images/zClass_IceHockey.svg); }
.ds-sb-icon-volleyball { background-image: url(/images/zClass_Volleyball.svg); }
.ds-sb-icon-ucl { background-image: url(/images/champions_league.svg); width: 20px; height: 20px; }
.ds-sb-icon-uel { background-image: url(/images/uefaeuropaleague.svg); width: 20px; height: 20px; }
.ds-sb-icon-uecl { background-image: url(/images/uefaeuropaconferenceleague.svg); width: 20px; height: 20px; }
.ds-sb-icon-cricket { background-image: url(/images/zClass_Cricket.svg); }
.ds-sb-count {
  margin-left: auto; font-size: 10px; color: #777;
  background: rgba(255,255,255,0.06); padding: 1px 6px; border-radius: 8px;
  font-weight: 400;
}
.ds-sb-live-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--green-live);
  flex: 0 0 5px; animation: pulse-dot 1.5s infinite; margin-right: 6px;
}
.ds-sb-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 4px 0; }

/* Green header */
.ds-sb-hdr {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 16px; background: linear-gradient(135deg, #005641 0%, #003d2e 100%);
  min-height: 56px;
}
.ds-sb-close {
  color: var(--green-bright); font-size: 18px; cursor: pointer; font-weight: 700;
  width: 24px; text-align: center;
}
.ds-sb-hdr-title {
  font-size: 18px; font-weight: 700; color: #fff;
}

/* Quick nav icons row */
.ds-sb-quicknav {
  display: flex; padding: 12px 8px; gap: 4px; background: #222;
}
.ds-sb-qn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 4px; cursor: pointer; color: #888; border-radius: 4px;
  transition: color 0.15s;
}
.ds-sb-qn:hover { color: var(--green-bright); }
.ds-sb-qn span { font-size: 9px; text-transform: uppercase; }

/* Search in sidebar */
.ds-sb-search {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px;
  background: #222;
}
.ds-sb-search-input {
  flex: 1; background: transparent; border: none; color: #fff; font-size: 13px;
  outline: none;
}
.ds-sb-search-input::placeholder { color: #666; }
.ds-sb-league-item {
  display: flex; align-items: center; padding: 6px 14px 6px 28px;
  font-size: 12px; font-weight: 700; color: #fff; cursor: pointer;
  transition: color 0.2s; gap: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ds-sb-league-item:hover { color: #48dbac; }
.ds-sb-league-item.active { color: #48dbac; }

/* Main content */
.ds-main {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  background: #282828;
  background-image: linear-gradient(#003a2b, #282828 120px);
  background-position: 0 -60px;
  background-repeat: no-repeat;
}

/* ── Mobile hamburger ── */
.ds-hamburger {
  display: none;
  flex: 0 0 auto;
  padding: 8px;
  cursor: pointer;
  color: #fff;
  font-size: 20px;
  margin-right: 4px;
}
.ds-sidebar-overlay {
  display: none;
  position: fixed; top: 50px; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 90;
}

/* ── (responsive rules moved to comprehensive mobile section below betslip) ── */

/* ═══════════════════════════════════════════════════════════════════════════
   VIEWS
   ═══════════════════════════════════════════════════════════════════════════ */
.view { display: none; }
.view.active { display: block; }

/* ═══════════════════════════════════════════════════════════════════════════
   OVM — Live Overview
   ═══════════════════════════════════════════════════════════════════════════ */
.ovm-OverviewView_Content { padding: 0; }
.ovm-OverviewView_Classification {
  background-image: var(--league-gradient);
  margin: 8px 8px 0; border-radius: 5px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.ovm-CompetitionHeader {
  display: flex; align-items: center;
  padding: 8px 12px;
  background: hsla(0,0%,100%,.07);
  font-size: 12px; font-weight: 600; color: #e8e8e8;
  letter-spacing: 0.2px; user-select: none;
}
.ovm-CompetitionHeader_Star { color: #888; margin-right: 8px; font-size: 13px; }
.ovm-CompetitionHeader_Name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ovm-CompetitionHeader_Labels { display: flex; flex: 0 0 168px; }
.ovm-CompetitionHeader_Label {
  flex: 1; text-align: center; color: rgba(255,255,255,0.45);
  font-size: 10px; font-weight: 600;
}
.ovm-CompetitionHeader_Count {
  font-size: 10px; color: rgba(255,255,255,0.3); margin-left: 4px; font-weight: 400;
}

.ovm-Fixture {
  border-top: 1px solid var(--border-subtle);
  display: flex; align-items: stretch;
  cursor: pointer; transition: background 0.12s;
}
.ovm-Fixture:hover { background: rgba(255,255,255,0.03); }

.ovm-FixtureDetailsTwoWay {
  flex: 1; display: flex; align-items: center;
  padding: 6px 10px; min-height: 60px;
  background: transparent; color: #fff; overflow: hidden;
}
.ovm-FixtureDetailsTwoWay_Wrapper {
  flex: 1; display: flex; flex-direction: column; overflow: hidden;
}
.ovm-FixtureDetailsTwoWay_TeamsAndScores {
  display: flex; align-items: center;
}
.ovm-FixtureDetailsTwoWay_Teams {
  flex: 1; overflow: hidden;
}
.ovm-FixtureDetailsTwoWay_Team {
  display: flex; align-items: center; line-height: 20px;
}
.ovm-FixtureDetailsTwoWay_KitWrapper {
  flex: 0 0 18px; width: 18px; height: 20px; margin-right: 6px; display: flex; align-items: center; justify-content: center;
}
.ovm-FixtureDetailsTwoWay_KitWrapper img {
  width: 100%; height: 100%; object-fit: contain;
}
.ovm-FixtureDetailsTwoWay_TeamName {
  font-size: 13px; font-weight: 400; line-height: 20px; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ovm-StandardScores {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; padding: 0 2px 0 5px; margin-left: auto;
}
.ovm-StandardScores_TeamOne, .ovm-StandardScores_TeamTwo {
  line-height: 19px; padding: 1px 3px 0; font-size: 13px; font-weight: 700;
  color: white; background-color: hsla(0,0%,100%,.1); border-radius: 1px;
  min-width: 20px; text-align: center;
}
.ovm-StandardScores_TeamOne { border-bottom: 5px solid #37413a; }
.ovm-FixtureDetailsTwoWay_InfoRow {
  display: flex; align-items: center; padding-top: 4px; font-size: 10px; line-height: 20px;
}
.ovm-FixtureDetailsTwoWay_Timer {
  color: #cecece; font-size: 10px; font-weight: 700; min-width: 31px;
  font-variant-numeric: tabular-nums;
}
.ovm-InjuryTimeBadge {
  display: inline-block; background: #d4380d; color: #fff; font-size: 8px; font-weight: 700;
  padding: 1px 3px; border-radius: 3px; margin-left: 3px; vertical-align: middle;
  animation: injuryPulse 2s ease-in-out infinite;
}
@keyframes injuryPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.7; } }
.ovm-FixtureDetailsTwoWay_Kickoff {
  color: #aaa; font-size: 10px; font-weight: 600;
}
/* Tier 2: Weather + Pitch badges on live list (bet365-visible data only) */
/* NOTE: Intel dots, PRE-GOL, odds crash badges are MOSSAD-only — dashboard.html only */
.ovm-weather-icon { display: inline-block; font-size: 10px; margin-left: 3px; vertical-align: middle; opacity: 0.6; }
.ovm-pen-grid { display: inline-flex; gap: 1px; margin-left: 4px; vertical-align: middle; }
.ovm-pen-grid span { font-size: 8px; font-weight: 700; line-height: 1; }
.ovm-pen-goal { color: #28f38c; }
.ovm-pen-miss { color: #ff4444; }
.ovm-pen-pending { color: #666; }
.ovm-serve-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #c8e645; margin-right: 3px; vertical-align: middle; }
.ovm-lineup-badge { display: inline-block; font-size: 8px; color: #90caf9; margin-left: 3px; vertical-align: middle; cursor: pointer; }
.ovm-MarketGroup { display: flex; flex: 0 0 168px; align-items: stretch; }
.ovm-ParticipantOddsOnly {
  background-color: var(--bg-odds); font-size: 13px; color: var(--text-odds);
  border-right: 1px solid #3a3a3a; flex: 1 1 0; min-width: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0 2px; cursor: pointer; overflow: hidden;
  transition: background-color 0.15s;
}
.ovm-ParticipantOddsOnly:last-child { border-right: none; }
.ovm-ParticipantOddsOnly:hover { background-color: var(--bg-odds-hover); }
.ovm-ParticipantOddsOnly_Odds { font-weight: 700; text-align: center; font-size: 13px; white-space: nowrap; }
.ovm-ParticipantOddsOnly_Suspended {
  color: var(--text-suspended); cursor: default;
  background-image: url(/images/blocked.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 13px;
  filter: contrast(0.2);
}
.ovm-ParticipantOddsOnly_Suspended .ovm-ParticipantOddsOnly_Odds { opacity: 0; }

/* ── Odds flash — persistent arrows + color for 8 seconds ── */
@keyframes odds-flash-up { 0% { background-color: rgba(76,175,80,0.45); } 100% { background-color: var(--bg-odds); } }
@keyframes odds-flash-down { 0% { background-color: rgba(244,67,54,0.45); } 100% { background-color: var(--bg-odds); } }
.ovm-flash-up { animation: odds-flash-up 2s ease-out; }
.ovm-flash-down { animation: odds-flash-down 2s ease-out; }
.ovm-odds-arrow { font-size: 7px; margin-left: 2px; font-weight: 700; vertical-align: middle; }
.ovm-odds-arrow.up { color: #4caf50; }
.ovm-odds-arrow.down { color: #f44336; }

/* ── GOAL FLASH — entire row highlights + score pulses ── */
@keyframes score-goal-flash {
  0% { color: #ffd700; text-shadow: 0 0 12px rgba(255,215,0,0.8); transform: scale(1.3); }
  30% { color: #ffd700; text-shadow: 0 0 8px rgba(255,215,0,0.5); transform: scale(1.15); }
  100% { color: #fff; text-shadow: none; transform: scale(1); }
}
.ovm-StandardScores_TeamOne.goal-flash, .ovm-StandardScores_TeamTwo.goal-flash {
  animation: score-goal-flash 3s ease-out;
}
@keyframes row-goal-glow {
  0% { background: rgba(255,215,0,0.15); box-shadow: inset 0 0 20px rgba(255,215,0,0.1); }
  100% { background: transparent; box-shadow: none; }
}
.ovm-Fixture.goal-row { animation: row-goal-glow 5s ease-out; }

/* ── Period badge ── */
.ovm-period-badge {
  font-size: 9px; font-weight: 700; letter-spacing: 0.3px;
  color: #12e096; margin-left: 6px; text-transform: uppercase;
}
.ovm-period-badge.ht, .ovm-period-badge.ft { color: #ffb240; }

/* ── Connection status bar ── */
.ds-conn-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  padding: 3px 12px; font-size: 10px; font-weight: 600; text-align: center;
  transition: transform 0.3s, opacity 0.3s;
  transform: translateY(-100%); opacity: 0;
}
.ds-conn-bar.visible { transform: translateY(0); opacity: 1; }
.ds-conn-bar.warn { background: #ff9800; color: #000; }
.ds-conn-bar.ok { background: #4caf50; color: #fff; }

/* ── Prematch date header ── */
.pm-date-header {
  padding: 12px 12px 8px; font-size: 13px; font-weight: 700;
  color: #fff; background: var(--bg-primary);
  text-transform: uppercase; letter-spacing: 0.5px;
  border-top: 3px solid var(--green-accent);
}
/* League quick-chips on prematch */
.pm-league-chips {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px;
  background: var(--bg-card); border-bottom: 1px solid var(--border-subtle);
}
.pm-league-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px;
  background: var(--bg-section); border-radius: 4px; font-size: 11px; color: #ccc;
  cursor: pointer; border: 1px solid var(--border-subtle);
  transition: border-color 0.15s; white-space: nowrap;
}
.pm-league-chip:hover { border-color: var(--green-bright); color: #fff; }
.pm-chip-count { color: #888; font-size: 10px; }

/* ═══ UNIFIED FILTER BAR (prematch) ═══ */
.pm-filterbar {
  background: var(--bg-card); border-bottom: 1px solid var(--border-subtle);
}
.pm-filterbar-tabs {
  display: flex; overflow-x: auto; scrollbar-width: none;
}
.pm-filterbar-tabs::-webkit-scrollbar { display: none; }
.pm-fb-tab {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center;
  padding: 10px 14px; cursor: pointer; border-bottom: 2px solid transparent;
  transition: all 0.15s; white-space: nowrap; gap: 1px;
  font-size: 12px; font-weight: 600; color: #888;
}
.pm-fb-tab:hover { color: #ccc; }
.pm-fb-tab.active { color: #fff; border-bottom-color: var(--green-tab); }
.pm-fb-num { font-size: 9px; color: #555; }
.pm-fb-tab.active .pm-fb-num { color: var(--green-bright); }
.pm-fb-date-btn {
  flex-direction: row; gap: 5px; color: #888;
}
.pm-fb-date-btn svg { opacity: 0.6; }
/* Date picker popup */
.pm-datepicker {
  background: var(--bg-section); padding: 12px; border-bottom: 1px solid var(--border-subtle);
}
.pm-dp-title {
  font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.pm-dp-grid {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px;
}
.pm-dp-grid::-webkit-scrollbar { display: none; }
.pm-dp-day {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center;
  padding: 8px 12px; background: rgba(255,255,255,0.04); border-radius: 6px;
  cursor: pointer; border: 1px solid transparent; transition: all 0.15s;
  min-width: 52px;
}
.pm-dp-day:hover { border-color: var(--green-bright); }
.pm-dp-day.active { border-color: var(--green-tab); background: rgba(40,243,140,0.08); }
.pm-dp-dayname { font-size: 9px; color: #888; text-transform: uppercase; }
.pm-dp-daynum { font-size: 18px; font-weight: 700; color: #fff; line-height: 1.2; }
.pm-dp-month { font-size: 9px; color: #888; }
.pm-dp-count { font-size: 9px; color: var(--green-bright); margin-top: 2px; }
/* Results header (match count) */
.pm-results-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 11px;
}
.pm-results-count { color: #fff; font-weight: 700; }
.pm-results-filter { color: #888; }

/* ═══════════════════════════════════════════════════════════════════════════
   A-Z LEAGUE BROWSER
   ═══════════════════════════════════════════════════════════════════════════ */
.az-header {
  background: linear-gradient(135deg, #005641 0%, #003d2e 100%);
  padding: 20px 16px 16px;
}
.az-title {
  font-family: FuturaPTCond-BoldObl, FuturaPTCond-Bold, -apple-system, sans-serif;
  font-style: oblique; font-weight: 700; font-size: 22px; color: #fff;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px;
}
.az-search {
  width: 100%; padding: 10px 12px 10px 36px; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 6px;
  color: #fff; font-size: 13px; outline: none; transition: background 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none'%3E%3Ccircle cx='6' cy='6' r='5' stroke='%23aaa' stroke-width='1.5'/%3E%3Cline x1='10' y1='10' x2='13' y2='13' stroke='%23aaa' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 12px center;
}
.az-search:focus { background-color: rgba(255,255,255,0.15); }
.az-search::placeholder { color: rgba(255,255,255,0.4); }
.az-sport-tabs {
  display: flex; gap: 6px; padding: 12px 16px; background: var(--bg-card);
  overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--border-subtle);
}
.az-sport-tabs::-webkit-scrollbar { display: none; }
.az-sport-tab {
  flex: 0 0 auto; padding: 6px 14px; border-radius: 16px; font-size: 12px;
  font-weight: 600; color: #aaa; background: rgba(255,255,255,0.06); cursor: pointer;
  border: 1px solid transparent; transition: all 0.15s; white-space: nowrap;
}
.az-sport-tab:hover { color: #fff; border-color: rgba(255,255,255,0.15); }
.az-sport-tab.active { color: #fff; background: var(--green-accent); border-color: var(--green-accent); }
.az-letter-bar {
  display: flex; flex-wrap: wrap; gap: 2px; padding: 10px 16px;
  background: var(--bg-primary); border-bottom: 1px solid var(--border-subtle);
}
.az-letter {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #888; cursor: pointer; border-radius: 4px;
  transition: all 0.15s;
}
.az-letter:hover { color: #fff; background: rgba(255,255,255,0.08); }
.az-letter.active { color: #fff; background: var(--green-accent); }
.az-letter.disabled { color: #444; cursor: default; }
.az-stats {
  display: flex; gap: 12px; padding: 8px 16px; font-size: 11px; color: #888;
  background: var(--bg-primary); border-bottom: 1px solid var(--border-subtle);
}
.az-stats strong { color: #fff; }
.az-group {
  padding: 0 0 4px;
}
.az-group-letter {
  position: sticky; top: 0; z-index: 5;
  padding: 8px 16px; font-size: 14px; font-weight: 700; color: var(--green-bright);
  background: var(--bg-primary); border-bottom: 1px solid var(--border-subtle);
  letter-spacing: 1px;
}
.az-league {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  cursor: pointer; transition: background 0.12s; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.az-league:hover { background: rgba(255,255,255,0.04); }
.az-league-flag { flex: 0 0 20px; }
.az-league-flag img { width: 18px; height: 13px; border-radius: 1px; object-fit: cover; }
.az-league-name {
  flex: 1; font-size: 13px; font-weight: 600; color: #e8e8e8;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.az-league-country {
  font-size: 11px; color: #777; flex: 0 0 auto;
}
.az-league-count {
  flex: 0 0 auto; font-size: 10px; color: #888; background: rgba(255,255,255,0.06);
  padding: 2px 8px; border-radius: 10px;
}
.az-league-live {
  flex: 0 0 auto; display: flex; align-items: center; gap: 4px;
  font-size: 10px; color: var(--green-live); font-weight: 600;
}
.az-league-live-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--green-live);
  animation: pulse-dot 1.5s infinite;
}
.az-league-arrow {
  flex: 0 0 auto; color: rgba(255,255,255,0.2);
}
.az-empty {
  padding: 40px 16px; text-align: center; color: #888; font-size: 13px;
}

/* ═══ OLD FILTRO (kept for reference) ═══ */
.pm-filtro {
  background: var(--bg-card); padding: 12px 0 0; margin-bottom: 2px;
  border-bottom: 1px solid var(--border-subtle);
}
.pm-filtro-title {
  font-size: 13px; font-weight: 700; color: #fff; padding: 0 14px 10px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.pm-filtro-row {
  display: flex; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--border-subtle);
}
.pm-filtro-row::-webkit-scrollbar { display: none; }
.pm-filtro-row2 { border-bottom: none; }
.pm-ftab {
  flex: 1; min-width: 0; padding: 10px 12px; cursor: pointer;
  text-align: center; border-bottom: 2px solid transparent;
  transition: all 0.15s; white-space: nowrap;
}
.pm-ftab:hover { background: rgba(255,255,255,0.03); }
.pm-ftab.active { border-bottom-color: var(--green-tab); }
.pm-ftab-label {
  font-size: 12px; font-weight: 600; color: #ccc; margin-bottom: 2px;
}
.pm-ftab.active .pm-ftab-label { color: #fff; }
.pm-ftab-count {
  font-size: 9px; color: #666;
}
.pm-ftab.active .pm-ftab-count { color: var(--green-bright); }
.pm-ftab2 {
  flex: 0 0 auto; padding: 8px 16px; font-size: 11px; font-weight: 600;
  color: #888; cursor: pointer; border-bottom: 2px solid transparent;
  transition: color 0.15s; text-transform: uppercase;
}
.pm-ftab2:hover { color: #ccc; }
.pm-ftab2.active { color: #fff; border-bottom-color: var(--green-tab); }

/* ═══════════════════════════════════════════════════════════════════════════
   MSD — Match Detail Overlay
   ═══════════════════════════════════════════════════════════════════════════ */
#msd-detail-overlay { background: var(--bg-card); -webkit-overflow-scrolling: touch; }
#msd-detail-overlay .msd-header { position: relative; background: #1b2e28; overflow: hidden; }
#msd-detail-overlay .msd-header-gradient {
  position: absolute; width: 100%; height: calc(100% + 50px); z-index: 0;
  background-image:
    linear-gradient(rgba(12,22,20,.15), transparent 24px),
    radial-gradient(ellipse 130% 380px at center -230px, #009969 0%, transparent 100%),
    linear-gradient(to right bottom, #0c1614, #084436);
  pointer-events: none;
}
#msd-detail-overlay .msd-breadcrumb {
  position: relative; z-index: 1; display: inline-flex; align-items: center;
  cursor: pointer; padding: 10px 16px 6px; color: #a8b8b0;
  font-size: 11px; letter-spacing: 0.2px; transition: color 0.2s;
}
#msd-detail-overlay .msd-breadcrumb:hover { color: #d0e0d8; }
#msd-detail-overlay .msd-breadcrumb svg { margin-right: 8px; }
#msd-detail-overlay .msd-score-row {
  position: relative; z-index: 1; display: flex; align-items: center;
  justify-content: center; padding: 4px 16px; gap: 8px;
}
#msd-detail-overlay .msd-team-name {
  color: #e8e8e8; font-size: 15px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1;
}
#msd-detail-overlay .msd-team-name-home { text-align: right; }
#msd-detail-overlay .msd-team-name-away { text-align: left; }
#msd-detail-overlay .msd-score-center { display: flex; align-items: center; flex: 0 0 auto; padding: 0 4px; }
#msd-detail-overlay .msd-score-num {
  color: var(--text-odds); font-weight: 900; font-size: 30px;
  min-width: 26px; text-align: center; line-height: 1;
  transition: color 0.3s, transform 0.3s;
}
@keyframes detail-score-flash {
  0% { color: #dbe681; transform: scale(1.3); text-shadow: 0 0 20px rgba(219,230,129,0.8); }
  100% { color: var(--text-odds); transform: scale(1); text-shadow: none; }
}
#msd-detail-overlay .msd-score-num.goal-flash { animation: detail-score-flash 2.5s ease-out; }
#msd-detail-overlay .msd-score-sep { color: rgba(255,255,255,0.3); font-size: 20px; padding: 0 6px; font-weight: 300; }
#msd-detail-overlay .msd-clock { position: relative; z-index: 1; text-align: center; padding: 2px 16px 10px; }
#msd-detail-overlay .msd-live-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-live); margin-right: 6px; vertical-align: middle;
  animation: msd-pulse 1.5s infinite;
}
@keyframes msd-pulse {
  0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(138,186,87,0.6); }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(138,186,87,0); }
}
#msd-detail-overlay .msd-clock-min {
  color: var(--green-bright); font-size: 13px; font-weight: 700;
  background: rgba(0,0,0,0.6); padding: 2px 8px; border-radius: 3px;
}
#msd-detail-overlay .msd-clock-period { color: #8a8a8a; font-size: 11px; margin-left: 6px; }

/* Live Stats Bar */
.msd-live-stats { position: relative; z-index: 1; padding: 8px 16px; }
.msd-stat-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 11px; color: #ccc; }
.msd-stat-val { width: 24px; text-align: center; font-weight: 700; font-size: 12px; color: #fff; }
.msd-stat-bar-wrap { flex: 1; position: relative; height: 16px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.msd-stat-bar-home { position: absolute; left: 0; top: 0; height: 100%; background: var(--green-accent); border-radius: 3px; transition: width 0.5s ease; min-width: 2px; }
.msd-stat-label { position: absolute; width: 100%; text-align: center; line-height: 16px; font-size: 10px; color: rgba(255,255,255,0.6); z-index: 1; }

/* Timeline badges */
#msd-detail-overlay .msd-timeline {
  position: relative; z-index: 1; padding: 0 16px 10px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 5px;
}
#msd-detail-overlay .msd-tl-item {
  display: inline-flex; align-items: center; font-size: 10px; color: #b0b8b4;
  background: rgba(0,0,0,0.3); border-radius: 3px; padding: 3px 7px;
}
#msd-detail-overlay .msd-tl-item-goal { color: var(--text-odds); background: rgba(255,223,27,0.12); }
#msd-detail-overlay .msd-tl-icon { margin-right: 4px; }

/* Tabs */
#msd-detail-overlay .msd-tabs {
  display: flex; overflow-x: auto; background: #2a2a2a;
  border-top: 2px solid rgba(24,153,112,0.8);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
#msd-detail-overlay .msd-tabs::-webkit-scrollbar { display: none; }
#msd-detail-overlay .msd-tab {
  flex: 0 0 auto; padding: 10px 14px; color: #888; font-size: 12px;
  font-weight: 600; cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s;
  text-transform: capitalize;
}
#msd-detail-overlay .msd-tab:hover { color: #ccc; }
#msd-detail-overlay .msd-tab.active { color: var(--green-tab); font-weight: 600; border-bottom-color: var(--green-tab); }
#msd-detail-overlay .msd-tab-count { opacity: 0.4; font-size: 10px; margin-left: 3px; }

/* Market groups */
#msd-detail-overlay .msd-market-grid { padding: 5px 0 10px; background: #383838; }
#msd-detail-overlay .msd-mkt-group {
  margin: 10px 10px 0; background: var(--pod-gradient);
  border-radius: 5px; overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.4);
}
#msd-detail-overlay .msd-mkt-hdr {
  display: flex; align-items: center; padding: 11px 14px; cursor: pointer; user-select: none;
  background: linear-gradient(126deg, #404a47 0%, #444 100%); border-radius: 5px 5px 0 0;
}
#msd-detail-overlay .msd-mkt-hdr:hover { background: linear-gradient(126deg, #4a5550 0%, #4e4e4e 100%); }
#msd-detail-overlay .msd-mkt-hdr:active { opacity: 0.8; }
#msd-detail-overlay .msd-mkt-hdr-text { color: #fff; font-size: 13px; font-weight: 600; flex: 1; }
#msd-detail-overlay .msd-mkt-hdr-susp { color: #f44336; font-size: 10px; margin-left: 6px; display: flex; align-items: center; gap: 4px; }
#msd-detail-overlay .msd-mkt-chevron { flex: 0 0 auto; transition: transform 0.25s; }
#msd-detail-overlay .msd-mkt-chevron.collapsed { transform: rotate(-90deg); }
#msd-detail-overlay .msd-mkt-body { padding: 0; overflow: hidden; transition: max-height 0.3s ease, opacity 0.25s ease; }
#msd-detail-overlay .msd-mkt-body.collapsed { max-height: 0 !important; opacity: 0; }
/* Column headers for grid markets */
#msd-detail-overlay .msd-col-hdrs {
  display: flex; background: #3a4842; min-height: 30px; line-height: 30px;
}
#msd-detail-overlay .msd-col-hdr {
  flex: 1; text-align: center; color: rgba(255,255,255,0.7); font-size: 11px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px;
}

/* Selection rows */
#msd-detail-overlay .msd-sel-row {
  display: flex; align-items: stretch; min-height: 38px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
#msd-detail-overlay .msd-sel-row:last-child { border-bottom: none; }
#msd-detail-overlay .msd-sel-name {
  flex: 1; display: flex; align-items: center; padding: 7px 10px 7px 14px;
  color: #e0e0e0; font-size: 12px; font-weight: 400; overflow: hidden;
}
#msd-detail-overlay .msd-sel-name-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#msd-detail-overlay .msd-sel-hcp { color: var(--text-odds); font-size: 12px; margin-left: 6px; font-weight: 600; }
#msd-detail-overlay .msd-sel-odds {
  flex: 0 0 72px; display: flex; align-items: center; justify-content: center;
  padding: 4px 2px; font-size: 12px; font-weight: 700; color: var(--text-odds);
  background: rgba(255,255,255,0.04); cursor: pointer; transition: background-color 0.15s;
  position: relative; border-left: 1px solid rgba(255,255,255,0.04);
}
#msd-detail-overlay .msd-sel-odds:hover { background: rgba(255,255,255,0.1); }
#msd-detail-overlay .msd-sel-odds.suspended {
  color: transparent; cursor: default; background: transparent;
  background-image: url(/images/blocked.svg); background-repeat: no-repeat;
  background-position: center; background-size: 10px 13px; filter: contrast(0.2);
  pointer-events: none;
}
#msd-detail-overlay .msd-sel-odds .msd-arrow { font-size: 7px; margin-right: 3px; }
#msd-detail-overlay .msd-arrow-up { color: #4caf50; }
#msd-detail-overlay .msd-arrow-down { color: #f44336; }
@keyframes msd-odds-flash-up { 0% { background-color: rgba(38,255,187,0.4); } 100% { background-color: rgba(255,255,255,0.04); } }
@keyframes msd-odds-flash-down { 0% { background-color: rgba(244,67,54,0.35); } 100% { background-color: rgba(255,255,255,0.04); } }
#msd-detail-overlay .msd-flash-up { animation: msd-odds-flash-up 1.5s ease-out; }
#msd-detail-overlay .msd-flash-down { animation: msd-odds-flash-down 1.5s ease-out; }

/* Grid cells (2-way/3-way compact) */
#msd-detail-overlay .msd-grid-row { display: flex; }
#msd-detail-overlay .msd-grid-cell {
  flex: 1; display: flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 6px 4px; font-size: 13px; font-weight: 700;
  color: var(--text-odds); background: rgba(255,255,255,0.04);
  border-right: 1px solid rgba(255,255,255,0.05);
  cursor: pointer; transition: background-color 0.15s;
}
#msd-detail-overlay .msd-grid-cell:last-child { border-right: none; }
#msd-detail-overlay .msd-grid-cell:hover { background: rgba(255,255,255,0.1); }
#msd-detail-overlay .msd-grid-cell.suspended {
  color: transparent; cursor: default; background: transparent;
  background-image: url(/images/blocked.svg); background-repeat: no-repeat;
  background-position: center; background-size: 10px 13px; filter: contrast(0.2);
  pointer-events: none;
}
#msd-detail-overlay .msd-grid-cell .msd-cell-name { display: none; }

/* Handicap rows */
#msd-detail-overlay .msd-hcp-row {
  display: flex; align-items: stretch;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
#msd-detail-overlay .msd-hcp-row:last-child { border-bottom: none; }
#msd-detail-overlay .msd-hcp-label {
  flex: 0 0 65px; display: flex; align-items: center; justify-content: center;
  color: #e0e0e0; font-size: 12px; font-weight: 600; padding: 4px;
}
#msd-detail-overlay .msd-hcp-odds {
  flex: 1; display: flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 4px 2px; font-size: 12px; font-weight: 700;
  color: var(--text-odds); background: rgba(255,255,255,0.04);
  border-left: 1px solid rgba(255,255,255,0.05); cursor: pointer; transition: background 0.15s;
}
#msd-detail-overlay .msd-hcp-odds:hover { background: rgba(255,255,255,0.1); }
#msd-detail-overlay .msd-hcp-odds.suspended { color: #555; cursor: default; background: transparent; }

/* Correct Score grid */
#msd-detail-overlay .msd-cs-section-hdr {
  color: #8a8a8a; font-size: 10px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; padding: 6px 4px 2px;
}
#msd-detail-overlay .msd-cs-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 1px; background: rgba(255,255,255,0.03);
}
#msd-detail-overlay .msd-cs-cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 44px; padding: 6px 4px; background: rgba(255,255,255,0.03);
  cursor: pointer; transition: background 0.15s;
}
#msd-detail-overlay .msd-cs-cell:hover { background: rgba(255,255,255,0.1); }
#msd-detail-overlay .msd-cs-score { color: #ccc; font-size: 11px; margin-bottom: 2px; }
#msd-detail-overlay .msd-cs-odds { color: var(--text-odds); font-size: 12px; font-weight: 700; }
#msd-detail-overlay .msd-cs-cell.suspended .msd-cs-odds { color: #555; }

/* Empty */
#msd-detail-overlay .msd-empty-msg { text-align: center; padding: 40px 20px; color: #777; font-size: 13px; }

/* Sub-tabs: Live | Statistikat | Info (bet365 style) */
#msd-detail-overlay .msd-subtabs {
  display: flex; align-items: center; gap: 4px; padding: 6px 10px;
  background: #1a1a1a; border-bottom: 1px solid rgba(255,255,255,0.06);
}
#msd-detail-overlay .msd-subtab {
  padding: 7px 16px; font-size: 12px; font-weight: 600; color: #777; cursor: pointer;
  border-radius: 4px; transition: all 0.15s; letter-spacing: 0.3px;
  background: transparent; border: none;
}
#msd-detail-overlay .msd-subtab:hover { color: #bbb; background: rgba(255,255,255,0.04); }
#msd-detail-overlay .msd-subtab.active {
  color: #fff; background: #165031;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
#msd-detail-overlay .msd-subtab-stats {
  margin-left: auto; color: #555; cursor: pointer;
  padding: 6px 10px; line-height: 1; border-radius: 4px;
  transition: all 0.15s; display: flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.3px;
}
#msd-detail-overlay .msd-subtab-stats:hover { color: #aaa; background: rgba(255,255,255,0.04); }
#msd-detail-overlay .msd-subtab-stats.active { color: #12e096; background: rgba(22,80,49,0.4); }

/* ═══ LIVE PITCH TRACKER — bet365 FINAL ═══ */
/* ═══════════════════════════════════════════════════════════════════
   LIVE PITCH TRACKER — Professional Sports Visualization
   ═══════════════════════════════════════════════════════════════════ */
#msd-detail-overlay .msd-pitch-wrap {
  --pitch-bg: #1a1a1a; --accent: #12e096;
  --home-color: #2EC3D9; --away-color: #C00101;
  --pitch-green: #2d6e33; --pitch-green-light: #347a3a;
  --pitch-line: rgba(255,255,255,0.22);
  padding: 0; background: #1a1a1a; margin: 0; border: none;
}
#msd-detail-overlay .msd-pitch {
  position: relative; width: 100%; aspect-ratio: auto;
  overflow: hidden; margin: 0; box-sizing: border-box;
  border: none; border-radius: 6px;
  background-color: #424242;
}
/* Native tracker — scope PrimeContain inside pitch wrap */
#msd-detail-overlay .PrimeContain { width: 100% !important; height: auto !important; transform: none !important; overflow: hidden; }
#msd-detail-overlay .PrimeContain .svg { width: 100% !important; height: auto !important; }
#msd-detail-overlay .PrimeContain svg { width: 100% !important; height: auto !important; }
#msd-detail-overlay .PrimeContain .StatsContain,
#msd-detail-overlay .PrimeContain .StatsSwipe { display: none !important; }
#msd-detail-overlay .msd-pitch-native {
  background: #424242; border-radius: 6px; overflow: hidden;
  background-image:
    repeating-linear-gradient(
      90deg,
      #4fa254 0%, #4fa254 8.33%,
      #5ab45f 8.33%, #5ab45f 16.66%
    );
}
#msd-detail-overlay .msd-pitch-svg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2;
}

/* ── Clock pill ── */
#msd-detail-overlay .msd-pitch-clock {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  z-index: 20; background: #1a5c2a; color: #2eff8e;
  font-size: 12px; font-weight: 700; font-family: var(--mono, monospace);
  padding: 2px 12px 3px; min-width: 54px; text-align: center;
  line-height: 18px; border-radius: 0 0 4px 4px;
  pointer-events: none;
  letter-spacing: 0.5px;
}

/* ── Zone overlays — attacking half darkens ── */
#msd-detail-overlay .msd-dark-left,
#msd-detail-overlay .msd-dark-right {
  position: absolute; top: 0; width: 50%; height: 100%;
  z-index: 3; pointer-events: none; opacity: 0;
  transition: opacity 600ms ease;
}
#msd-detail-overlay .msd-dark-left { left: 0; background: linear-gradient(to right, rgba(0,0,0,0.32), transparent 85%); }
#msd-detail-overlay .msd-dark-right { right: 0; left: auto; background: linear-gradient(to left, rgba(0,0,0,0.32), transparent 85%); }
#msd-detail-overlay .msd-dark-left.active { opacity: 0.5; }
#msd-detail-overlay .msd-dark-right.active { opacity: 0.5; }
#msd-detail-overlay .msd-dark-left.intense { opacity: 0.8; }
#msd-detail-overlay .msd-dark-right.intense { opacity: 0.8; }

/* ── Danger gradient — radial glow toward goal ── */
#msd-detail-overlay .msd-danger-gradient {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 4; pointer-events: none; opacity: 0;
  transition: opacity 400ms ease;
}

/* ═══ BALL — white dot + team-colored ring + glow ═══ */
#msd-detail-overlay .msd-ball {
  position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(circle, #fff 60%, #e0e0e0 100%);
  z-index: 11; pointer-events: none;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 3px rgba(255,255,255,0.5), 0 0 8px rgba(255,255,255,0.15);
  transition: left 800ms cubic-bezier(.4,0,.2,1), top 800ms cubic-bezier(.4,0,.2,1), box-shadow 400ms ease;
}
#msd-detail-overlay .msd-ball.msd-speed-safe { transition: left 800ms cubic-bezier(.4,0,.2,1), top 800ms cubic-bezier(.4,0,.2,1), box-shadow 400ms ease; }
#msd-detail-overlay .msd-ball.msd-speed-buildup { transition: left 500ms cubic-bezier(.4,0,.2,1), top 500ms cubic-bezier(.4,0,.2,1), box-shadow 400ms ease; }
#msd-detail-overlay .msd-ball.msd-speed-attack { transition: left 350ms cubic-bezier(.25,.1,.25,1), top 350ms cubic-bezier(.25,.1,.25,1), box-shadow 300ms ease; }
#msd-detail-overlay .msd-ball.msd-speed-danger { transition: left 200ms cubic-bezier(.25,.1,.25,1), top 200ms cubic-bezier(.25,.1,.25,1), box-shadow 200ms ease; }
#msd-detail-overlay .msd-ball.msd-speed-snap { transition: none; }

/* Ring — team-colored outer circle */
#msd-detail-overlay .msd-ball-ring {
  position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid var(--home-color, #2EC3D9); z-index: 10; pointer-events: none;
  transform: translate(-50%, -50%);
  transition: left 800ms cubic-bezier(.4,0,.2,1), top 800ms cubic-bezier(.4,0,.2,1), border-color 300ms ease, box-shadow 400ms ease;
  box-shadow: 0 0 6px rgba(255,255,255,0.12);
}
#msd-detail-overlay .msd-ball-ring.msd-speed-safe { transition: left 800ms cubic-bezier(.4,0,.2,1), top 800ms cubic-bezier(.4,0,.2,1), border-color 300ms ease, box-shadow 400ms ease; }
#msd-detail-overlay .msd-ball-ring.msd-speed-buildup { transition: left 500ms cubic-bezier(.4,0,.2,1), top 500ms cubic-bezier(.4,0,.2,1), border-color 300ms ease, box-shadow 400ms ease; }
#msd-detail-overlay .msd-ball-ring.msd-speed-attack { transition: left 350ms cubic-bezier(.25,.1,.25,1), top 350ms cubic-bezier(.25,.1,.25,1), border-color 300ms ease, box-shadow 300ms ease; }
#msd-detail-overlay .msd-ball-ring.msd-speed-danger { transition: left 200ms cubic-bezier(.25,.1,.25,1), top 200ms cubic-bezier(.25,.1,.25,1), border-color 200ms ease, box-shadow 200ms ease; }
#msd-detail-overlay .msd-ball-ring.msd-speed-snap { transition: none; }
#msd-detail-overlay .msd-ball.goal-clean,
#msd-detail-overlay .msd-ball-ring.goal-clean { opacity: 0; transition: opacity 300ms ease; }

/* Ring pulse animations */
@keyframes msd-ring-pulse {
  0% { transform: translate(-50%,-50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%,-50%) scale(1.4); opacity: 0.5; }
  100% { transform: translate(-50%,-50%) scale(1); opacity: 1; }
}
@keyframes msd-ring-danger-pulse {
  0% { transform: translate(-50%,-50%) scale(1); box-shadow: 0 0 6px rgba(255,255,255,0.12); }
  50% { transform: translate(-50%,-50%) scale(1.15); box-shadow: 0 0 14px rgba(255,80,80,0.4); }
  100% { transform: translate(-50%,-50%) scale(1); box-shadow: 0 0 6px rgba(255,255,255,0.12); }
}
#msd-detail-overlay .msd-ball-ring.pulse { animation: msd-ring-pulse 0.8s ease-in-out; }
#msd-detail-overlay .msd-ball-ring.pulse-danger { animation: msd-ring-danger-pulse 0.7s ease-in-out infinite; }

/* Safe breathing glow */
@keyframes msd-safe-breathe {
  0%,100% { box-shadow: 0 0 3px rgba(255,255,255,0.15); }
  50% { box-shadow: 0 0 6px rgba(255,255,255,0.3); }
}
#msd-detail-overlay .msd-ball.msd-breathing { animation: msd-safe-breathe 3s ease-in-out infinite; }

/* Danger screen pulse */
@keyframes msd-danger-screen-pulse {
  0%,100% { filter: brightness(1.0); }
  50% { filter: brightness(1.08); }
}
#msd-detail-overlay .msd-pitch.msd-screen-pulse { animation: msd-danger-screen-pulse 700ms ease-in-out infinite; }

/* ── Trail SVG ── */
#msd-detail-overlay .msd-trail-svg {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 8; pointer-events: none;
}

/* ═══ ACTION TEXT — centered on pitch ═══ */
#msd-detail-overlay .msd-action-center {
  position: absolute; z-index: 12; pointer-events: none;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: flex-start; gap: 8px;
  transition: opacity 300ms ease;
}
#msd-detail-overlay .msd-action-center.hidden { opacity: 0; }
#msd-detail-overlay .msd-ac-bar {
  width: 3px; height: 38px; border-radius: 2px; flex-shrink: 0;
  margin-top: 1px;
}
#msd-detail-overlay .msd-ac-text { display: flex; flex-direction: column; }
#msd-detail-overlay .msd-ac-text.align-right { text-align: right; align-items: flex-end; }
#msd-detail-overlay .msd-ac-text.align-left { text-align: left; align-items: flex-start; }
#msd-detail-overlay .msd-ac-team {
  font-size: 14px; font-weight: 800;
  font-style: italic; text-transform: uppercase;
  letter-spacing: 0.5px; line-height: 20px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8), 0 0 12px rgba(0,0,0,0.3);
  transition: opacity 300ms ease, color 300ms ease;
}
#msd-detail-overlay .msd-ac-action {
  font-size: 12px; font-weight: 700; color: #fff;
  letter-spacing: 0.5px; line-height: 16px;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8), 0 0 12px rgba(0,0,0,0.3);
  transition: color 300ms ease, font-size 200ms ease;
}
#msd-detail-overlay .msd-ac-action.sev-high { font-size: 14px; color: #ffab00; }
#msd-detail-overlay .msd-ac-action.sev-goal { font-size: 18px; font-weight: 900; color: #ffd740; letter-spacing: 2px; }

/* ═══ GOAL CELEBRATION ═══ */
#msd-detail-overlay .msd-goal-net {
  position: absolute; z-index: 14; pointer-events: none;
  opacity: 0; transition: opacity 400ms ease;
}
#msd-detail-overlay .msd-goal-net.active { opacity: 1; }

/* Goal flash */
#msd-detail-overlay .msd-goal-flash {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.95), rgba(255,215,64,0.3));
  opacity: 0; z-index: 18; pointer-events: none;
  transition: opacity 800ms ease-out;
}
#msd-detail-overlay .msd-goal-flash.active { opacity: 0.9; transition: opacity 30ms linear; }

/* Score update overlay */
#msd-detail-overlay .msd-score-update {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 16; pointer-events: none; opacity: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, rgba(15,45,25,0.75), rgba(10,30,15,0.85));
  transition: opacity 300ms ease;
}
@keyframes msd-score-slide-in {
  0% { opacity: 0; transform: translateY(25px) scale(0.9); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes msd-score-pop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
#msd-detail-overlay .msd-score-update.active .msd-su-main { animation: msd-score-pop 500ms cubic-bezier(.175,.885,.32,1.275) 400ms both; }
#msd-detail-overlay .msd-score-update.active .msd-su-badge { animation: msd-score-slide-in 300ms ease 150ms both; }
#msd-detail-overlay .msd-score-update.active .msd-su-stats { animation: msd-score-slide-in 300ms ease 700ms both; }
#msd-detail-overlay .msd-score-update.active { opacity: 1; }
#msd-detail-overlay .msd-su-badge {
  background: rgba(18,224,150,0.15); color: #12e096;
  font-size: 10px; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 4px 16px; border-radius: 20px; margin-bottom: 14px;
  border: 1px solid rgba(18,224,150,0.25);
}
#msd-detail-overlay .msd-su-main {
  display: flex; align-items: center; gap: 18px;
}
#msd-detail-overlay .msd-su-team {
  display: flex; flex-direction: column; align-items: center; gap: 4px; width: 80px;
}
#msd-detail-overlay .msd-su-team-name {
  font-size: 10px; color: rgba(255,255,255,0.7); font-weight: 700;
  text-align: center; line-height: 1.2; max-height: 26px; overflow: hidden;
  text-transform: uppercase; letter-spacing: 0.3px;
}
#msd-detail-overlay .msd-su-team-kit {
  width: 30px; height: 30px; overflow: hidden;
}
#msd-detail-overlay .msd-su-team-kit img { width: 100%; height: 100%; object-fit: contain; }
#msd-detail-overlay .msd-su-score-box {
  display: flex; align-items: center; gap: 10px;
}
#msd-detail-overlay .msd-su-num {
  font-size: 48px; font-weight: 900; color: #fff; line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5), 0 0 30px rgba(18,224,150,0.2);
  min-width: 40px; text-align: center;
}
#msd-detail-overlay .msd-su-dash {
  font-size: 30px; color: rgba(255,255,255,0.3); font-weight: 200;
}
#msd-detail-overlay .msd-su-stats {
  display: flex; gap: 18px; margin-top: 14px;
  padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.06);
}
#msd-detail-overlay .msd-su-stat {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
#msd-detail-overlay .msd-su-stat-val {
  font-size: 13px; font-weight: 700; color: #fff;
}
#msd-detail-overlay .msd-su-stat-lbl {
  font-size: 8px; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 0.8px;
}

/* ═══ MOMENTUM STRIP ═══ */
#msd-detail-overlay .msd-momentum-strip {
  display: flex; align-items: center; height: 22px;
  background: #1a1a1a; padding: 0 10px; gap: 6px;
}
#msd-detail-overlay .msd-momentum-strip .msd-ms-label {
  font-size: 8px; color: rgba(255,255,255,0.4); width: 24px; text-align: center;
  font-weight: 700; text-transform: uppercase;
}
#msd-detail-overlay .msd-momentum-strip .msd-ms-bar {
  flex: 1; height: 3px; background: rgba(255,255,255,0.06); border-radius: 2px;
  overflow: hidden; display: flex;
}
#msd-detail-overlay .msd-momentum-strip .msd-ms-home {
  height: 100%; background: var(--home-color, #2EC3D9); transition: width 0.6s cubic-bezier(.4,0,.2,1);
  border-radius: 2px 0 0 2px;
}
#msd-detail-overlay .msd-momentum-strip .msd-ms-away {
  height: 100%; background: var(--away-color, #C00101); transition: width 0.6s cubic-bezier(.4,0,.2,1);
  border-radius: 0 2px 2px 0; margin-left: auto;
}

/* ── Corner shadow ── */
#msd-detail-overlay .msd-corner-shadow {
  position: absolute; z-index: 3; pointer-events: none; opacity: 0;
  transition: opacity 500ms ease;
}
#msd-detail-overlay .msd-corner-shadow.active { opacity: 1; }

/* ── VAR overlay ── */
@keyframes msd-var-scan {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
#msd-detail-overlay .msd-pitch.msd-var-active::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent 30%, rgba(0,100,255,0.08) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: msd-var-scan 2s linear infinite;
  z-index: 13; pointer-events: none;
}

/* ── Legacy hidden ── */
#msd-detail-overlay .msd-action-strip { display: none !important; }
#msd-detail-overlay .msd-action-bar { display: none !important; }
#msd-detail-overlay .msd-momentum-bar { display: none !important; }
#msd-detail-overlay .msd-dark-overlay { display: none !important; }

/* ── Stats bars — center-outward fill ── */
#msd-detail-overlay .msd-stats-panel, #msd-detail-overlay .msd-timeline-feed { display: none !important; }
#msd-detail-overlay .msd-stats-panel-ref {
  padding: 10px 14px 8px; background: var(--pitch-bg);
  display: flex; flex-direction: column; gap: 8px;
}
.msd-stat-row { display: flex; align-items: center; gap: 0; }
.msd-stat-val {
  font-size: 12px; font-weight: 700; color: #e4e4e4; min-width: 32px;
  font-family: var(--mono, monospace);
}
.msd-stat-val-home { text-align: right; }
.msd-stat-val-away { text-align: left; }
.msd-stat-label {
  font-size: 10px; color: rgba(255,255,255,0.45); text-align: center;
  min-width: 90px; text-transform: uppercase; letter-spacing: 0.3px;
}
.msd-stat-track {
  flex: 1; height: 6px; background: rgba(255,255,255,0.06); border-radius: 3px;
  overflow: hidden; display: flex; position: relative;
}
.msd-stat-track-home { justify-content: flex-end; }
.msd-stat-track-away { justify-content: flex-start; }
.msd-stat-fill {
  height: 100%; border-radius: 3px; transition: width 600ms ease;
  min-width: 2px;
}
.msd-stat-fill-home { background: var(--home-color, #28f38c); }
.msd-stat-fill-away { background: var(--away-color, #ff5252); }

/* ── Timeline feed ── */
#msd-detail-overlay .msd-timeline-feed {
  max-height: 240px; overflow-y: auto; background: var(--pitch-bg);
  border-top: 1px solid rgba(255,255,255,0.06);
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent;
}
#msd-detail-overlay .msd-timeline-feed::-webkit-scrollbar { width: 4px; }
#msd-detail-overlay .msd-timeline-feed::-webkit-scrollbar-track { background: transparent; }
#msd-detail-overlay .msd-timeline-feed::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.msd-tl-item {
  display: flex; align-items: center; gap: 10px; padding: 7px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 200ms ease;
}
.msd-tl-item:hover { background: rgba(255,255,255,0.03); }
.msd-tl-min {
  font-size: 12px; font-weight: 700; color: var(--accent, #12e096);
  font-family: var(--mono, monospace); min-width: 28px; text-align: right;
}
.msd-tl-icon {
  width: 18px; height: 18px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0;
}
.msd-tl-icon svg { width: 14px; height: 14px; }
.msd-tl-desc {
  font-size: 12px; color: rgba(255,255,255,0.7); flex: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.msd-tl-team {
  font-size: 10px; color: rgba(255,255,255,0.35); text-transform: uppercase;
  letter-spacing: 0.3px; max-width: 60px; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}

/* ── Loading / Gaming widget ── */
.ds-loading { text-align: center; padding: 50px 20px; color: #666; font-size: 13px; }
.ds-loading-spinner {
  display: inline-block; width: 22px; height: 22px;
  border: 2px solid rgba(255,255,255,0.08); border-top-color: var(--green-accent);
  border-radius: 50%; animation: ds-spin 0.7s linear infinite; margin-bottom: 10px;
}
@keyframes ds-spin { to { transform: rotate(360deg); } }

.ds-gaming-widget {
  position: fixed; right: 15px; bottom: 15px; width: 50px; height: 50px;
  border-radius: 25px; background: #1f1f1f; border: 1px solid #00dea9;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  z-index: 35;
}
.ds-gaming-widget img { width: 30px; height: 30px; }

/* ── No matches message ── */
.ds-empty { text-align: center; padding: 60px 20px; color: #555; font-size: 14px; }
.ds-error { text-align: center; padding: 40px 20px; color: #c46464; font-size: 13px; }
.ds-error-retry {
  display: inline-block; margin-top: 12px; padding: 6px 18px; border-radius: 4px;
  background: var(--green-accent); color: #fff; font-size: 12px; font-weight: 600;
  cursor: pointer; border: none;
}

/* ── Search results counter ── */
.ds-search-results {
  padding: 8px 14px; font-size: 11px; color: #888;
  background: var(--bg-card); border-bottom: 1px solid var(--border-subtle);
  display: none;
}
.ds-search-results.visible { display: block; }
.ds-search-results strong { color: var(--green-tab); }

/* ── Team kit display ── */
.msd-team-kit {
  width: 36px; height: 44px; flex: 0 0 36px;
  background-size: contain; background-repeat: no-repeat; background-position: center;
}
.msd-team-kit img { width: 36px; height: 44px; object-fit: contain; }

/* ═══════════════════════════════════════════════════════════════════════════
   INTELLIGENCE BADGES & SIGNALS
   ═══════════════════════════════════════════════════════════════════════════ */
/* OPINTEL header badge */
.ds-intel-badge {
  display: flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 12px; font-size: 10px; font-weight: 700;
  margin-left: 8px; cursor: default; flex: 0 0 auto;
}
.ds-intel-badge.high { background: rgba(40,243,140,0.15); color: #28f38c; }
.ds-intel-badge.medium { background: rgba(255,178,64,0.15); color: #ffb240; }
.ds-intel-badge.low { background: rgba(196,100,100,0.15); color: #c46464; }
.ds-intel-dot { width: 6px; height: 6px; border-radius: 50%; }
.ds-intel-badge.high .ds-intel-dot { background: #28f38c; }
.ds-intel-badge.medium .ds-intel-dot { background: #ffb240; }
.ds-intel-badge.low .ds-intel-dot { background: #c46464; }

/* Market count badge on fixture row */
.ovm-mkt-count {
  flex: 0 0 auto; font-size: 10px; color: rgba(255,255,255,0.35);
  padding: 0 4px; align-self: center; white-space: nowrap;
  cursor: pointer;
}
.ovm-stats-icon {
  font-size: 9px; color: var(--green-bright); letter-spacing: -2px;
  cursor: pointer; opacity: 0.7; margin-left: 2px;
}
.ovm-stats-icon:hover { opacity: 1; }

/* Steam move indicator on fixtures */
.ovm-steam {
  position: absolute; top: 3px; right: 3px;
  font-size: 8px; font-weight: 700; padding: 1px 5px; border-radius: 3px;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.ovm-steam.hot { background: rgba(255,178,64,0.2); color: #ffb240; }
.ovm-Fixture { position: relative; }

/* Risk badge on fixture */
.ovm-risk {
  display: inline-block; width: 4px; height: 4px; border-radius: 50%;
  margin-left: 4px; vertical-align: middle;
}
.ovm-risk.high { background: #f44336; }
.ovm-risk.medium { background: #ffb240; }

/* Team color dot in detail header */
.msd-team-color {
  display: none;
}

/* Enhanced timeline icons */
.msd-tl-goal { color: #ffdf1b; }
.msd-tl-card-y { color: #f5c518; }
.msd-tl-card-r { color: #f44336; }
.msd-tl-corner { color: #888; }
.msd-tl-ht { color: #888; font-style: italic; }

/* Odds momentum bar — absolute positioned, never shifts layout */
.ovm-momentum-mini {
  position: absolute; bottom: 0; left: 0; height: 2px; z-index: 1;
  transition: width 0.5s ease; pointer-events: none;
}

/* Suspended market lock icon */
.msd-lock-icon {
  width: 14px; height: 14px; opacity: 0.4; margin-right: 4px; vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HOME PAGE
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══ HERO BANNER (bluebast style) ═══ */
.hp-hero {
  position: relative; overflow: hidden; cursor: pointer;
  background: linear-gradient(160deg, #003a2b 0%, #005641 40%, #003328 100%);
  padding: 24px 20px 20px; min-height: 160px;
}
.hp-hero-bg {
  position: absolute; right: -20px; top: -20px; width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(40,255,187,0.08) 0%, transparent 70%);
}
.hp-hero-badge {
  display: inline-block; padding: 3px 10px; border: 1px solid var(--green-bright);
  border-radius: 3px; color: var(--green-bright); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px;
}
.hp-hero-title {
  font-family: FuturaPTCond-BoldObl, FuturaPTCond-Bold, sans-serif;
  font-size: 26px; color: #fff; line-height: 1.1; text-transform: uppercase;
  margin-bottom: 8px; font-style: italic;
}
.hp-hero-sub { font-size: 11px; color: rgba(255,255,255,0.5); line-height: 1.4; }

/* ═══ CATEGORY ICONS ROW ═══ */
.hp-categories {
  display: flex; overflow-x: auto; background: var(--bg-card);
  padding: 12px 8px; gap: 4px; scrollbar-width: none;
  border-bottom: 1px solid var(--border-subtle);
}
.hp-categories::-webkit-scrollbar { display: none; }
.hp-cat {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 8px 12px; cursor: pointer; min-width: 70px;
}
.hp-cat-icon { font-size: 22px; }
.hp-cat-label {
  font-size: 9px; color: #888; text-transform: uppercase; white-space: nowrap;
  letter-spacing: 0.3px; text-align: center;
}

/* ═══ QUICK TIME FILTERS ═══ */
.hp-filters {
  display: flex; overflow-x: auto; background: var(--bg-card);
  padding: 0; scrollbar-width: none;
  border-bottom: 1px solid var(--border-subtle);
}
.hp-filters::-webkit-scrollbar { display: none; }
.hp-filter {
  flex: 0 0 auto; padding: 10px 16px; font-size: 10px; font-weight: 600;
  color: #888; cursor: pointer; white-space: nowrap; text-transform: uppercase;
  letter-spacing: 0.3px; border-bottom: 2px solid transparent;
  transition: color 0.15s;
}
.hp-filter:hover { color: #ccc; }
.hp-filter.active { color: #fff; border-bottom-color: var(--green-tab); }

/* ═══ BET PLUS SECTION ═══ */
.hp-betplus { padding: 14px 12px 8px; background: var(--bg-card); margin-bottom: 2px; }
.hp-betplus-hdr {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.hp-betplus-title {
  font-family: FuturaPTCond-Bold, sans-serif; font-size: 18px; color: #fff;
  text-transform: uppercase; letter-spacing: 1px;
}
.hp-betplus-arrow { color: var(--green-bright); font-size: 16px; cursor: pointer; }
.hp-betplus-cards-wrap { position: relative; }
.hp-betplus-cards { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; padding: 0 4px; }
.hp-betplus-cards::-webkit-scrollbar { display: none; }
.hp-bp-arrow { display: none; }
.hp-betplus-card {
  flex: 0 0 calc(50% - 4px); background: var(--bg-section); border-radius: 6px;
  padding: 12px; cursor: pointer; border: 1px solid var(--border-subtle);
  transition: border-color 0.15s;
}
.hp-betplus-card:hover { border-color: var(--green-bright); }
.hp-betplus-card {
  flex: 0 0 180px; background: linear-gradient(160deg, #2a3a32 0%, #1e2a24 100%);
  border-radius: 8px; padding: 14px 12px; cursor: pointer;
  border: 1px solid rgba(40,255,187,0.12); transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hp-betplus-card:hover { border-color: var(--green-bright); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.4); }
.hp-betplus-teams-row { margin-bottom: 8px; }
.hp-bp-team {
  display: flex; align-items: center; gap: 8px; font-size: 12px; color: #fff;
  padding: 3px 0; font-weight: 600;
}
.hp-bp-team .ovm-FixtureDetailsTwoWay_KitWrapper { width: 20px; height: 20px; flex: 0 0 20px; }
.hp-bp-team .ovm-FixtureDetailsTwoWay_KitWrapper img { width: 20px; height: 20px; }
.hp-bp-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 120px; }
.hp-bp-vs { font-size: 9px; color: rgba(255,255,255,0.3); padding: 0 0 0 28px; letter-spacing: 1px; }
.hp-bp-time { font-size: 10px; color: var(--green-bright); margin-bottom: 10px; font-weight: 600; }
.hp-bp-odds { display: flex; gap: 3px; }
.hp-bp-odd {
  flex: 1; text-align: center; background: rgba(80,80,80,0.5); border-radius: 4px;
  padding: 6px 2px; transition: background 0.15s;
}
.hp-bp-odd:hover { background: rgba(80,80,80,0.8); }
.hp-bp-lbl { font-size: 8px; color: rgba(255,255,255,0.4); margin-bottom: 2px; }
.hp-bp-val { font-size: 14px; font-weight: 700; color: var(--text-odds); }

/* ═══ FEATURED MATCH CARD ═══ */
.hp-featured {
  position: relative; overflow: hidden; cursor: pointer;
  background: linear-gradient(135deg, #1a3a2a 0%, #0a2a1a 100%);
  padding: 16px; margin-bottom: 2px;
}
.hp-featured-bg {
  position: absolute; right: 0; top: 0; width: 50%; height: 100%;
  background: url(/images/Soccer-Background-Narrow_ch.webp) center/cover;
  opacity: 0.1;
}
.hp-featured-content { position: relative; z-index: 1; }
.hp-featured-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  background: rgba(40,255,187,0.12); border-radius: 3px; color: var(--green-bright);
  font-size: 10px; font-weight: 700; text-transform: uppercase; margin-bottom: 8px;
}
.hp-featured-title {
  font-family: FuturaPTCond-Bold, sans-serif; font-size: 16px; color: #fff;
  text-transform: uppercase; margin-bottom: 4px;
}
.hp-featured-score {
  font-size: 28px; font-weight: 900; color: var(--green-bright); margin-bottom: 4px;
}
.hp-featured-info { font-size: 11px; color: var(--text-odds); font-weight: 700; margin-bottom: 4px; }
.hp-featured-sub { font-size: 10px; color: rgba(255,255,255,0.4); line-height: 1.4; text-transform: uppercase; }
.hp-featured-odds {
  display: flex; gap: 6px; margin-top: 10px;
}
.hp-fo {
  flex: 1; text-align: center; background: rgba(80,80,80,0.5); padding: 6px 4px;
  border-radius: 4px; font-size: 10px; color: #ccc;
}
.hp-fo b { color: var(--text-odds); font-size: 13px; display: block; margin-top: 2px; }
/* ═══ LIVE TANI CAROUSEL (reuses hp-betplus styles) ═══ */
.hp-betplus-live .hp-betplus-card { border-color: rgba(138,186,87,0.2); }
.hp-betplus-live .hp-betplus-card:hover { border-color: var(--green-live); }
.hp-lc-score {
  font-size: 14px; font-weight: 900; color: var(--text-odds);
  margin-left: auto; min-width: 14px; text-align: right;
}
.hp-bp-susp .hp-bp-val { color: rgba(255,255,255,0.2) !important; }
.hp-live-viewall {
  font-size: 11px; color: var(--green-live); cursor: pointer; font-weight: 700;
  display: flex; align-items: center; gap: 5px; text-transform: uppercase;
  letter-spacing: 0.3px; transition: color 0.15s;
}
.hp-live-viewall:hover { color: var(--green-bright); }

.hp-live-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px; background: rgba(138,186,87,0.1); cursor: pointer;
  font-size: 13px; font-weight: 700; color: var(--green-live);
  border-bottom: 1px solid var(--border-subtle); transition: background 0.15s;
}
.hp-live-btn:hover { background: rgba(138,186,87,0.2); }

/* Section Headers */
.hp-section { margin-bottom: 2px; }
.hp-section-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 8px; background: var(--bg-card);
}
.hp-section-title {
  font-family: FuturaPTCond-Bold, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 23px; line-height: 45px; text-transform: uppercase; color: #fff;
  letter-spacing: 0.3px;
}
.hp-section-link {
  font-size: 11px; color: var(--green-tab); cursor: pointer; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.3px;
}
.hp-section-link:hover { color: var(--green-bright); }

/* (Home page now uses standard ovm-Fixture rows — no custom layouts needed) */

/* Offers Section */
.hp-offers { background: transparent; padding: 0 10px 14px; }
.hp-offer-card {
  background: linear-gradient(135deg, #1a3a2e, #0a2a1e);
  border: 1px solid var(--green-bright); border-radius: 4px;
  padding: 16px 18px; margin: 10px 0; cursor: pointer;
  transition: border-color 0.2s;
  font-family: FuturaPTCond-Bold, -apple-system, BlinkMacSystemFont, sans-serif;
}
.hp-offer-card:hover { border-color: var(--green-bright); }
.hp-offer-title {
  font-family: FuturaPTCond-Bold, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 25px; text-transform: uppercase; color: #fff; margin-bottom: 4px;
  line-height: 26px;
}
.hp-offer-text { font-size: 11px; color: rgba(255,255,255,0.6); line-height: 1.4; }
.hp-offer-cta {
  display: inline-block; margin-top: 8px; padding: 5px 14px; border-radius: 3px;
  background: var(--green-tab); color: #000; font-size: 10px; font-weight: 700;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CLASSIFICATION RIBBON (sport tabs above content)
   ═══════════════════════════════════════════════════════════════════════════ */
/* Sport selector bar — bet365 style, site-colored background */
.ds-sport-bar {
  display: flex; background: var(--bg-card); padding: 0;
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto; scrollbar-width: none;
}
.ds-sport-bar::-webkit-scrollbar { display: none; }
.ds-sport-btn {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 14px 8px; cursor: pointer; color: #777;
  border-bottom: 2px solid transparent; transition: all 0.15s;
}
.ds-sport-btn:hover { color: #ccc; }
.ds-sport-btn.active { color: #fff; border-bottom-color: var(--green-tab); }
.ds-sport-btn span { font-size: 10px; white-space: nowrap; }
.ds-sport-btn .ds-sport-icon { width: 26px; height: 26px; opacity: 0.5; transition: opacity 0.15s; }
.ds-sport-btn.active .ds-sport-icon { opacity: 1; }
.ds-sport-btn:hover .ds-sport-icon { opacity: 0.7; }
.ds-sport-icon { width: 30px; height: 30px; opacity: 0.4; transition: opacity 0.15s; }
.ds-sport-btn.active .ds-sport-icon { opacity: 1; }
.ds-sport-btn:hover .ds-sport-icon { opacity: 0.7; }

/* Keep old ribbon classes for compatibility */
.ds-ribbon-item { display: none; }
.ds-ribbon-badge {
  font-size: 9px; background: var(--green-accent); color: #fff; border-radius: 8px;
  padding: 0 5px; min-width: 16px; text-align: center; font-weight: 700; line-height: 16px;
}
.ds-ribbon-icon {
  width: 16px; height: 16px; background-size: contain;
  background-repeat: no-repeat; background-position: center; opacity: 0.7;
}
.ds-ribbon-svg {
  width: 14px; height: 14px; flex: 0 0 14px; opacity: 0.6;
}
.ds-ribbon-item.active .ds-ribbon-svg { opacity: 1; }
.ds-ribbon-badge {
  font-size: 9px; background: var(--green-accent); color: #fff; border-radius: 8px;
  padding: 0 5px; min-width: 16px; text-align: center; font-weight: 700; line-height: 16px;
}

/* Live section header (Futboll + Rezultat Final dropdown) */
.ds-live-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
}
.ds-live-header-left {
  display: flex; align-items: center; gap: 8px;
}
.ds-live-header-sport {
  font-family: FuturaPTCond-Bold, sans-serif; font-size: 16px;
  font-style: italic; color: #fff; text-transform: uppercase;
}
.ds-live-header-stats {
  font-size: 12px; color: var(--green-bright); letter-spacing: -2px; cursor: pointer;
}
.ds-live-header-right {
  display: flex; align-items: center; gap: 6px; cursor: pointer;
}
.ds-live-header-market {
  font-size: 12px; color: #888;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BREADCRUMB NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════ */
.ds-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px; background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 11px; color: #888;
}
.ds-breadcrumb-item { cursor: pointer; transition: color 0.15s; }
.ds-breadcrumb-item:hover { color: var(--green-tab); }
.ds-breadcrumb-sep { color: #555; font-size: 9px; }
.ds-breadcrumb-current { color: #ccc; font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════════════
   COUNTRY FLAGS (inline)
   ═══════════════════════════════════════════════════════════════════════════ */
.ds-flag {
  display: inline-block; width: 16px; height: 12px; margin-right: 6px;
  background-size: contain; background-repeat: no-repeat; background-position: center;
  vertical-align: middle; border-radius: 1px; flex: 0 0 16px;
  opacity: 0.85;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */
.ds-footer {
  background: var(--bg-card); border-top: 1px solid var(--border-subtle);
  padding: 24px 20px 16px; margin-top: 2px;
}
.ds-footer-links {
  display: flex; flex-wrap: wrap; gap: 6px 20px;
  justify-content: center; margin-bottom: 14px;
}
.ds-footer-link {
  font-size: 11px; color: #888; cursor: pointer; transition: color 0.15s;
}
.ds-footer-link:hover { color: var(--green-tab); }
.ds-footer-divider { height: 1px; background: var(--border-subtle); margin: 12px 0; }
.ds-footer-badges {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-bottom: 12px; opacity: 0.5;
}
.ds-footer-badge { height: 24px; }
.ds-footer-copy {
  text-align: center; font-size: 10px; color: #555; line-height: 1.5;
}
.ds-footer-brand {
  text-align: center; margin-top: 8px;
}
.ds-footer-brand img { height: 18px; opacity: 0.4; }

/* ═══════════════════════════════════════════════════════════════════════════
   BETSLIP — bet365/swissplay style with bottom bar + custom keypad
   ═══════════════════════════════════════════════════════════════════════════ */

/* Desktop right sidebar panel */
.ds-betslip {
  width: 320px; flex: 0 0 320px; background: #1a1a1a;
  border-left: 1px solid var(--border-subtle); display: flex; flex-direction: column;
  overflow: hidden;
}
.bs-hdr {
  padding: 12px 14px; background: #222; display: flex; align-items: center;
  justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.bs-hdr-left { display: flex; align-items: center; gap: 6px; }
.bs-title { font-size: 13px; font-weight: 700; color: #fff; text-transform: uppercase; }
.bs-count {
  background: var(--green-tab); color: #000; font-size: 10px; font-weight: 700;
  padding: 1px 6px; border-radius: 10px;
}
.bs-clear { font-size: 11px; color: #888; cursor: pointer; }
.bs-clear:hover { color: #f44336; }

/* Selections */
.bs-items { flex: 1; overflow-y: auto; max-height: 35vh; }
.bs-empty {
  display: flex; align-items: center; justify-content: center;
  padding: 30px; text-align: center; color: #555; font-size: 12px;
}
.bs-item {
  padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.04);
  animation: bsSlideIn 0.2s ease;
}
@keyframes bsSlideIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }
@keyframes bsConfirmIn { from { opacity: 0; transform: scale(0.92) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes bsCheckPop { 0% { transform: scale(0); opacity: 0; } 50% { transform: scale(1.15); } 100% { transform: scale(1); opacity: 1; } }
@keyframes bsConfirmOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-6px); } }
.bs-confirm-wrap { animation: bsConfirmIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.bs-confirm-wrap.fade-out { animation: bsConfirmOut 0.3s ease forwards; }
.bs-confirm-check { animation: bsCheckPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both; }
.bs-place.processing { position: relative; color: transparent; }
.bs-place.processing::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px;
  margin: -10px 0 0 -10px; border: 2.5px solid rgba(0,0,0,0.15);
  border-top-color: #1a1a1a; border-radius: 50%; animation: ds-spin 0.6s linear infinite;
}
.bs-item-top { display: flex; align-items: flex-start; justify-content: space-between; }
.bs-item-info { flex: 1; min-width: 0; }
.bs-item-sel { font-size: 12px; font-weight: 700; color: #fff; }
.bs-item-match { font-size: 11px; color: #888; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-item-mkt { font-size: 10px; color: #666; margin-top: 1px; }
.bs-item-odds { font-size: 14px; font-weight: 800; color: var(--green-bright); margin-left: 10px; white-space: nowrap; }
.bs-item-rm {
  font-size: 18px; color: #555; cursor: pointer; margin-left: 6px; line-height: 1;
  transition: color 0.12s;
}
.bs-item-rm:hover { color: #f44336; }

/* Footer: stake + keypad + place bet */
.bs-foot {
  background: #222; border-top: 1px solid rgba(255,255,255,0.08);
  padding: 12px 14px;
}
.bs-odds-row {
  display: flex; justify-content: space-between; font-size: 12px; color: #aaa;
  margin-bottom: 8px;
}
.bs-odds-val { font-weight: 700; color: #fff; }

/* Stake display */
.bs-stake-area { margin-bottom: 8px; }
.bs-stake-lbl { font-size: 10px; color: #888; text-transform: uppercase; margin-bottom: 4px; letter-spacing: 0.5px; }
.bs-stake-box {
  background: rgba(255,255,255,0.05); border: 2px solid rgba(255,255,255,0.12);
  border-radius: 8px; padding: 10px 14px; display: flex; align-items: center;
  justify-content: space-between; cursor: text; transition: border-color 0.15s;
}
.bs-stake-box.active { border-color: var(--green-tab); }
.bs-stake-val { font-size: 20px; font-weight: 800; color: #fff; min-width: 40px; text-align: right; }
.bs-stake-cur { font-size: 12px; color: #888; margin-left: 6px; }
.bs-stake-back {
  background: none; border: none; color: #888; font-size: 18px; cursor: pointer; padding: 4px 8px;
}
.bs-stake-back:hover { color: #fff; }

/* Quick amount buttons */
.bs-quick {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-bottom: 8px;
}
.bs-quick-btn {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px; padding: 7px 0; color: #ccc; font-size: 11px; font-weight: 700;
  cursor: pointer; text-align: center; transition: all 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.bs-quick-btn:active { background: var(--green-tab); color: #000; border-color: var(--green-tab); }

/* Custom number keypad */
/* Desktop: show standard input, hide keypad + stake box */
.bs-stake-box { display: none; }
.fi-desktop { display: block !important; }
.bs-kp {
  display: none; /* shown on mobile only */
  grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 8px;
}
.bs-kp-btn {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px; padding: 14px 0; color: #fff; font-size: 20px; font-weight: 600;
  cursor: pointer; text-align: center; transition: background 0.08s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.bs-kp-btn:active { background: rgba(255,255,255,0.1); }
.bs-kp-btn.bs-kp-del { color: #f44336; font-size: 16px; }
.bs-kp-btn.bs-kp-clear { color: #888; font-size: 12px; }

/* Potential win + place bet */
.bs-win-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; font-size: 13px;
}
.bs-win-lbl { color: #888; }
.bs-win-val { color: var(--green-bright); font-weight: 800; font-size: 16px; }
.bs-place {
  width: 100%; padding: 14px; border: none; border-radius: 8px; cursor: pointer;
  background: linear-gradient(135deg, #26ffbe 0%, #8affab 100%);
  color: #1a1a1a; font-size: 14px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.5px; transition: opacity 0.15s;
}
.bs-place:hover { opacity: 0.92; }
.bs-place:disabled { opacity: 0.25; cursor: not-allowed; }

/* ═══ MOBILE BOTTOM BETSLIP BAR (always visible when selections > 0) ═══ */
.bs-bar {
  display: none; position: fixed; left: 0; right: 0;
  bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  z-index: 95; cursor: pointer;
  background: linear-gradient(135deg, #1a5c1f, #2e7d32);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.3);
  -webkit-tap-highlight-color: transparent;
  transform: translateY(100%); transition: transform 0.3s ease;
}
.bs-bar.visible { transform: translateY(0); }
.bs-bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
}
.bs-bar-left { display: flex; align-items: center; gap: 8px; }
.bs-bar-label { font-size: 13px; font-weight: 800; color: #fff; text-transform: uppercase; }
.bs-bar-cnt {
  background: rgba(255,255,255,0.2); color: #fff; font-size: 11px; font-weight: 700;
  padding: 2px 7px; border-radius: 10px;
}
.bs-bar-right { display: flex; align-items: center; gap: 12px; }
.bs-bar-odds { font-size: 14px; font-weight: 800; color: #c8e6c9; }
.bs-bar-arrow { color: rgba(255,255,255,0.7); font-size: 14px; transition: transform 0.3s; }

/* Highlighted odds (selected in betslip) — bet365-style solid highlight */
.ovm-ParticipantOddsOnly.selected {
  background: #1b5e20 !important;
  position: relative;
}
.ovm-ParticipantOddsOnly.selected .ovm-ParticipantOddsOnly_Odds {
  color: #fff !important;
  font-weight: 800 !important;
}
#msd-detail-overlay .msd-sel-odds.selected,
#msd-detail-overlay .msd-grid-cell.selected {
  background: #1b5e20 !important;
}
#msd-detail-overlay .msd-sel-odds.selected,
#msd-detail-overlay .msd-grid-cell.selected {
  color: #fff !important;
  font-weight: 800 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MY BETS PAGE
   ═══════════════════════════════════════════════════════════════════════════ */
.myb-header {
  display: flex; background: var(--bg-card); padding: 4px; gap: 4px;
  border-bottom: 1px solid var(--border-subtle); margin: 0 0 8px;
}
.myb-tab {
  flex: 1; padding: 10px 8px; font-size: 12px; font-weight: 600; color: #888;
  cursor: pointer; border-radius: 6px; text-align: center;
  transition: all 0.15s; border: 1px solid transparent;
}
.myb-tab:hover { color: #ccc; background: rgba(255,255,255,0.03); }
.myb-tab.active { color: #8aba57; background: rgba(138,186,87,0.1); border-color: rgba(138,186,87,0.25); }
.myb-empty {
  text-align: center; padding: 60px 20px; color: #555; font-size: 13px;
}
.myb-bet-card {
  margin: 8px 10px; background: var(--pod-gradient);
  border-radius: 6px; overflow: hidden;
}
.myb-bet-hdr {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.myb-bet-type { font-size: 11px; font-weight: 700; color: var(--green-bright); text-transform: uppercase; }
.myb-bet-status { font-size: 10px; padding: 2px 8px; border-radius: 3px; font-weight: 600; }
.myb-bet-status.open { background: rgba(40,255,187,0.15); color: var(--green-bright); }
.myb-bet-status.won { background: rgba(46,114,92,0.5); color: #4caf50; }
.myb-bet-status.lost { background: rgba(196,100,100,0.3); color: #f44336; }
.myb-bet-sel {
  padding: 8px 14px; border-bottom: 1px solid rgba(255,255,255,0.03);
}
.myb-bet-sel-name { font-size: 12px; font-weight: 600; color: #e0e0e0; }
.myb-bet-sel-match { font-size: 11px; color: #888; margin-top: 2px; }
.myb-bet-sel-odds { float: right; color: var(--text-odds); font-weight: 700; font-size: 12px; }
.myb-bet-foot {
  display: flex; justify-content: space-between; padding: 10px 14px;
  font-size: 12px; color: #aaa;
}
.myb-bet-foot-val { font-weight: 700; color: #fff; }
.myb-cashout {
  display: block; margin: 0 14px 10px; padding: 8px; border-radius: 4px; border: none;
  background: #158361; color: #fff; font-size: 12px; font-weight: 600;
  text-align: center; cursor: pointer; width: calc(100% - 28px);
}
.myb-cashout:hover { background: #1a9b72; }

/* ═══════════════════════════════════════════════════════════════════════════
   LOGIN MODAL
   ═══════════════════════════════════════════════════════════════════════════ */
.ds-login-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7); z-index: 200;
  justify-content: center; align-items: center;
}
.ds-login-overlay.open { display: flex; }
.ds-login-box {
  background: var(--bg-card); border-radius: 8px; width: 340px; max-width: 90vw;
  padding: 28px 24px;
}
.ds-login-title {
  font-size: 18px; font-weight: 700; color: #fff; text-align: center; margin-bottom: 20px;
}
.ds-login-field { margin-bottom: 14px; }
.ds-login-label { font-size: 11px; color: #888; margin-bottom: 4px; display: block; }
.ds-login-input {
  width: 100%; padding: 10px 12px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06); color: #fff; font-size: 13px; outline: none;
}
.ds-login-input:focus { border-color: var(--green-tab); }
.ds-login-btn {
  width: 100%; padding: 12px; border: none; border-radius: 5px; margin-top: 6px;
  background: var(--green-accent); color: #fff; font-size: 14px; font-weight: 700;
  cursor: pointer; text-transform: uppercase;
}
.ds-login-btn:hover { background: #1aaa7a; }
.ds-login-close {
  position: absolute; top: 12px; right: 16px; color: #666; font-size: 20px;
  cursor: pointer;
}
.ds-login-forgot {
  text-align: center; margin-top: 12px; font-size: 11px; color: #666; cursor: pointer;
}
.ds-login-forgot:hover { color: var(--green-tab); }

/* ═══════════════════════════════════════════════════════════════════════════
   MEMBER MENU (header right)
   ═══════════════════════════════════════════════════════════════════════════ */
.ds-member-area {
  display: flex; align-items: center; gap: 8px; margin-left: auto; flex: 0 0 auto;
}
.ds-btn-login, .ds-btn-join {
  padding: 6px 14px; border-radius: 3px; font-size: 11px; font-weight: 600;
  cursor: pointer; border: none; text-transform: uppercase;
}
.ds-btn-login { background: transparent; border: 1px solid rgba(255,255,255,0.25); color: #fff; border-radius: 3px; }
.ds-btn-login:hover { border-color: #fff; }
.ds-btn-join { background: transparent; border: 1px solid #c4a035; color: #c4a035; border-radius: 3px; }
.ds-btn-join:hover { background: rgba(196,160,53,0.1); }

/* ═══ PROFILE DROPDOWN ═══ */
.prof-drop {
  display: none; position: absolute; top: 100%; right: 0; margin-top: 4px;
  background: #1e1e1e; border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; min-width: 240px; max-width: calc(100vw - 20px); z-index: 200;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  animation: profFade 0.15s ease;
  overflow: hidden;
}
.prof-drop.open { display: block; }
@keyframes profFade { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.prof-hdr {
  padding: 16px; border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; gap: 12px;
}
.prof-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(138,186,87,0.15);
  display: flex; align-items: center; justify-content: center; flex: 0 0 40px;
}
.prof-avatar svg { width: 20px; height: 20px; color: var(--green-tab); }
.prof-name { font-size: 14px; font-weight: 700; color: #fff; }
.prof-role { font-size: 11px; color: #888; margin-top: 1px; }
.prof-bal {
  padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}
.prof-bal-val { font-size: 20px; font-weight: 800; color: var(--green-bright); }
.prof-bal-lbl { font-size: 10px; color: #888; text-transform: uppercase; margin-top: 2px; letter-spacing: 0.5px; }
.prof-menu { padding: 6px 0; }
.prof-menu-item {
  padding: 8px 12px; color: #ccc; font-size: 12px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.prof-menu-item:active { background: rgba(255,255,255,0.04); }
.pd-row {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  color: #ccc; font-size: 12px; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background 0.1s;
}
.pd-row:active { background: rgba(255,255,255,0.04); }
.pd-chip {
  flex: 1; text-align: center; padding: 6px 0; font-size: 10px; font-weight: 700;
  color: #888; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px; cursor: pointer; transition: all 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.pd-chip:active { background: #8aba57; color: #000; border-color: #8aba57; }
.prof-menu-item svg { width: 18px; height: 18px; color: #888; flex: 0 0 18px; }
.prof-menu-item.danger { color: #f44336; }
.prof-menu-item.danger svg { color: #f44336; }
.prof-sep { height: 1px; background: rgba(255,255,255,0.06); margin: 4px 0; }
.prof-overlay {
  display: none; position: fixed; inset: 0; z-index: 199;
}
.prof-overlay.open { display: block; }

/* ═══ TOAST NOTIFICATIONS ═══ */
.toast-container {
  position: fixed; top: 60px; right: 16px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px; pointer-events: none;
}
.toast {
  background: #1e1e1e; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
  padding: 12px 16px; min-width: 280px; max-width: 360px; box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  display: flex; align-items: center; gap: 10px; pointer-events: auto;
  animation: toastIn 0.3s ease; font-size: 13px; color: #ccc;
}
.toast.out { animation: toastOut 0.3s ease forwards; }
.toast-icon { font-size: 18px; flex: 0 0 24px; text-align: center; }
.toast-msg { flex: 1; }
.toast-ok { border-left: 3px solid #8aba57; }
.toast-ok .toast-icon { color: #8aba57; }
.toast-err { border-left: 3px solid #f44336; }
.toast-err .toast-icon { color: #f44336; }
.toast-warn { border-left: 3px solid #e3b341; }
.toast-warn .toast-icon { color: #e3b341; }
.toast-info { border-left: 3px solid #58a6ff; }
.toast-info .toast-icon { color: #58a6ff; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }
@media(max-width:784px){ .toast-container { top: auto; bottom: 70px; right: 8px; left: 8px; } .toast { min-width: 0; } }

/* ═══ PLAYER SETTINGS PAGE ═══ */
.set-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: 8px; margin-bottom: 12px; overflow: hidden;
}
.set-card-hdr {
  padding: 14px 16px; border-bottom: 1px solid var(--border-subtle);
  font-size: 13px; font-weight: 700; color: #fff;
}
.set-card-body { padding: 16px; }
.set-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.set-row:last-child { border-bottom: none; }
.set-row-label { font-size: 13px; color: #ccc; }
.set-row-val { font-size: 13px; color: var(--green-bright); font-weight: 600; }
.set-row-action {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px; padding: 6px 14px; color: #ccc; font-size: 12px;
  cursor: pointer; font-weight: 600;
}
.set-row-action:hover { border-color: var(--green-tab); color: var(--green-tab); }
.set-input {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px; padding: 10px 14px; color: #fff; font-size: 13px;
  width: 100%; margin-bottom: 10px; outline: none;
}
.set-input:focus { border-color: var(--green-tab); }
.set-btn {
  background: var(--green-tab); color: #000; border: none; border-radius: 6px;
  padding: 10px 20px; font-size: 13px; font-weight: 700; cursor: pointer;
  width: 100%;
}
.set-btn:hover { filter: brightness(1.1); }
.set-msg { font-size: 12px; padding: 8px; border-radius: 4px; margin-bottom: 10px; }
.set-avatar {
  width: 64px; height: 64px; border-radius: 50%; background: rgba(138,186,87,0.12);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px;
}
.set-avatar svg { width: 32px; height: 32px; color: var(--green-tab); }
.set-name { text-align: center; font-size: 16px; font-weight: 700; color: #fff; }
.set-role { text-align: center; font-size: 12px; color: #888; margin-top: 2px; }
.set-balance-big { text-align: center; font-size: 28px; font-weight: 900; color: var(--green-bright); margin: 16px 0 4px; }
.set-balance-label { text-align: center; font-size: 10px; color: #888; text-transform: uppercase; letter-spacing: 1px; }

/* ═══════════════════════════════════════════════════════════════════════════
   MATCH STATS (in detail view)
   ═══════════════════════════════════════════════════════════════════════════ */
.msd-stats-section { padding: 8px 10px; }
.msd-stat-row {
  display: flex; align-items: center; padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.msd-stat-row:last-child { border-bottom: none; }
.msd-stat-val { flex: 0 0 36px; text-align: center; font-size: 12px; font-weight: 700; color: #fff; }
.msd-stat-label { flex: 1; text-align: center; font-size: 11px; color: #999; }
.msd-stat-bar-wrap {
  flex: 0 0 80px; height: 4px; background: rgba(255,255,255,0.08);
  border-radius: 2px; overflow: hidden;
}
.msd-stat-bar-wrap.home { margin-right: 8px; }
.msd-stat-bar-wrap.away { margin-left: 8px; }
.msd-stat-bar { height: 100%; border-radius: 2px; transition: width 0.5s; }
.msd-stat-bar.home { background: var(--text-odds); float: right; }
.msd-stat-bar.away { background: #3ea8ff; }

/* Momentum indicator */
.msd-momentum { padding: 8px 14px; }
.msd-momentum-bar {
  height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px;
  overflow: hidden; display: flex;
}
.msd-momentum-home { background: var(--text-odds); transition: width 0.5s; }
.msd-momentum-away { background: #3ea8ff; transition: width 0.5s; }
.msd-momentum-labels {
  display: flex; justify-content: space-between; font-size: 10px; color: #666; margin-top: 4px;
}

/* Incident feed */
.msd-incidents { padding: 0 10px 8px; }
.msd-incident {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 11px;
}
.msd-incident:last-child { border-bottom: none; }
.msd-incident-min { color: var(--green-live); font-weight: 700; flex: 0 0 28px; }
.msd-incident-icon { flex: 0 0 16px; text-align: center; }
.msd-incident-text { flex: 1; color: #ccc; }
.msd-incident-team { color: #888; font-size: 10px; }

/* ═══════════════════════════════════════════════════════════════════════════
   SPORT PAGE (dedicated sport view — Futboll, Basketball, etc.)
   ═══════════════════════════════════════════════════════════════════════════ */
.sp-header {
  padding: 16px 16px 12px;
  background: var(--bg-card);
}
.sp-title {
  font-family: FuturaPTCond-BoldObl, FuturaPTCond-Bold, -apple-system, sans-serif;
  font-size: 25px; font-style: oblique; font-weight: 700;
  text-transform: uppercase; color: #fff; line-height: 40px;
  letter-spacing: 0.3px;
}
.sp-subtitle {
  font-size: 11px; color: #888; margin-top: 2px;
}

/* ═══ TOP NDESHJET cards (bluebast style) ═══ */
.sp-top-section { padding: 14px 12px; background: var(--bg-card); margin-bottom: 2px; }
.sp-top-title {
  font-family: FuturaPTCond-Bold, sans-serif; font-size: 16px; color: #fff;
  text-transform: uppercase; margin-bottom: 10px; letter-spacing: 0.5px;
}
.sp-top-cards { display: flex; gap: 8px; }
.sp-top-card {
  flex: 1; background: var(--bg-section); border-radius: 6px; padding: 12px;
  cursor: pointer; border: 1px solid var(--border-subtle); transition: border-color 0.15s;
}
.sp-top-card:hover { border-color: var(--green-bright); }
.sp-top-card-teams { margin-bottom: 6px; }
.sp-top-card-team {
  display: flex; align-items: center; gap: 6px; font-size: 11px; color: #ccc;
  padding: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sp-top-card-team .ovm-FixtureDetailsTwoWay_KitWrapper { width: 13px; height: 13px; flex: 0 0 13px; }
.sp-top-card-team .ovm-FixtureDetailsTwoWay_KitWrapper img { width: 13px; height: 13px; }
.sp-top-card-time { font-size: 9px; color: #888; margin-bottom: 6px; text-transform: uppercase; }
.sp-top-card-odds { display: flex; gap: 4px; }
.sp-top-card-col { flex: 1; text-align: center; }
.sp-top-card-lbl { font-size: 9px; color: #888; margin-bottom: 2px; }
.sp-top-card-val { font-size: 13px; font-weight: 700; color: var(--text-odds); }

/* ═══ FILTRO NDESHJET section ═══ */
.sp-filtro {
  background: var(--bg-card); padding: 12px 12px 0; margin-bottom: 2px;
  border-bottom: 1px solid var(--border-subtle);
}
.sp-filtro-title {
  font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 8px;
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* ═══ ME TE MIRAT + LEAGUES list ═══ */
.sp-leagues-section { background: var(--bg-card); padding: 14px 0; }
.sp-leagues-title {
  font-family: FuturaPTCond-BoldObl, sans-serif; font-size: 18px; color: #fff;
  font-style: italic; padding: 0 14px 8px; text-transform: uppercase;
}
.sp-leagues-subtitle {
  font-size: 10px; color: #888; padding: 0 14px 10px; letter-spacing: 1px;
  text-transform: uppercase; border-bottom: 1px solid var(--border-subtle);
}
.sp-league-link {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04); cursor: pointer;
  transition: background 0.15s; font-size: 13px; color: #ccc;
}
.sp-league-link:hover { background: rgba(255,255,255,0.03); }
.sp-league-link-name { flex: 1; }
.sp-league-link-count { color: #888; font-size: 11px; margin-right: 6px; }

/* Time + league filters */
.sp-filters {
  display: flex; align-items: center; gap: 0; padding: 0;
  background: #1e1e1e; border-bottom: 1px solid var(--border-subtle);
}
.sp-filter-tab {
  padding: 10px 16px; font-size: 12px; font-weight: 600; color: #888;
  cursor: pointer; border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s; white-space: nowrap;
}
.sp-filter-tab:hover { color: #ccc; }
.sp-filter-tab.active { color: #fff; border-bottom-color: var(--green-tab); }
.sp-filter-sep {
  width: 1px; height: 20px; background: rgba(255,255,255,0.1); flex: 0 0 1px;
}

/* Live section on sport page */
.sp-live-section { margin: 10px; }
.sp-live-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; background: rgba(138,186,87,0.15); border-radius: 4px;
  font-size: 12px; font-weight: 700; color: var(--green-live); margin-bottom: 8px;
}

/* League group header on sport page */
.sp-league-hdr {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: transparent;
  border-top: 1px solid var(--border-subtle);
  cursor: pointer; user-select: none;
}
.sp-league-hdr:first-child { border-top: none; }
.sp-league-name {
  font-size: 13px; font-weight: 600; color: var(--green-tab); flex: 1;
}
.sp-league-count {
  font-size: 10px; color: #888; background: rgba(255,255,255,0.06);
  padding: 1px 6px; border-radius: 8px;
}
.sp-league-chevron {
  transition: transform 0.2s; flex: 0 0 auto;
}
.sp-league-chevron.collapsed { transform: rotate(-90deg); }

/* Column headers */
.sp-col-hdrs {
  display: flex; padding: 0 10px; background: #3a4842;
}
.sp-col-hdr-teams { flex: 1; padding: 6px 10px; font-size: 11px; color: #fff; font-weight: 600; }
.sp-col-hdr-odds {
  display: flex; flex: 0 0 168px;
}
.sp-col-hdr-label {
  flex: 1; text-align: center; line-height: 30px; color: #fff;
  font-size: 11px; font-weight: 600;
}

/* Upcoming fixtures container */
.sp-upcoming { margin: 10px; border-radius: 4px; overflow: hidden; }
.sp-upcoming-league {
  background: var(--league-gradient); border-radius: 4px; margin-bottom: 8px; overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — BETSLIP
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .ds-betslip { display: none; }
}
/* Mobile betslip bar + keypad visibility */
@media (max-width: 1100px) {
  .bs-bar { display: block; }
  .bs-kp { display: grid; }
  .bs-stake-box { display: flex !important; }
  .fi-desktop { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE BOTTOM NAVIGATION BAR (bluebast style)
   ═══════════════════════════════════════════════════════════════════════════ */
.ds-bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: #1e1e1e; border-top: 1px solid rgba(255,255,255,0.1);
  z-index: 100; height: 56px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.ds-bottom-nav-inner {
  display: flex; align-items: stretch; height: 56px;
}
.ds-btm-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: #888; font-size: 9px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.3px; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: color 0.15s; position: relative; user-select: none;
}
.ds-btm-item:active { opacity: 0.7; }
.ds-btm-item.active { color: var(--green-bright); }
.ds-btm-icon {
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.ds-btm-icon svg { width: 20px; height: 20px; }
.ds-btm-label { line-height: 1; }
.ds-btm-live-dot {
  position: absolute; top: 6px; right: calc(50% - 18px);
  width: 5px; height: 5px; border-radius: 50%; background: var(--green-live);
  animation: pulse-dot 1.5s infinite;
}
.ds-btm-badge {
  position: absolute; top: 4px; right: calc(50% - 20px);
  background: #f44336; color: #fff; font-size: 9px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE SEARCH TOGGLE (replaces hidden search on mobile)
   ═══════════════════════════════════════════════════════════════════════════ */
.ds-search-toggle {
  display: none; padding: 8px; cursor: pointer; color: #888;
  font-size: 16px; flex: 0 0 auto; -webkit-tap-highlight-color: transparent;
}
.ds-mobile-search-bar {
  display: none; position: fixed; top: 0; left: 0; right: 0;
  background: #1e1e1e; z-index: 110; padding: 8px 12px;
  align-items: center; gap: 8px; height: 50px;
}
.ds-mobile-search-bar.open { display: flex; }
.ds-mobile-search-bar input {
  flex: 1; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px; padding: 8px 12px; color: #fff; font-size: 14px; outline: none;
}
.ds-mobile-search-bar input:focus { border-color: var(--green-tab); }
.ds-mobile-search-close {
  color: #888; font-size: 14px; cursor: pointer; padding: 8px;
  -webkit-tap-highlight-color: transparent;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE BETSLIP — Bottom Sheet
   ═══════════════════════════════════════════════════════════════════════════ */
.ds-bs-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 150;
}
.ds-bs-overlay.open { display: block; }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (784px – 1100px)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 785px) and (max-width: 1100px) {
  .ds-sidebar { width: 180px; flex: 0 0 180px; }
  .ds-sb-item { padding: 7px 10px; font-size: 12px; }
  .ds-sb-icon { width: 14px; height: 14px; flex: 0 0 18px; }
  .hp-spotlight { min-height: 120px; padding: 16px 20px; }
  .hp-spotlight-title { font-size: 20px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤784px) — FULL OVERHAUL
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 784px) {
  /* ── Bottom nav visible ── */
  .ds-bottom-nav { display: block; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }

  /* ── Header — compact single row ── */
  .ds-header {
    height: 50px; flex-wrap: nowrap; align-content: center;
    background: var(--header-gradient);
    padding: 0 8px;
    padding-top: env(safe-area-inset-top, 0px);
  }
  .ds-header-logo { height: 22px; margin-right: 8px; margin-bottom: 0; }
  .ds-hamburger { display: block; font-size: 18px; padding: 6px; margin-right: 2px; }

  /* ── Top nav hidden on mobile (moved to bottom nav) ── */
  .ds-nav { display: none; }

  /* ── Search toggle visible ── */
  .ds-search-wrap { display: none; }
  .ds-search-toggle { display: block; }

  /* ── Member area compact ── */
  .ds-member-area { gap: 4px; }
  .ds-btn-login, .ds-btn-join { padding: 5px 10px; font-size: 10px; }

  /* ── Intel badge compact ── */
  .ds-intel-badge { padding: 2px 6px; font-size: 9px; margin-left: 4px; }

  /* ── Sidebar — slides from LEFT ── */
  .ds-sidebar {
    position: fixed; top: 0; left: -300px; width: 280px;
    height: 100vh; height: 100dvh;
    z-index: 105; transition: left 0.3s ease;
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    -webkit-overflow-scrolling: touch;
    box-shadow: 4px 0 20px rgba(0,0,0,0.5);
  }
  .ds-sidebar.open { left: 0; }
  .ds-sidebar-overlay { top: 0; z-index: 104; }
  .ds-sidebar-overlay.open { display: block; }
  .ds-container { min-height: calc(100vh - 50px); min-height: calc(100dvh - 50px); }

  /* ── Main content — full width ── */
  .ds-main { background-position: 0 -50px; }

  /* ── Profile dropdown — right-aligned, compact width ── */
  .prof-drop {
    position: fixed !important; top: 50px !important; right: 6px !important;
    left: auto !important; width: 200px !important; min-width: 0 !important;
    border-radius: 8px; margin-top: 0 !important;
  }
  .prof-menu-item { padding: 10px 12px; font-size: 13px; }

  /* ── Betslip bar — positioned above bottom nav ── */

  /* ── Gaming widget — repositioned above bottom nav ── */
  .ds-gaming-widget {
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    right: 15px;
  }

  /* ── Betslip — bottom sheet on mobile ── */
  .ds-betslip {
    display: none; position: fixed; bottom: 0; left: 0; right: 0;
    width: 100%; flex: none; z-index: 160;
    max-height: 90vh; max-height: 90dvh;
    border-radius: 14px 14px 0 0;
    border-left: none; border-top: 1px solid rgba(255,255,255,0.15);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
  }
  .ds-betslip.mobile-open {
    display: flex; transform: translateY(0);
  }
  .bs-hdr {
    border-radius: 14px 14px 0 0; position: relative;
    padding: 18px 14px 12px;
  }
  .bs-hdr::before {
    content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    width: 36px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.2);
  }

  /* ── Detail view — full screen ── */
  #msd-detail-overlay {
    position: fixed; top: 50px; left: 0; right: 0;
    bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    z-index: 50; overflow-y: auto; -webkit-overflow-scrolling: touch;
  }

  /* ── Fixture rows — compact but proportional on mobile ── */
  .ovm-OverviewView_Classification { margin: 6px 6px 0; }
  .ovm-Fixture { min-height: 0; }
  .ovm-FixtureDetailsTwoWay { padding: 6px 8px; min-height: 0; }
  .ovm-FixtureDetailsTwoWay_TeamName { font-size: 12px; }
  .ovm-FixtureDetailsTwoWay_KitWrapper { flex: 0 0 13px; width: 13px; height: 13px; margin-right: 6px; }
  .ovm-StandardScores_TeamOne, .ovm-StandardScores_TeamTwo { line-height: 17px; font-size: 12px; min-width: 18px; }
  .ovm-StandardScores_TeamOne { border-bottom-width: 3px; }
  .ovm-MarketGroup { flex: 0 0 144px; }
  .ovm-CompetitionHeader_Labels { flex: 0 0 144px; }
  .ovm-ParticipantOddsOnly { font-size: 12px; }
  .ovm-ParticipantOddsOnly_Odds { font-size: 12px; }
  .ovm-CompetitionHeader { padding: 6px 10px; font-size: 11px; }
  .ovm-CompetitionHeader_Label { font-size: 9px; }
  .ovm-momentum-mini { display: none; }
  .ovm-steam { font-size: 7px; padding: 0 3px; top: 1px; right: 1px; }

  /* ── Home page — mobile optimizations ── */
  .hp-spotlight { min-height: 110px; padding: 16px; }
  .hp-spotlight-title { font-size: 20px; line-height: 22px; }
  .hp-spotlight-btn { padding: 5px 14px; font-size: 10px; }
  .hp-section-hdr { padding: 12px 12px 6px; }
  .hp-section-title { font-size: 20px; line-height: 36px; }
  .hp-popular-scroll { padding: 0 10px 10px; gap: 8px; }
  .hp-offer-card { padding: 14px; }
  .hp-offer-title { font-size: 20px; }

  /* ── Ribbon — horizontal scroll ── */
  .ds-ribbon { padding: 0 4px; }
  .ds-ribbon-item { padding: 8px 12px; font-size: 10px; }

  /* ── Sport page ── */
  .sp-header { padding: 12px 12px 8px; }
  .sp-title { font-size: 20px; line-height: 32px; }
  .sp-comp-link { flex: 0 0 50%; padding: 8px 10px; font-size: 11px; }
  .sp-filter-tab { padding: 8px 12px; font-size: 11px; }
  .sp-col-hdr-odds { flex: 0 0 144px; }
  .sp-col-hdr-label { font-size: 10px; }

  /* ── Match detail — compact header ── */
  #msd-detail-overlay .msd-breadcrumb { padding: 8px 12px 4px; }
  #msd-detail-overlay .msd-score-row { padding: 4px 12px; gap: 6px; }
  #msd-detail-overlay .msd-team-name { font-size: 14px; }
  #msd-detail-overlay .msd-score-num { font-size: 26px; }
  #msd-detail-overlay .msd-market-grid { padding: 6px 6px; }
  #msd-detail-overlay .msd-mkt-hdr { padding: 10px 12px; }
  #msd-detail-overlay .msd-sel-name { padding: 6px 8px; }
  .msd-team-kit { width: 28px; height: 34px; flex: 0 0 28px; }
  .msd-team-kit img { width: 28px; height: 34px; }
  .msd-live-stats { padding: 6px 12px; }

  /* ── My Bets — compact ── */
  .myb-bet-card { margin: 6px 6px; }

  /* ── Footer — compact ── */
  .ds-footer { padding: 20px 14px 14px; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .ds-footer-links { gap: 4px 14px; }
  .ds-footer-link { font-size: 10px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — SMALL PHONE (≤480px)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  /* Fixture rows — tighter on small phones */
  .ovm-FixtureDetailsTwoWay { padding: 4px 6px; }
  .ovm-FixtureDetailsTwoWay_TeamName { font-size: 11px; line-height: 18px; max-width: 90px; }
  .ovm-FixtureDetailsTwoWay_Timer { font-size: 9px; }
  .ovm-FixtureDetailsTwoWay_InfoRow { padding-top: 2px; font-size: 9px; }
  .ovm-FixtureDetailsTwoWay_KitWrapper { flex: 0 0 12px; width: 12px; height: 12px; margin-right: 4px; }
  .ovm-StandardScores_TeamOne, .ovm-StandardScores_TeamTwo { font-size: 11px; line-height: 15px; min-width: 16px; }
  .ovm-StandardScores_TeamOne { border-bottom-width: 3px; }
  .ovm-MarketGroup { flex: 0 0 120px; }
  .ovm-CompetitionHeader_Labels { flex: 0 0 120px; }
  .ovm-ParticipantOddsOnly_Odds { font-size: 11px; }
  .ovm-CompetitionHeader_Label { font-size: 9px; }
  .ovm-CompetitionHeader { padding: 5px 8px; font-size: 10px; }
  /* Home page rows */

  /* Detail view compact */
  #msd-detail-overlay .msd-team-name { font-size: 13px; }
  #msd-detail-overlay .msd-score-num { font-size: 24px; }
  #msd-detail-overlay .msd-sel-odds { flex: 0 0 60px; font-size: 11px; }
  #msd-detail-overlay .msd-sel-name { font-size: 11px; padding: 7px 8px; }
  #msd-detail-overlay .msd-mkt-hdr-text { font-size: 12px; }
  #msd-detail-overlay .msd-tab { padding: 8px 10px; font-size: 11px; }
  #msd-detail-overlay .msd-cs-grid { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
  #msd-detail-overlay .msd-hcp-label { flex: 0 0 50px; font-size: 11px; }
  #msd-detail-overlay .msd-col-hdr { font-size: 10px; }
  #msd-detail-overlay .msd-grid-cell { font-size: 11px; min-height: 36px; }
  #msd-detail-overlay .msd-mkt-group { margin: 8px 6px 0; }

  /* Header even more compact */
  .ds-header { padding: 0 6px; }
  .ds-header-logo { height: 20px; }
  .ds-btn-login { padding: 4px 8px; font-size: 9px; }
  .ds-btn-join { padding: 4px 8px; font-size: 9px; }

  /* Home page cards smaller */
  .hp-spotlight { min-height: 90px; padding: 12px; }
  .hp-spotlight-title { font-size: 17px; line-height: 19px; }
  .hp-spotlight-sub { font-size: 11px; }

  /* Stats compact */
  .msd-stat-row { gap: 4px; font-size: 10px; }
  .msd-stat-val { width: 20px; font-size: 11px; }
  .msd-stat-bar-wrap { height: 14px; }
  .msd-stat-label { font-size: 9px; }

  /* Sub-tabs: shrink for mobile */
  #msd-detail-overlay .msd-subtabs { gap: 2px; padding: 4px 6px; flex-wrap: nowrap; overflow-x: auto; }
  #msd-detail-overlay .msd-subtab { padding: 6px 8px; font-size: 10px; white-space: nowrap; flex-shrink: 0; }
  #msd-detail-overlay .msd-subtab svg { width: 10px; height: 10px; margin-right: 2px; }

  /* Tracker/Stream/Stats iframe — proper mobile sizing */
  #msd-detail-overlay .msd-pitch-wrap { margin: 0; }
  #msd-detail-overlay .msd-pitch { border-radius: 4px; }
  #msd-detail-overlay .msd-pitch iframe { min-height: 120px; }

  /* Bottom nav compact */
  .ds-btm-item { font-size: 8px; }
  .ds-btm-icon { font-size: 16px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — VERY SMALL PHONE (≤360px)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 360px) {
  /* Fixture rows — absolute minimum */
  .ovm-FixtureDetailsTwoWay_TeamName { max-width: 70px; font-size: 10px; line-height: 16px; }
  .ovm-FixtureDetailsTwoWay { padding: 3px 5px; }
  .ovm-FixtureDetailsTwoWay_KitWrapper { flex: 0 0 10px; width: 10px; height: 10px; margin-right: 3px; }
  .ovm-FixtureDetailsTwoWay_Timer { font-size: 8px; }
  .ovm-FixtureDetailsTwoWay_InfoRow { padding-top: 1px; font-size: 8px; }
  .ovm-MarketGroup { flex: 0 0 102px; }
  .ovm-CompetitionHeader_Labels { flex: 0 0 102px; }
  .ovm-ParticipantOddsOnly { padding: 0 1px; }
  .ovm-ParticipantOddsOnly_Odds { font-size: 10px; }
  .ovm-CompetitionHeader { padding: 5px 8px; font-size: 10px; }
  .ovm-StandardScores_TeamOne, .ovm-StandardScores_TeamTwo { font-size: 10px; line-height: 16px; min-width: 15px; }

  #msd-detail-overlay .msd-team-name { font-size: 12px; }
  #msd-detail-overlay .msd-score-num { font-size: 22px; }
  #msd-detail-overlay .msd-sel-odds { flex: 0 0 52px; }
  #msd-detail-overlay .msd-cs-grid { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); }

  .ds-header-logo { height: 18px; }
  .ds-btn-join { display: none; }

  .ds-btm-item { font-size: 8px; gap: 1px; }

  /* Sub-tabs even smaller */
  #msd-detail-overlay .msd-subtab { padding: 5px 6px; font-size: 9px; }
  #msd-detail-overlay .msd-subtab svg { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — LANDSCAPE MOBILE
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-height: 500px) and (orientation: landscape) {
  .ds-bottom-nav { height: 44px; }
  .ds-bottom-nav-inner { height: 44px; }
  .ds-btm-label { display: none; }
  .ds-btm-icon { font-size: 20px; }
  body { padding-bottom: calc(44px + env(safe-area-inset-bottom, 0px)); }
  #msd-detail-overlay {
    bottom: calc(44px + env(safe-area-inset-bottom, 0px));
  }
  .hp-spotlight { min-height: 80px; padding: 10px; }
  .hp-spotlight-title { font-size: 16px; }
  .ds-betslip { max-height: 70vh; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SAFE AREA + PWA INSETS
   ═══════════════════════════════════════════════════════════════════════════ */
@supports (padding-top: env(safe-area-inset-top)) {
  .ds-header { padding-top: env(safe-area-inset-top, 0px); }
  .ds-bottom-nav { padding-bottom: env(safe-area-inset-bottom, 0px); }
}
</style>