/* ═══════════════════════════════════════════════════════════
   Church Hub — livestream.css
   Livestream System Styles
═══════════════════════════════════════════════════════════ */

/* ── LIVE BADGE ─────────────────────────────────────────── */
.ls-live-pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .28rem .65rem;
  border-radius: 30px;
  box-shadow: 0 0 12px rgba(239,68,68,.5);
  animation: lsPulse 1.8s ease infinite;
}
.ls-live-dot {
  width: 7px; height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: lsDotBlink 1.2s ease infinite;
}
@keyframes lsPulse {
  0%,100% { box-shadow: 0 0 10px rgba(239,68,68,.45); }
  50%      { box-shadow: 0 0 22px rgba(239,68,68,.8); }
}
@keyframes lsDotBlink {
  0%,100% { opacity: 1; }
  50%      { opacity: .3; }
}

/* ── PAGE LAYOUT ────────────────────────────────────────── */
#pageLivestream {
  padding-bottom: calc(var(--nav-h) + 1rem);
}

/* ── LIVE PLAYER CARD ───────────────────────────────────── */
.ls-player-wrap {
  position: relative;
  background: #000;
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid rgba(239,68,68,.3);
  box-shadow: 0 0 30px rgba(239,68,68,.15);
}
.ls-player-ratio {
  position: relative;
  padding-bottom: 56.25%;
}
.ls-player-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.ls-player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem .5rem;
  background: var(--glass);
  border-bottom: 1px solid var(--glass-border);
}
.ls-player-title {
  font-family: var(--f-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--tx-1);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ls-fullscreen-btn {
  background: var(--glass-2);
  border: 1px solid var(--glass-border);
  color: var(--tx-2);
  border-radius: 8px;
  padding: .3rem .6rem;
  font-size: .78rem;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: .5rem;
  transition: background .2s;
}
.ls-fullscreen-btn:hover { background: var(--glass-3); }

/* ── FULLSCREEN PLAYER ──────────────────────────────────── */
.ls-fullscreen-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  flex-direction: column;
}
.ls-fullscreen-overlay.active {
  display: flex;
}
.ls-fs-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  background: rgba(0,0,0,.7);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  transition: opacity .3s;
}
.ls-fs-header.hidden { opacity: 0; pointer-events: none; }
.ls-fs-close {
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.ls-fs-title {
  font-family: var(--f-display);
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
  flex: 1;
}
.ls-fs-iframe-wrap {
  flex: 1;
  position: relative;
}
.ls-fs-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  inset: 0;
}

