/* Preloader wrapper */
#video-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999999;
  overflow: hidden;
  transition: opacity 0.5s ease;
}

/* Video styles (Desktop default) */
#video-preloader video {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* Desktop: fullscreen cover */
  z-index: 1;
}

/* 🔊 Unmute Button (Top-Left) */
#unmuteBtn {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 30px;
  padding: 0.5em 1em;
  font-size: 1vw;
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.3s ease, background 0.3s ease;
}

#unmuteBtn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ❌ Close Button (Top-Right) */
#closeBtn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 30px;
  padding: 0.5em 1em;
  font-size: 1vw;
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.3s ease, background 0.3s ease;
}

#closeBtn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 📱 Mobile Fix → use contain so no zoom; smaller files will fit */
@media (max-width: 700px) {
  #video-preloader video {
    width: 100%;
    height: auto;         /* auto height maintain karega */
    max-height: 100%;     /* screen ke andar hi rahe */
    object-fit: contain;  /* pura video visible, no crop/zoom */
    background: #000;     /* black bars agar ratio mismatch ho */
  }

  #unmuteBtn,
  #closeBtn {
    font-size: 14px;
    padding: 0.45em 0.8em;
  }
}
