
/* Faux Ticker — minimal, fixed values (no backend) start */
#fxv-ticker {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;                 /* switch with .pos-top */
  z-index: 1030;             /* below toasts (2000), above navbar */
  font-family: var(--bs-font-sans-serif, system-ui, sans-serif);
  --lane-h: 32px;
  --gap: 18px;
  --bg: rgba(10, 37, 54, 0.98);
  --fg: #e9eef4;
  --muted: #a7bac9;
  --accent: hsl(12 98% 52% / 1);
  pointer-events: auto;
  transition: transform .18s ease, opacity .18s ease;
}
#fxv-ticker.pos-top { top: 0; bottom: auto; }
#fxv-ticker.peek-hide { transform: translateY(110%); opacity: 0; }
#fxv-ticker.pos-top.peek-hide { transform: translateY(-110%); }

#fxv-ticker .wrap {
  background: var(--bg);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(0,0,0,.3);
  box-shadow: 0 -6px 18px rgba(0,0,0,.18);
}

#fxv-ticker .lane {
  height: var(--lane-h);
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}
#fxv-ticker .lane + .lane { border-top: 1px solid rgba(255,255,255,.06); }

#fxv-ticker .title {
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 .75rem;
  flex: 0 0 auto;
}

/* track + marquee */
#fxv-ticker .track {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  gap: var(--gap);
  white-space: nowrap;
}

/* animate via direction classes */
#fxv-ticker .marquee {
  display: inline-flex;
  gap: var(--gap);
  padding-right: var(--gap);
  will-change: transform;
  animation-duration: var(--speed, 40s);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
#fxv-ticker.rtl .marquee { animation-name: fxv-scroll-rtl; }
#fxv-ticker.ltr .marquee { animation-name: fxv-scroll-ltr; }
#fxv-ticker .marquee.clone { animation-delay: calc(var(--speed, 40s) / -2); }

/* keyframes both directions */
@keyframes fxv-scroll-rtl {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}
@keyframes fxv-scroll-ltr {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}

/* items */
#fxv-ticker .item { color: var(--fg); font-size: 14px; opacity: .95; }
#fxv-ticker .chg-up   { color: #48da89; }
#fxv-ticker .chg-down { color: #ff6b6b; }
#fxv-ticker .sep::before { content: "•"; margin: 0 .35rem; opacity: .45; }

/* Ad link / image */
#fxv-ticker .ad a {
  color: var(--fg);
  text-decoration: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
}
#fxv-ticker .ad a:hover { background: rgba(255,255,255,.12); }
#fxv-ticker .ad img {
  height: 22px; width: auto; vertical-align: middle;
  margin-right: 8px; border-radius: 3px;
}

/* controls */
#fxv-ticker .controls {
  position: absolute; inset: 0 .35rem 0 auto;
  display: flex; align-items: center; gap: .25rem;
}
#fxv-ticker .btn-ic {
  width: 22px; height: 22px; display: inline-grid; place-items: center;
  font-size: 12px; border-radius: 4px; color: var(--muted);
  background: transparent; border: 0; cursor: pointer;
}
#fxv-ticker .btn-ic:hover { color: var(--fg); background: rgba(255,255,255,.08); }

/* Respect reduced motion ONLY if data-respect-motion="1" */
@media (prefers-reduced-motion: reduce) {
  #fxv-ticker[data-respect-motion="1"] .marquee { animation: none !important; }
}
/* Faux Ticker — minimal, fixed values (no backend) end */