/* Shared Markets & Media renderer for admin previews and the published site. */
.fxv-mm-ticker {
  --fxv-mm-background: rgba(12, 29, 43, .98);
  --fxv-mm-foreground: #f2f5fa;
  --fxv-mm-muted: #b5c5d5;
  --fxv-mm-accent: #ff794e;
  --fxv-mm-compact-height: 40px;
  --fxv-mm-expanded-height: 200px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  color: var(--fxv-mm-foreground);
  background: var(--fxv-mm-background);
  border-top: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, .22);
  font: 400 13px/1.45 var(--bs-font-sans-serif, system-ui, sans-serif);
}
.fxv-mm-ticker[data-position='top'] { top: 0; bottom: auto; }
.fxv-mm-ticker *, .fxv-mm-ticker *::before, .fxv-mm-ticker *::after { box-sizing: border-box; }
.fxv-mm-ticker__bar { display: flex; flex-direction: column; width: 100%; }
.fxv-mm-lane { display: flex; align-items: center; min-width: 0; min-height: var(--fxv-mm-compact-height); border-bottom: 1px solid rgba(255,255,255,.07); }
.fxv-mm-lane__label { flex: 0 0 auto; min-width: 92px; padding: 0 14px; color: var(--fxv-mm-muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.fxv-mm-lane__viewport { flex: 1; min-width: 0; overflow: hidden; }
.fxv-mm-lane__strip[aria-hidden='true'] { pointer-events: none; }
.fxv-mm-lane__movement { display: flex; width: max-content; animation: fxv-mm-scroll var(--fxv-mm-scroll-duration, 40s) linear infinite; }
.fxv-mm-lane__strip { display: flex; flex: 0 0 auto; align-items: center; gap: 26px; padding: 0 26px 0 0; white-space: nowrap; }
.fxv-mm-lane:hover .fxv-mm-lane__movement, .fxv-mm-lane:focus-within .fxv-mm-lane__movement { animation-play-state: paused; }
@keyframes fxv-mm-scroll { to { transform: translateX(-50%); } }
.fxv-mm-market { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.fxv-mm-market__symbol { color: var(--fxv-mm-muted); font-size: 11px; }
.fxv-mm-market__values { display: inline-flex; align-items: baseline; gap: 8px; }
.fxv-mm-market__unavailable { color: var(--fxv-mm-muted); font-size: 11px; font-style: italic; }
.fxv-mm-campaign { display: inline-flex; align-items: center; gap: 10px; max-width: 440px; border: 1px solid rgba(255,255,255,.15); border-radius: 6px; background: rgba(255,255,255,.04); color: inherit; text-align: left; padding: 3px 10px; cursor: pointer; font: inherit; }
.fxv-mm-campaign:hover, .fxv-mm-campaign:focus-visible { outline: 2px solid var(--fxv-mm-accent); outline-offset: 1px; background: rgba(255,255,255,.1); }
.fxv-mm-campaign__name { font-weight: 700; }
.fxv-mm-campaign__draft { padding: 1px 5px; color: #f3d29f; border: 1px solid rgba(243,210,159,.55); border-radius: 3px; font-size: 10px; }
.fxv-mm-creative__copy { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; }
.fxv-mm-creative__copy[data-font='heading'] { font-family: var(--bs-font-sans-serif, system-ui, sans-serif); font-weight: 650; }
.fxv-mm-creative__copy[data-font='mono'] { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.fxv-mm-creative__copy[data-align='center'] { text-align: center; }
.fxv-mm-creative__copy[data-align='right'] { text-align: right; }
.fxv-mm-creative__text { white-space: normal; }
.fxv-mm-campaign .fxv-mm-creative__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.fxv-mm-creative__media { display: block; width: auto; max-width: 100%; max-height: 100%; border-radius: 4px; object-fit: contain; }
.fxv-mm-campaign .fxv-mm-creative__media { max-height: calc(var(--fxv-mm-compact-height) - 12px); max-width: 88px; }
.fxv-mm-creative__unavailable { color: #f3d29f; font-size: 11px; }
.fxv-mm-expanded { min-height: var(--fxv-mm-expanded-height); max-height: min(70vh, 480px); overflow: auto; background: #142e44; border-top: 1px solid rgba(255,255,255,.15); padding: 12px 18px; }
.fxv-mm-expanded[hidden] { display: none; }
.fxv-mm-expanded__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.fxv-mm-expanded__close { border: 1px solid rgba(255,255,255,.5); color: #fff; background: transparent; border-radius: 4px; cursor: pointer; padding: 3px 10px; }
.fxv-mm-expanded__close:focus-visible, .fxv-mm-expanded__link:focus-visible { outline: 2px solid var(--fxv-mm-accent); outline-offset: 2px; }
.fxv-mm-expanded__creative { display: flex; gap: 14px; align-items: center; min-height: 60px; max-height: calc(var(--fxv-mm-expanded-height) - 40px); }
.fxv-mm-expanded__creative .fxv-mm-creative__media { max-height: calc(var(--fxv-mm-expanded-height) - 50px); max-width: min(44vw, 320px); }
.fxv-mm-expanded__creative .fxv-mm-creative__copy { display: flex; flex-direction: column; align-items: flex-start; white-space: normal; }
.fxv-mm-expanded__link { display: inline-block; margin-top: 8px; color: #a9d9ff; }
.fxv-mm-empty { width: 100%; margin: 0; padding: 12px 16px; color: var(--fxv-mm-muted); }
@media (max-width: 540px) {
  .fxv-mm-lane__label { min-width: 68px; padding: 0 8px; }
  .fxv-mm-lane__strip { gap: 14px; padding-right: 14px; }
  .fxv-mm-expanded { padding: 10px; }
  .fxv-mm-expanded__creative { flex-wrap: wrap; max-height: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fxv-mm-lane__movement { animation: none; }
  .fxv-mm-lane__viewport { overflow-x: auto; }
  .fxv-mm-lane__strip[aria-hidden='true'] { display: none; }
}

/* Per-user motion preference (OS reduced-motion handling remains intact). */
.fxv-mm-ticker[data-reduced-motion='true'] .fxv-mm-lane__movement { animation: none; }
.fxv-mm-ticker[data-reduced-motion='true'] .fxv-mm-lane__viewport { overflow-x: auto; }
.fxv-mm-ticker[data-reduced-motion='true'] .fxv-mm-lane__strip[aria-hidden='true'] { display: none; }
