/* ===========================================================
   🔹 GLOBAL RESET DAN DASAR
   =========================================================== */
[class~=shaka-video-container] {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
body, html {
  margin: 0;
  padding: 0;
  width: 100vw;
  width: 100svw;
  height: 100vh;
  height: 100svh;
  background: #000;
  overflow: hidden;
}

/* ===========================================================
   🔹 PENGATURAN UMUM SEMUA ELEMEN
   =========================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: 0;
  cursor: none;
  user-select: none;
}

/* ===========================================================
   🔹 VIDEO FULLSCREEN
   =========================================================== */
video {
  width: 100vw;
  width: 100svw;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

/* ===========================================================
   🔹 IFRAME CONTAINER (KALAU ADA VIDEO DARI IFRAME)
   =========================================================== */
.ViostreamIframe {
  overflow: hidden;
  padding-top: 52.30%;
  position: absolute;
  z-index: 2;
}
.ViostreamIframe iframe {
  border: 0;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 2;
}

/* ===========================================================
   🔹 TOMBOL REFRESH (DISIMPAN SEBAGAI OPSI)
   =========================================================== */
.button-refresh {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgb(32, 178, 170, .7);
  padding: 2px 5px;
  font-size: 0.7em;
  color: white;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 3px;
  z-index: 2;
}

/* ===========================================================
   🔹 CONTAINER UTAMA PLAYER
   =========================================================== */
#container {
  width: 100vw;
  height: 100vh;
}

/* ===========================================================
   🔹 VIDEO CONTAINER + LOGO / WATERMARK
   =========================================================== */
.video-container {
  position: relative;
  width: 100%;
  height: auto;
}

/* Logo / watermark di pojok kanan atas */
#myLogo {
  position: absolute;
  top: 20px;
  right: 8%;
  width: 100px;
  height: auto;
  opacity: 1;
  z-index: 10;
  transform: scale(1.6);
  pointer-events: none !important;
}

/* Saat fullscreen, logo agak digeser & dibesarkan */
.video-container:fullscreen #myLogo {
  top: 5%;
  right: 5%;
  width: 150px;
}

/* ===========================================================
   🔹 DEKORASI TAMBAHAN UNTUK LOGO
   =========================================================== */
.myLogo {
  background-color: rgba(51, 51, 51, 0.098);
  backdrop-filter: blur(1.2px);
  border-radius: 10px;
}

/* ===========================================================
   🔹 SHAKA PLAYER: TOMBOL & SPINNER
   =========================================================== */
.shaka-play-button {
  transform: scale(0.8);
}
.shaka-play-button-container {
  opacity: 0.3 !important;
}
.shaka-spinner-container {
  transform: scale(0.8);
  color: white;
}
/* .shaka-video-container .material-icons-round { color: rgb(32,178,170); } */

/* ===========================================================
   🔹 OVERLAY BUFFERING CUSTOM
   =========================================================== */
#bufferOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.3s ease;
}

/* Saat hilang, overlay memudar */
#bufferOverlay.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Saat dihapus total */
#bufferOverlay.removed {
  display: none;
}

/* Spinner animasi loading */
.buffer-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: #0f9386;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Animasi putar spinner */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Teks buffer */
.buffer-text {
  color: white;
  margin-top: 15px;
  font-size: 14px;
  font-family: Arial, sans-serif;
}

/* Angka progress buffer */
.buffer-progress {
  color: #0f9386;
  font-weight: bold;
  margin-top: 5px;
  font-size: 18px;
  font-family: monospace;
}

/* Progress bar visual */
.buffer-bar {
  width: 200px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  margin-top: 10px;
  overflow: hidden;
}
.buffer-bar-inner {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0f9386, #1fc5b5);
  transition: width 0.2s ease;
}

/* ===========================================================
   🔹 TOMBOL UNMUTE PLAYER
   =========================================================== */
.player-unmute {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 9999;
  display: none;

  padding: 10px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  gap: 8px;

  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.player-unmute:hover {
  background: rgba(0,0,0,.75);
  color: #bbb;
}
.player-unmute .mi {
  font-family: 'Material Icons Sharp';
  font-size: 20px;
}

/* ===========================================================
   🔹 TOMBOL REFRESH DALAM SHAKA UI
   =========================================================== */
.shaka-refresh-button svg {
  width: 22px;
  height: 22px;
  fill: white;
}
.shaka-refresh-button:hover svg {
  fill: #CCC;
}
