:root {
  --nlb-bg: linear-gradient(90deg, #0b1c35 0%, #133a6f 45%, #1f2937 100%);
  --nlb-text: #e8eef9;
  --nlb-muted: #bfd0ea;
  --nlb-update: #3b82f6;
  --nlb-alert: #ea580c;
  --nlb-live: #16a34a;
  --nlb-news: #0891b2;
}

.nuclear-live-band {
  position: relative;
  z-index: 1300;
  min-height: 26px;
  padding: 3px 10px 6px;
  border-bottom: 1px solid rgba(151, 170, 199, 0.35);
  background: var(--nlb-bg);
  color: var(--nlb-text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  line-height: 1;
}

.nlb-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 16px;
}

.nlb-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nlb-pill--update {
  background: var(--nlb-update);
}

.nlb-pill--alert {
  background: var(--nlb-alert);
}

.nlb-pill--live {
  background: var(--nlb-live);
}

.nlb-pill--news {
  background: var(--nlb-news);
}

.nlb-text-slot {
  position: relative;
  flex: 0 1 auto;
  min-width: 0;
  height: 14px;
  overflow: hidden;
}

.nlb-text {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%) translateX(0);
  --nlb-text-shift: -220px;
  font-size: 11px;
  color: var(--nlb-text);
  white-space: nowrap;
  will-change: transform;
}

.nlb-text .nlb-link {
  color: #e8f2ff;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  font-weight: 600;
}

.nlb-text .nlb-link:hover,
.nlb-text .nlb-link:focus-visible {
  color: #ffffff;
  text-decoration-thickness: 2px;
}

.nlb-text.is-running {
  animation: nlb-text-scroll var(--nlb-text-cycle-ms, 2600ms) linear forwards;
}

.nlb-dotline {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 2px;
  margin-left: 2px;
  border-radius: 999px;
  overflow: visible;
  pointer-events: none;
}

.nlb-controls {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 4px;
  flex: 0 0 auto;
}

.nlb-controls.single {
  gap: 0;
}

.nlb-nav,
.nlb-close {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(191, 208, 234, 0.5);
  border-radius: 999px;
  background: rgba(9, 21, 40, 0.28);
  color: rgba(232, 238, 249, 0.86);
  font: inherit;
  font-size: 11px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
}

.nlb-nav {
  font-size: 12px;
}

.nlb-close {
  font-size: 11px;
}

.nlb-nav:hover,
.nlb-nav:focus-visible,
.nlb-close:hover,
.nlb-close:focus-visible {
  background: rgba(17, 36, 64, 0.55);
  border-color: rgba(191, 208, 234, 0.86);
  color: #ffffff;
}

.nlb-nav:focus-visible,
.nlb-close:focus-visible {
  outline: none;
}

.nlb-dots-runner {
  position: absolute;
  top: -1px;
  left: 0;
  width: 24px;
  height: 4px;
  opacity: 0.72;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  filter: drop-shadow(0 0 2px rgba(108, 230, 170, 0.45));
  will-change: left, transform, filter, opacity;
}

.nlb-dotline.is-running .nlb-dots-runner {
  animation:
    nlb-dots-run var(--nlb-cycle-ms, 5200ms) linear forwards,
    nlb-heart-envelope 1000ms ease-in-out infinite;
}

.nlb-dot {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(217, 252, 239, 0.98);
  box-shadow:
    0 0 2px rgba(122, 248, 188, 0.52),
    0 0 4px rgba(125, 212, 255, 0.25);
}

.nlb-dotline.is-running .nlb-dot {
  animation: nlb-dot-sine 1000ms ease-in-out infinite;
}

.nlb-dotline.is-running .nlb-dot:nth-child(2) {
  animation-delay: 120ms;
}

.nlb-dotline.is-running .nlb-dot:nth-child(3) {
  animation-delay: 240ms;
}

.nlb-bars {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  display: flex;
  gap: 4px;
  height: 2px;
}

.nlb-step {
  flex: 1;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(189, 205, 228, 0.35);
}

.nlb-step-fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
}

.nlb-step.is-active .nlb-step-fill {
  animation: nlb-progress var(--nlb-cycle-ms, 5200ms) linear forwards;
}

@keyframes nlb-progress {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes nlb-dots-run {
  from {
    left: 0;
  }
  to {
    left: calc(100% - 24px);
  }
}

@keyframes nlb-heart-envelope {
  0% {
    transform: scale(1);
    opacity: 0.66;
    filter: drop-shadow(0 0 1px rgba(108, 230, 170, 0.35));
  }
  14% {
    transform: scale(1.06);
    opacity: 0.78;
    filter:
      drop-shadow(0 0 3px rgba(122, 248, 188, 0.56))
      drop-shadow(0 0 5px rgba(125, 212, 255, 0.3));
  }
  24% {
    transform: scale(1.12);
    opacity: 0.9;
    filter:
      drop-shadow(0 0 5px rgba(122, 248, 188, 0.72))
      drop-shadow(0 0 8px rgba(125, 212, 255, 0.4));
  }
  38% {
    transform: scale(1);
    filter: drop-shadow(0 0 1px rgba(108, 230, 170, 0.32));
  }
  46% {
    transform: scale(1.06);
    opacity: 0.8;
    filter:
      drop-shadow(0 0 3px rgba(122, 248, 188, 0.54))
      drop-shadow(0 0 5px rgba(125, 212, 255, 0.32));
  }
  100% {
    transform: scale(1);
    opacity: 0.66;
    filter: drop-shadow(0 0 1px rgba(108, 230, 170, 0.35));
  }
}

@keyframes nlb-dot-sine {
  0% {
    transform: translateY(0) scale(0.95);
  }
  25% {
    transform: translateY(-0.9px) scale(1.06);
  }
  50% {
    transform: translateY(0) scale(1);
  }
  75% {
    transform: translateY(0.6px) scale(0.95);
  }
  100% {
    transform: translateY(0) scale(0.95);
  }
}

@keyframes nlb-text-scroll {
  from {
    transform: translateY(-50%) translateX(0);
  }
  to {
    transform: translateY(-50%) translateX(var(--nlb-text-shift));
  }
}

@media (max-width: 680px) {
  .nuclear-live-band {
    min-height: 24px;
    padding: 2px 8px 5px;
  }

  .nlb-row {
    gap: 6px;
  }

  .nlb-pill {
    font-size: 8px;
    padding: 1px 6px;
  }

  .nlb-text {
    font-size: 10px;
  }

  .nlb-nav,
  .nlb-close {
    width: 15px;
    height: 15px;
    font-size: 10px;
  }

  .nlb-bars {
    left: 8px;
    right: 8px;
  }
}
