/* -------------------------------
   Base Styles
--------------------------------- */

:root {
  --section-step: 380px;
}

html {
  direction: rtl;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  /* background-color: black; */
  background: #000;
  color: #fff;
  /* padding-top: 90px; */
  /* equal or a bit more than your navbar height */
}

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

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



.mobile-navbar {
  display: none;
}

.bottom-nav {

  display: none;
}


.mobile-buttons {
  display: none;
}

.all {
  display: none;
}


.navbar {
  position: fixed;
  top: 2%;
  left: 0;
  width: 100%;

  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10px;
  margin-left: 0%;
  margin-right: 0%;
  /* background-color: #11132d; */
  background: transparent;
  /* Dark background */
 

  z-index: 1000;
}


.logo {
  display: flex;
  align-items: center;
  font-size: 1.2em;
  font-weight: bold;
  color: #0033cc;
}

/* .logo img {
  height: 27px;
  margin-right: 8px;
  width: 100px;
  padding-bottom: 20%;
  margin-top: 10%;
  margin-left: 8px;
} */

.logo img {
  height: 70px;
  margin-right: 8px;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 24px;
  /* controls distance between logo & nav-links */
}


.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 400;
}

.nav-links a:hover {
  color: #0033cc;
}

.nav-links a.active {
  color: #0033cc;
  font-weight: 600;
}

.nav-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-right: 20px;


}

.nav-actions input[type="search"] {
  background: transparent;
  border: none;
  color: #fff;
}


.nav-actions select {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1em;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 4px 8px;
  cursor: pointer;
}

.nav-actions select:focus {
  outline: none;
}


.btn-subscribe {
  background-color: #0000ee;
  color: white;
  padding: 8px 20px;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  margin-right: 20px;
}

.nav-actions .search-icon {
  color: white;
  font-size: 1.2em;
  cursor: pointer;
}

.nav-actions .search-icon:hover {
  color: #0033cc;
}

.studio-slider {
  width: 100%;
  height: 100vh;
  position: absolute;
  top: 0;
  /* margin-bottom: 5%; */
  border-radius: 7px;

}

.swiper-slide {
  background-size: contain;
  
  background-position: top center;
  display: flex;
  align-items: center;
  /* width: 222px;
  height: 125px; */
  border-radius: 7px;
}







/* 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;
}

/* Slide content hide by default */
.slide-content .meta,
.slide-content .description,
.slide-content .buttons {
  opacity: 0;
}

/* On hover: show icon, visable  content */
.swiper-slide:hover .play-overlay {
  opacity: 0;
}

.swiper-slide:hover .slide-content .meta,
.swiper-slide:hover .slide-content .description,
.swiper-slide:hover .slide-content .buttons {
  opacity: 1;
  transition: opacity 0.3s ease;

}



.slide-content {
  max-width: 30%;
  /* padding: 50px 30px; */
  /* padding-top: 10%; */
  position: absolute;
  top: 30%;
  left: 5%;
  border-radius: 8px;
}

[dir="rtl"] .slide-content {
  left: auto;
  right: 5%;
}

.slide-content h1 {
  font-size: 3em;
  margin-bottom: 10px;
}

[dir="rtl"] .slide-content h1 {
  text-align: right;
  direction: rtl;
}

/* RTL override */
[dir="rtl"] .swiper-slide:hover .slide-content .meta,
[dir="rtl"] .swiper-slide:hover .slide-content .description,
[dir="rtl"] .swiper-slide:hover .slide-content .buttons {
  opacity: 1;
  text-align: right;
  direction: rtl;
}

.meta {
  color: #ccc;
  margin-bottom: 15px;
}

.description {
  font-size: 1em;
  line-height: 1.5;
  margin-bottom: 20px;
}

.buttons {
  display: flex;
  gap: 12px;
}



