
    /* Hide all UI until splash ends */
body.loaded #sidebar,
body.loaded #app,
body.loaded #loginPage,
body.loaded #importPage {
  opacity: 1;
  pointer-events: all;
}

#sidebar,
#app,
#loginPage,
#importPage {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

/* SPLASH SCREEN FIXED + FULLSCREEN */


    body {
      margin: 0;
      background: radial-gradient(circle at 30% 20%, rgba(90, 140, 255, 0.55), rgba(30, 40, 70, 0.9)),
        radial-gradient(circle at 75% 80%, rgba(100, 60, 255, 0.45), rgba(10, 15, 30, 0.9));
      background-blend-mode: overlay;
      backdrop-filter: blur(30px);
      font-family:-apple-system, BlinkMacSystemFont, "SF Pro Rounded", "SF Pro Display", system-ui, sans-serif;
      height: 100vh;
      overflow: hidden;
      display: flex;

    }
html, body {
  touch-action: manipulation;
  overscroll-behavior: none;
}
    body:before {
      content: "";
      position: fixed;
      inset: 0;
      background: radial-gradient(circle at 50% 60%, rgba(80, 120, 255, 0.32), transparent 60%);
      pointer-events: none;
      z-index: -1;
    }

    /* Sidebar */
    #sidebar {
      width: 240px;
      background: rgba(15, 20, 30, 0.65);
      backdrop-filter: blur(25px);
      -webkit-backdrop-filter: blur(25px);
      border-right: 1px solid rgba(255, 255, 255, 0.08);
      color: white;
      padding-top: 40px;
      display: flex;
      flex-direction: column;
    }

    .menu-item {
      padding: 15px 20px;
      font-size: 18px;
      cursor: pointer;
      color: #b8cfff;
      transition: 0.25s;
    }

    .menu-item.active,
    .menu-item:hover {
      background: rgba(60, 90, 190, 0.35);
      backdrop-filter: blur(30px);
      border-left: 3px solid #4e8aff;
      color: white;
      font-weight: 600;
    }

    /* Containers */
#app {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: stretch; /* ✅ */
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}
    /* Inputs */
    .input {
      width: 320px;
      height: 48px;
      padding: 10px;
      margin: 8px 0;
      background: rgba(0, 0, 0, 0.45);
      color: white;
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: 14px;
      font-size: 16px;
      box-sizing: border-box;
      transition: .2s;
    }

    .input:focus {
      outline: none;
      border: 1px solid rgba(82, 152, 255, 0.9);
      box-shadow: 0 0 12px rgba(82, 152, 255, 0.45);
    }

    /* Buttons */
    button {
      padding: 10px 20px;
      margin-top: 10px;
      background: #1f3b5c;
      color: white;
      border: none;
      border-radius: 8px;
      cursor: pointer;
      font-size: 17px;
    }

    /* Home Tiles */
    .tile {
  width: 230px;
  height: 150px;

  border-radius: 22px;

  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border: 1px solid rgba(255,255,255,0.12);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.4),
    inset 0 0 0 0.5px rgba(255,255,255,0.15);

  transition: all 0.25s ease;
}

   .tile:hover {
  transform: translateY(-8px) scale(1.06);

  background: rgba(255,255,255,0.12);

  box-shadow:
    0 20px 50px rgba(0,0,0,0.6),
    0 0 25px rgba(120,150,255,0.4);
}

    /* Player */
    #playerScreen{
position:fixed;
inset:0;
background:black;

display:flex;
align-items:center;
justify-content:center;

overflow:hidden;
  flex-direction: column;

}



/* 🎮 خلّي الكنترولز تستقبل النقر */
.nf-center,
.nf-controls,
#exitPlayer {
  pointer-events: auto;
}




    #exitPlayer {
      position: absolute;
      top: 20px;
      left: 20px;
      z-index: 10000;
    }

    /* Animations */
    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(12px) scale(0.97);
      }

      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }
