/* ══════════════════════════════════════════
   TOKENS
══════════════════════════════════════════ */
:root {
  --bg:          #1e2024;
  --bg-panel:    #24272c;
  --bg-header:   #16181b;
  --bg-card:     #2e3137;
  --bg-hover:    #35393f;
  --bg-video:    #0d0e10;
  --text:        #d0d2d6;
  --text-strong: #f0f1f3;
  --text-muted:  #787e8a;
  --accent:      #e03030;
  --accent-dk:   #b52020;
  --gold:        #d4a017;
  --border:      #2e3137;
  --border-hi:   #404650;
  --success:     #4caf50;
  --warn:        #ff9800;
  --header-h:    44px;
}

/* ══════════════════════════════════════════
   RESET
══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 13px;
}
a       { text-decoration: none; color: inherit; }
button  { cursor: pointer; border: none; background: none; color: inherit; font: inherit; }
input   { outline: none; border: none; color: inherit; font: inherit; background: none; }
ul, li  { list-style: none; }
.hidden { display: none !important; }

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
#siteHeader {
  height: var(--header-h);
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
  position: relative;
  z-index: 100;
  flex-shrink: 0;
}

.site-logo {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.2px;
  white-space: nowrap;
  padding-right: 14px;
  border-right: 1px solid var(--border-hi);
  flex-shrink: 0;
}

/* Sport tabs in header */
.header-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.header-nav::-webkit-scrollbar { display: none; }

.sport-tab {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 5px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
  position: relative;
}
.sport-tab:hover  { background: var(--bg-card); color: var(--text); }
.sport-tab.active { color: #fff; }
.sport-tab.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 6px; right: 6px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}
.sport-tab .t-icon  { font-size: 14px; }
.sport-tab .t-count {
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 8px;
  min-width: 17px;
  text-align: center;
}

/* Header right */
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-muted);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}
.status-dot.inactive { background: #555; }

.btn-subscribe {
  padding: 5px 13px;
  border: 1px solid var(--gold);
  border-radius: 5px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.btn-subscribe:hover { background: var(--gold); color: #000; }

.btn-login {
  padding: 5px 13px;
  border: 1px solid var(--border-hi);
  border-radius: 5px;
  font-size: 12px;
  color: var(--text);
  transition: background 0.15s;
}
.btn-login:hover { background: var(--bg-card); }

/* Avatar */
.user-avatar {
  position: relative;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  cursor: pointer; user-select: none; flex-shrink: 0;
}
.user-avatar:hover .avatar-dropdown { display: block; }
.avatar-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px); right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-hi);
  border-radius: 8px;
  min-width: 185px;
  padding: 4px 0;
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
  z-index: 200;
}
.dropdown-email {
  padding: 9px 13px 6px;
  font-size: 11px;
  color: var(--text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dropdown-divider { border-top: 1px solid var(--border); margin: 3px 0; }
.dropdown-item {
  display: block; width: 100%;
  padding: 7px 13px;
  text-align: left;
  font-size: 12px;
  transition: background 0.1s;
}
.dropdown-item:hover { background: var(--bg-hover); }

/* ══════════════════════════════════════════
   MAIN LAYOUT
══════════════════════════════════════════ */
#mainLayout {
  display: flex;
  height: calc(100vh - var(--header-h));
  overflow: hidden;
}

/* ══════════════════════════════════════════
   LEFT PANEL — EVENT LIST
══════════════════════════════════════════ */
#eventsPanel {
  width: 380px;
  min-width: 260px;
  max-width: 680px;
  flex-shrink: 0;
  background: var(--bg-panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Sub-header */
.panel-subheader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.live-tabs { display: flex; gap: 3px; }
.live-tab {
  display: flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px; font-weight: 600;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}
.live-tab:hover  { background: var(--bg-hover); color: var(--text); }
.live-tab.active { background: var(--accent); color: #fff; }
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: blink 1.2s infinite;
}
.panel-count {
  font-size: 11px;
  color: var(--text-muted);
}

/* Search */
.search-wrap {
  position: relative;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 5px 28px 5px 10px;
  font-size: 12px;
  color: var(--text);
  transition: border-color 0.15s;
}
.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--text-muted); }
.search-clear {
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1;
  padding: 2px;
}
.search-clear:hover { color: var(--text); }

/* Scroll area */
#eventList {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-hi) transparent;
}
#eventList::-webkit-scrollbar { width: 4px; }
#eventList::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 2px; }