/* Base button style */
.btn-watch-desktop {
  display: flex;
  /* padding: 10px 12px; */
  background: #0033cc;
  color: white;
  border-radius: 20px;
  font-weight: bold;
  font-size: 1em;

  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

/* Hover effect */
.btn-watch-desktop:hover {
  background: #0033cc;
}

/* Optional: show only on desktop */
@media (max-width: 767px) {
  .btn-watch-desktop {
    display: none;
  }
}


.icon-btn {
  background: transparent;
  border: 2px solid white;
  color: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.1em;
  cursor: pointer;
}



.top10 {
  padding: 4px 12px;
  width: 99%;
  /* margin: 0 auto; */
  /* background-color: yellow; */

  position: absolute;
}

.top-header {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 12px;
  position: absolute;
  top: 0%;
  /* margin-top: 20px; */
}

.top-header>a {
  color: white;
  font-size: small;
}

/* .top10-grid {
    display: flex;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 7px;
  } */


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

.top10-grid {
  display: flex;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  gap: 60px;
  justify-content: center;
  transition: all 0.5s ease;
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* IE and old Edge */

}

.top10-grid::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar */
}

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



/* .top10-grid:hover .first-item{
  min-width: 7%;
  } */

.first-item {
  min-width: 7%;
}

.last-item {
  min-width: 7%;
}

.item:hover {
  transform: scaleY(1.1);
  transform: scaleX(1.1);

  z-index: 100000;
  /* Make it cover others */
  margin-bottom: 30%;
}

.scroll-btn {
  position: absolute;
  top: 150px;
  transform: translateY(-50%);
  background: rgba(12, 12, 35, 0.8);
  color: #fff;
  border: none;
  font-size: 2em;
  padding: 10px;
  cursor: pointer;
  z-index: 20;

  opacity: 0;
  transition: opacity 0.3s ease;
  display: block; /* keep display so fade works */
  pointer-events: none;
}

.top10-wrapper:hover .scroll-btn {
  opacity: 1;
  pointer-events: auto;
}


.scroll-left {
  left: 0;
}

.scroll-right {
  right: 0;
}

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

.item span {
  position: absolute;
  left: -10px;
  top: 0;
  font-size: 3em;
  font-weight: bold;
  color: #444;
  z-index: 0;
}

.item img {
  max-width: 190px;
  height: 232px;
  border-radius: 6px;
  z-index: 1;
  position: relative;
  padding-top: 20%;
 border-radius: 7px;

}



.item p {
  margin-top: 8px;
  font-size: 0.9em;
}

/* -------------------------------
     Responsive Styles
  --------------------------------- */

@media (max-width: 768px) {

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    margin-left: 5%;
    margin-right: 5%;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 12px;
    margin: 10px 0;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 10px;
  }

  .nav-actions select,
  .nav-actions a,
  .btn-subscribe {
    font-size: 0.9em;
  }



  .slide-content {
    max-width: 100%;
    padding: 30px 20px;
    padding-top: 20%;
  }

  .slide-content h1 {
    font-size: 2em;
  }

  .description {
    font-size: 0.9em;
  }


  .item span {
    font-size: 2em;
  }

  .item p {
    font-size: 0.8em;
  }
}





.item img {
  width: 100%;
  border-radius: 6px;
  transition: transform 0.3s ease;
  margin-bottom: 0%;
}

/* Hover card overlay */
.hover-card {

  position: absolute;
  height: auto;
  /* background: rgba(12, 12, 35, 0.98); */
  background-color: #132A3B;
  color: #fff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  opacity: 0;
  pointer-events: none;
  border-radius: 6px;
  margin-top: 0%;
  max-width: 210px;

}


[dir="rtl"] .hover-card {
  width: 172px;

}

/* Show overlay on hover & scale image */
.item:hover {
  transform: scale(1.3);
  transition: opacity 0.7s ease;

  z-index: 10;

}


.item:hover>p {
  display: none;
}




