/* ===================== شريط العاجل ===================== */
.jbl-ticker-wrap {
  background: #1a1a1a;
  direction: rtl;
  display: flex;
  align-items: center;
  padding: 8px 0;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.jbl-ticker-badge {
  background: #b91c1c;
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 20px;
  border-radius: 99px;
  margin: 0 14px;
  flex-shrink: 0;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  animation: jblBadgePulse 1.6s ease-in-out infinite;
}

.jbl-ticker-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  display: inline-block;
  animation: jblDotPulse 1.4s ease-in-out infinite;
}

@keyframes jblBadgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(185,28,28,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(185,28,28,0); }
}

@keyframes jblDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.jbl-ticker-track {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.jbl-ticker-inner {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  animation-name: jblTickerScroll !important;
  animation-timing-function: linear !important;
  animation-iteration-count: infinite !important;
  animation-play-state: running !important;
  will-change: transform;
}

.jbl-ticker-wrap:hover .jbl-ticker-inner {
  animation-play-state: paused !important;
}

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

.jbl-ticker-wrap .jbl-ticker-item {
  color: #e4e4e7 !important;
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.jbl-ticker-wrap .jbl-ticker-sep { color: #555 !important; }

.jbl-ticker-wrap .jbl-ticker-badge {
  color: #fff !important;
}

/* ===================== البث المباشر ===================== */
.jbl-live-fab {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 99990;
  background: #b91c1c;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 99px;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(185,28,28,0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}

.jbl-live-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(185,28,28,0.5);
}

.jbl-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  animation: jblPulse 1.4s ease-in-out infinite;
}

@keyframes jblPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.jbl-live-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 99991;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.jbl-live-modal.open { display: flex; }

.jbl-live-box {
  width: 100%;
  max-width: 800px;
  background: #0a0a0a;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.jbl-live-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  direction: rtl;
}

.jbl-live-title {
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.jbl-live-title .jbl-live-dot { background: #b91c1c; }

.jbl-live-close {
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  font-family: Arial, sans-serif;
  font-weight: 400;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s;
}

.jbl-live-close:hover { background: rgba(255,255,255,0.25); }

.jbl-live-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* نسبة 16:9 */
  height: 0;
}

.jbl-live-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .jbl-live-fab { bottom: 16px; left: 16px; padding: 9px 14px; font-size: 13px; }
  .jbl-ticker-item { font-size: 12px; }
}
