<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>TG - @𝙲𝚁𝙸𝙲𝙓𝙿𝚁𝙴𝚂𝚂</title>
  <style>
    body {
      margin: 0;
      padding: 0;
      font-family: Arial, sans-serif;
      background-color: #000;
      color: #fff;
    }
    #player {
      position: absolute;
      width: 100% !important;
      height: 100% !important;
    }
    .watermark {
      position: absolute;
      top: 7px;
      left: 10px;
      z-index: 10;
    }
    .watermark img {
      width: 110px;
      opacity: 0.8;
    }
  </style>
  <script src="https://content.jwplatform.com/libraries/KB5zFt7A.js"></script>
</head>
<body>
  <div id="player"></div>
  <div class="watermark">
    <img src="https://i.postimg.cc/R0tFCHGy/Picsart-25-01-08-18-20-40-829.png" alt="Watermark">
  </div>
  <script>
    // Function to extract the video URL from the query string
    function extractVideoUrl() {
      const urlParams = new URLSearchParams(window.location.search);
      const videoUrl = urlParams.get('url'); // Look for 'url' parameter
      return videoUrl || 'default-video-url.m3u8'; // Fallback if no URL is provided
    }

    // Prompt to join Telegram channel
    if (confirm("Join Our Telegram Channel @𝙲𝚁𝙸𝙲𝙓𝙿𝚁𝙴𝚂𝚂")) {
      window.location.href = "https://t.me/CRICXPRESS";
    }

    // Initialize the JWPlayer with the dynamically fetched video URL
    const videoFile = extractVideoUrl();
    jwplayer("player").setup({
      file: videoFile, // Use the dynamically extracted video URL
      preload: "metadata",
      width: "100%",
      height: "100%",
    });
  </script>
</body>
</html>
