* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

html, body {
  height: 100%;
  background: #000;
  overflow: hidden;
}

.device {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.scroll-container {
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 1;
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

.screen {
  scroll-snap-align: start;
  width: 100%;
  height: 100vh;
  position: relative;
  background-color: #000;
  overflow: hidden;
  z-index: 1;
}

video, img.bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-bar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
  background: rgba(0,0,0,0.3);
  font-size: 13px;
  color: white;
}

.center-tabs {
  display: flex;
  gap: 10px;
}

.tab {
  cursor: pointer;
  opacity: 0.7;
  position: relative;
}

.tab.active {
  opacity: 1;
  font-weight: bold;
}

.tab.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #ff0050;
  border-radius: 50%;
}

.right-buttons {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 20;
}

.right-buttons img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #fff;
}

.right-buttons .btn {
  text-align: center;
  color: white;
  font-size: 18px;
}

.caption {
  position: absolute;
  left: 12px;
  bottom: 170px;
  color: white;
  z-index: 20;
  font-size: 15px;
  line-height: 1.4;
  max-width: 70%;
  text-shadow: 1px 1px 4px black;
}

.volume-toggle {
  position: absolute;
  left: 12px;
  bottom: 130px;
  z-index: 20;
  font-size: 20px;
  background: rgba(0,0,0,0.4);
  border: none;
  color: white;
  cursor: pointer;
}

.bottom-bar {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 64px;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 20;
  color: white;
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 18px;
}

/* FIXED: Overlay agar selalu tampil di atas video */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 15;
  cursor: pointer;
  background: transparent;
}

/* Ikon Play di tengah layar */
.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 64px;
  color: white;
  opacity: 0.5;
  pointer-events: none;
  display: block; /* ini akan dikontrol oleh JS */
}