/* Section dividers (Pinned, Upcoming) */
.section-label {
  padding: 5px 10px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
}

/* League header */
.league-hdr {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0; z-index: 10;
  cursor: pointer; user-select: none;
}
.league-hdr:hover { background: var(--bg-hover); }
.lh-flag  { flex-shrink: 0; width: 20px; height: 15px; object-fit: cover; border-radius: 2px; vertical-align: middle; }
.lh-flag-globe { font-size: 14px; flex-shrink: 0; width: 20px; text-align: center; }
.lh-name  {
  flex: 1;
  font-size: 11px; font-weight: 600;
  color: var(--text-strong);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lh-count { font-size: 10px; color: var(--text-muted); flex-shrink: 0; }
.lh-arrow {
  font-size: 10px; color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.league-hdr.collapsed .lh-arrow { transform: rotate(-90deg); }

/* ── Event row ── */
.event-row {
  position: relative;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
  transition: background 0.1s;
}
.event-row:hover { background: var(--bg-hover); }
.event-row.watching { background: rgba(224,48,48,0.07); }
.event-row.pinned   { background: #252830; }

/* Main flex row (teams + controls) */
.ev-main {
  position: relative;   /* anchor for absolutely-positioned pin button */
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  height: 44px;
  width: 100%;
}

/* Compact odds row */
.ev-odds {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px 5px 38px;  /* left-aligned under teams (past pin space) */
  flex-wrap: nowrap;
  font-size: 10px;
  line-height: 1;
}
.odds-lbl  { color: var(--text-muted); font-size: 10px; }
.odds-v    { font-weight: 600; font-size: 10px; }
.odds-o    { color: #7db87a; }      /* green — over/home */
.odds-u    { color: #78a4c8; }      /* blue  — under/away */
.odds-sep  { color: var(--text-muted); }
.odds-pipe { color: var(--border-hi); margin: 0 3px; }

/* Time / score column (left side) */
.ev-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 36px;
  flex-shrink: 0;
  gap: 2px;
}
.ev-time   { font-size: 11px; color: var(--text-muted); }
.ev-score  { font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap; }

/* Live badge + minute */
.ev-live-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 30px;
  flex-shrink: 0;
  gap: 2px;
}
.ev-live-badge {
  font-size: 8px; font-weight: 700;
  background: var(--accent); color: #fff;
  padding: 1px 4px; border-radius: 3px;
  animation: blink 1.4s infinite;
}
.ev-minute { font-size: 10px; color: var(--accent); font-weight: 600; }

/* Teams */
.ev-teams {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.ev-team {
  font-size: 12px;
  color: var(--text-strong);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  line-height: 1.3;
}

/* Watch button */
.ev-watch {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px;
  transition: background 0.15s, transform 0.1s;
}
.ev-watch.idle     { background: var(--accent); color: #fff; }
.ev-watch.idle:hover { background: var(--accent-dk); transform: scale(1.1); }
.ev-watch.starting { background: var(--warn); color: #fff; animation: blink 0.8s infinite; }
.ev-watch.running  { background: var(--bg-card); color: var(--text-muted); border: 1px solid var(--border-hi); }
.ev-watch.running:hover { border-color: var(--accent); color: var(--accent); }

/* Pin button — floats over ev-main (no flex space) until actually pinned */
.ev-pin {
  position: absolute;
  left: 4px; top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 22px; height: 22px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-secondary);
  opacity: 0;
  transition: opacity 0.15s, color 0.15s, background 0.15s;
}
.event-row:hover .ev-pin { opacity: 1; }

/* When pinned: re-enter the flex flow so content shifts right */
.ev-pin.pinned {
  position: relative;
  left: auto; top: auto; transform: none;
  opacity: 1 !important;
  color: var(--gold);
  background: transparent;
  flex-shrink: 0;
}
.ev-pin:hover        { background: var(--bg-card); color: var(--text); }
.ev-pin.pinned:hover { color: var(--gold); background: var(--bg-card); }

/* Empty state */
.events-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
}

/* ══════════════════════════════════════════
   RESIZE HANDLE
══════════════════════════════════════════ */
#resizeHandle {
  width: 4px;
  background: var(--border);
  cursor: col-resize;
  flex-shrink: 0;
  transition: background 0.15s;
  z-index: 50;
}
#resizeHandle:hover,
#resizeHandle.active { background: var(--accent); }

/* ══════════════════════════════════════════
   RIGHT PANEL — CONTENT
══════════════════════════════════════════ */
#contentPanel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-video);
  overflow: hidden;
  position: relative;
  min-width: 0;
}

/* Stream tabs bar */
.stream-tabs-bar {
  display: flex;
  align-items: center;
  padding: 5px 8px;
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.stream-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.stream-tabs::-webkit-scrollbar { display: none; }

.s-tab {
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px; font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.s-tab:hover  { color: var(--text); }
.s-tab.active { background: var(--accent); color: #fff; }

/* Video grid */
#videoGrid {
  display: none;
  flex: 1;
  gap: 3px;
  padding: 3px;
  background: #000;
  overflow: hidden;
}
#videoGrid.visible          { display: grid; }
#videoGrid[data-count="1"]  { grid-template-columns: 1fr; }
#videoGrid[data-count="2"]  { grid-template-columns: 1fr 1fr; }
#videoGrid[data-count="3"]  { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
#videoGrid[data-count="3"] .v-container:first-child { grid-column: 1 / -1; }
#videoGrid[data-count="4"]  { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }

/* Video container */
.v-container {
  position: relative;
  background: #0a0a0a;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.v-label {
  position: absolute;
  top: 8px; left: 8px;
  font-size: 11px; font-weight: 600;
  color: #fff;
  background: rgba(0,0,0,0.6);
  padding: 2px 8px;
  border-radius: 3px;
  z-index: 5;
  pointer-events: none;
}
.v-placeholder {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 12px;
}
.loading-ring {
  width: 28px; height: 28px;
  border: 2px solid var(--border-hi);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

/* Video hover controls */
.v-controls {
  position: absolute;
  top: 6px; right: 6px;
  display: flex; gap: 4px;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 10;
}
.v-container:hover .v-controls { opacity: 1; }
.v-btn {
  width: 26px; height: 26px;
  border-radius: 4px;
  background: rgba(0,0,0,0.72);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  color: #fff;
  transition: background 0.12s;
}
.v-btn:hover { background: rgba(0,0,0,0.95); }

/* Welcome state */
#welcomeState {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.welcome-inner { text-align: center; max-width: 380px; }
.welcome-logo  { font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.welcome-tagline { font-size: 14px; color: var(--text-muted); margin-bottom: 10px; }
.welcome-hint  { font-size: 13px; color: var(--text); line-height: 1.55; margin-bottom: 20px; }
.welcome-sub   { border-top: 1px solid var(--border); padding-top: 18px; }
.welcome-sub p { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }

.btn-sub-lg {
  padding: 9px 20px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  color: var(--gold);
  font-size: 13px; font-weight: 600;
  background: transparent;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.btn-sub-lg:hover { background: var(--gold); color: #000; }

/* Locked overlay */
#lockedOverlay {
  position: absolute;
  inset: 0;
  background: rgba(8,9,11,0.88);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
}
.locked-inner  { text-align: center; }
.locked-icon   { font-size: 42px; display: block; margin-bottom: 12px; }
.locked-title  { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.locked-sub    { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }

/* ══════════════════════════════════════════
   MODALS
══════════════════════════════════════════ */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex; align-items: center; justify-content: center;
  z-index: 300;
  backdrop-filter: blur(3px);
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-hi);
  border-radius: 12px;
  padding: 36px 32px 32px;
  width: 380px;
  position: relative;
  box-shadow: 0 10px 50px rgba(0,0,0,0.7);
}
.modal-close {
  position: absolute;
  top: 13px; right: 15px;
  font-size: 20px; line-height: 1;
  color: var(--text-muted);
  padding: 3px 5px; border-radius: 4px;
}
.modal-close:hover { color: var(--text); background: var(--bg-hover); }
.modal-title { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.modal-sub   { font-size: 12px; color: var(--text-muted); margin-bottom: 18px; line-height: 1.6; }
.modal-label {
  display: block;
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted); margin-bottom: 6px;
}
.modal-input {
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--border-hi);
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 13px; color: var(--text);
  margin-bottom: 14px;
  transition: border-color 0.15s;
}
.modal-input:focus { border-color: var(--accent); }
.modal-input::placeholder { color: var(--text-muted); }
.modal-btn {
  width: 100%;
  padding: 10px;
  background: var(--accent); border-radius: 6px;
  color: #fff; font-size: 13px; font-weight: 600;
  transition: background 0.15s;
}
.modal-btn:hover { background: var(--accent-dk); }
.modal-hint { font-size: 11px; color: var(--text-muted); margin-top: 10px; line-height: 1.6; }
.modal-link-btn { display: block; font-size: 12px; color: var(--text-muted); margin-top: 16px; text-decoration: underline; text-align: center; }
.modal-link-btn:hover { color: var(--text); }

/* Auth step 2 — centered confirmation screen */
#authStep2 { text-align: center; }
.auth-icon       { font-size: 38px; margin-bottom: 12px; display: block; }
.auth-sent-email { font-size: 14px; font-weight: 700; color: #fff; margin: 4px 0 14px; word-break: break-all; }

/* Subscribe modal */
.modal-sub  { width: 390px; text-align: center; }
.sub-crown  { font-size: 32px; color: var(--gold); margin-bottom: 6px; }
.sub-features { text-align: left; margin: 14px 0 20px; display: flex; flex-direction: column; gap: 7px; }
.sub-features li { font-size: 13px; color: var(--text); }
.pricing-row { display: flex; gap: 12px; margin-bottom: 20px; }
.price-card {
  flex: 1; border: 1px solid var(--border-hi);
  border-radius: 8px; padding: 14px 12px;
  cursor: pointer; position: relative;
  transition: border-color 0.15s, background 0.15s;
}
.price-card:hover, .price-card.sel { border-color: var(--gold); background: var(--bg-hover); }
.price-card.best { border-color: rgba(212,160,23,0.45); }
.price-best {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #000;
  font-size: 9px; font-weight: 800;
  padding: 2px 9px; border-radius: 10px;
  white-space: nowrap;
}
.price-period { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.price-amount { font-size: 22px; font-weight: 800; color: #fff; }
.price-amount span { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.sub-pay-btns { display: flex; flex-direction: column; gap: 9px; margin-bottom: 12px; }
.pay-btn { padding: 10px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.pay-btn:hover { opacity: 0.85; }
.pay-btn.crypto { background: var(--accent); color: #fff; }
.pay-btn.card   { background: var(--bg-hover); color: var(--text); border: 1px solid var(--border-hi); }
.sub-note { font-size: 10px; color: var(--text-muted); line-height: 1.5; }

/* ══════════════════════════════════════════
   DEV TOOLBAR
══════════════════════════════════════════ */
#devToolbar {
  position: fixed;
  bottom: 12px; right: 12px;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: 7px;
  padding: 5px 11px;
  display: flex; align-items: center; gap: 11px;
  z-index: 500; font-size: 11px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.dev-label { font-size: 10px; font-weight: 700; color: var(--accent); letter-spacing: 0.5px; }
.dev-btn {
  background: var(--bg-hover);
  border: 1px solid var(--border-hi);
  border-radius: 4px;
  padding: 2px 9px; font-size: 11px;
  color: var(--text); margin-left: 4px;
}
.dev-btn:hover { background: var(--bg-panel); }

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.5} }
@keyframes spin   { to{transform:rotate(360deg)} }

/* ══════════════════════════════════════════
   STATS PANEL (pressure chart + odds)
══════════════════════════════════════════ */
#statsPanel {
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  background: var(--bg-panel);
  padding: 0;
  display: flex;
  flex-direction: column;
}

.stats-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  min-height: 32px;
}
.stats-teams  { font-size: 11px; color: var(--text-muted); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats-score  { font-size: 13px; font-weight: 800; color: #fff; flex-shrink: 0; }
.stats-minute { font-size: 10px; color: var(--accent); font-weight: 600; flex-shrink: 0; }

.stats-odds {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  flex-shrink: 0;
}
.so-lbl  { color: var(--text-muted); }
.so-val  { font-weight: 600; color: var(--text); }
.so-sep  { color: var(--border-hi); margin: 0 4px; }

.stats-close {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-left: auto;
}
.stats-close:hover { background: var(--bg-hover); color: var(--text); }

.pressure-canvas {
  display: block;
  width: 100%;
  height: 100px;
  background: var(--bg);
}

.pressure-labels {
  display: flex;
  justify-content: space-between;
  padding: 2px 10px 4px;
  font-size: 9px;
}
.pl-home   { color: #c62828; font-weight: 600; }
.pl-center { color: var(--text-muted); }
.pl-away   { color: #1565c0; font-weight: 600; }

/* ══════════════════════════════════════════
   SCROLLBAR
══════════════════════════════════════════ */
::-webkit-scrollbar       { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 3px; }
