.psx-bar {
  display: flex;
  align-items: center;

  /* Full width fix (optional keep if you used earlier) */
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  position: relative;

  /* Visual styling */
  background: #ffffff;
  border: 1px solid #ccc;
  border-radius: 6px;

  /* Spacing */
  padding: 6px 10px;
  min-height: 40px;

  /* Typography */
  font-family: Arial, sans-serif;
  color: #000;
}

/* LEFT LABEL */
.psx-label {
  background: #f5f5f5;
  padding: 6px 10px;
  border-right: 1px solid #ccc;
  min-width: 140px;
}

.psx-label strong {
  color: #000;
  font-size: 13px;
}

.psx-time {
  font-size: 10px;
  color: #333;
}

/* TICKER AREA */
.psx-ticker {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

/* MOVING TEXT */
.psx-track {
  display: inline-block;
  padding-left: 100%;
  animation: scrollTicker 22s linear infinite;
}

.psx-track span {
  margin: 0 18px;
  font-size: 13px;
  color: #000;
}

/* COLORS FOR CHANGE */
.up {
  color: #0a8f3c; /* soft green */
}

.down {
  color: #c0392b; /* soft red */
}

/* SMOOTH SCROLL */
@keyframes scrollTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* PAUSE ON HOVER */
.psx-ticker:hover .psx-track {
  animation-play-state: paused;
}