.import-panel {
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  background: rgba(30,30,30,0.28);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 40px 32px;
  border-radius: 22px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.45), inset 0 0 0 0.8px rgba(255,255,255,0.22);
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 380px;
  animation: fadeIn 0.6s ease-out;
}

    @keyframes bgMove {
      0% {
        transform: scale(1) translateY(0px);
      }

      50% {
        
      }

      100% {
        transform: scale(1) translateY(0px);
      }
    }

    #togglePass {
      outline: none !important;
      border: none !important;
    }

    #togglePass:focus {
      outline: none !important;
      border: none !important;
      box-shadow: none !important;
    }

    .live-icon {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .live-icon .dot {
      width: 12px;
      height: 12px;
      background: #ff2f4c;
      border-radius: 50%;
      box-shadow: 0 0 8px rgba(255, 47, 76, 0.9);
      animation: pulseLive 10.2s ease-in-out;
    }

    @keyframes pulseLive {
      0% {
        transform: scale(0.9);
      }

      80% {
        transform: scale(1.25);
      }

      100% {
        transform: scale(0.9);
      }
    }

    .live-icon .text {
      font-weight: 600;
      color: #fff;
      padding: 3px 10px;
      border-radius: 50px;
      background: rgba(255, 47, 76, 0.2);
      border: 0px solid rgba(255, 47, 76, 0.6);
      font-size: 14px;
      backdrop-filter: blur(50px);
      text-shadow: 0 0 6px rgba(255, 47, 76, 0.9);
    }
    /* Animated Glass File Button */
    .file-btn {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 180px;
      height: 46px;
      cursor: pointer;
      font-size: 16px;
      font-weight: 600;
      color: #dce7ff;
      border-radius: 12px;
      border: 1px solid rgba(255,255,255,0.25);
      background: rgba(25,35,65,0.45);
      backdrop-filter: blur(18px) saturate(150%);
      -webkit-backdrop-filter: blur(18px) saturate(150%);
      transition: .25s;
      box-shadow: 0 4px 18px rgba(0,0,0,0.35),
                  inset 0 0 0 0.4px rgba(255,255,255,0.25);
      overflow: hidden;
    }

    /* ===== Shine Layer (بدون حركة) ===== */
    .file-btn::before {
      content: "";
      position: absolute;
      inset: 0;
      left: -150%;
      width: 100%;
      height: 100%;
      transform: skewX(-25deg);
      pointer-events: none;
    }

    /* ===== Browse File (عادي →) ===== */
    .file-btn.animate-file::before {
      background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.35),
        transparent
      );
      animation: shine 2.8s linear infinite;
    }

    /* ===== Load (عكسي ←) ===== */
    .file-btn.reverse-shine::before {
      background: linear-gradient(
        240deg,
        transparent,
        rgba(255,255,255,0.45),
        transparent
      );
      animation: shine-reverse 2.8s linear infinite;
    }

    /* ===== Pulse ===== */
    .file-btn.animate-file {
      animation: pulseBtn 2.2s ease-in-out infinite;
    }
.long-shine::before{
  width:140%;
  animation-duration:4s;
}
    /* Hover */
    .file-btn:hover {
      background: rgba(60,110,255,0.45);
      box-shadow: 0 6px 24px rgba(0,0,0,0.45),
                  inset 0 0 0 0.6px rgba(255,255,255,0.35);
      
    }

    /* Active */
    .file-btn:active {
      transform: scale(0.95);
    }

    /* ===== Keyframes ===== */
    @keyframes shine {
      0%   { left: -150%; }
      50%  { left: 150%; }
      100% { left: 150%; }
    }

    @keyframes shine-reverse {
      0%   { left: 150%; }
      50%  { left: -150%; }
      100% { left: -150%; }
    }

    @keyframes pulseBtn {
      0%   { box-shadow: 0 0 8px rgba(100,150,255,0.3); }
      50%  { box-shadow: 0 0 16px rgba(100,150,255,0.6); }
      100% { box-shadow: 0 0 8px rgba(100,150,255,0.3); }
    }
/* يخلي الطبقات الأمامية فوق الخلفية */
#app, .sidebar, .player-area, body > *:not(.bg-soft-move) {
  position: relative;
  z-index: 1;
}

/* خلفية متحركة فعلاً */
.bg-soft-move {
  position: fixed;
  inset: 0;
  z-index: 0;            /* خلف الواجهة لكن فوق خلفية الصفحة */
  pointer-events: none;
  overflow: hidden;
  background: transparent; /* مهم ما تكون معتمة */
}

/* عنصر داخلي أكبر من الشاشة يتحرّك ويخلي الحركة تبين */
.bg-soft-move::before {
  content: "";
  position: absolute;
  inset: -25%;            /* أكبر من الشاشة عشان أي حركة تبين */
  background:
    radial-gradient(40% 40% at 20% 30%, rgba(0,140,255,0.32), transparent 60%),
    radial-gradient(35% 35% at 80% 70%, rgba(160,60,255,0.30), transparent 60%),
    radial-gradient(45% 45% at 50% 85%, rgba(255,160,0,0.22), transparent 60%);
  filter: blur(42px);
}

/* تحريك “فعلي” واضح */
@keyframes drift {
  0%   { transform: translate(-30px, -20px) scale(1.05) rotate(0deg); }
  50%  { transform: translate(40px, 10px)   scale(1.09) rotate(6deg); }
  100% { transform: translate(-20px, 35px)  scale(1.04) rotate(-4deg); }
}

/* نبض خفيف بالسطوع (واضح لكن مش مزعج) */
@keyframes breathe {
  0%   { opacity: 0.70; }
  50%  { opacity: 0.92; }
  100% { opacity: 0.70; }
}
#backBtn {
  position: absolute;
  top: 25px;
  left: 25px;
  background: rgba(20,30,60,0.45);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  padding: 10px 20px;
  border-radius: 12px;
  color: #cfe5ff;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: 0.2s ease;
  z-index: 99999;
}

#backBtn:hover {
  background: rgba(40,70,120,0.6);
  transform: scale(1.05);
}
.back-btn {
  position: absolute;
  top: 25px;
  left: 25px;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: 600;
  color: #dfe9ff;
  background: rgba(15, 25, 45, 0.45);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  cursor: pointer;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: .25s;
}
      /* ✅ BACK يختفي افتراضياً */
      #exitPlayer {
        opacity: 0;
        pointer-events: none;
        transition: opacity .25s ease;
      }

      /* ✅ يظهر مع السيك بار لما show-ui شغالة */
      #playerScreen.show-ui #exitPlayer {
        opacity: 1;
        pointer-events: auto;
      }

/* سهم ناعم */
.back-btn .arrow {
  font-size: 18px;
  font-weight: bold;
  margin-right: 3px;
}

