  /* 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: fixed;         /* was: sticky */
  top: 0; left: 0; right: 0;
  z-index:1000;
  background-color: transparent;
  /* 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; }


.studio-slider {
  width: 100%;
  height: 50vh;
  position: absolute; top: 0; left: 0; right: 0;

  z-index: 1; /* sits behind navbar */

  /* margin-bottom: 5%; */
}
  
  .swiper-slide {
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: top center ;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000; /* fallback behind image */

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



  
  

 
 




/* Play icon overlay in center — hidden by default */
.play-overlay {
    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;
  }
  
 

   .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: 0.7rem; /* adjust spacing as needed */
  }

  .btn-watch-ar {
    background: #0033cc; /* example blue */
    color: white;
    padding: 5px 20px;
    border-radius: 999px;
    border: none;
    font-size: 1rem;
    text-decoration: none;
  }
  
  .btn-list-ar {
    background: transparent;
    color: white;
    border: 2px solid #0033cc; /* match border color */
    padding: 5px 20px;
    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:#191919; 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;
    text-decoration: none;
    display: block;

  }
  
  .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: flex;
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    gap: 10px;
    justify-content: flex-start;
    transition: all 0.5s ease;
  
  }
  
  .top10-grid::-webkit-scrollbar {
    display: none; /* Hide scrollbar */
  }
  
  .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: 150px;
    height: 200px;
    border-radius: 6px;
    z-index: 1;
    position: relative;
    padding-top: 2%;
    
    
  }

  .first-item{
    /* min-width: 3% !important; */
    }
  
  .last-item{
    /* min-width: 3% !important; */
 } 
 .top10-wrapper {
    position: relative;
    margin-top: 2%;
  }

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

  .show-category{
    margin-bottom: 15%;
  }
  .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;
  }



  .episode-tabs {
    position: relative;
    display: flex;
    gap: 20px;
    background-color: #000;
    padding: 16px 24px;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    border-bottom: 1px solid #333;
  }
  
  .episode-tabs .tab {
    background: none;
    border: none;
    color: white;
    padding: 12px 0;
    cursor: pointer;
    position: relative;
    font-size: 1em;
    white-space: nowrap;
  }
  
  .episode-tabs .tab:focus {
    outline: none;
  }
  
  .tab-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0;
    background-color: #0000ee;
    transition: all 0.3s ease;
  }
  
  .tab-content {
    display: none;
    padding: 20px;
    color: white;
  }
  
  .tab-content.active {
    display: block;
  }
  

    .top10-grid-series {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
  }

  .hover-card-series{
    position: absolute;  
    height: auto;
    background-color: #132A3B;
    color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    opacity: 1;
    pointer-events: none;
    border-radius: 6px;
    margin-top: 0%;
    max-width: 210px;
    z-index: 88888888;
  }


  .item-series {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.item-series img {
  width: 100%;
  height: 200px;
  display: block;
  border-radius: 8px;
}

.episode-overlay {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  padding: 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  font-weight: bold;
  font-size: 1em;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); /* Optional fade */
}


/* Container for the tab content */
.tab-content {
    padding: 20px;
    background-color: #000; /* Deep dark background */
    color: white;
    font-family: sans-serif;
  }
  
  /* Info box styles */
  .info-box {
    max-width: 800px;
    margin: auto;
  }
  
  /* Section title (e.g. About) */
  .section-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 12px;
  }
  
  /* Meta info like season and genres */
  .meta {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: flex;
    gap: 8px;
  }
  
  /* Description paragraph */
  .description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #dcdcdc;
  }
  
  /* Add border or visual divider if needed */
  .tab-content + .tab-content {
    border-top: 1px solid #191919;
    margin-top: 20px;
    padding-top: 20px;
  }
  
  /* Optional: support RTL when Arabic is selected */
  body[dir="rtl"] .info-box {
    text-align: right;
  }
  
  .btn-subscribe-header {
    display: inline-block;
    background-color: #0033cc;
    color: #fff;
    text-align: center;
    padding: 7px 10px;
    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: 99999999999999;
    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;
}



.heart-btn {
  background: transparent;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  transition: color 0.3s;
  color: gray;
  border: 2px solid white;

}

.heart-btn.liked {
  color: red;
}
