body {
  font-family: "Tajawal", sans-serif;
  background-color: #0f0f0f;
  color: white;
  overflow-x: hidden;
}
/* Google Chrome + Edge + Brave */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: #00ff87;
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 255, 255, 0.4);
}

/* Firefox */
html {
  scrollbar-width: thin; /* يمكن استبدالها بـ auto أو none */
  scrollbar-color: #00ff87 transparent;
}

.swiper-button-next,
.swiper-button-prev {
  transition: opacity 0.3s ease;
  /* box-shadow: 0px 11p rgba(0, 0, 0, 0.5); */
}
.swiper-button-next {
  left: -46px !important;
}
.swiper-button-prev {
  right: -18px !important;
}

/* الحاوية الخارجية للسلايدر */
.swiper-wrapper::before,
.swiper-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 10;
  pointer-events: none;
}

.swiper-wrapper::before {
  right: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.35), transparent);
}

.swiper-wrapper::after {
  left: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.35), transparent);
}
.swiper-slide {
  transition: transform 0.3s ease-in-out;
}

.swiper-slide:hover {
  transform: scale(1.03);
}

/* Navbar */
/* ظل داخلي من الأعلى */
.navbar-initial {
  box-shadow: inset 0 -10px 10px -10px rgba(255, 255, 255, 0.1);
  background: transparent;
  transition: all 0.3s ease-in-out;
}
.navbar-inset-shadow {
  box-shadow: inset 5px 16px 36px -5px rgba(0, 0, 0, 0.61);
}

/* عند التمرير: خلفية + ظل خارجي */
.bg-navbar-dark {
  background-color: rgba(10, 10, 10, 0.95);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease-in-out;
}

/* ********** Header ********** */
.hero-gradient {
  background-image: linear-gradient(
    rgba(24, 29, 37, 0),
    rgba(24, 29, 37, 0.3) 30%,
    rgba(24, 29, 37, 0.7) 70%,
    rgb(24, 29, 37)
  );
}
.hero-content.video-playing .description,
.hero-content.video-playing .tags {
  opacity: 0;
  /* display: none; */
  transform: scale(0.9) translateX(10px);
  pointer-events: none;
}
.hero-content.video-playing {
  opacity: 0.75;
  transform: scale(0.85);
}

.hero-content.video-playing:hover {
  opacity: 1;
  transform: scale(1) translateX(-50px);
  /* transform: translateX(10px); */
}

.hero-content.video-playing {
  transition: all 0.5s ease-in-out;
}

.hero-content:hover .description,
.hero-content:hover .tags {
  /* display: block; */
  opacity: 1;
  transform: scale(1);
}

.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 255, 135, 0.3);
  z-index: 10;
}

.top-10-number {
  font-size: 6rem;
  font-weight: 900;
  color: rgba(229, 9, 20, 0.9);
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
  line-height: 1;
  position: absolute;
  right: -20px;
  top: -10px;
  z-index: 5;
}

.scroll-container {
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

.backdrop-blur-custom {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.btn-glow {
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.5);
  transition: all 0.3s ease;
}

.btn-glow:hover {
  box-shadow: 0 0 30px rgba(229, 9, 20, 0.8);
  transform: translateY(-2px);
}

.section-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.section-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.stagger-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.stagger-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

.carousel-arrow {
  opacity: 0;
  transition: all 0.3s ease;
}

.carousel-container:hover .carousel-arrow {
  opacity: 1;
}

.hero-slide {
  transition: opacity 1s ease-in-out;
}

.hero-dot {
  transition: all 0.3s ease;
}

.hero-dot.active {
  background-color: #e50914;
  transform: scale(1.2);
}

.mute-btn {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.mute-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

.navbar-blur {
  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-overlay {
  background: linear-gradient(
    to top,
    rgba(15, 15, 15, 0.9) 0%,
    rgba(15, 15, 15, 0.7) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: all 0.3s ease;
}

.card-hover:hover .card-overlay {
  opacity: 1;
}

.horizontal-poster {
  aspect-ratio: 16/9;
}

.vertical-poster {
  aspect-ratio: 2/3;
}

/* ********** Slider ********** */
.mySwiper-horizontal {
  height: 125px;
}
.swiper-wrapper,
.swiper-slide {
  overflow: visible !important;
}
.movie-slider-card {
  transition: all 0.4s ease-in-out;
  position: relative;
  transform-origin: center;
}
.movie-slider-card:hover {
  transform: scale(1.35);
  z-index: 9999 !important;
  position: relative !important;
}

.movie-slider-card .movie-slider-details {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #1f2937;
  padding: 1.5rem;
  animation: fadeIn 0.4s ease-in-out forwards;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 50;
  font-size: 1rem;
}
.movie-slider-card:hover .movie-slider-details {
  display: flex;
}
.movie-slider-details {
  border-radius: 0 00px 10px 10px;
}
.movie-slider-details .movie-slider-line {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  flex-wrap: wrap;
}
.movie-slider-details .movie-slider-line span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* vertical slider */
.movie-vertical-card {
  transition: all 0.4s ease-in-out;
  position: relative;
  transform-origin: center;
}
.movie-vertical-card:hover {
  transform: scale(1.15);
  z-index: 9999;
}
.movie-vertical-card .movie-vertical-details {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #1f2937;
  padding: 1rem;
  animation: fadeIn 0.4s ease-in-out forwards;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 50;
}
.movie-vertical-card:hover .movie-vertical-details {
  display: flex;
}
.movie-vertical-details .movie-vertical-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.movie-vertical-details .movie-vertical-line span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-slide {
  transition: opacity 0.5s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
}

/* Plyr custom theme */
.plyr--video {
  --plyr-color-main: #e50914; /* match fire-red */
  border-radius: 0.5rem;
}

/* slide in animation */

@keyframes slide-in {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0%);
    opacity: 1;
  }
}
.animate-slide-in {
  animation: slide-in 0.5s ease-out forwards;
}
/* تعديل المسافة من الأعلى */
.toast-top-left {
  top: 72px !important; /* أو أي قيمة بدك إياها */
  left: 12px;
}

.flag {
    width: 20px;
    height: 15px;
    display: inline-block;
    margin-left: 8px;
    border-radius: 2px;
}
.flag-ar {
    background: linear-gradient(to bottom, #ce1126 33%, #fff 33%, #fff 66%, #007a3d 66%);
}
.flag-en {
    background: #012169;
}
