.vs-root {
  --vs-card: rgba(30, 37, 58, 0.78);
  --vs-card-2: rgba(255, 255, 255, 0.05);
  --vs-line: rgba(255, 255, 255, 0.08);
  --vs-text: #f3f5fa;
  --vs-mute: #8d96ad;
  --vs-gold: #eccea7;
  --vs-cyan: #47d7ff;
  --vs-live: #ff4d5e;
  --vs-up: #2fd27b;
  --vs-down: #ff5d6c;
  position: relative;
  min-height: calc(100vh - 180px);
  padding: 10px 12px 96px;
  box-sizing: border-box;
  color: var(--vs-text);
  font-family: SF_Pro, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  line-height: 1.3;
  -webkit-tap-highlight-color: transparent;
}
.vs-root *, .vs-root *::before, .vs-root *::after { box-sizing: border-box; }
:where(.vs-root) button { font: inherit; color: inherit; border: 0; background: none; padding: 0; margin: 0; cursor: pointer; }
:where(.vs-root) img { display: block; }

.vs-title {
  display: flex; align-items: center; justify-content: space-between;
  margin: 2px 2px 10px;
}
.vs-title h1 {
  margin: 0; font-size: 18px; font-weight: 700; letter-spacing: 0.2px;
  background: linear-gradient(90deg, var(--vs-gold), #fff 55%, var(--vs-cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.vs-title small { color: var(--vs-mute); font-size: 11px; }

.vs-seg {
  display: flex; gap: 4px; padding: 4px; margin-bottom: 10px;
  background: var(--vs-card); border: 1px solid var(--vs-line); border-radius: 12px;
}
.vs-seg button {
  flex: 1; height: 34px; border-radius: 9px; font-weight: 600; color: var(--vs-mute);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.vs-seg button.on {
  color: #1b1f2c;
  background: linear-gradient(180deg, #f6dfbf, #d9b27f);
  box-shadow: 0 2px 10px rgba(236, 206, 167, 0.25);
}
.vs-seg .vs-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--vs-live); box-shadow: 0 0 0 3px rgba(255, 77, 94, 0.2); }
.vs-seg button.on .vs-dot { box-shadow: none; }

.vs-chips {
  display: flex; gap: 6px; overflow-x: auto; margin: 0 -12px 12px; padding: 0 12px 2px;
  scrollbar-width: none;
}
.vs-chips::-webkit-scrollbar { display: none; }
.vs-chip {
  flex: none; display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
  border-radius: 999px; background: var(--vs-card); border: 1px solid var(--vs-line);
  color: var(--vs-text); font-weight: 500; white-space: nowrap;
}
.vs-chip img { width: 18px; height: 18px; }
.vs-chip em { font-style: normal; color: var(--vs-mute); font-size: 11px; }
.vs-chip.on { border-color: rgba(71, 215, 255, 0.7); background: rgba(71, 215, 255, 0.12); }
.vs-chip.on em { color: var(--vs-cyan); }

.vs-tour {
  display: flex; align-items: center; gap: 8px; margin: 14px 2px 8px;
}
.vs-tour img { width: 18px; height: 18px; flex: none; }
.vs-tour b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-tour span { color: var(--vs-mute); font-size: 11px; flex: none; }

.vs-card {
  background: var(--vs-card); border: 1px solid var(--vs-line); border-radius: 16px;
  padding: 10px 12px 12px; margin-bottom: 8px; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.vs-card:active { transform: scale(0.995); }
.vs-card-top {
  display: flex; align-items: center; gap: 6px; color: var(--vs-mute); font-size: 11px; margin-bottom: 8px;
}
.vs-card-top .vs-live { color: var(--vs-live); font-weight: 600; display: flex; align-items: center; gap: 4px; }
.vs-card-top .vs-live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--vs-live);
  animation: vs-pulse 1.4s ease-in-out infinite;
}
.vs-card-top .vs-more { margin-left: auto; color: var(--vs-cyan); font-weight: 600; }
@keyframes vs-pulse { 50% { opacity: 0.35; } }

.vs-team { display: flex; align-items: center; gap: 8px; min-height: 26px; }
.vs-team + .vs-team { margin-top: 4px; }
.vs-logo {
  width: 22px; height: 22px; flex: none; border-radius: 50%; object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
}
.vs-logo-txt {
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(71, 215, 255, 0.14); color: var(--vs-cyan); font-size: 10px; font-weight: 700;
}
.vs-team span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.vs-team b { flex: none; font-weight: 700; color: var(--vs-gold); font-variant-numeric: tabular-nums; }
.vs-team.act span::after { content: " \2022"; color: var(--vs-cyan); }

.vs-odds { display: grid; gap: 6px; margin-top: 10px; }
.vs-odds.c1 { grid-template-columns: 1fr; }
.vs-odds.c2 { grid-template-columns: repeat(2, 1fr); }
.vs-odds.c3 { grid-template-columns: repeat(3, 1fr); }
.vs-odd {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 6px;
  height: 36px; padding: 0 10px; border-radius: 10px; background: var(--vs-card-2);
  border: 1px solid transparent; transition: background 0.2s, border-color 0.2s;
  min-width: 0;
}
.vs-odd span { color: var(--vs-mute); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.vs-odd b { font-weight: 700; font-variant-numeric: tabular-nums; flex: none; }
.vs-odd:active { border-color: rgba(236, 206, 167, 0.6); }
.vs-odd.lock { opacity: 0.45; pointer-events: none; }
.vs-odd.lock b::after { content: " \1F512"; font-size: 10px; }
.vs-odd.up { border-color: rgba(47, 210, 123, 0.7); }
.vs-odd.up b { color: var(--vs-up); }
.vs-odd.down { border-color: rgba(255, 93, 108, 0.7); }
.vs-odd.down b { color: var(--vs-down); }
.vs-odd.up::after, .vs-odd.down::after {
  content: ""; position: absolute; top: 4px; right: 4px; border: 4px solid transparent;
}
.vs-odd.up::after { border-bottom-color: var(--vs-up); top: 0; }
.vs-odd.down::after { border-top-color: var(--vs-down); top: auto; bottom: 0; }

.vs-empty, .vs-loading {
  text-align: center; color: var(--vs-mute); padding: 48px 12px;
}
.vs-loading::before {
  content: ""; display: block; width: 28px; height: 28px; margin: 0 auto 10px; border-radius: 50%;
  border: 3px solid rgba(71, 215, 255, 0.2); border-top-color: var(--vs-cyan);
  animation: vs-spin 0.8s linear infinite;
}
@keyframes vs-spin { to { transform: rotate(360deg); } }
.vs-skel {
  height: 128px; border-radius: 16px; margin-bottom: 8px;
  background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.09), rgba(255,255,255,0.04));
  background-size: 200% 100%; animation: vs-shimmer 1.2s linear infinite;
}
@keyframes vs-shimmer { to { background-position: -200% 0; } }

