/* Prevent the remote from creating a horizontal scrollbar/white border on the right
   while keeping the hero container from growing its own vertical scrollbar. */
.elementor-1075 .elementor-element.elementor-element-c9d40d7 {
  overflow-x: hidden; /* fallback for older browsers */
  overflow-x: clip;
  overflow-y: visible;
}

/* Launcher overlays the TV image: remote on the right, text below the TV */
#iptv-launcher {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  pointer-events: none;
}

#iptv-launcher > * {
  pointer-events: auto;
}

.iptv-launcher-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  text-decoration: none !important;
  border: none;
  outline: none;
}

/* "Launch IPTV Player" text directly under the TV */
.iptv-launcher-text {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 16px;
  display: inline-block;
  color: #9ef01a;
  font-weight: 700;
  font-size: 1.1rem;
  text-shadow: 0 0 8px rgba(158, 240, 26, 0.7);
  white-space: nowrap;
  animation: iptv-glow 2s ease-in-out infinite;
  transition: transform 0.2s ease;
}

.iptv-launcher-link:hover .iptv-launcher-text,
.iptv-launcher-link:focus .iptv-launcher-text {
  transform: translateX(-50%) scale(1.05);
}

/* Remote on the right side of the TV, vertically centered, with a small gap from the viewport edge */
.iptv-remote-wrap {
  position: absolute;
  right: -90px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-block;
  width: 100px;
  animation: iptv-float 3s ease-in-out infinite;
}

.iptv-remote-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Pulsing power button overlay (top-center of the remote) */
.iptv-power-btn {
  position: absolute;
  top: 3.8%;
  left: 50%;
  transform: translateX(-50%);
  width: 18%;
  height: 5.2%;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.35);
  box-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
  animation: iptv-pulse 1.4s infinite;
  transition: background 0.2s ease;
}

.iptv-launcher-link:hover .iptv-power-btn,
.iptv-launcher-link:focus .iptv-power-btn {
  background: rgba(255, 0, 0, 0.6);
}

@keyframes iptv-float {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 10px)); }
}

@keyframes iptv-pulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.2); }
}

@keyframes iptv-glow {
  0%, 100% { text-shadow: 0 0 8px rgba(158, 240, 26, 0.6); }
  50% { text-shadow: 0 0 18px rgba(158, 240, 26, 1), 0 0 30px rgba(158, 240, 26, 0.5); }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .iptv-remote-wrap {
    width: 70px;
    right: -65px;
  }
  .iptv-launcher-text {
    font-size: 0.95rem;
    margin-top: 10px;
  }
}

@media (max-width: 480px) {
  .iptv-remote-wrap {
    width: 55px;
    right: -50px;
  }
}
