/* Broadcast ticker widget */
:root {
  --bc-teal: #0891b2;
  --bc-teal-dark: #0e7490;
  --bc-orange: #f59e0b;
  --bc-orange-dark: #ea580c;
  --bc-popup-dark: #0f172a;
  --bc-popup-muted: #64748b;
}

.broadcast-ticker-wrap {
  padding: 4px 2px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.broadcast-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  padding: 9px 46px 9px 12px;
  border-radius: 14px;
  color: #fff;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.14);
}

.broadcast-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.broadcast-bar.teal {
  background: linear-gradient(95deg, var(--bc-teal-dark), var(--bc-teal));
}

.broadcast-bar.orange {
  background: linear-gradient(95deg, var(--bc-orange-dark), var(--bc-orange));
}

.broadcast-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.68rem;
  white-space: nowrap;
  letter-spacing: 0.06em;
}

.broadcast-left .tag {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 800;
}

.broadcast-marquee {
  flex: 1;
  overflow: hidden;
}

.marquee-track {
  display: inline-flex;
  gap: 30px;
  white-space: nowrap;
  animation: bc-scroll 18s linear infinite;
}

.broadcast-bar:hover .marquee-track {
  animation-play-state: paused;
}

.broadcast-text {
  font-weight: 700;
  font-size: 0.9rem;
}

.broadcast-cta {
  background: #fff;
  color: #111827;
  border: none;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

.broadcast-close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

@keyframes bc-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Broadcast popup */
.broadcast-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 2000;
}

.broadcast-popup {
  width: 100%;
  max-width: 430px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(203, 213, 225, 0.65);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.28);
  animation: bc-pop 0.2s ease-out;
}

.broadcast-popup.theme-teal .broadcast-popup-cta {
  background: var(--bc-teal);
}

.broadcast-popup.theme-orange .broadcast-popup-cta {
  background: var(--bc-orange-dark);
}

.broadcast-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.broadcast-popup-badge {
  text-transform: uppercase;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--bc-popup-dark);
  background: #e2e8f0;
  border-radius: 999px;
  padding: 4px 10px;
}

.broadcast-popup-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: var(--bc-popup-dark);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}

.broadcast-popup-body {
  margin-top: 12px;
}

.broadcast-popup-title {
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--bc-popup-dark);
  margin-bottom: 6px;
}

.broadcast-popup-message {
  font-size: 0.9rem;
  color: var(--bc-popup-muted);
  line-height: 1.55;
}

.broadcast-popup-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.broadcast-popup-cta {
  flex: 1;
  min-width: 120px;
  color: #fff;
  text-decoration: none;
  text-align: center;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.88rem;
}

.broadcast-popup-dismiss {
  flex: 1;
  min-width: 120px;
  background: #f1f5f9;
  border: 1px solid rgba(203, 213, 225, 0.6);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
  color: var(--bc-popup-dark);
  font-size: 0.88rem;
  cursor: pointer;
}

@keyframes bc-pop {
  from {
    transform: translateY(12px) scale(0.98);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