/* Hover glow */
.back-btn:hover {
  background: rgba(60,110,255,0.45);
  box-shadow: 0 6px 26px rgba(60,110,255,0.45);
  transform: translateY(-2px);
}

/* Active press */
.back-btn:active {
  transform: scale(0.96);
}
      
.glass-btn {
  padding: 10px 26px;
  font-size: 16px;
  font-weight: 600;
  color: #e3eeff;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(25,35,65,0.45);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 4px 14px rgba(0,0,0,.25), inset 0 0 0 0.7px rgba(255,255,255,0.2);
  cursor: pointer;
  transition: 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
#playMovieBtn {
  width: 240px;
  height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  align-self: flex-start;

  background: linear-gradient(135deg,#ff3c3c,#ff7a3c);
  box-shadow: 0 8px 25px rgba(255,60,60,0.4);

  font-weight: 700;
  border-radius: 14px;   /* 🔥 أضفها */
  cursor: pointer;       /* 🔥 مهم */
  transition: 0.25s;     /* 🔥 smooth */
}
#playMovieBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(255,60,60,0.6);
}
#playMovieBtn {
  backdrop-filter: blur(10px);
}
      /* iPhone-style glass icon button */
      .glass-icon-btn{
        width: 36px;
        height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;

        border-radius: 10px;
        border: 1px solid rgba(255,255,255,0.20);
        background: rgba(255,255,255,0.10);
        backdrop-filter: blur(18px) saturate(180%);
        -webkit-backdrop-filter: blur(18px) saturate(180%);

        box-shadow:
          0 6px 18px rgba(0,0,0,0.28),
          inset 0 1px 0 rgba(255,255,255,0.22);

        cursor: pointer;
        opacity: .92;
        transition: transform .15s ease, background .15s ease, opacity .15s ease;
      }

      .glass-icon-btn:hover{
        opacity: 1;
        transform: scale(1.08);
        background: rgba(255,255,255,0.14);
      }

      .glass-icon-btn:active{
        transform: scale(0.96);
      }

      /* the cast icon itself (glass stroke) */
  /* the icon inside the button */
.glass-icon-btn .cast-icon{
  width: 22px;
  height: 22px;

  stroke: #e50914;   /* ← هون لون الأيقونة */

  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;

  transition: stroke .2s ease, filter .2s ease, transform .2s ease;
}

.glass-btn:hover {
  transform: translateY(-2px);
  background: rgba(60,110,255,0.45);
  box-shadow: 0 6px 18px rgba(0,0,0,.35), inset 0 0 0 0.9px rgba(255,255,255,0.35);
}

.glass-btn:active {
  transform: scale(0.95);
}
/* ===== SPLASH SCREEN ===== */
#splashScreen {
  position: fixed;
  inset: 0;

  width: 100vw;
  height: 100vh;

  background: radial-gradient(circle at 50% 40%, rgba(80,120,255,0.45), rgba(5,10,20,0.95));
  backdrop-filter: blur(20px);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  z-index: 999999999;

  animation: fadeOutSplash 1s ease forwards;
  animation-delay: 4s;
}

