  /* Mobile RTL Base */
  html {
    /* direction: rtl; */
  }
  
  body {
    margin: 0;
    font-family: sans-serif;
    background: #000;
    color: #fff;
    position: relative;

  }

  body {
    font-family: 'Tajawal', sans-serif;
}

h1, .title {
    font-family: 'Bebas Neue', sans-serif;
}

  
  .navbar{
    opacity: 0;
    display: none;

  }
  
  
  .swiper-button-prev{
    display: none; /* Hide prev button on mobile */
  }
  .swiper-button-next{
    display: none; /* Hide next button on mobile */
  }
  
  .site-footer{
    display: none;
  }
  

  :root{
    --bg-nav:#191919; --bg-nav-border:#2b2d45; --text:#fff; --brand:#0033cc;
    --danger:#e03131; --hover:#2a2c45; --shadow:rgba(0,0,0,.25);
  }
  
  /* Header */
  .mobile-navbar{
    position: sticky; top:0; z-index:1000;
    background:var(--bg-nav); color:var(--text);
    border-bottom:1px solid var(--bg-nav-border);
  }
  .mobile-navbar .nav-inner{
    max-width:1200px; margin-inline:auto;
    padding-block:calc(env(safe-area-inset-top,0)+6px) 8px;
    padding-inline:12px; min-height:64px;
  
    display:grid;
    grid-template-columns: 1fr auto 1fr;    /* start | center | end */
    align-items:center; gap:8px;
  }
  
  /* Clusters */
  .nav-start{ justify-self:start; display:flex; align-items:center; gap:8px; }
  .nav-center{ justify-self:center; display:flex; align-items:center; gap:8px; }
  .nav-end{ justify-self:end; display:flex; align-items:center; }
  
  /* Logo bigger */
  .logo img{
    height:12px;  
    width:45px ;          /* ↑ larger logo */
    display:block; opacity:.95;
  }
  .logo:hover img{ opacity:1; }
  
  /* Buttons/links */
  .icon-btn{
    display:inline-flex; align-items:center; justify-content:center;
    width:36px; height:36px; border-radius:10px; color:var(--text);
    text-decoration:none; opacity:.9; transition:background .15s, opacity .15s;
  }
  .icon-btn:hover{ background:var(--hover); opacity:1; }
  .icon-btn svg{ width:22px; height:22px; }
  
  .btn-link{
    color:var(--text); text-decoration:none; font-weight:700; font-size:15px; opacity:.9;
  }
  .btn-link:hover{ opacity:1; text-decoration:underline; }
  
  .btn-pill{
    display:inline-flex; align-items:center; justify-content:center;
    padding:10px 18px; border-radius:999px; font-weight:800; font-size:15px;
    background:var(--brand); color:#fff; text-decoration:none; white-space:nowrap;
    box-shadow:0 2px 0 var(--shadow), inset 0 2px 0 rgba(255,255,255,.06);
    transition:transform .1s, filter .15s;
  }
  .btn-pill:hover{ filter:brightness(1.06); }
  .btn-pill:active{ transform:translateY(1px); }

  
  /* Focus */
  .icon-btn:focus-visible, .btn-link:focus-visible, .btn-pill:focus-visible{
    outline:2px solid #6aa7ff; outline-offset:2px; border-radius:10px;
  }
  
  /* Small screens */
  @media (max-width:480px){
    .mobile-navbar .nav-inner{
      padding-inline:10px; min-height:60px;
      grid-template-columns: 1fr auto 1fr;   /* unchanged; keeps center centered */
    }
    .logo img{ height:40px; }               /* big, but scaled a bit on tiny screens */
    .nav-start{ gap:6px; }
    .btn-pill{ padding:8px 14px; font-size:14px; }
    .btn-link{ font-size:14px; }
  }
  

  .btn-danger{ background:var(--danger); 
    font-weight:600;
    font-size:10px;
    padding:10px 10px;
  }
  /* RTL: grid logic keeps center true; edges stay pinned */
  html[dir="rtl"] .nav-start{ justify-self:start; }
  html[dir="rtl"] .nav-end{ justify-self:end; }
  
  
  .swiper-slide {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center ;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000; /* fallback behind image */

    height: 100%;
    width: 100%;
    position: relative;
  }



  
  

 
 





 

   .play-overlay {
    opacity: 0;
  }
  

  
  





  .slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;      /* Full width */
    height: 100%;     /* Full height */
    left: 50%;
  transform: translateX(-50%);
    display: flex;    /* Use flex to center */
    flex-direction: column; /* Stack elements vertically */
    justify-content: flex-end; /* Push content to bottom */
    align-items: center;  /* Center horizontally */
    text-align: center;
    /* padding: 20px;    */
    box-sizing: border-box; /* Include padding in width/height */
    /* background: rgba(51, 10, 235, 0.3);  */
    padding-bottom: 7%;
  }
  
  
  
  
  .slide-content h1 {
    font-size: 2em;
    /* margin-bottom: 10px; */
  }
  
  .slide-content .meta {
    font-size: 1em;
    /* margin-bottom: 10px; */
    display: block;
  }
  
  .slide-content .description {
    font-size: 1em;
    line-height: 1.5;
    /* margin-bottom: 20px; */
    padding: 3%;
  }
  


  .desktop-buttons {
    display: none;
  }

  .mobile-buttons {
    display: flex;
    gap: 1rem; /* adjust spacing as needed */
  }

  .btn-watch-ar {
    background: #0000FF; /* example blue */
    color: white;
    padding: 5px 50px;
    border-radius: 999px;
    border: none;
    font-size: 1rem;
  }
  
  .btn-list-ar {
    background: transparent;
    color: white;
    border: 2px solid #0000FF; /* match border color */
    padding: 5px 50px;
    border-radius: 999px;
    font-size: 1rem;
  }
  
  


  


  .bottom-nav{
    position: fixed; left:0; right:0; bottom:0;
    display:flex; justify-content:space-around; align-items:center;
    background:#1c1d2e; padding:10px 6px; z-index:1000;
  }
  
  .nav-item{
    display:flex; flex-direction:column; align-items:center; gap:6px;
    text-decoration:none; color:#fff; font-size:14px; min-width:60px;
  }
  
  .nav-item svg{ width:26px; height:26px; /* outline icons */ color:#fff;
    transition: transform .15s ease, color .15s ease; }
  
  .nav-item.is-active,
  .nav-item:focus-visible{ color:#0033cc; outline:none; }
  
  .nav-item.is-active svg,
  .nav-item:focus-visible svg{ color:#0033cc; transform: translateY(-2px); }
  
  .select-lang{ gap:4px; }
  .select-lang select{
    background:transparent; color:#fff; border:1px solid #3a3c55; border-radius:6px;
    padding:4px 8px; font-size:13px; appearance:none;
  }
  .select-lang select:focus{ outline:none; border-color:#0033cc; }
  
  /* optional: reduce motion respect */
  @media (prefers-reduced-motion: reduce){
    .nav-item svg{ transition:none; }
  }
  
  
  
  

  
  .slide-content h1 {
    font-size: 2em;
    margin-bottom: 10px;
  }
  
  .meta {
    color: #ccc;
    margin-bottom: 15px;
  }
  
  .description {
    font-size: 1em;
    line-height: 1.5;
    margin-bottom: 20px;
  }
 
  
  .btn-watch {
    background: #0033cc;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    border: none;
    font-size: 1em;
    cursor: pointer;
  }
  
  .icon-btn {
    background: transparent;
    border: 2px solid white;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.1em;
    cursor: pointer;
  }

  
  .hover-card {
  display: none;
    }

.scroll-btn{
    display: none;
}

.top10-grid {
    
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
    gap: 3px;
    overflow: hidden; 
    margin-bottom: 20%;

}
  
 
  
  .item {
    flex: 0 0 auto; /* Prevent items from shrinking */
    position: relative;
  }

  .top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
   padding-left: 2%;
   padding-right: 2%;
    /* margin-top: 20px; */
  }
  .top-header > a{
    color: white;
     font-size: small;
     display: none;
  }

  .top-header > h2{
    color: white;
     font-size: medium;
  }

  .item {
    text-align: center;
    position: relative;
    margin-bottom: 3%;
  }

  .item img {
    max-width: 115px;
    height: 177px;
    border-radius: 6px;
    z-index: 1;
    position: relative;
    padding-top: 2%;

  }


  
  

 .top10-wrapper {
    position: relative;
    margin-top: 2%;
  }

  .space-for-mobile {
   min-height: 20%;
    min-width: 100%;
  }

  
  .swiper-button-prev,
  .swiper-button-next {
    display: none !important;
  }

  .all{
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  .item >p {
    font-size: 0.6em;

  }


  .select-lang{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    margin: 0;
    padding: 0;
  }

.select-lang select {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.8em;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* padding: 3px 6px; */
    cursor: pointer;
  }
  
  .select-lang select:focus {
    outline: none;
  }

  .select-lang img{
    scale: 0.8;
  }


 .show {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: white;
    opacity: 1; 
    transition: opacity 0.3s ease;
    pointer-events: none;
    font-size: 5em;
    font-weight: 800;
  } 

  .categorie {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: white;
    opacity: 1; 
    transition: opacity 0.3s ease;
    pointer-events: none;
   z-index: 10000;
   font-weight: 800;
   font-size: 1.0em;

  }

  .btn-subscribe-header {
    display: inline-block;
    background-color: #0033cc;
    color: #fff;
    text-align: center;
    padding: 7px 17px;
    font-size: 13px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
  }



  .search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0033cc;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 60px;
    z-index: 9999999999999;
    overflow-y: auto;
  }
  
  .search-box {
    position: relative;
    width: 90%;
    max-width: 90%;
  }
  
  .search-box input {
    width: 100%;
    padding: 14px 40px 14px 14px;
    font-size: 1.2em;
    border: none;
    border-radius: 6px;
    box-sizing: border-box;
  }
  
  .close-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    color: #000;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 100;
  }
  
  [dir="rtl"] .close-btn {
  left: 20px;  
  transform: translateX(-50%);
  top: 20%;
  
    }
  
  .search-results {
    width: 90%;
    max-width: 90%;
    margin-top: 15px;
    background: white;
    border-radius: 6px;
    /* padding: 20px; */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    color: black;
    text-align: left;
    background: white;
    color: black; /* ✅ fallback for text nodes */
  }
  
  .search-results a {
    display: block;
    margin: 8px 0;
    font-size: 1rem;
    font-weight: 500;
    color: #00512B; /* ✅ Dark green — visible on white */
    text-decoration: underline;
    transition: color 0.2s ease;
    padding-left: 20px;
    padding-right: 20px;
  }
  
  [dir="rtl"] .search-results a {
  text-align: right;
  
  }
  
  .search-results a:hover {
    color: #003f20;
    text-decoration: none;
  }
  
  

  
  .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    color: #333;
}

.modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
}

.btn-confirm {
    background-color: red;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-cancel {
    background-color: #ccc;
    color: black;
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
