* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
}

#player-container {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
}

#video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}


/* =====================================
   PLAY GRANDE NO CENTRO
===================================== */

#play-central {
  position: absolute;

  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);

  width: 100px;
  height: 100px;

  border: none;
  border-radius: 50%;

  background: #cfa063;
  color: #000;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  z-index: 20;

  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.35);

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

#play-central:hover {
  transform:
    translate(-50%, -50%)
    scale(1.06);
}

#play-central.oculto {
  opacity: 0;
  pointer-events: none;
}


/* TRIÂNGULO DO PLAY */

.play-icon {
  width: 0;
  height: 0;

  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 28px solid #000;

  margin-left: 7px;
}


/* =====================================
   BOTÃO ATIVAR SOM
===================================== */

#ativar-som {
  position: absolute;

  top: 24px;
  left: 50%;

  transform: translateX(-50%);

  z-index: 30;

  min-height: 52px;

  padding: 12px 24px;

  border: none;
  border-radius: 999px;

  background: #cfa063;
  color: #000;

  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 9px;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.30);

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

#ativar-som:hover {
  transform:
    translateX(-50%)
    scale(1.04);
}

#ativar-som.oculto {
  opacity: 0;
  pointer-events: none;
}


/* =====================================
   MOBILE
===================================== */

@media (max-width: 600px) {

  #play-central {
    width: 84px;
    height: 84px;
  }

  .play-icon {
    border-top-width: 15px;
    border-bottom-width: 15px;
    border-left-width: 24px;
  }

  #ativar-som {
    top: 15px;

    min-height: 48px;

    padding: 10px 18px;

    font-size: 15px;
  }

}


/* Impede controles nativos de escaparem do player */
#player-container {
  overflow: hidden;
}

#video {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

/* Chrome / Chromium */
video::-webkit-media-controls {
  overflow: hidden;
}