/* اللوجو */
.splash-logo {
  width: 400px;
  max-width: 85vw;

  filter: drop-shadow(0 15px 50px rgba(0,0,0,0.6));
  animation: logoPop 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* العنوان */
.splash-title {
  margin-top: 18px;
  font-size: 26px;
  font-weight: 700;
  color: #eaf1ff;
  text-shadow: 0 0 12px rgba(140,170,255,0.8);
  animation: fadeInText 1.6s ease;
}

/* حركة اللوجو */
@keyframes logoPop {
  0% { transform: scale(0.4); opacity: 0; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* حركة العنوان */
@keyframes fadeInText {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* خروج السبيلاش */
@keyframes fadeOutSplash {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* إخفاء الواجهة قبل التحميل */
#sidebar,
#app,
#loginPage,
#importPage {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

/* إظهارها بعد انتهاء السبيلاش */
body.loaded #sidebar,
body.loaded #app,
body.loaded #loginPage,
body.loaded #importPage {
  opacity: 1;
  pointer-events: all;
}
.tile[data-p="movies"] {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transform-origin: center;
}

.tile[data-p="movies"]:hover {
  box-shadow:
    0 0 35px rgba(255,120,60,0.7),
    0 20px 50px rgba(0,0,0,0.6);
    
}
.tile[data-p="live"] {
  border: 1px solid rgba(255,80,80,0.4);
}

.tile[data-p="live"]:hover {
  box-shadow:
    0 0 35px rgba(255,60,60,0.8),
    0 20px 50px rgba(0,0,0,0.6);
}
.tile[data-p="series"] {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transform-origin: center;
}

.tile[data-p="series"]:hover {
  box-shadow:
    0 0 35px rgba(150,90,255,0.7),
    0 20px 50px rgba(0,0,0,0.6);
}
      /* ===== إزالة التعتيم الأسود مع بقاء السيك بار ===== */

      video::-webkit-media-controls-panel {
          background: transparent !important;
          box-shadow: none !important;
      }

      video::-webkit-media-controls-enclosure {
          background: transparent !important;
      }

      video::-webkit-media-controls {
          background: transparent !important;
      }

      /* إزالة التدرج الأسود */
      video::-webkit-media-controls-gradient {
          display: none !important;
      }

      /* السيك بار نفسه *//* ❌ لا تخفي السيك بار بشكل عام */
      /*
      video::-webkit-media-controls-timeline {
          display: none !important;
      }
      */

      /* الوقت بدون خلفية */
      video::-webkit-media-controls-current-time-display,
      video::-webkit-media-controls-time-remaining-display {
          background: transparent !important;
      }
      /* ===== LIVE ONLY: hide seek bar ===== */
      /* ✅ LIVE: hide seekbar (Safari / WKWebView compatible) */
      body.live video[controls]::-webkit-media-controls-timeline {
          display: none !important;
      
      }
/* ===== NETFLIX STYLE SEEK BAR ===== */
/* ===============================
   🎬 NETFLIX SEEK BAR (VOD ONLY)
   =============================== */

.nf-controls {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  padding: 0 28px;

  display: flex;
  align-items: center;
  gap: 14px;

  opacity: 0;
  pointer-events: none;            /* 🔥 مهم */
  transition: opacity .25s ease;

  z-index: 50;
  
}


/* يظهر فقط لما UI ظاهرة */
#playerScreen.show-ui .nf-controls {
  opacity: 1;
  pointer-events: auto;
}

/* ⛔ إخفاء نهائي بالـ LIVE */
/* LIVE: خلي شريط الكنترولز ظاهر */
body.live .nf-controls {
  display: flex !important;
  justify-content: flex-end;
  gap: 10px;
}

/* LIVE: اخفِ أزرار الوسط كلها */
body.live .nf-center {
  display: none !important;
}

/* LIVE: اخفِ السيك بار وكل متعلقاته */
body.live .nf-progress,
body.live #nfSeek,
body.live #nfBuffered,
body.live #nfPlayed,
body.live #currentTime,
body.live #duration {
  display: none !important;
}

/* LIVE: اخفِ زر الكاست */




/* ===============================
   Progress bar
   =============================== */

      .nf-progress {
        position: relative;
        flex: 1;
        height: 4px;
        overflow: visible; /* مهم عشان خلفية السيك ما تنقص */
      }

      /* ✅ خلفية خفيفة بس تحت السيك */
      .nf-progress::before {
        content: "";
        position: absolute;
        left: -4px;
        right: -4px;

        top: 50%;
        transform: translateY(-50%);

        height: 8px;                 /* ⬅️ هذا هو المفتاح */
        background: rgba(0,0,0,0.18); /* خفيفة */
        backdrop-filter: blur(4px);   /* Blur أخف */
        border-radius: 6px;

        z-index: 0;
        pointer-events: none;
      }
      /* Buffered & Played */
      .nf-buffered,
      .nf-played {
        position: absolute;
        inset: 0;
        height: 4px;
        border-radius: 4px;
        z-index: 1; /* فوق الخلفية */
      }

      .nf-buffered {
        background: rgba(255,255,255,0.25);
        width: 0%;
      }

      .nf-played {
        background: #e50914;
        width: 0%;
      }

      /* Seek input */
      #nfSeek {
        position: absolute;
        inset: -8px 0;   /* مساحة لمس أكبر */
        width: 100%;
        background: none;
        appearance: none;
        cursor: pointer;
        z-index: 2;      /* فوق الكل */
      }

#nfSeek::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e50914;
}

/* ===============================
   Time labels
   =============================== */

#currentTime,
#duration {
  font-size: 13px;
  color: #fff;
  min-width: 48px;
  text-align: center;
  opacity: .9;
}
/* ===============================
   🎮 CENTER CONTROLS (⏪ ⏯ ⏩)
   =============================== */

.nf-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  display: flex;
  align-items: center;
  gap: 26px;

  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;

  z-index: 60; /* فوق السيك بار */
}
/* ===============================
   🔊 Netflix Volume Controls
   =============================== */

.nf-volume {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 0;
}

#nfMute {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  opacity: 0.95;
  transition: transform .15s ease, opacity .15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#nfMute:hover {
  opacity: 1;
  transform: scale(1.08);
}

#nfMute svg {
  width: 24px;
  height: 24px;
  fill: white;
}

#nfVolume {
  -webkit-appearance: none;
  appearance: none;
  width: 110px;
  height: 6px;
  border-radius: 999px;
  cursor: pointer;
  outline: none;
  background: linear-gradient(
    to right,
    #f22622 0%,
    #f22622 var(--vol, 50%),
    rgba(255,255,255,0.28) var(--vol, 50%),
    rgba(255,255,255,0.28) 100%
  );
}
#nfVolume::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: transparent;
}

/* Chrome / Safari */
#nfVolume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  border: none;
  box-shadow: 0 1px 6px rgba(0,0,0,0.28);
  margin-top: -6px;
}

/* Firefox */
#nfVolume::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.28);
}

#nfVolume::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: #29b6ff;
}

#nfVolume::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 6px rgba(0,0,0,0.28);
}


/* تظهر فقط لما UI ظاهرة */
#playerScreen.show-ui .nf-center {
  opacity: 1;
  pointer-events: auto;
}

/* أزرار التشغيل */
/* ===============================
   🎮 Netflix Center Controls
   =============================== */

