/* ===== TICKER BAR ===== */
.ticker-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
  border-top: 2px solid #e10600;
  height: 42px;
  display: flex;
  align-items: center;
  overflow: hidden;
  font-family: var(--font-body, 'General Sans', sans-serif);
  transition: transform 0.4s ease;
}

.ticker-bar.ticker-hidden {
  transform: translateY(100%);
  pointer-events: none;
}

.ticker-close {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(20, 20, 20, 0.9);
  border: 1px solid #333;
  color: #888;
  font-size: 18px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: all 0.2s ease;
}

.ticker-close:hover {
  color: #fff;
  border-color: #e10600;
  background: #e10600;
}

.ticker-label {
  flex-shrink: 0;
  background: #e10600;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
  position: relative;
}

.ticker-label::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 0;
  bottom: 0;
  width: 12px;
  background: linear-gradient(90deg, #e10600, transparent);
  z-index: 5;
}

.ticker-live-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: ticker-pulse 1.5s ease-in-out infinite;
}

@keyframes ticker-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.ticker-track {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 60px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 60px), transparent);
}

.ticker-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 25s linear infinite;
  gap: 0;
  padding-left: 20px;
}

.ticker-content:hover {
  animation-play-state: paused;
}

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

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  font-size: 13px;
  color: #ccc;
}

.ticker-item.ticker-result {
  color: #ffd700;
  font-weight: 600;
}

.ticker-item.ticker-insight {
  color: #999;
  font-style: italic;
}

.ticker-flag {
  font-size: 14px;
  flex-shrink: 0;
}

.ticker-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #e10600;
  background: rgba(225, 6, 0, 0.12);
  padding: 2px 6px;
  border-radius: 3px;
  flex-shrink: 0;
}

.ticker-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ticker-link:hover {
  color: #e10600;
}

.ticker-separator {
  color: #333;
  font-size: 12px;
  font-weight: 700;
  padding: 0 12px;
  flex-shrink: 0;
}

/* Add bottom padding to body so footer isn't hidden behind ticker */
body {
  padding-bottom: 42px;
}

/* Mobile: slightly smaller */
@media (max-width: 768px) {
  .ticker-bar {
    height: 36px;
  }

  .ticker-label {
    padding: 0 10px;
    font-size: 10px;
  }

  .ticker-item {
    font-size: 12px;
  }

  body {
    padding-bottom: 36px;
  }
}
