<!-- wp:html -->
<div class="moviebox-wrapper">

  <p class="moviebox-intro">
    🎬 Choose your device below and download the latest MovieBox version with a secure 10-second countdown.
  </p>

  <div class="device-grid">

    <!-- ANDROID CARD -->
    <div class="moviebox-card">

      <img src="https://cdn-icons-png.flaticon.com/512/888/888857.png" class="device-icon" alt="Android">

      <div class="device-title">📱 MovieBox for Android</div>

      <div class="device-subtitle">
        APK + MOD APK • Android 5.0+
      </div>

      <div class="device-table">

        <div class="table-row">
          <span>📦 APK Version</span>
          <button onclick="startDownload(androidApkUrl, 'androidCountdown', 'androidProgress')">
            Download APK
          </button>
        </div>

        <div class="table-row">
          <span>⚡ MOD APK</span>
          <button onclick="startDownload(androidModUrl, 'androidCountdown', 'androidProgress')">
            Download MOD APK
          </button>
        </div>

        <div class="table-row">
          <span>📊 File Size</span>
          <strong>62.55 MB</strong>
        </div>

        <div class="table-row">
          <span>📱 Required</span>
          <strong>Android 5.0+</strong>
        </div>

      </div>

      <p id="androidCountdown" class="countdown-text"></p>

      <div class="progress-container">
        <div id="androidProgress" class="progress-bar"></div>
      </div>

    </div>

    <!-- IOS CARD -->
    <div class="moviebox-card">

      <img src="https://cdn-icons-png.flaticon.com/512/0/747.png" class="device-icon" alt="iOS">

      <div class="device-title">🍎 MovieBox for iOS</div>

      <div class="device-subtitle">
        IPA Version • iOS 12.0+
      </div>

      <div class="device-table">

        <div class="table-row">
          <span>🍎 IPA Version</span>
          <button onclick="startDownload(iosUrl, 'iosCountdown', 'iosProgress')">
            Download iOS
          </button>
        </div>

        <div class="table-row">
          <span>📊 File Size</span>
          <strong>62.55 MB</strong>
        </div>

        <div class="table-row">
          <span>📱 Required</span>
          <strong>iOS 12.0+</strong>
        </div>

        <div class="table-row">
          <span>⚡ Type</span>
          <strong>IPA Installer</strong>
        </div>

      </div>

      <p id="iosCountdown" class="countdown-text"></p>

      <div class="progress-container">
        <div id="iosProgress" class="progress-bar"></div>
      </div>

    </div>

  </div>

</div>

<style>
.moviebox-wrapper {
  max-width: 1100px;
  margin: auto;
  padding: 30px 15px;
  font-family: Arial, sans-serif;
  color: #fff;
  text-align: center;
}

.moviebox-intro {
  font-size: 16px;
  color: #d8d8d8;
  margin-bottom: 30px;
  line-height: 1.7;
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.moviebox-card {
  background: linear-gradient(145deg, #0d0d0d, #050505);
  border: 1px solid rgba(0,255,153,0.15);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 0 25px rgba(0,255,153,0.12);
}

.device-icon {
  width: 72px;
  margin-bottom: 14px;
}

.device-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.device-subtitle {
  color: #00ff99;
  font-size: 14px;
  margin-bottom: 22px;
}

.device-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.table-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.03);
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(0,255,153,0.1);
}

.table-row span {
  color: #cfcfcf;
  font-size: 14px;
}

.table-row strong {
  color: #00ff99;
}

.table-row button {
  background: linear-gradient(45deg, #00ff99, #00cc66);
  border: none;
  color: #000;
  padding: 10px 16px;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s ease;
}

.table-row button:hover {
  transform: scale(1.04);
  box-shadow: 0 0 14px rgba(0,255,153,0.35);
}

.countdown-text {
  margin-top: 16px;
  min-height: 22px;
  font-size: 14px;
  color: #e4e4e4;
  font-weight: 600;
}

.progress-container {
  width: 100%;
  height: 6px;
  background: #1a1a1a;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 10px;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00ff99, #00ccff);
  transition: width 1s linear;
}

@media (max-width: 768px) {
  .device-grid {
    grid-template-columns: 1fr;
  }

  .moviebox-card {
    padding: 22px 16px;
  }

  .device-title {
    font-size: 20px;
  }

  .table-row {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .table-row button {
    width: 100%;
  }
}
</style>

<script>
const androidApkUrl = "https://moviebox-apk.net/moviebox-v-3.0.13.0402.039(moviesbox-apk.net).apk";
const androidModUrl = "https://moviebox-apk.net/moviebox-v-3.0.13.0402.039(moviesbox-apk.net).apk";
const iosUrl = "https://moviebox-apk.net/moviebox-ios-moviebox-apk.net.ipa";

function startDownload(downloadUrl, countdownId, progressId) {
  let seconds = 10;

  const countdownText = document.getElementById(countdownId);
  const progressBar = document.getElementById(progressId);

  if (!countdownText || !progressBar) return;

  clearInterval(window[countdownId]);

  progressBar.style.width = "0%";

  countdownText.innerHTML = "⏳ Your download starts in " + seconds + " seconds...";

  window[countdownId] = setInterval(function() {
    seconds--;

    const progress = ((10 - seconds) / 10) * 100;
    progressBar.style.width = progress + "%";

    if (seconds > 0) {
      countdownText.innerHTML = "⏳ Your download starts in " + seconds + " seconds...";
    } else {
      clearInterval(window[countdownId]);
      countdownText.innerHTML = "🚀 Download starting now...";
      window.location.href = downloadUrl;

      setTimeout(function() {
        window.open(downloadUrl, "_self");
      }, 500);
    }

  }, 1000);
}
</script>
<!-- /wp:html -->

<!-- wp:paragraph -->
<p></p>
<!-- /wp:paragraph -->