/* interaction states for the reverse-engineered clone */
.sb-selected, .sb-selected:hover, .sb-selected:focus {
  background: #ffffff !important;
}
.sb-selected span { color: #1A212A !important; }
body.sb-no-scroll { overflow: hidden !important; }
#sb-search-root { position: fixed; inset: 0; z-index: 500; }
#sb-menu-root .sb-menu-panel {
  width: 100%;
  height: 100%;
  background: #0b0f14;
  overflow-y: auto;
}
#sb-menu-root aside {
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 100%;
  padding: 12px 16px 24px !important;
  background: #1A212A !important;
  display: flex !important;
  flex-direction: column !important;
}
/* mobile bottom bar: the selected tab keeps the live highlight while its panel or
   page is active (促销活动 / 滚球 pages, 搜索 sheet, 菜单 drawer, 投注 sheet). */
.sb-tab-active, .sb-tab-active > button {
  background: rgba(44, 50, 58, 0.8) !important;
  color: #fff !important;
}
.sb-tab-active svg, .sb-tab-active span { color: inherit !important; }

/* ---------- interaction states (reverse-engineered) ---------- */
.sb-selected, .sb-selected:hover, .sb-selected:focus { background: #ffffff !important; }
.sb-selected span { color: #1A212A !important; }
.sb-selected { box-shadow: inset 0 0 0 1px #ffffff; }

/* betslip expand/collapse */
.sb-betslip-container { transition: max-height 200ms ease, height 200ms ease; height: 3.7rem; max-height: 3.7rem; }
.sb-betslip-container.sb-betslip-open { height: auto; max-height: min(80vh, 720px); }
.sb-betslip-body { animation: sb-slide-up 200ms ease-out; }
.sb-betslip-row { animation: fade-in 150ms ease-out; }
@keyframes sb-slide-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* sidebar accordion */
.sb-accordion { animation: fade-in 150ms ease-out; }
[data-sb-group] > button svg { transition: transform 150ms ease; }

/* sidebar dropdown menus */
.sb-dropdown { flex: 0 0 auto; align-self: flex-start; height: auto; max-height: 360px; overflow-y: auto; z-index: 90; box-shadow: 0 8px 32px rgba(0,0,0,0.45); }
.sb-dropdown[hidden] { display: none; }

/* search overlay */
#sb-search-root .sb-search-closing { opacity: 0; transition: opacity 120ms ease; }

/* mobile tabbar active */
.sb-tab-active { background: rgba(44, 50, 58, 0.8) !important; color: #fff !important; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .sb-betslip-container, .sb-betslip-body, .sb-betslip-row, .sb-accordion { transition: none !important; animation: none !important; }
}
/* ===== remote data-driven pages (B2) ===== */
.remote-page { width: 100%; max-width: 1280px; margin: 0 auto; padding: 16px 20px 56px; color: #e6ebf0; box-sizing: border-box; }
.remote-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.remote-title { font-size: 22px; font-weight: 700; margin: 0; }
.remote-subtitle { color: #8d9da8; font-size: 12px; margin-top: 4px; }
.remote-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.remote-tab { padding: 6px 12px; border-radius: 6px; background: #232a32; color: #8d9da8; font-size: 13px; text-decoration: none; }
.remote-tab:hover { color: #e6ebf0; }
.remote-tab.active { background: #0e6fff; color: #fff; }
.remote-loading, .remote-empty, .remote-error { padding: 32px; text-align: center; color: #8d9da8; }
.remote-error { color: #ff6b6b; }
.remote-region { margin-top: 18px; }
.remote-region-title { font-size: 14px; color: #a9b5c0; margin: 0 0 8px; display: flex; align-items: center; gap: 6px; }
.remote-region-icon { width: 18px; height: 18px; object-fit: contain; }
.remote-tournament-title { font-size: 12px; color: #77848f; margin: 8px 0 6px; font-weight: 500; }
.remote-events { display: flex; flex-direction: column; gap: 6px; }
.remote-events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 8px; }
.remote-event { background: #1a212a; border: 1px solid #28313b; border-radius: 6px; padding: 10px 12px; display: grid; grid-template-columns: 86px minmax(150px, 1fr) minmax(220px, 1.6fr); gap: 12px; align-items: center; }
.remote-event:hover { border-color: #3a4652; }
.remote-event.is-compact { display: block; }
.remote-event.is-compact .remote-event-teams { margin-top: 6px; }
.remote-event-meta { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: #8d9da8; }
.remote-live { color: #2fd58b; font-weight: 700; font-size: 11px; letter-spacing: .04em; }
.remote-event-status { color: #8d9da8; }
.remote-event-teams { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: #e6ebf0; }
.remote-team { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.remote-team-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.remote-score { color: #2fd58b; font-weight: 700; }
.remote-period { color: #8d9da8; font-size: 11px; }
.remote-markets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.remote-market { min-width: 0; }
.remote-market-name { font-size: 10px; color: #77848f; margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.remote-market-selections { display: flex; gap: 4px; flex-wrap: wrap; }
.remote-odds { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 78px; padding: 5px 8px; border-radius: 4px; background: #232a32; border: 1px solid #2f3944; color: #dbe3ea; font-size: 12px; cursor: pointer; }
.remote-odds:hover { background: #2a333d; border-color: #3a4652; }
.remote-odds.is-selected { background: #0e6fff; border-color: #0e6fff; color: #fff; }
.remote-odds-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 80px; }
.remote-odds-price { font-weight: 700; }
.remote-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; margin-bottom: 6px; }
.remote-hero-card { position: relative; display: block; border-radius: 8px; overflow: hidden; background: #1a212a; text-decoration: none; color: #fff; min-height: 120px; }
.remote-hero-image { width: 100%; height: 130px; object-fit: cover; display: block; opacity: .75; }
.remote-hero-body { padding: 10px 12px; }
.remote-hero-title { font-size: 15px; margin: 0 0 4px; }
.remote-hero-text { font-size: 12px; color: #b9c4ce; margin: 0 0 6px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.remote-hero-cta { color: #0e6fff; font-size: 12px; font-weight: 600; }
.remote-event-detail { background: #1a212a; border: 1px solid #28313b; border-radius: 8px; padding: 14px 16px; margin: 10px 0 14px; }
.remote-event-detail-meta { display: flex; gap: 10px; font-size: 12px; color: #8d9da8; margin-bottom: 6px; }
.remote-event-detail-teams { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; flex-wrap: wrap; }
.remote-event-detail-score { color: #2fd58b; }
.remote-back { color: #0e6fff; font-size: 13px; text-decoration: none; }
.remote-group-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
.remote-group-tab { white-space: nowrap; padding: 6px 10px; border-radius: 6px; background: #232a32; color: #8d9da8; border: 0; font-size: 12px; cursor: pointer; }
.remote-group-tab.active { background: #0e6fff; color: #fff; }
.remote-group-count { opacity: .75; font-size: 10px; }
.remote-market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; margin-top: 10px; }
.remote-market-card { background: #1a212a; border: 1px solid #28313b; border-radius: 6px; padding: 10px; }
.remote-market-card-head { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: #b9c4ce; margin-bottom: 6px; }
.remote-market-card-status { color: #2fd58b; }
.remote-market-card-status.suspended { color: #ffb020; }
.remote-market-card-selections { display: flex; gap: 4px; flex-wrap: wrap; }
.remote-bonus-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.remote-bonus { background: #232a32; border-radius: 6px; padding: 10px 12px; color: #e6ebf0; text-decoration: none; font-size: 13px; }
.remote-promotions { max-width: 1100px; }
.remote-promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.remote-promo-card { background: #1a212a; border: 1px solid #28313b; border-radius: 8px; overflow: hidden; }
.remote-promo-image { width: 100%; height: 150px; object-fit: cover; display: block; }
.remote-promo-body { padding: 12px; }
.remote-promo-title { font-size: 15px; margin: 0 0 6px; }
.remote-promo-summary { font-size: 12px; color: #9aa7b2; margin: 0 0 8px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.remote-promo-link { color: #0e6fff; font-size: 12px; font-weight: 600; }
@media (max-width: 768px) {
  .remote-page { padding: 10px 12px 40px; }
  .remote-event { grid-template-columns: 70px 1fr; }
  .remote-event .remote-markets { grid-column: 1 / -1; }
  .remote-events-grid { grid-template-columns: 1fr; }
  .remote-hero { grid-template-columns: 1fr; }
}

/* ===== data-driven page refinements ===== */
.remote-home-heading { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.remote-sport-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 2px 0 12px;
  margin: 0 0 4px;
  scrollbar-width: none;
}
.remote-sport-bar::-webkit-scrollbar { display: none; }
.remote-sport-pill {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  background: #232a32;
  border: 1px solid transparent;
  color: #a9b5c0;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.remote-sport-pill:hover { background: #2b3540; color: #e6ebf0; }
.remote-sport-pill.active { background: #0e6fff; border-color: #0e6fff; color: #fff; }
.remote-fallback-note { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: rgba(255,255,255,.05); color: #b7bdc8; font-size: 13px; }
.remote-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.remote-section-more { color: #0e6fff; font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.remote-section-more:hover { text-decoration: underline; }
.remote-league-block { padding-top: 4px; }
.remote-league-block .remote-region-title { font-size: 15px; color: #e6ebf0; }
.remote-event { transition: border-color .15s ease, background .15s ease; }
.remote-event:hover { background: #1e2630; }
.remote-event-page .remote-event-detail { margin-top: 18px; }
.remote-event-page .remote-event-detail-teams { font-size: 22px; }
.remote-event-page .remote-market-card { background: #1e2630; }
.remote-promo-card { display: block; color: inherit; text-decoration: none; }
.remote-promo-card:hover { border-color: #3a4652; }
.remote-mobile-head { align-items: flex-start; gap: 8px; }
.remote-mobile-page .remote-sport-bar { padding-bottom: 10px; }
.remote-mobile-page .remote-title { font-size: 20px; }
@media (min-width: 769px) {
  .remote-events-grid { grid-template-columns: repeat(auto-fill, minmax(460px, 1fr)); }
}
@media (max-width: 768px) {
  .remote-page { padding-bottom: 92px; }
  .remote-sport-bar { margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; }
  .remote-event { padding: 9px 10px; }
  .remote-section-head { margin-bottom: 6px; }
}