.nf-center button {
  background: none;          /* ❌ لا خلفية */
  border: none;
  padding: 0;               /* ❌ لا padding */
  margin: 0 18px;           /* مسافة بينهم */
  cursor: pointer;

  opacity: 0.85;
  transition: transform .15s ease, opacity .15s ease;
}

.nf-center button:hover {
  opacity: 1;
  transform: scale(1.25);   /* Netflix hover */
}

/* حجم أيقونات Netflix */
.nf-center svg {
  width: 46px;              /* 🔥 كبير وواضح */
  height: 46px;
  fill: white;
}

/* ⛔ LIVE: إخفاء أزرار الوسط */
body.live .nf-center {
  display: none !important;
}

      .mac-spinner {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        border: 2px solid rgba(255,255,255,0.25);
        border-top-color: rgba(255,255,255,0.85);
        animation: macSpin 0.9s linear infinite;
        box-sizing: border-box;
      }

      @keyframes macSpin {
        to { transform: rotate(360deg); }
      }
      .mac-error {
        width: 14px;
        height: 14px;
        border-radius: 50%;
        border: 2px solid rgba(255,80,80,0.9);
        position: relative;
        box-sizing: border-box;
      }

      .mac-error::before,
      .mac-error::after {
        content: "";
        position: absolute;
        top: 2px;
        left: 6px;
        width: 2px;
        height: 8px;
        background: rgba(255,80,80,0.95);
        border-radius: 1px;
      }

      .mac-error::before {
        transform: rotate(45deg);
      }

      .mac-error::after {
        transform: rotate(-45deg);
      }
      .play-glass {
        width: 18px;
        height: 18px;
        margin-right: 6px;

        /* Glass look */
        fill: rgba(255,255,255,0.22);
        stroke: rgba(200,220,255,0.9);
        stroke-width: 1.6;

        /* Subtle glass glow */
        filter:
          drop-shadow(0 0 6px rgba(120,170,255,0.55))
          drop-shadow(0 0 14px rgba(120,170,255,0.25));

        /* Smooth */
        transition: transform .2s ease, filter .2s ease, fill .2s ease;
      }

      /* Hover interaction */
      .file-btn:hover .play-glass {
        transform: scale(1.12);
        fill: rgba(255,255,255,0.35);
        filter:
          drop-shadow(0 0 10px rgba(140,190,255,0.8))
          drop-shadow(0 0 22px rgba(140,190,255,0.45));
      }

      /* Active press */
      .file-btn:active .play-glass {
        transform: scale(0.96);
      }
      .file-glass {
        width: 18px;
        height: 18px;
        margin-right: 6px;

        /* Glass look */
        fill: rgba(255,255,255,0.18);
        stroke: rgba(200,220,255,0.9);
        stroke-width: 1.5;
        stroke-linejoin: round;
        stroke-linecap: round;

        /* Subtle glass glow */
        filter:
          drop-shadow(0 0 6px rgba(120,170,255,0.45))
          drop-shadow(0 0 14px rgba(120,170,255,0.22));

        transition: transform .2s ease, filter .2s ease, fill .2s ease;
      }

      /* Hover */
      .file-btn:hover .file-glass {
        transform: scale(1.12);
        fill: rgba(255,255,255,0.3);
        filter:
          drop-shadow(0 0 10px rgba(140,190,255,0.75))
          drop-shadow(0 0 22px rgba(140,190,255,0.4));
      }

      /* Active */
      .file-btn:active .file-glass {
        transform: scale(0.96);
      }
      .lock-glass {
        fill: rgba(255,255,255,0.18);
        stroke: rgba(200,220,255,0.9);
        stroke-width: 1.6;
        stroke-linecap: round;
        stroke-linejoin: round;

        filter:
          drop-shadow(0 0 6px rgba(120,170,255,0.6))
          drop-shadow(0 0 14px rgba(120,170,255,0.3));

        margin-right: 8px;
      }
      .home-title {
        background: linear-gradient(
          90deg,
          #9ec9ff,
          #ffffff,
          #9ec9ff
        );
        background-size: 200%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;

        animation: shimmerText 3.2s linear infinite;
      }

      @keyframes shimmerText {
        0%   { background-position: 0%; }
        100% { background-position: 200%; }
      }
      /* منع تحديد النص */
      .no-select {
        -webkit-user-select: none; /* Safari */
        -moz-user-select: none;    /* Firefox */
        -ms-user-select: none;     /* IE/Edge */
        user-select: none;         /* Standard */
      }
      .tile {
        display: flex;
        flex-direction: column;
        gap: 10px;
          color: white; /* 🔥 هذا المهم */
      }

      /* Glass icon base */
.glass-icon {
  width: 34px;
  height: 34px;

  stroke: rgba(255,255,255,0.95);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;

  fill: rgba(255,255,255,0.14);

  filter:
    drop-shadow(0 0 8px rgba(255,255,255,0.45))
    drop-shadow(0 0 18px rgba(255,255,255,0.25));

  transition: transform .25s ease,
              filter .25s ease,
              fill .25s ease,
              stroke .25s ease;
}

