
  /* Container */
  .video-container {
    position: relative;
    max-width: 960px;
    margin: 30px auto;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.7);
    font-family: 'Roboto', Arial, sans-serif;
  }
/* ===============================
=============================== */
#player {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  position: relative;
  overflow: hidden;
}

/* Fullscreen override */
.video-container.fullscreen #player,
:fullscreen #player {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
}

/* ===============================
   LOADER
=============================== */
#loader {
  display: none;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: clamp(14px, 2vw, 18px);
  z-index: 10000;
  pointer-events: none;
}

/* ===============================
   AD LABEL & COUNTDOWN
=============================== */
#adLabel,
#adCountdown {
  display: none;
  position: absolute;
  background: rgba(0,0,0,.55);
  color: #fff;
  padding: clamp(6px, 1.5vw, 10px) clamp(10px, 2vw, 16px);
  border-radius: 6px;
  font-size: clamp(13px, 2vw, 20px);
  z-index: 10000;
  pointer-events: none;
}

#adLabel {
  top: clamp(10px, 2vw, 20px);
  left: clamp(10px, 2vw, 20px);
}

#adCountdown {
  top: clamp(10px, 2vw, 20px);
  right: clamp(10px, 2vw, 20px);
}

/* ===============================
   SKIP BUTTON (PLAYER PERFECT ALIGN)
=============================== */

/* Ensure player is positioning context */
#player {
  position: relative;
}

/* Skip Ad Button */
#skipBtn {
  position: absolute;

  /* ✅ Smart positioning relative to controls */
  right: clamp(12px, 2.5vw, 24px);
  bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(12px, 2.5vh, 24px) + 48px);

  /* ✅ Design */
  background: #ff0000;
  color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.45);
  border-radius: 10px;

  padding: clamp(8px, 1.6vw, 13px) clamp(14px, 2.6vw, 20px);
  font-size: clamp(13px, 1.9vw, 15px);
  font-weight: 600;

  cursor: pointer;
  z-index: 10000;

  /* ✅ Visibility control (JS uses .show) */
  opacity: 0;
  pointer-events: none;

  /* ✅ Clean shadow */
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);

  /* ✅ Smooth UI */
  transition: opacity 0.25s ease, transform 0.2s ease, background 0.2s ease;

  max-width: 85%;
  white-space: nowrap;
}

/* ✅ Show state (controlled by JS) */
#skipBtn.show {
  opacity: 1;
  pointer-events: auto;
}

/* Hover */
#skipBtn:hover {
  background: #cc0000;
  transform: translateY(-2px);
}

/* Click */
#skipBtn:active {
  transform: scale(0.95);
}

/* 📱 Mobile */
@media (max-width: 480px) {
  #skipBtn {
    right: 10px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 10px + 42px);

    padding: 7px 12px;
    font-size: 12.5px;
    border-radius: 8px;
  }
}

/* 📱 Tablet */
@media (min-width: 481px) and (max-width: 1024px) {
  #skipBtn {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 14px + 46px);
  }
}

/* 🖥 Desktop */
@media (min-width: 1025px) {
  #skipBtn {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 18px + 50px);
  }
}

/* 🎥 Fullscreen FIX */
:fullscreen #skipBtn,
:-webkit-full-screen #skipBtn {
  right: clamp(16px, 3vw, 32px);
  bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(16px, 3vh, 32px) + 52px);
}

/* 🔒 Prevent overlap when controls hidden */
.video-container.ad-playing #skipBtn {
  bottom: clamp(16px, 3vh, 28px);
}
/* ===============================
   AD CONTAINER
=============================== */
#adContainer {
  display: none;
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 9999;
}

#adVideo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ===============================
   CUSTOM NAV BUTTONS
=============================== */
.custom-nav-btn {
  width: clamp(36px, 6vw, 44px);
  height: clamp(36px, 6vw, 44px);
  background: rgba(0,0,0,.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
  border: 2px solid rgba(255,255,255,.3);
  margin: 0 clamp(6px, 2vw, 12px);
  z-index: 3000;
}

.custom-nav-btn:hover {
  background: rgba(0,0,0,.9);
  transform: scale(1.1);
}

.custom-nav-btn svg {
  width: clamp(18px, 3vw, 24px);
  height: clamp(18px, 3vw, 24px);
  fill: #fff;
}

/* ===============================
   CUSTOM BUTTON CONTAINER
=============================== */
#customButtons {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 4vh, 40px); /* desktop/tablet */
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  pointer-events: auto;
  z-index: 3000;
}

/* Fullscreen positioning */
.video-container.fullscreen #customButtons {
  bottom: clamp(60px, 12vh, 90px);
}

/* Hide during ads */
.video-container.ad-playing #customButtons {
  display: none;
}

/* ===============================
   MOBILE OPTIMIZATION (LOWER)
=============================== */
@media (max-width: 768px) {
  #customButtons {
    bottom: clamp(14px, 3vh, 28px);
  }

  #skipBtn {
    bottom: clamp(90px, 14vh, 120px);
  }
}

@media (max-width: 480px) {
  #customButtons {
    bottom: clamp(10px, 2.5vh, 22px); /* VERY LOW on mobile */
  }

  #skipBtn {
    bottom: clamp(85px, 13vh, 110px);
  }
}