.item:hover .hover-card {
  opacity: 1;
  pointer-events: auto;
}

.hover-card h3 {
  margin: 0 0 0px;
  font-size: 1em;
}

.hover-card .meta,
.hover-card .season,
.hover-card .desc {
  margin: 5px 0;
  font-size: 0.7em;
  color: #ddd;
}

.hover-card .buttons {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

.btn-watch {
  background: #0033cc;
  color: #fff;
  padding: 12px 9px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: small;
  transition: background-color 0.4s ease;
  text-decoration: none;
  font-size: xx-small;
  font-weight: bold;

}



/* Hover effect */
.btn-watch:hover {
  background: #0033cc;
}

.hover-card .icon-btn {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
}





.site-footer {
  margin: 0 auto;              /* ✅ Center horizontally */

  margin-top: calc(var(--dynamic-category-count) * var(--section-step));
  background: transparent; /* Dark background */
  max-width: 80%;
  color: #fff;
  text-align: center;
  padding: 15px 7px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  bottom: 0;
}


.footer-links {
  margin-bottom: 10px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
  font-weight: 400;
}

.footer-links a:hover {
  color: #0033cc;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-social span {
  font-weight: bold;
}

.footer-social img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.show-category {
  position: relative;


}







@media screen and (min-width: 969px) {

  .mobile-navbar,
  .bottom-nav,
  .mobile-buttons,
  .all {
    display: none !important;
  }
}



.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  background: #2c2f44;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  border-radius: 4px;
}

.dropdown-menu li a {
  display: block;
  padding: 12px 16px;
  color: #fff;
  text-decoration: none;
}

.dropdown-menu li a:hover {
  background-color: #0033cc;
  color: #fff;
}

.dropdown .all-categories {
  border-top: 1px solid #444;
}





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





/* Navbar layout */
.nav-account-navbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  /* padding: 10px 20px; */
  background-color:transparent;
  position: relative;
  cursor: pointer;

}

.nav-account-subscribe-btn {
  background-color: #1500ff;
  color: white;
  padding: 10px 24px;
  border-radius: 25px;
  margin-right: 15px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.4);
}

/* Account avatar */
.nav-account-menu {
  position: relative;
}

.nav-account-avatar {
  width: 44px;
  height: 34px;
  color: #fff;       
}

/* Dropdown style */
.nav-account-dropdown {
  display: none;
  position: absolute;
  top: 60px;
  right: 0;
  background-color: #2b2b3f;
  border-radius: 8px;
  width: 260px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  z-index: 100;
}


[dir="rtl"] .nav-account-dropdown {
  right: auto;
  left: 0;
}

.nav-account-dropdown.show {
  display: block;
}

.nav-account-header {
  display: flex;
  align-items: center;
  padding: 12px;
}

.nav-account-avatar-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.nav-account-info {
  flex-grow: 1;
  margin-left: 10px;
}

.nav-account-name {
  font-weight: bold;
  color: white;
  padding: 10%;
}

.nav-account-arrow {
  font-size: 18px;
  color: white;
}

.nav-account-item {
  padding: 12px 16px;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-size: 15px;
  border-top: 1px solid #444;
}

.nav-account-item i.icon {
  margin-right: 10px;
}

.nav-account-item:hover {
  background-color: #3b3b5c;
}

.nav-account-center {
  text-align: center;
  justify-content: center;
}



.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: 99999;
  overflow-y: auto;
}

.search-box {
  position: relative;
  width: 80%;
  max-width: 60%;
}

.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: 60%;
  max-width: 60%;
  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;
}

.desktop-buttons{
opacity: 0;
}


.nav-search {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;               /* or inherit */
  text-decoration: none;
  padding: 3px;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-search:hover {
  background: rgba(255,255,255,0.1);
  color: #ff007a;           /* highlight color */
}
.nav-search svg {
  width: 22px;
  height: 22px;
}
