
<!DOCTYPE html>
<html lang="ar" dir="rtl">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
    
    <!-- Preconnect to critical origins -->
    <link rel="preconnect" href="https://image.tmdb.org" crossorigin>
    <link rel="dns-prefetch" href="https://image.tmdb.org">
    <!-- VidAPI playback engine — preconnect for instant iframe load -->
    <link rel="preconnect" href="https://vidapi.ru" crossorigin>
    <link rel="dns-prefetch" href="https://vidapi.ru">
    
    <!-- Self-hosted font - single weight, optional display -->
    <style>
      @font-face {
        font-family: 'Tajawal';
        font-style: normal;
        font-weight: 400;
        font-display: optional;
        src: url(https://fonts.gstatic.com/s/tajawal/v9/Iurf6YBj_oCad4k1l_6gLrZjiLlJ-G0.woff2) format('woff2');
        unicode-range: U+0600-06FF, U+200C-200D, U+FE70-FEFF;
      }
      
      /* Critical CSS - 8KB inlined for instant paint */
      :root{
        --background:222 84% 4.9%;
        --foreground:210 40% 98%;
        --primary:262 83% 58%;
        --primary-foreground:210 40% 98%;
        --muted:217.2 32.6% 17.5%;
        --secondary:217.2 32.6% 17.5%;
      }
      *{margin:0;padding:0;box-sizing:border-box}
      html{scroll-behavior:smooth;direction:rtl}
      body{
        background:hsl(var(--background));
        color:hsl(var(--foreground));
        font-family:'Tajawal',-apple-system,sans-serif;
        -webkit-font-smoothing:antialiased;
        overflow-x:hidden;
      }
      #root{min-height:100vh}
      
      /* Fixed nav height - prevent CLS */
      nav{height:72px}
      @media(min-width:768px){nav{height:80px}}
      
      /* Hero container - reserve space, prevent CLS */
      .hero-container{
        position:relative;
        height:60vh;
        min-height:400px;
        overflow:hidden;
      }
      @media(min-width:768px){
        .hero-container{height:75vh;min-height:500px}
      }
      
      /* Hero image - LCP element */
      .hero-backdrop{
        position:absolute;
        inset:0;
        width:100%;
        height:100%;
        -o-object-fit:cover;
           object-fit:cover;
        aspect-ratio:16/9;
      }
      
      /* Image aspect ratios - prevent CLS */
      .content-card img{
        aspect-ratio:2/3;
        -o-object-fit:cover;
           object-fit:cover;
      }
      
      /* Ads container */
      .ads-container{min-height:250px}
      
      /* Performance */
      .content-card{contain:layout style paint}
      img{max-width:100%;height:auto}
    </style>
    
    
    <!-- Favicon -->
    <link rel="icon" href="https://i.imgur.com/aagWpDi.png" type="image/png">
    
    <!-- Primary Meta Tags -->
    <title>AflamMix: أفلام ميكس - مشاهدة أفلام ومسلسلات مترجمة مجاناً بجودة عالية</title>
    <meta name="description" content="أفلام ميكس - موقع لمشاهدة وتحميل الأفلام والمسلسلات المترجمة مجاناً بجودة عالية. أفلام أكشن، دراما، كوميديا، رعب، أنمي، رومانسية والمزيد. تطبيق AflamMix متوفر الآن للتحميل." />
    
    <!-- Open Graph / Facebook -->
    <meta property="og:title" content="AflamMix: أفلام ميكس - مشاهدة أفلام ومسلسلات مترجمة مجاناً بجودة عالية" />
    <meta property="og:description" content="أفلام ميكس - موقع لمشاهدة وتحميل الأفلام والمسلسلات المترجمة مجاناً بجودة عالية. أفلام أكشن، دراما، كوميديا، رعب، أنمي، رومانسية والمزيد. تطبيق AflamMix متوفر الآن للتحميل." />
    <meta property="og:url" content="https://aflammix.com" />
    <meta property="og:type" content="website" />
    <meta property="og:image" content="https://aflammix.com/og-image.jpg" />
    
    <!-- Twitter Card -->
    <meta name="twitter:card" content="summary_large_image" />
    <meta name="twitter:title" content="AflamMix: أفلام ميكس - مشاهدة أفلام ومسلسلات مترجمة مجاناً بجودة عالية" />
    <meta name="twitter:description" content="أفلام ميكس - موقع لمشاهدة وتحميل الأفلام والمسلسلات المترجمة مجاناً بجودة عالية. أفلام أكشن، دراما، كوميديا، رعب، أنمي، رومانسية والمزيد. تطبيق AflamMix متوفر الآن للتحميل." />
    <meta name="twitter:image" content="https://aflammix.com/og-image.jpg" />

    <!-- JuicyAds Verification -->
    <meta name="juicyads-site-verification" content="a8c4abf3cd4c94645ca001e0e37e6d6f">

    <!-- Defer all third-party to after page interactive -->
    <script>
      // Minimal analytics setup
      window.dataLayer = window.dataLayer || [];
      function gtag(){ dataLayer.push(arguments); }
      gtag('js', new Date());
      gtag('config', 'G-3PKLEEH4GE');
      
      // Load third-party after idle (5s timeout for mobile)
      function loadThirdParty() {
        var ga = document.createElement('script');
        ga.async = true;
        ga.src = 'https://www.googletagmanager.com/gtag/js?id=G-3PKLEEH4GE';
        document.head.appendChild(ga);
      }
      
      if ('requestIdleCallback' in window) {
        requestIdleCallback(loadThirdParty, { timeout: 5000 });
      } else {
        setTimeout(loadThirdParty, 5000);
      }
    </script>

    <!-- IMPORTANT: DO NOT REMOVE THIS SCRIPT TAG OR THIS VERY COMMENT! -->
    <script src="https://cdn.gpteng.co/gptengineer.js" type="module"></script>
    <script type="module" crossorigin src="/assets/index-YUv1s-pu.js"></script>
    <link rel="modulepreload" crossorigin href="/assets/react-core-DZ-gsZza.js">
    <link rel="modulepreload" crossorigin href="/assets/query-BQ-Mj0x7.js">
    <link rel="modulepreload" crossorigin href="/assets/supabase-C9d2M2lu.js">
    <link rel="modulepreload" crossorigin href="/assets/ui-radix-cn2EA5zP.js">
    <link rel="modulepreload" crossorigin href="/assets/router-Bz4S9b_V.js">
    <link rel="stylesheet" crossorigin href="/assets/index-CYXfDEKp.css">
  </head>
  <body>
    <div id="root"></div>

    <!-- JuicyAds PopUnders v3 - deferred to avoid blocking LCP -->
    <script>
      (function(){
        function loadJuicy(){
          var s = document.createElement('script');
          s.type = 'text/javascript';
          s.async = true;
          s.src = 'https://js.juicyads.com/jp.php?c=4464y233w284u4r2p26453d494&u=https%3A%2F%2Fwww.juicyads.rocks';
          document.body.appendChild(s);
        }
        if ('requestIdleCallback' in window) {
          requestIdleCallback(loadJuicy, { timeout: 6000 });
        } else {
          window.addEventListener('load', function(){ setTimeout(loadJuicy, 4000); });
        }
      })();
    </script>
  </body>
</html>
