/*--------------------------------------------------------------
# News Line (інформаційна стрічка типу тікер по ТВ)
--------------------------------------------------------------*/
.news-line {
  background-color: var(--nexin-secondary, #0a1628);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  width: 100%;
}

.news-line__inner {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  gap: 20px;
}

.news-line__label {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--nexin-base, #BFF747);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.news-line__label i {
  font-size: 14px;
}

.news-line__track {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 24px, black calc(100% - 24px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 24px, black calc(100% - 24px), transparent);
}

.news-line__wrap {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  animation: news-line-scroll 50s linear infinite;
  will-change: transform;
}

.news-line__wrap:hover {
  animation-play-state: paused;
}

/* Користувач може зупинити рух кнопкою */
.news-line--paused .news-line__wrap {
  animation-play-state: paused;
}

/* Кнопка «Зупинити / Запустити» */
.news-line__toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--nexin-white, #fff);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.news-line__toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--nexin-base, #BFF747);
  color: var(--nexin-base, #BFF747);
}

.news-line__toggle:focus {
  outline: none;
  border-color: var(--nexin-base, #BFF747);
  box-shadow: 0 0 0 2px rgba(191, 247, 71, 0.25);
}

.news-line__toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.news-line__toggle-icon--play {
  display: none;
}

/* Коли стрічка зупинена — показуємо іконку «Запустити» */
.news-line--paused .news-line__toggle-icon--pause {
  display: none;
}

.news-line--paused .news-line__toggle-icon--play {
  display: inline-flex;
}

.news-line--paused .news-line__toggle-text--pause {
  display: none;
}

.news-line--paused .news-line__toggle-text--play {
  display: inline;
}

/* Елемент стрічки — яскравий контраст, щоб не зливався з фоном */
.news-line__item {
  flex-shrink: 0;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  line-height: 1.35;
  white-space: nowrap;
  padding-right: 0;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
}

.news-line__item a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  transition: color 0.2s ease;
}
.news-line__item a:hover {
  color: var(--nexin-base, #BFF747);
}

/* Виділене інформаційне повідомлення — акцентний колір */
.news-line__item--info {
  font-weight: 600;
  color: var(--nexin-base, #BFF747);
}
.news-line__item--info a {
  color: var(--nexin-base, #BFF747);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.news-line__item--info a:hover {
  color: #fff;
}

/* Роздільник між пунктами — добре видно, не зливається */
.news-line__sep {
  flex-shrink: 0;
  margin: 0 20px;
  font-size: 10px;
  color: var(--nexin-base, #BFF747);
  opacity: 1;
  line-height: 1;
  vertical-align: middle;
}

@keyframes news-line-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Адаптивність */
@media only screen and (max-width: 1199px) {
  .news-line__inner {
    padding: 0 16px;
    gap: 16px;
    min-height: 40px;
  }

  .news-line__label {
    font-size: 12px;
  }

  .news-line__item {
    font-size: 13px;
  }

  .news-line__sep {
    margin: 0 22px;
  }

  .news-line__wrap {
    animation-duration: 45s;
  }

  .news-line__toggle {
    min-width: 40px;
    min-height: 28px;
    padding: 5px 10px;
    font-size: 11px;
  }

  .news-line__toggle-icon {
    font-size: 11px;
  }
}

@media only screen and (max-width: 991px) {
  .news-line__inner {
    padding: 0 15px;
    gap: 12px;
    min-height: 38px;
  }

  .news-line__label {
    font-size: 11px;
  }

  .news-line__label i {
    font-size: 12px;
  }

  .news-line__item {
    font-size: 12px;
  }

  .news-line__sep {
    margin: 0 18px;
    font-size: 6px;
  }

  .news-line__wrap {
    animation-duration: 40s;
  }

  .news-line__track {
    mask-image: linear-gradient(to right, transparent, black 16px, black calc(100% - 16px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 16px, black calc(100% - 16px), transparent);
  }

  .news-line__toggle-text {
    display: none;
  }

  .news-line--paused .news-line__toggle-text--play {
    display: none;
  }

  .news-line__toggle {
    min-width: 36px;
    min-height: 28px;
    padding: 6px;
  }
}

@media only screen and (max-width: 767px) {
  .news-line__inner {
    padding: 0 12px;
    gap: 10px;
    min-height: 36px;
  }

  .news-line__label {
    font-size: 10px;
  }

  .news-line__label i {
    font-size: 11px;
  }

  .news-line__item {
    font-size: 11px;
  }

  .news-line__sep {
    margin: 0 14px;
  }

  .news-line__wrap {
    animation-duration: 35s;
  }

  .news-line__track {
    mask-image: linear-gradient(to right, transparent, black 12px, black calc(100% - 12px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 12px, black calc(100% - 12px), transparent);
  }

  .news-line__toggle {
    min-width: 34px;
    min-height: 26px;
    padding: 5px;
  }

  .news-line__toggle-icon {
    font-size: 10px;
  }
}

@media only screen and (max-width: 500px) {
  .news-line__label span:not(.news-line__label i) {
    display: none;
  }

  .news-line__label i {
    margin: 0;
  }

  .news-line__inner {
    padding: 0 10px;
    min-height: 34px;
  }

  .news-line__item {
    font-size: 10px;
  }

  .news-line__wrap {
    animation-duration: 30s;
  }

  .news-line__toggle {
    min-width: 32px;
    min-height: 24px;
    padding: 4px;
  }
}
