.live-news-status {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.92);
  color: #f5f5f5;
  font: 600 12px/1.2 "Segoe UI", "PingFang SC", "Hiragino Sans GB", sans-serif;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  cursor: default;
  user-select: none;
}

.live-news-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.6);
  animation: live-news-pulse 1.8s infinite;
}

.live-news-status[data-state="loading"] .live-news-status__dot {
  background: #f1c40f;
  animation: none;
}

.live-news-status[data-state="cached"] .live-news-status__dot {
  background: #3498db;
}

.live-news-status[data-state="warn"] .live-news-status__dot,
.live-news-status[data-state="error"] .live-news-status__dot {
  background: #e74c3c;
  animation: none;
}

@keyframes live-news-pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(46, 204, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

@media (max-width: 640px) {
  .live-news-status {
    right: 10px;
    bottom: 10px;
    max-width: calc(100vw - 20px);
    font-size: 11px;
  }
}