/* Hover */
.tile:hover .glass-icon {
  transform: scale(1.18);

  /* 🔴 اللون الأحمر */
  stroke: #ff3b3b;
  fill: rgba(255,59,59,0.20);

  filter:
    drop-shadow(0 0 14px rgba(255,59,59,0.9))
    drop-shadow(0 0 28px rgba(255,59,59,0.5));
}

      .tile span {
        font-weight: 700;
        letter-spacing: 0.6px;
      }
      /* ترتيب */
      .live-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
      }

      /* أيقونة Glass */
      .live-glass-icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;

        background: rgba(255,255,255,0.18);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);

        border: 1px solid rgba(255,255,255,0.35);
        box-shadow:
          inset 0 1px 0 rgba(255,255,255,0.5),
          0 8px 20px rgba(0,0,0,0.25);

        position: relative;
        overflow: hidden;
      }

      /* اللمعة */
      .live-glass-icon::after {
        content: "";
        position: absolute;
        top: -60%;
        left: -60%;
        width: 200%;
        height: 200%;
        background: linear-gradient(
          120deg,
          transparent 45%,
          rgba(255,255,255,0.35) 50%,
          transparent 55%
        );
        animation: shine 3.2s infinite;
      }

      /* النقطة الحمراء */
      .live-dot {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 15px;
        height: 15px;
        background: #ff3b3b;
        border-radius: 50%;
        transform: translate(-50%, -50%);
        box-shadow: 0 0 6px rgba(255,59,59,0.9);
        z-index: 2;
      }

      /* موجات البث */
      .live-wave {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 14px;
        height: 14px;
        border: 2px solid rgba(255, 59, 59, 0.7);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        animation: wave 1.6s infinite;
      }

      .live-wave.delay {
        animation-delay: 0.8s;
      }

      /* كلمة LIVE */
      .live-text {
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 1.2px;
        color: #fff;
        opacity: 0.95;
      }

      /* Animations */
      @keyframes wave {
        0% {
          transform: translate(-50%, -50%) scale(0.6);
          opacity: 1;
        }
        100% {
          transform: translate(-50%, -50%) scale(1.4);
          opacity: 0;
        }
      }

      @keyframes shine {
        0%   { transform: translateX(-100%); }
        100% { transform: translateX(100%); }
      }
      .back-pill{
        margin: 20px auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 14px 26px;
        border-radius: 18px; /* نفس شكل الصورة */
        font-size: 20px;
        font-weight: 700;
        min-width: 260px;
      }
      /* زر AirPlay لازم ما يتأثر من button العام */
      #castBtn.glass-icon-btn{
        width: 36px;
        height: 36px;
        padding: 0 !important;     /* مهم لأن عندك button عام فيه padding */
        margin-top: 0 !important;  /* مهم لأن عندك button عام فيه margin-top */
        border-radius: 12px;       /* أرقّ iPhone-style */
        display: inline-flex;
        align-items: center;
        justify-content: center;
      }

      /* أيقونة AirPlay نفسها */
      #castBtn .cast-icon{
        width: 22px;
        height: 22px;
        stroke: rgb(254, 254, 254);
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
        fill: none !important;     /* أهم سطر: يمنع “المربع” */
        display: block;
        filter:
          drop-shadow(0 0 8px rgba(140,190,255,0.45))
          drop-shadow(0 0 18px rgba(140,190,255,0.22));
      }
      /* =========================
         Glass Icon Loader (Modern)
         ========================= */
      .fx-loader{
        position:absolute;
        inset:0;
        display:flex;
        align-items:center;
        justify-content:center;
        z-index: 9999;
        pointer-events:none;

        /* ✅ بدل السواد الثقيل */
        background: rgba(0,0,0,0.18);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
      }

      .fx-loader .bubble{
        width: 78px;
        height: 78px;
        border-radius: 22px;
        background: rgba(255,255,255,0.10);
        border: 1px solid rgba(255,255,255,0.18);
        box-shadow: 0 18px 45px rgba(0,0,0,0.45);
        display:flex;
        align-items:center;
        justify-content:center;
        position: relative;
        overflow:hidden;
      }

      /* شِمر خفيف على الغلاس */
      .fx-loader .bubble::before{
        content:"";
        position:absolute;
        inset:-40%;
        background: linear-gradient(110deg,
          rgba(255,255,255,0.00),
          rgba(255,255,255,0.20),
          rgba(255,255,255,0.00)
        );
        transform: translateX(-35%) rotate(10deg);
        animation: fxShimmer 1.2s ease-in-out infinite;
      }

      .fx-loader .ring{
        width: 34px;
        height: 34px;
        border-radius: 999px;
        border: 2px solid rgba(255,255,255,0.25);
        border-top-color: rgba(255,255,255,0.95);
        animation: fxSpin 0.85s linear infinite;
        filter: drop-shadow(0 4px 10px rgba(0,0,0,0.35));
      }

      /* نقطة glow صغيرة (يعطي فخامة) */
      .fx-loader .dot{
        position:absolute;
        right: 14px;
        top: 14px;
        width: 8px;
        height: 8px;
        border-radius: 999px;
        background: rgba(255,255,255,0.9);
        box-shadow: 0 0 18px rgba(255,255,255,0.55);
        opacity: 0.55;
      }

      @keyframes fxSpin { to { transform: rotate(360deg); } }

      @keyframes fxShimmer {
        0%   { transform: translateX(-35%) rotate(10deg); opacity: .55; }
        50%  { opacity: .95; }
        100% { transform: translateX(35%) rotate(10deg); opacity: .55; }
      }
      /* خلي السايدبار يتمدد ويحتوي الكونتنيو */
