/* ==========================================================
   🎬 PLAYERINDI.CSS — Styling utama untuk video player Shaka
   ========================================================== */

/* ====== Layout dasar container video ====== */
[class~=shaka-video-container] { position: fixed; }
body, html { margin-left: 0; margin-right: 0; margin-top: 0; margin-bottom: 0; background-color: #000; }
[class~=shaka-video-container] { 
  top: 50%; 
  left: 50%; 
  transform: translate(-50%, -50%);
}
[class~=shaka-video], body, html, [class~=shaka-video-container] {
  width: 100%; height: 100%;
}
body, html {
  overflow: hidden;
  background: black;
  padding: 0;
}

/* ====== Spinner & Play Button ====== */
[class~=shaka-spinner-container], [class~=shaka-play-button] {
  transform: scale(.8);
}

/* ====== Catatan: Warna ikon (nonaktif untuk sekarang) ====== */
/* [class~=shaka-video-container] [class~=material-icons-round]{color:#099;} */

/* ==========================================================
   🖼️ IFAME VIDEO (VIostream Wrapper)
   ========================================================== */
.ViostreamIframe {
  overflow: hidden;
  padding-top: 52.30%;
  position: absolute;
  z-index: 2;
}
.ViostreamIframe iframe {
  border: 0;
  height: 100%;
  left: 0;
  position: absolute;
  z-index: 2;
  top: 0;
  width: 100%;
}

/* ==========================================================
   ⚙️ RESET & USER EXPERIENCE SETTINGS
   ========================================================== */
* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  outline: none;
  -webkit-border: 0;
  -moz-border: 0;
  border: 0;
  cursor: none; /* Hilangkan kursor di area player */
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

/* ==========================================================
   🖥️ TATA LETAK DASAR — HTML, BODY, VIDEO
   ========================================================== */
html, body {
  width: 100vw; width: 100svw;
  height: 100vh; height: 100svh;
  background: #000;
  overflow: hidden;
}

video {
  width: 100vw; width: 100svw;
  height: 100vh; height: 100svh;
  overflow: hidden;
}

/* ==========================================================
   🔁 TOMBOL REFRESH (default: hidden)
   ========================================================== */
.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 VIDEO
   ========================================================== */
#container {
  width: 100vw;
  height: 100vh;
}

/* ==========================================================
   🌊 WATERMARK / LOGO PLAYER
   ========================================================== */
.video-container {
  position: relative; /* untuk memposisikan watermark relatif terhadap video */
  width: 100%;
  height: auto;
}

/* Logo utama */
#myLogo {
  position: absolute;
  top: 20px;  /* posisi vertikal */
  right: 8%;  /* posisi horizontal */
  width: 100px;
  height: auto;
  opacity: 1;
  z-index: 10;
  transform: scale(1.6);
  pointer-events: none !important; /* agar klik tidak tembus logo */
}

/* Saat fullscreen (posisi logo menyesuaikan) */
.video-container:fullscreen #myLogo {
  top: 5%;
  right: 5%;
  width: 150px;
}

/* ====== Catatan: versi alternatif logo (disimpan untuk referensi) ====== */
/*
#myLogo {
  pointer-events: none !important;
  position: absolute;
  right: 12%;
  top: 16px;
  display: inline-block;
  height:34px;
  width:60px;
  z-index:1;
  transform: scale(1.6);
}
*/

/* Background blur dan border untuk logo */
.myLogo {
  background-color: rgba(51, 51, 51, 0.098);
  backdrop-filter: blur(1.2px);
  border-radius: 10px;
  transform: scale();
}

/* ==========================================================
   📱 RESPONSIVE WATERMARK (nonaktif, disimpan)
   ========================================================== */
/*
@media (min-width: 900px) {
  #myLogo {
    pointer-events: none !important;
    transform: scale(1.7);
    margin-right: 4%;
    margin-top: 12%;
  }
  .myLogo {
    background-color: rgba(51, 51, 51, 0.098);
    backdrop-filter: blur(1.2px);
    border-radius: 10px;
    transform: scale();
  }
}

@media (min-width: 1000px) {
  #myLogo {
    pointer-events: none !important;
    transform: scale(1.8);
    margin-right: 5%;
    margin-top: 12%;
  }
  .myLogo {
    background-color: rgba(51, 51, 51, 0.098);
    backdrop-filter: blur(1.2px);
    border-radius: 10px;
    transform: scale();
  }
}
*/

/* ==========================================================
   ▶️ SHAKA PLAY BUTTON & SPINNER STYLE
   ========================================================== */
.shaka-play-button {
  transform: scale(0.8); /* Ukuran ikon play */
}
.shaka-play-button-container {
  opacity: 0.3 !important; /* Transparansi tombol play */
}
.shaka-spinner-container {
  transform: scale(0.8);
  color: white;
}

/* Warna ikon (opsional, disimpan) */
/* .shaka-video-container .material-icons-round {
  color: rgb(32,178,170);
} */
