/* Fullscreen wrapper */
#tv-fullscreen {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 10000;
  display: none;
}

/* TV container & mockup */
.tv-container {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.tv-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Video inside the TV */
.tv-video-wrapper {
  position: absolute;
  background: black;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Positioning for video (same logic as tv.html JS) */
.tv-video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.9;
}

/* Flicker background effect */
.tv-flicker-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(-45deg, #ff416c, #ff4b2b, #1e90ff, #6a11cb);
  background-size: 400% 400%;
  animation: flickerAura 6s ease-in-out infinite;
  opacity: 0.25;
  filter: blur(40px);
}
@keyframes flickerAura {
  0% { background-position: 0% 50%; opacity: 0.1; }
  25% { background-position: 50% 100%; opacity: 0.4; }
  50% { background-position: 100% 50%; opacity: 0.2; }
  75% { background-position: 50% 0%; opacity: 0.35; }
  100% { background-position: 0% 50%; opacity: 0.1; }
}

/* Glass glare effect */
.tv-glass-glare {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(120deg, rgba(255,255,255,0.06), transparent 60%);
  pointer-events: none;
}

/* Noise overlay video */
.tv-noise-video {
  position: absolute;
  inset: 0;
  z-index: 3;
  object-fit: cover;
  opacity: 0.3;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Top-right mute/unmute + close buttons */
.tv-controls {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10001;
  display: flex;
  gap: 12px;
}

.tv-controls button {
  background: rgba(0,0,0,0.6);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-family: sans-serif;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

/* Center tap-to-unmute overlay */
#unmute-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10002;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  font-family: 'Segoe UI', sans-serif;
  transition: opacity 0.4s ease;
}

#unmute-overlay > div {
  background: rgba(0, 0, 0, 0.6);
  padding: 10px 18px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}

.play-btn-wrapper {
  position: relative;
  display: inline-block;
}

.play-btn-wrapper .hand-animate {
  position: absolute;
  bottom: -30px;
  left: 50%;
  font-size: 28px;
  color: #000;
  pointer-events: none;

  transform-origin: center center;
  transform: translateX(-20%) rotate(-45deg) scaleX(-1);

  /* 🔄 Two animations: bounce + fadeOut */
  animation: cursorClick 1.2s ease-in-out infinite, fadeOut 0.6s ease-out forwards;
  animation-delay: 0s, 3s; /* 👈 fadeOut starts after 3 sec */
}

@keyframes cursorClick {
  0%, 100% {
    transform: translateX(-20%) rotate(-45deg) scaleX(-1) scale(1);
  }
  30% {
    transform: translateX(-20%) rotate(-45deg) scaleX(-1) scale(0.85);
  }
  60% {
    transform: translateX(-20%) rotate(-45deg) scaleX(-1) scale(1.1);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.mm-btn-red {
  background-color: red;
  color: white;
  width: 36px; /* ✨ size untouched */
  height: 36px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  /* Smooth glowing effect */
  animation: glowOnly 2s infinite ease-in-out;
  box-shadow: 0 0 0 rgba(255, 0, 0, 0.6);
}

@keyframes glowOnly {
  0% {
    box-shadow: 0 0 4px rgba(255, 0, 0, 0.4);
  }
  50% {
    box-shadow: 0 0 14px 6px rgba(255, 0, 0, 0.7);
  }
  100% {
    box-shadow: 0 0 4px rgba(255, 0, 0, 0.4);
  }
}

body.dark-mode .hand-animate {
  color: #fff; /* White for dark background */
}