#sidebar {
  width: 240px;
  background: rgba(15, 20, 30, 0.65);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  color: white;
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* صندوق الكونتنيو */
#sidebarContinueWrap {
  margin-top: 18px;
  padding: 14px 14px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* عنوان الكونتنيو */
.sidebar-section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(184, 207, 255, 0.82);
  margin-bottom: 12px;
  padding: 0 4px;
}

/* ليستة الكونتنيو */
#sidebarContinueList {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
}

/* كرت الكونتنيو داخل السايدبار */
.sidebar-continue-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  transition: 0.2s ease;
}

.sidebar-continue-card:hover {
  background: rgba(78,138,255,0.16);
  border-color: rgba(120,170,255,0.22);
  transform: translateX(2px);
}

.sidebar-continue-poster {
  width: 54px;
  height: 74px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}

.sidebar-continue-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-continue-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-continue-sub {
  font-size: 11px;
  color: rgba(210,225,255,0.72);
}

.sidebar-continue-progress {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;
}

.sidebar-continue-progress > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff4d4d, #ff8a3d);
}

/* سكرول ناعم */
#sidebarContinueList::-webkit-scrollbar {
  width: 6px;
}

#sidebarContinueList::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
}

#sidebarContinueList::-webkit-scrollbar-track {
  background: transparent;
}
#pipBtn.glass-icon-btn,
#fsBtn.glass-icon-btn {
  width: 38px;
  height: 38px;
  padding: 0 !important;
  margin-top: 0 !important;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#pipBtn .cast-icon,
#fsBtn .cast-icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: rgb(255, 255, 255);
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}
.app-loading{
  width:100%;
  height:60vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:16px;
}

.app-spinner{
  width:40px;
  height:40px;
  border-radius:50%;
  border:3px solid rgba(255,255,255,0.25);
  border-top-color:#29b6ff;
  animation:spinApp 0.8s linear infinite;
}

.app-loading-text{
  color:#9ec9ff;
  font-size:14px;
}

@keyframes spinApp{
  to{ transform:rotate(360deg); }
}
.login-loading{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  color:#9ec9ff;
  font-size:14px;
}

.login-spinner{
  width:16px;
  height:16px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,0.25);
  border-top-color:#29b6ff;
  animation:spinLogin 0.7s linear infinite;
}

@keyframes spinLogin{
  to { transform: rotate(360deg); }
}
.episode-loading{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.episode-loading-box{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  padding:20px 26px;
  border-radius:18px;
  background: rgba(20,28,45,0.45);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.episode-spinner{
  width:34px;
  height:34px;
  border-radius:50%;
  border:3px solid rgba(255,255,255,0.20);
  border-top-color:#29b6ff;
  animation: spinEpisode 0.8s linear infinite;
}

.episode-loading-text{
  color:#cfe5ff;
  font-size:15px;
  font-weight:600;
}

@keyframes spinEpisode{
  to { transform: rotate(360deg); }
}
.tile-icon{
  width:32x;
  height:32;
}
/* MOVIES animation */
.tile[data-p="movies"] svg path:first-child{
  transform-origin: center;
  animation: movieClap 2.4s ease-in-out infinite;
}

@keyframes movieClap{
  0%{transform: rotate(0deg)}
  20%{transform: rotate(-12deg)}
  40%{transform: rotate(0deg)}
  100%{transform: rotate(0deg)}
}
/* SERIES screen pulse */
.tile[data-p="series"] svg rect{
  animation: seriesPulse 2.2s ease-in-out infinite;
}

@keyframes seriesPulse{
  0%{
    transform: scale(1);
    opacity:1;
  }
  50%{
    transform: scale(1.06);
    opacity:.7;
  }
  100%{
    transform: scale(1);
    opacity:1;
  }
}
/* Bottom navigation للموبايل */
#mobileNav{
display:none;
}

@media (max-width:768px){

#sidebar{
display:none;
}

/* اظهار المنيو السفلية */
#mobileNav{
display:flex;
position:fixed;
bottom:0;
left:0;
right:0;
height:60px;
background:#0b1530;
border-top:1px solid rgba(255,255,255,0.1);
justify-content:space-around;
align-items:center;
z-index:9999;
}

/* شكل الأزرار */
#mobileNav button{
background:none;
border:none;
color:white;
font-size:14px;
font-weight:600;
cursor:pointer;
}

/* رفع المحتوى قليلاً حتى لا يغطيه المنيو */
#app{
padding-bottom:70px;
}

}
/* MOBILE LAYOUT */
@media (max-width:768px){

#sidebar{
display:none !important;
}

#app,
#loginPage,
#importPage{
margin-left:0 !important;
width:100% !important;
}

}
/* =========================
🎬 PLAYER
========================= */

/* container */
#playerScreen {
  position: fixed;
  inset: 0;
  background: black;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
  flex-direction: column;

  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}
#videoWrapper {
  width: 100%;
  aspect-ratio: 16/9;

  /* ❌ احذف هذا */
  /* max-height: 40vh; */

  display: flex;
  align-items: center;
  justify-content: center;
}

#iptvVideo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: black;
}

/* 🔥 لاندسكيب */
body.landscape-mode #videoWrapper {
  position: fixed;
  inset: 0;

  width: 100vw;
  height: 100vh;

  background: black;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;
}

