/**
 * SABO TV • Zero-OBS Facebook Live Broadcast Overlay & Modal Styles
 * Single Source of Truth for Smart TV / PC Live Streaming
 */

.btn-live-fb {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.22) 0%, rgba(185, 28, 28, 0.35) 100%) !important;
  border: 1px solid rgba(239, 68, 68, 0.6) !important;
  color: #FCA5A5 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
}

.btn-live-fb:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.45) 0%, rgba(185, 28, 28, 0.6) 100%) !important;
  border-color: #EF4444 !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.5) !important;
  transform: translateY(-1px);
}

.btn-live-fb.is-streaming {
  background: #EF4444 !important;
  color: #FFFFFF !important;
  border-color: #F87171 !important;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.75) !important;
  animation: pulse-stream-glow 1.5s infinite;
}

@keyframes pulse-stream-glow {
  0%, 100% { box-shadow: 0 0 14px rgba(239, 68, 68, 0.5); }
  50% { box-shadow: 0 0 26px rgba(239, 68, 68, 0.95); }
}

.hud-live-broadcast-btn {
  background: rgba(239, 68, 68, 0.2) !important;
  border: 1px solid rgba(239, 68, 68, 0.5) !important;
  color: #FCA5A5 !important;
  font-weight: 700 !important;
}

.hud-live-broadcast-btn:hover, .hud-live-broadcast-btn.is-streaming {
  background: #EF4444 !important;
  color: #FFFFFF !important;
  border-color: #F87171 !important;
}

/* Modal Overlay & Card */
.live-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 14, 0.85);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.live-modal-card {
  background: #0B132B;
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 16px;
  max-width: 580px;
  width: 100%;
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 242, 254, 0.15);
  color: #F1F5F9;
  font-family: inherit;
}

.live-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.live-modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #FFFFFF;
}

.live-modal-close {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.live-modal-close:hover { color: #FFFFFF; }

.live-modal-body p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #94A3B8;
  margin-top: 0;
  margin-bottom: 18px;
}

.live-modal-body p strong { color: #38BDF8; }

.live-guide-card {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.live-guide-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #38BDF8;
  margin-bottom: 10px;
}

.guide-badge {
  background: rgba(14, 165, 233, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #E0F2FE;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.live-guide-steps {
  margin: 0;
  padding-left: 20px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #CBD5E1;
}

.live-guide-steps strong {
  color: #F8FAFC;
}

.live-guide-steps em {
  color: #F87171;
  font-style: normal;
}

.live-guide-note {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  color: #94A3B8;
  line-height: 1.4;
}

.live-guide-note strong {
  color: #38BDF8;
}

.live-form-field { margin-bottom: 16px; }

.live-form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #CBD5E1;
  margin-bottom: 6px;
}

.live-link-fb {
  font-size: 0.8rem;
  color: #38BDF8;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(56, 189, 248, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  transition: all 0.2s ease;
}

.live-link-fb:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38BDF8;
  color: #FFFFFF;
}

.live-form-input {
  width: 100%;
  box-sizing: border-box;
  background: #030712;
  border: 1px solid #1E293B;
  border-radius: 8px;
  padding: 10px 14px;
  color: #FFFFFF;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.live-form-input:focus {
  border-color: #00F2FE;
  box-shadow: 0 0 0 2px rgba(0, 242, 254, 0.2);
}

.live-form-static {
  background: #111827;
  border: 1px solid #1F2937;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  color: #38BDF8;
  font-size: 0.95rem;
}

.live-form-hint {
  color: #64748B;
  font-size: 0.8rem;
  margin-top: 4px;
  display: block;
}

.live-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.live-btn-cancel {
  background: transparent;
  border: 1px solid #334155;
  color: #94A3B8;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.live-btn-cancel:hover { color: #FFFFFF; border-color: #475569; }

.live-btn-start {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  border: none;
  color: #FFFFFF;
  padding: 10px 22px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.live-btn-start:hover {
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
  transform: translateY(-1px);
}

.live-active-bar {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 12px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.live-active-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #F87171;
  font-size: 0.95rem;
}

.live-active-timer {
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 800;
  color: #FFFFFF;
  background: #000;
  padding: 2px 8px;
  border-radius: 4px;
}
