* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: sans-serif;
  background-color: #000;
}

#video-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

video {
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Barra de progresso */
.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.2);
}

.progress {
  height: 100%;
  width: 0%;
  background-color: #fff;
  transition: width 0.1s;
}

/* Botões flutuantes */
.icon-button {
  color: #fff;
  font-size: 16px;
  position: absolute;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.icon-button:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* Estilização opcional dos ícones */
.icon-button i {
  font-size: 20px;
  pointer-events: none;
}

/* Posições dos botões */

#ad-button {
  top: 20px;
  right: 20px;
  left: auto;
  background-color: #ff3b3f;
}

#download-button {
  bottom: 140px;
  right: 20px;
}

#autoplay-button {
  bottom: 80px;
  right: 20px;
}

#mute-button {
  bottom: 20px;
  right: 20px;
}

@media (max-width:480px) {
  #download-button {
    bottom: 220px;
  }
  #autoplay-button {
    bottom: 160px;
  }
  #mute-button {
    bottom: 100px;
  }

  .progress-bar {
    bottom: 80px;
    height: 8px;
  }
}

/* Estilo do modal de carregamento */
#loading-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #0000008a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

#loading-modal img {
  max-width: 200px;
  max-height: 200px;
  width: auto;
  height: auto;
  transform: rotate(90deg);
}