/* detail */
.vs-dhead { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.vs-back {
  width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--vs-card);
  border: 1px solid var(--vs-line); display: flex; align-items: center; justify-content: center;
}
.vs-back::before {
  content: ""; width: 9px; height: 9px; border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: translateX(2px) rotate(45deg);
}
.vs-dhead div { min-width: 0; }
.vs-dhead b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-dhead small { color: var(--vs-mute); font-size: 11px; display: flex; align-items: center; gap: 4px; }
.vs-dhead small img { width: 14px; height: 14px; }

.vs-board {
  border-radius: 18px; padding: 16px 12px 14px; margin-bottom: 10px;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(71, 215, 255, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(40, 49, 76, 0.95), rgba(26, 32, 50, 0.95));
  border: 1px solid rgba(71, 215, 255, 0.18);
}
.vs-board-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.vs-bteam { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.vs-bteam .vs-logo, .vs-bteam .vs-logo-txt { width: 52px; height: 52px; font-size: 18px; }
.vs-bteam span { font-weight: 600; font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vs-bmid { text-align: center; min-width: 92px; }
.vs-bscore { font-size: 28px; font-weight: 800; letter-spacing: 1px; font-variant-numeric: tabular-nums; color: #fff; }
.vs-bscore.small { font-size: 16px; letter-spacing: 0; }
.vs-bstatus { margin-top: 4px; font-size: 11px; color: var(--vs-mute); }
.vs-bstatus.live { color: var(--vs-live); font-weight: 600; }
.vs-bdate { font-size: 15px; font-weight: 700; color: var(--vs-gold); }
.vs-periods { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.vs-periods div {
  min-width: 46px; padding: 4px 8px; border-radius: 8px; background: rgba(0, 0, 0, 0.22); text-align: center;
  font-size: 11px; color: var(--vs-mute); font-variant-numeric: tabular-nums;
}
.vs-periods div b { display: block; color: var(--vs-text); font-weight: 600; }
.vs-stats { display: grid; grid-template-columns: 1fr auto 1fr; gap: 4px 10px; margin-top: 12px; font-size: 12px; }
.vs-stats div:nth-child(3n+1) { text-align: right; font-weight: 600; }
.vs-stats div:nth-child(3n+2) { color: var(--vs-mute); text-align: center; }
.vs-stats div:nth-child(3n) { font-weight: 600; }

.vs-tracker-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 36px; margin-top: 12px;
  border-radius: 10px; background: rgba(71, 215, 255, 0.12); color: var(--vs-cyan); font-weight: 600;
}
.vs-tracker { width: 100%; height: 230px; border: 0; border-radius: 12px; margin-top: 10px; background: #0d1220; }

.vs-mchips { margin-bottom: 8px; }
.vs-group {
  background: var(--vs-card); border: 1px solid var(--vs-line); border-radius: 14px; margin-bottom: 8px; overflow: hidden;
}
.vs-ghead {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 12px; font-weight: 600; text-align: left;
}
.vs-ghead::after {
  content: ""; width: 7px; height: 7px; border-right: 2px solid var(--vs-mute); border-bottom: 2px solid var(--vs-mute);
  transform: rotate(45deg); margin: -4px 4px 0 10px; flex: none; transition: transform 0.2s;
}
.vs-group.closed .vs-ghead::after { transform: rotate(-45deg); margin-top: 0; }
.vs-group.closed .vs-odds { display: none; }
.vs-group .vs-odds { margin: 0; padding: 0 10px 10px; }

.vs-toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(20px); opacity: 0;
  z-index: 1500; padding: 10px 16px; border-radius: 12px; font-size: 13px; font-weight: 500; color: #1b1f2c;
  background: linear-gradient(180deg, #f6dfbf, #d9b27f); box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  transition: opacity 0.2s, transform 0.2s; pointer-events: none; white-space: nowrap;
}
.vs-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.vs-slip {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1600;
  padding: 12px 12px calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(10, 14, 24, 0.72) 28%, rgba(10, 14, 24, 0.96));
  pointer-events: none;
}
.vs-slip-card {
  pointer-events: auto;
  max-width: 440px; margin: 0 auto;
  background: rgba(28, 34, 54, 0.96);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 14px 14px 16px;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.45);
  position: relative;
}
.vs-slip-x {
  position: absolute; top: 8px; right: 10px;
  width: 32px; height: 32px; border-radius: 50%;
  color: #9aa3b8; font-size: 22px; line-height: 1;
}
.vs-slip-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.vs-slip-match { color: var(--vs-mute, #8d96ad); font-size: 12px; margin-bottom: 8px; }
.vs-slip-pick {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 10px; margin-bottom: 12px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
}
.vs-slip-pick b { color: var(--vs-cyan, #47d7ff); white-space: nowrap; }
.vs-slip-stake { display: block; font-size: 12px; color: var(--vs-mute, #8d96ad); margin-bottom: 10px; }
.vs-slip-stake input {
  display: block; width: 100%; margin-top: 6px; height: 40px;
  border-radius: 10px; border: 1px solid rgba(255,255,255,0.12);
  background: #121826; color: #fff; padding: 0 12px; font-size: 15px; font-weight: 600;
}
.vs-slip-ret { display: flex; justify-content: space-between; margin-bottom: 12px; color: var(--vs-mute, #8d96ad); }
.vs-slip-ret b { color: #eccea7; }
.vs-slip-go {
  width: 100%; height: 44px; border-radius: 12px; font-weight: 700; font-size: 15px; color: #0a1220;
  background: linear-gradient(180deg, #5be0ff, #00d2ff);
}
.vs-slip-go:disabled { opacity: 0.6; }

/* footer Sports slot (replaces Brand) */
.new-footer .tab-bar .footer-item:has(img[src*="tab-brand"]) .icon-wrap img { opacity: 0 !important; }
.new-footer .tab-bar .footer-item:has(img[src*="tab-brand"]) .icon-wrap {
  background: url(/theme/tab-sports-2.png) center / contain no-repeat;
}
body.vs-sports-on .new-footer .tab-bar .footer-item:has(img[src*="tab-brand"]) .icon-wrap {
  background-image: url(/theme/tab-sports-1.png);
}