body.landscape-mode #iptvVideo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* =========================
🎮 UI
========================= */

.nf-center,
.nf-controls,
#exitPlayer {
  pointer-events: auto;
}

#exitPlayer {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10000;

  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

#playerScreen.show-ui #exitPlayer {
  opacity: 1;
  pointer-events: auto;
}

/* =========================
🎬 EPISODES BUTTON
========================= */

.glass-episode{
  display:inline-block;
  padding:10px 18px;
  margin:6px;
  border-radius:16px;

  backdrop-filter:blur(10px);
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.25);

  color:white;
  font-weight:500;

  cursor:pointer;
  transition:all .2s ease;
}

.glass-episode:hover{
  transform:scale(1.05);
  background:rgba(255,255,255,0.15);
}

/* =========================
🖱️ USER SELECT
========================= */

* {
  user-select: none;
  -webkit-user-select: none;
}

input,
textarea,
[contenteditable="true"] {
  user-select: text !important;
  -webkit-user-select: text !important;
}

/* =========================
🏷️ PLAYER LOGO
========================= */

#playerLogo {
  position: fixed !important;
  top: 25px;
  right: 80px;

  width: 150px;

  transform: translateX(-20px) scale(1.2);

  z-index: 999999;
  pointer-events: none;
}

/* =========================
🌤️ WEATHER BOX
========================= */

.weather-ios {
  position: relative;
  width: 200px;
  height: 110px;
  border-radius: 18px;
  overflow: hidden;

  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.15);

  margin-top: -20px;
}

.weather-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.weather-content {
  position: relative;
  z-index: 1;
  padding: 14px;
  color: rgb(93, 93, 93);
}

.rain {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.rain span {
  position: absolute;
  width: 2px;
  height: 14px;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.0),
    rgba(255,255,255,0.8)
  );
  border-radius: 2px;
  animation: drop linear infinite;
}

/* الحركة */
@keyframes drop {
  0% {
    transform: translateY(-20px);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translateY(110%);
    opacity: 0;
  }
}

@keyframes rainMove {
  from { transform: translateY(-10px); }
  to   { transform: translateY(10px); }
}
.cloud {
  position: absolute;
  width: 200px;
  height: 80px;
  background: rgba(255,255,255,0.5);
  border-radius: 100px;
  filter: blur(8px);
  animation: moveCloud 30s linear infinite;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.cloud::before {
  width: 60px;
  height: 60px;
  top: -20px;
  left: 10px;
}

.cloud::after {
  width: 80px;
  height: 80px;
  top: -30px;
  right: 10px;
}

@keyframes cloudMove {
  from { left: -120px; }
  to   { left: 110%; }
}
.sun {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd700, #ff8c00);
  box-shadow: 0 0 30px rgba(255,200,0,0.6);
  animation: sunPulse 3s ease-in-out infinite;
}

@keyframes sunPulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.snow {
  position: absolute;
  inset: 0;
}

.snow::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(white 2px, transparent 2px);
  background-size: 20px 20px;
  animation: snowFall 10s linear infinite;
  opacity: 0.6;
}

@keyframes snowFall {
  from { transform: translateY(-10px); }
  to   { transform: translateY(100px); }
}
.weather-temp {
  font-size: 32px;
  font-weight: bold;
}

.weather-city {
  font-size: 14px;
  opacity: 0.8;
}
.night-bg {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
}
.night-cloudy-bg {
  background: linear-gradient(135deg, #2c3e50, #000000);
}
.night-rain-bg {
  background: linear-gradient(135deg, #1f1c2c, #928dab);
}
.night-snow-bg {
  background: linear-gradient(135deg, #232526, #414345);
}
.moon {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #eee;
  border-radius: 50%;
  box-shadow: -10px 0 0 5px #111;
}
.sun-light {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.5), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

/* حالات الطقس */
.sunny-bg { background: linear-gradient(135deg,#ffb347,#ffcc33); }
.night-bg { background: linear-gradient(135deg,#0f2027,#203a43,#2c5364); }
.cloudy-bg { background: linear-gradient(135deg,#bdc3c7,#2c3e50); }
.rain-bg { background: linear-gradient(135deg,#4b79a1,#283e51); }
.snow-bg { background: linear-gradient(135deg,#e6dada,#274046); }


/* =========================
🏠 HOME LAYOUT
========================= */

.home-container {
  width: 100%;
  max-width: 1200px;
  margin: auto;

  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 30px;
}

.top-weather {
  width: 100%;
  display: flex;
  justify-content: center;
}

.cards-row::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(100,140,255,0.25), transparent);
  filter: blur(80px);
  z-index: 0;
}

.cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  max-width: 700px;
  gap: 18px;
}

.top-bar {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 10px;
}

#searchMovies {
  width: 400px;
  max-width: 90%;
}
#videoWrapper,
#iptvVideo {
  pointer-events: auto;
}
#footer {
  position: fixed;
  bottom: 10px;

  left: 55%;                 /* 🔥 أهم سطر */
  transform: translateX(-50%); /* 🔥 يوسّطه بالضبط */

  text-align: center;
  font-size: bold 30px;
  color: rgb(255, 255, 255);

  letter-spacing: 0.5px;
  pointer-events: none;
  z-index: 9999;
}
#playerScreen ~ #footer {
  display: none;
}
body.player-open #footer {
  display: none;
}
  
