.screen-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  padding: 0;
  display: grid;
  grid-template-columns: 28% 72%;
  overflow: hidden;
}

.left-panel,
.right-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.right-panel {
  position: relative;
  gap: clamp(8px, 1vh, 14px);
  padding: clamp(6px, 0.8vh, 12px) clamp(18px, 1.8vw, 28px) 0;
}

.content-brand-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: clamp(74px, 9.2vh, 98px);
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}

.content-brand-frame[data-logo-shape="square"] {
  width: clamp(74px, 9.2vh, 98px);
  height: clamp(74px, 9.2vh, 98px);
}

.content-brand-frame[data-logo-shape="tall"] {
  width: clamp(64px, 5.2vw, 84px);
  height: clamp(82px, 10vh, 104px);
}

.content-brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
}

.content-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(16px, 1.5vw, 24px);
  padding: 0 0 clamp(8px, 1vh, 12px);
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  flex-shrink: 0;
}

.content-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(240, 201, 106, 0.7) 0%,
    rgba(240, 201, 106, 0.4) 40%,
    rgba(240, 201, 106, 0.12) 75%,
    transparent 100%
  );
  opacity: 0.95;
  pointer-events: none;
}

.content-identity {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(2px, 0.3vh, 4px);
}

.content-mosque-name {
  margin: 0;
  color: var(--ivory-soft);
  font-size: clamp(2.4rem, 3.2vw, 4rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow:
    0 2px 14px rgba(0, 0, 0, 0.4),
    0 0 28px rgba(240, 201, 106, 0.14);
}

.content-address {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(248, 243, 232, 0.88);
  font-size: clamp(1.15rem, 1.25vw, 1.45rem);
  font-weight: 500;
  line-height: 1.2;
}

.content-address-icon {
  width: clamp(14px, 1vw, 18px);
  height: clamp(14px, 1vw, 18px);
  stroke: var(--teal-soft);
  flex-shrink: 0;
}

.content-extra-info {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--mint-soft);
  font-size: clamp(1.05rem, 1.15vw, 1.35rem);
  font-weight: 500;
  line-height: 1.2;
  opacity: 0.9;
}

.content-extra-icon {
  width: clamp(13px, 0.9vw, 16px);
  height: clamp(13px, 0.9vw, 16px);
  stroke: var(--teal-soft);
  flex-shrink: 0;
}

.content-header-watermark {
  position: absolute;
  right: clamp(14px, 2vw, 36px);
  top: 50%;
  transform: translateY(-50%);
  height: clamp(64px, 8vh, 88px);
  width: auto;
  aspect-ratio: 1 / 1;
  color: var(--gold-highlight);
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-header-watermark svg {
  width: 100%;
  height: 100%;
}

.content-stage {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 0.8vh, 10px);
  min-height: 0;
}

.content-stage-frame {
  position: relative;
  width: auto;
  height: 100%;
  aspect-ratio: 16 / 9;
  min-width: 0;
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  border: 2px dashed rgba(185, 231, 209, 0.18);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
  overflow: visible;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    radial-gradient(circle at top left, rgba(240, 201, 106, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(79, 214, 194, 0.12), transparent 22%),
    linear-gradient(135deg, rgba(7, 45, 31, 0.88) 0%, rgba(9, 63, 44, 0.9) 50%, rgba(6, 34, 25, 0.92) 100%);
  display: grid;
  place-items: center;
  text-align: center;
}

.content-stage-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 1;
}

.content-stage-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: 10px;
}

.content-stage-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.content-stage-slide.active {
  opacity: 1;
  visibility: visible;
}

.content-stage-slide img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
  display: block;
}

/* =============================================================================
   SLIDE TYPE: TEXT / AYAT AL-QURAN & HADITS
   ============================================================================= */
.content-stage-slide--text {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  background:
    radial-gradient(circle at 50% 25%, rgba(27, 199, 207, 0.12) 0%, transparent 55%),
    radial-gradient(circle at 50% 80%, rgba(224, 183, 53, 0.09) 0%, transparent 60%),
    linear-gradient(145deg, #021a13 0%, #06382a 50%, #01130d 100%);
  color: var(--white);
  box-sizing: border-box;
}

.slide-quran-card {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.slide-quran-frame {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(14px, 2.2vh, 26px) clamp(24px, 3.5vw, 64px);
  border: none;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  box-sizing: border-box;
}

.slide-quran-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
  width: 100%;
}

.slide-quran-arabic {
  margin: 0;
  font-family: "Amiri", "Scheherazade New", "Traditional Arabic", serif;
  font-size: clamp(2.4rem, 3.8vw, 5.0rem);
  font-weight: 700;
  line-height: 1.8;
  color: var(--gold-highlight);
  text-shadow: 0 0 24px rgba(224, 183, 53, 0.3);
  direction: rtl;
  max-width: 96%;
}

.slide-quran-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(85%, 520px);
  margin: clamp(10px, 1.5vh, 20px) auto;
}

.slide-quran-divider-line {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(224, 183, 53, 0.6), transparent);
}

.slide-quran-divider-star {
  font-size: 1.1rem;
  color: var(--gold-highlight);
}

