<div class="viral-post">
  <!-- Display Image -->
  <div class="thumbnail">
    <img src="https://core.mdiskplay.com/images-tb/qHGXsRtZct_EaF1WvNOcWQ.jpg" alt="Viral Video Thumbnail" style="width: 100%; height: auto; border-radius: 8px;">
  </div>

  <!-- Description -->
  <div class="description" style="margin-top: 15px;">
    <h2 style="font-size: 1.5rem; color: #333;">This Video Has Gone Viral on Instagram!</h2>
    <p style="font-size: 1rem; line-height: 1.6; color: #555;">
      The internet can't stop buzzing about this incredible video! With stunning visuals and captivating moments, this clip has taken Instagram by storm. 
      It's truly a masterpiece that showcases the power of creativity and storytelling. 
      Dive in to see why everyone is talking about it!
    </p>
  </div>

  <!-- Labels -->
  <div class="labels" style="margin-top: 20px; padding: 10px; background-color: #f8f9fa; border: 1px solid #ddd; border-radius: 5px;">
    <strong>Labels:</strong> 
    <span style="color: #007BFF; cursor: pointer;">bonus Video</span>, 
    <span style="color: #007BFF; cursor: pointer;">Desi wife</span>, 
    <span style="color: #007BFF; cursor: pointer;">post</span>, 
    <span style="color: #007BFF; cursor: pointer;">College Girls</span>, 
    <span style="color: #007BFF; cursor: pointer;">Dost Ki Biwi</span>, 
    <span style="color: #007BFF; cursor: pointer;">Hot Girls</span>, 
    <span style="color: #007BFF; cursor: pointer;">Live mms</span>
  </div>

  <!-- Refresh Info Line -->
  <div class="refresh-info" style="margin-top: 20px; background-color: #007BFF; color: #fff; text-align: center; padding: 10px; border-radius: 5px;">
    <p style="margin: 0;">If the video doesn't play properly, refresh the site.</p>
  </div>

  <!-- Video Section -->
  <div class="video-container" style="margin-top: 20px; position: relative;">
    <video id="viralVideo" controls style="width: 100%; height: auto; border-radius: 8px;">
      <source src="https://video.mdiskplay.com/qHGXsRtZct_EaF1WvNOcWQ.m3u8?asf=ya" type="application/x-mpegURL">
      Your browser does not support the video tag.
    </video>
    <div id="loadingPopup" style="display: none; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0, 0, 0, 0.8); color: #fff; padding: 20px; border-radius: 8px; text-align: center;">
      <p id="loadingText">Loading video... 0%</p>
    </div>
  </div>

  <!-- Refresh Button -->
  <div class="refresh-button" style="margin-top: 20px; text-align: center;">
    <button onclick="location.reload();" style="background-color: #007BFF; color: #fff; border: none; padding: 10px 20px; font-size: 1rem; border-radius: 5px; cursor: pointer;">
      Refresh Site
    </button>
  </div>

  <!-- JavaScript for Handling Video Loading -->
  <script>
    const video = document.getElementById('viralVideo');
    const loadingPopup = document.getElementById('loadingPopup');
    const loadingText = document.getElementById('loadingText');

    // Show popup and update percentage while loading
    video.addEventListener('progress', () => {
      loadingPopup.style.display = 'block';
      if (video.buffered.length > 0) {
        const bufferedEnd = video.buffered.end(0);
        const duration = video.duration;
        if (duration > 0) {
          const percent = Math.min((bufferedEnd / duration) * 100, 100).toFixed(0);
          loadingText.textContent = `Loading video... ${percent}%`;
        }
      }
    });

    // Hide popup when video is fully loaded
    video.addEventListener('canplaythrough', () => {
      loadingPopup.style.display = 'none';
    });

    // Hide popup when video starts playing
    video.addEventListener('playing', () => {
      loadingPopup.style.display = 'none';
    });

    // Handle error (refresh the page if video doesn't load)
    video.addEventListener('error', () => {
      alert('Video failed to load. Please refresh the page.');
      location.reload();
    });
  </script>
</div>