
/* =========
   Badge
   ========= */
.church-live-badge{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 999999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,0.80);
  color: #fff;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 8px 24px rgba(0,0,0,0.20);
  user-select: none;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
}
.church-live-badge:hover{
  background: rgba(0,0,0,0.88);
}
.church-live-badge__dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ff3b30;
  box-shadow: 0 0 0 4px rgba(255,59,48,0.18);
}
.church-live-badge__text{
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* =========
   Modal
   ========= */
.church-live-modal{
  position: fixed;
  inset: 0;
  z-index: 1000000;
}
.church-live-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}
.church-live-modal__dialog{
  position: relative;
  width: min(980px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  margin: 12px auto;
  background: #0b0b0b;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
}
.church-live-modal__close{
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.55);
  color: #fff;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.church-live-modal__close:hover{
  background: rgba(0,0,0,0.70);
}

.church-live-modal__header{
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.church-live-modal__title{
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  padding-right: 48px; /* leave room for close button */
}
.church-live-modal__body{
  padding: 14px 16px 16px 16px;
  color: #fff;
}

.church-live-modal__status{
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  margin-bottom: 10px;
}

/* Responsive player container */
.church-live-modal__player{
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
}
.church-live-iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.church-live-modal__fallback{
  display: inline-block;
  margin-top: 12px;
  color: rgba(255,255,255,0.85);
  text-decoration: underline;
  font-size: 14px;
}

/* Spinner */
.church-live-spinner{
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: rgba(255,255,255,0.90);
  animation: churchLiveSpin 0.9s linear infinite;
}
@keyframes churchLiveSpin{
  to { transform: rotate(360deg); }
}

/* Prevent background scroll when modal open */
html.church-live--modal-open, body.church-live--modal-open{
  overflow: hidden !important;
}

/* Mobile: full screen dialog */
@media (max-width: 768px){
  .church-live-modal__dialog{
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    margin: 8px auto;
    border-radius: 12px;
  }
  .church-live-modal__body{
    padding: 12px 12px 14px 12px;
  }
}