.slide-quran-translation {
  margin: 0;
  font-size: clamp(1.3rem, 1.8vw, 2.3rem);
  line-height: 1.55;
  color: var(--ivory-soft);
  font-weight: 500;
  font-style: italic;
  max-width: 94%;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.slide-quran-footer {
  flex-shrink: 0;
  margin-top: clamp(12px, 1.8vh, 24px);
}

.slide-quran-surah-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(6px, 0.9vh, 10px) clamp(20px, 2.2vw, 34px);
  border-radius: 999px;
  background: rgba(224, 183, 53, 0.12);
  border: 1.5px solid rgba(224, 183, 53, 0.45);
  color: var(--gold-highlight);
  font-size: clamp(0.95rem, 1.2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(224, 183, 53, 0.3);
}

/* =============================================================================
   SLIDE TYPE: CUSTOM / FREE TEXT / HTML BEBAS
   ============================================================================= */
.content-stage-slide--custom {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  background:
    radial-gradient(circle at 50% 25%, rgba(27, 199, 207, 0.12) 0%, transparent 55%),
    radial-gradient(circle at 50% 80%, rgba(224, 183, 53, 0.09) 0%, transparent 60%),
    linear-gradient(145deg, #021a13 0%, #06382a 50%, #01130d 100%);
  color: var(--white);
  box-sizing: border-box;
}

.slide-custom-card {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.slide-custom-frame {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(20px, 3.5vh, 48px) clamp(28px, 4.5vw, 84px);
  border: none;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  box-sizing: border-box;
}

.slide-custom-title {
  margin: 0 0 clamp(8px, 1.4vh, 18px);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: clamp(1.9rem, 2.8vw, 3.8rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.slide-custom-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 1.2vh, 16px);
}

.slide-custom-content {
  width: 100%;
  max-width: 96%;
  font-size: clamp(1.4rem, 2.2vw, 3.0rem);
  line-height: 1.6;
  color: var(--ivory-soft);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.4vh, 20px);
}

.slide-custom-content h1,
.slide-custom-content h2,
.slide-custom-content h3 {
  margin: 0;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.25;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}

.slide-custom-content h1 { font-size: clamp(2.0rem, 3.2vw, 4.2rem); }
.slide-custom-content h2 { font-size: clamp(1.7rem, 2.6vw, 3.5rem); }
.slide-custom-content h3 { font-size: clamp(1.4rem, 2.0vw, 2.8rem); }

.slide-custom-content p {
  margin: 0;
}

.slide-custom-content b,
.slide-custom-content strong {
  color: var(--gold-highlight);
  font-weight: 700;
}

.slide-custom-content em,
.slide-custom-content i {
  color: var(--mint-soft);
  font-style: italic;
}

.slide-custom-body {
  width: 100%;
}

.slide-custom-content u {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.slide-custom-content s,
.slide-custom-content del {
  text-decoration: line-through;
  opacity: 0.75;
}

.slide-custom-content ul {
  display: inline-block;
  text-align: left;
  margin: 0;
  padding-left: 1.5em;
}

.slide-custom-content li {
  margin-bottom: 0.3em;
}

.content-stage-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 0.7vw, 10px);
  flex-shrink: 0;
  pointer-events: none;
}

.content-stage-dot {
  width: clamp(9px, 0.7vw, 10px);
  height: clamp(9px, 0.7vw, 10px);
  border-radius: 50%;
  background: rgba(248, 243, 232, 0.32);
  border: 1px solid rgba(248, 243, 232, 0.4);
}

.content-stage-dot.active {
  width: clamp(24px, 2vw, 28px);
  border-radius: 999px;
  background: rgba(79, 214, 194, 0.95);
  border-color: rgba(79, 214, 194, 0.95);
}

.content-ticker {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(12px, 1vw, 14px);
  flex-shrink: 0;
  margin-top: auto;
  border-radius: 18px;
  padding: clamp(8px, 1vh, 11px) clamp(12px, 1vw, 14px);
  border: 1px solid rgba(185, 231, 209, 0.12);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(79, 214, 194, 0.05));
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.content-ticker-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(68px, 4.8vw, 74px);
  padding: clamp(9px, 1.2vh, 10px) clamp(14px, 1vw, 16px);
  border-radius: 999px;
  background: rgba(79, 214, 194, 0.16);
  color: var(--teal-soft);
  font-size: clamp(0.84rem, 0.95vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.content-ticker-track {
  overflow: hidden;
  contain: content;
}

.content-ticker-text {
  margin: 0;
  display: inline-block;
  color: var(--ivory-soft);
  font-size: clamp(1.3rem, 1.9vw, 1.8rem);
  font-weight: 600;
  white-space: nowrap;
  padding-left: 100%;
  animation: ticker-marquee var(--ticker-duration, 28s) linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.content-ticker-item {
  display: inline-flex;
  align-items: center;
}

.content-ticker-item + .content-ticker-item::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 22px;
  border: 2px solid rgba(240, 201, 106, 0.82);
  border-radius: 2px;
  transform: rotate(45deg);
}

@keyframes ticker-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-100%, 0, 0);
  }
}

/* =============================================================================
   SYNC / REFRESH OVERLAY (Indikator Refresh di Tengah Layar TV)
   ============================================================================= */
.sync-refresh-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 18, 20, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.sync-refresh-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sync-refresh-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 36px 52px;
  background: linear-gradient(145deg, rgba(8, 38, 42, 0.95), rgba(4, 22, 26, 0.98));
  border: 1.5px solid rgba(229, 184, 82, 0.5);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(229, 184, 82, 0.2);
  transform: scale(0.85);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sync-refresh-overlay.active .sync-refresh-card {
  transform: scale(1);
}

.sync-refresh-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(229, 184, 82, 0.12);
  border: 1.5px solid rgba(229, 184, 82, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-highlight, #f0c96a);
  box-shadow: 0 0 20px rgba(229, 184, 82, 0.25);
}

.sync-refresh-spinner {
  width: 38px;
  height: 38px;
  animation: sync-spin 1.1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.sync-refresh-text {
  margin: 0;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.sync-refresh-sub {
  font-size: clamp(0.82rem, 1.1vw, 0.95rem);
  color: rgba(240, 201, 106, 0.85);
  letter-spacing: 0.3px;
}

@keyframes sync-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
