:root {
  --primary-pink: #ff007f;
  --bg-black: #000000;
  --glass-bg: rgba(15, 15, 15, 0.85);
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-black);
  font-family: 'Segoe UI', sans-serif;
  width: 100%;
  height: 100%;
  overflow: hidden;
  /* Mencegah bouncing di iOS */
  position: fixed; 
}

.fullscreen-iframe {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  border: 0;
  z-index: 1;
  display: block;
  /* Menghilangkan sisa space di bawah */
  vertical-align: bottom; 
}

/* Mengatasi masalah video turun/terpotong karena aspect ratio */
@supports (aspect-ratio: auto) {
  .fullscreen-iframe {
    width: 100vw;
    height: 100vh;
    /* Menghapus paksaan ratio agar mengikuti ukuran layar user */
    aspect-ratio: auto; 
    object-fit: contain;
  }
}

/* Fix untuk Mobile agar tidak terpotong address bar browser */
@media (max-width: 768px) {
  .fullscreen-iframe {
    height: 100dvh; /* Dynamic Viewport Height untuk mobile modern */
    width: 100%;
  }
}

.auto-hide-ui {
  transition: opacity 0.4s ease, visibility 0.4s ease !important;
  opacity: 1;
  visibility: visible;
}

.ui-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
}

.controls-overlay {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  display: flex;
  gap: 10px;
  padding: 10px 20px;
  background-color: var(--glass-bg);
  border: 1px solid rgba(255, 0, 127, 0.2);
  border-radius: 50px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 25px rgba(0,0,0,0.6);
}

.btn-custom {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 15px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.btn-custom:hover, .btn-custom.active {
  background: var(--primary-pink);
  border-color: var(--primary-pink);
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 0, 127, 0.4);
}

.unique-sticky-widget-container {
  position: fixed;
  left: 20px;
  bottom: 50px;
  z-index: 500;
}

.flot-tg-messenger-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: #1a1a1a;
  color: var(--primary-pink);
  border: 1.5px solid var(--primary-pink);
  border-radius: 50%;
  font-size: 20px;
  text-decoration: none;
  box-shadow: 0 0 15px rgba(255, 0, 127, 0.3);
  transition: all 0.2s;
}

#iklan-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.01); /* Hampir transparan tapi tetap bisa diklik */
  z-index: 1000;
  display: none;
  cursor: pointer;
}

#activity-sensor {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 400;
  background: transparent;
  pointer-events: none;
}