/* ── COUNTDOWN CARD ─────────────────────────────────────── */
.ls-countdown-card {
  background: var(--glass);
  border: 1px solid rgba(245,158,11,.25);
  border-radius: var(--r-sm);
  padding: 1.2rem 1rem;
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}
.ls-countdown-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(245,158,11,.08) 0%, transparent 70%);
  pointer-events: none;
}
.ls-countdown-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .5rem;
}
.ls-countdown-title {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--tx-1);
  margin-bottom: .85rem;
}
.ls-countdown-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.ls-cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ls-cd-num {
  font-family: var(--f-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  min-width: 2ch;
  text-align: center;
}
.ls-cd-lbl {
  font-size: .58rem;
  color: var(--tx-3);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: .2rem;
}
.ls-cd-sep {
  font-size: 1.5rem;
  color: var(--tx-3);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* ── STREAM LIST ────────────────────────────────────────── */
.ls-section-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tx-3);
  margin: 1.1rem 0 .55rem;
}
.ls-stream-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  overflow: hidden;
  margin-bottom: .6rem;
  cursor: pointer;
  transition: border-color .2s, transform .15s;
  display: flex;
  align-items: stretch;
}
.ls-stream-card:hover {
  border-color: var(--glass-border-hi);
  transform: translateY(-1px);
}
.ls-stream-card.is-live {
  border-color: rgba(239,68,68,.4);
  box-shadow: 0 0 16px rgba(239,68,68,.1);
}
.ls-stream-thumb {
  width: 90px;
  min-height: 60px;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.ls-stream-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.ls-stream-thumb .ls-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ls-stream-body {
  flex: 1;
  padding: .65rem .75rem;
  min-width: 0;
}
.ls-stream-meta {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .2rem;
  flex-wrap: wrap;
}
.ls-stream-name {
  font-family: var(--f-display);
  font-size: .88rem;
  font-weight: 700;
  color: var(--tx-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ls-stream-info {
  font-size: .72rem;
  color: var(--tx-3);
  margin-top: .15rem;
}
.ls-badge-scheduled {
  display: inline-block;
  background: var(--violet-lo);
  color: var(--violet);
  font-size: .6rem;
  font-weight: 700;
  padding: .15rem .45rem;
  border-radius: 20px;
  letter-spacing: .05em;
}
.ls-badge-replay {
  display: inline-block;
  background: rgba(16,185,129,.12);
  color: var(--mint);
  font-size: .6rem;
  font-weight: 700;
  padding: .15rem .45rem;
  border-radius: 20px;
}
.ls-stream-arrow {
  display: flex;
  align-items: center;
  padding-right: .75rem;
  color: var(--tx-3);
  font-size: .9rem;
}

/* ── EMPTY STATE ────────────────────────────────────────── */
.ls-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--tx-3);
}
.ls-empty-icon { font-size: 2.5rem; margin-bottom: .5rem; display: block; }
.ls-empty-text { font-size: .85rem; }

/* ── ADMIN PANEL ────────────────────────────────────────── */
.ls-admin-panel {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  padding: 1rem;
  margin-bottom: 1rem;
}
.ls-admin-title {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.ls-platform-toggle {
  display: flex;
  gap: .4rem;
  margin-bottom: .6rem;
}
.ls-platform-btn {
  flex: 1;
  padding: .55rem;
  border-radius: var(--r-xs);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  color: var(--tx-2);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  font-family: var(--f-body);
}
.ls-platform-btn.active {
  background: var(--violet-lo);
  border-color: var(--violet);
  color: var(--tx-1);
}

/* ── NOTIFICATION BELL ──────────────────────────────────── */
.ls-notify-btn {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: var(--glass-2);
  border: 1px solid var(--glass-border);
  color: var(--tx-2);
  border-radius: 20px;
  padding: .35rem .75rem;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  font-family: var(--f-body);
}
.ls-notify-btn.active {
  background: var(--gold-lo);
  border-color: rgba(245,158,11,.35);
  color: var(--gold);
}

/* ── STREAM DETAIL SHEET ────────────────────────────────── */
.ls-detail-platform {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 20px;
  margin-bottom: .6rem;
}
.ls-detail-platform.youtube {
  background: rgba(255,0,0,.12);
  color: #FF4444;
}
.ls-detail-platform.facebook {
  background: rgba(24,119,242,.12);
  color: #4a8ef5;
}

/* ── HOME PINNED BANNER ─────────────────────────────────── */
.ls-home-banner {
  background: linear-gradient(135deg, rgba(239,68,68,.15), rgba(220,38,38,.08));
  border: 1px solid rgba(239,68,68,.3);
  border-radius: var(--r-sm);
  padding: .85rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(239,68,68,.1);
  animation: lsPulse 2.5s ease infinite;
  transition: transform .15s;
}
.ls-home-banner:hover { transform: scale(1.01); }
.ls-home-banner-icon { font-size: 1.4rem; flex-shrink: 0; }
.ls-home-banner-body { flex: 1; min-width: 0; }
.ls-home-banner-label {
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #EF4444;
  margin-bottom: .1rem;
}
.ls-home-banner-title {
  font-family: var(--f-display);
  font-size: .9rem;
  font-weight: 700;
  color: var(--tx-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ls-home-banner-arrow { color: var(--tx-3); font-size: 1rem; }
