/*
 * Breaking News TV – Live Coverage Styles
 */

:root {
  --bntv-live-accent: #e63946;
  --bntv-live-bg:     #fff;
  --bntv-live-border: #e8e8ef;
  --bntv-live-radius: 8px;
  --bntv-live-sticky: #fff8f0;
}

/* ── Wrapper ────────────────────────────────────────────────────────────── */
.bntv-live-wrapper {
  max-width: 760px;
  margin: 28px auto;
  background: var(--bntv-live-bg);
  border-radius: var(--bntv-live-radius);
  border: 1px solid var(--bntv-live-border);
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  overflow: hidden;
  font-family: system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.bntv-live__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #1a1a2e;
  color: #fff;
  flex-wrap: wrap;
}
.bntv-live__header-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  flex: 1;
}
.bntv-live__refresh-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.73rem;
  opacity: .7;
}
.bntv-live__refresh-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  animation: bntv-pulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}
.bntv-live__manual-refresh {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
  width: 30px; height: 30px;
  font-size: 18px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
  padding: 0;
}
.bntv-live__manual-refresh:hover { background: rgba(255,255,255,.22); }
.bntv-live__manual-refresh.bntv-spinning { animation: bntv-spin .6s linear infinite; }
@keyframes bntv-spin { to { transform: rotate(360deg); } }

/* ── Feed ───────────────────────────────────────────────────────────────── */
.bntv-live__feed {
  padding: 0;
}
.bntv-live__empty {
  padding: 40px 20px;
  text-align: center;
  color: #888;
  font-size: 0.9rem;
}

/* ── Update rows ────────────────────────────────────────────────────────── */
.bntv-live__update {
  padding: 18px 20px;
  border-bottom: 1px solid var(--bntv-live-border);
  position: relative;
  transition: background .2s;
}
.bntv-live__update:last-child { border-bottom: none; }

.bntv-live__update--sticky {
  background: var(--bntv-live-sticky);
  border-left: 4px solid var(--bntv-live-accent);
}
.bntv-rtl .bntv-live__update--sticky {
  border-left: none;
  border-right: 4px solid var(--bntv-live-accent);
}

.bntv-live__sticky-marker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--bntv-live-accent);
  margin-bottom: 6px;
}
.bntv-live__sticky-marker::before {
  content: '📌';
  font-size: 0.75em;
}

.bntv-live__update-body {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #1a1a2e;
}
.bntv-live__update-body img,
.bntv-live__update-body video,
.bntv-live__update-body iframe {
  max-width: 100%;
  border-radius: 6px;
  margin-top: 8px;
}

/* ── Timestamp ──────────────────────────────────────────────────────────── */
.bntv-live__timestamp {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.72rem;
  color: #999;
}
.bntv-live__time { font-weight: 600; color: #555; }

/* ── New update flash animation ─────────────────────────────────────────── */
@keyframes bntv-flash-new {
  0%   { background: rgba(230,57,70,.12); }
  100% { background: transparent; }
}
.bntv-live__update--new {
  animation: bntv-flash-new 1.8s ease-out forwards;
}

/* ── RTL ────────────────────────────────────────────────────────────────── */
.bntv-rtl.bntv-live-wrapper { direction: rtl; }
.bntv-rtl .bntv-live__header { flex-direction: row-reverse; }

/* ── Dark mode ──────────────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    --bntv-live-bg:     #16213e;
    --bntv-live-border: #2a2a4a;
    --bntv-live-sticky: #1e1e3a;
  }
  .bntv-live__update-body { color: #dde; }
  .bntv-live__time        { color: #aac; }
}

/* ── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .bntv-live__header { padding: 12px 14px; gap: 8px; }
  .bntv-live__update { padding: 14px 14px; }
}

/* ═══════════════════════════════════════════════════════════════
   BROADCAST THEMES — Live feed wrapper
═══════════════════════════════════════════════════════════════ */

/* ── Newsroom Red ── */
.bntv-theme-bbc .bntv-live__header  { background: #2b2b2b; }
.bntv-theme-bbc .bntv-live__update--sticky { background: #1e1e1e; border-left-color: #bb1919; }
.bntv-rtl .bntv-theme-bbc .bntv-live__update--sticky { border-right-color: #bb1919; }
.bntv-theme-bbc .bntv-live__sticky-marker { color: #bb1919; }
.bntv-theme-bbc .bntv-live__time    { color: #bb1919; }
.bntv-theme-bbc.bntv-live-wrapper   { border-color: #3a3a3a; }

/* ── Broadcast Dark ── */
.bntv-theme-cnn .bntv-live__header  { background: #0a0a0a; border-bottom: 2px solid #cc0000; }
.bntv-theme-cnn .bntv-live__update--sticky { background: #0f0000; border-left-color: #cc0000; }
.bntv-rtl .bntv-theme-cnn .bntv-live__update--sticky { border-right-color: #cc0000; }
.bntv-theme-cnn .bntv-live__sticky-marker { color: #cc0000; }
.bntv-theme-cnn .bntv-live__time    { color: #cc0000; }
.bntv-theme-cnn .bntv-live__update-body { color: #ddd; }
.bntv-theme-cnn.bntv-live-wrapper   { background: #111; border-color: #333; }
.bntv-theme-cnn .bntv-live__empty   { color: #666; }
.bntv-theme-cnn .bntv-live__timestamp { color: #888; }

/* ── Arabic Gold ── */
.bntv-theme-aljazeera .bntv-live__header { background: #0d1b2a; border-bottom: 2px solid #c8a84b; }
.bntv-theme-aljazeera .bntv-live__update--sticky {
  background: #0d1b2a;
  border-left-color: #c8a84b;
  border-right-color: #c8a84b;
}
.bntv-theme-aljazeera .bntv-live__sticky-marker { color: #c8a84b; }
.bntv-theme-aljazeera .bntv-live__time    { color: #c8a84b; }
.bntv-theme-aljazeera .bntv-live__update-body { color: #d9cfb8; font-family: 'Segoe UI', 'Cairo', Arial, sans-serif; }
.bntv-theme-aljazeera.bntv-live-wrapper  { background: #16293d; border-color: #1e3a52; color: #d9cfb8; }
.bntv-theme-aljazeera .bntv-live__feed   { background: #16293d; }
.bntv-theme-aljazeera .bntv-live__update { border-bottom-color: #1e3a52; }
.bntv-theme-aljazeera .bntv-live__timestamp { color: #8a9db5; }
