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: rgba(30, 30, 30, 0.5);
}

::-webkit-scrollbar-thumb {
  background-color: rgba(100, 100, 100, 0.8);
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background-color: rgba(150, 150, 150, 0.9);
}

/* Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 100, 100, 0.8) rgba(30, 30, 30, 0.5);
}
@media (min-width: 769px) and (max-width: 1023px) {
    .hero-nav-container {
        bottom: 140px !important;
    }
}
.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);
}
/* Movie/Series sliders - exclude hero swipers from hover effect */
.movie-slider .swiper-slide,
.section-slider .swiper-slide {
  transition: transform 0.3s ease-in-out;
}

.movie-slider .swiper-slide:hover,
.section-slider .swiper-slide:hover {
  transform: scale(1.03);
}

/* Hero swipers should not scale on hover - only disable hover effect */
.series-hero-swiper .swiper-slide:hover,
.kids-hero-swiper .swiper-slide:hover,
.hero-swiper .swiper-slide:hover {
  transform: none;
}

/* Navbar */
/* شفاف تماماً في البداية - يتحول للأسود عند السكرول */
.navbar-initial {
  box-shadow: none !important;
  background: transparent !important;
  transition: all 0.4s ease-in-out;
}

/* هيدر الصفحة الرئيسية - شفاف تماماً */
.navbar-home {
  background: transparent !important;
}
.navbar-inset-shadow {
  box-shadow: inset 5px 16px 36px -5px rgba(0, 0, 0, 0.61);
}

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

/* Navigation Links */
.nav-active {
  color: #FF3B3F !important;
  font-weight: 600;
}

.nav-inactive {
  color: #ffffff !important;
  opacity: 0.9 !important;
}

.nav-inactive:hover {
  color: #ffffff !important;
  opacity: 1 !important;
}

/* ********** 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 Navigation - Desktop logos */
.hero-dot {
  width: auto;
  height: 60px;
  cursor: pointer;
  padding: 4px 8px;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.hero-dot.active {
  opacity: 1;
  transform: scale(1.1);
}

.hero-dot-logo {
  display: block;
  height: 100%;
  width: auto;
  object-fit: contain;
}

.hero-nav-arrow {
  display: none !important;
}

.hero-top10-badge {
  display: none;
}

@media (max-width: 1024px) {
  .hero-top10-badge {
    display: flex;
  }
}

.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;
}


.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;
}

.design3-img-poster {
  display: none;
}

.design3-mobile-title {
  display: none;
}

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

/* ********** Slider ********** */
.mySwiper-horizontal {
  height: 125px;
}
.swiper-slide:has(.movie-slider-card),
.swiper-slide:has(.movie-vertical-card) {
  overflow: visible !important;
}
.movie-slider-card {
  transition: all 0.4s ease-in-out;
  position: relative;
  transform-origin: 50% 100%;
}
.swiper-slide:has(.movie-slider-card:hover) {
  z-index: 999999 !important;
  overflow: visible !important;
}
.movie-slider-card:hover {
  transform: scale(1.15) translateY(-15px);
  z-index: 999999 !important;
}

/* تحريك لليسار */
.swiper-slide.hover-move-left .movie-slider-card:hover {
  transform: scale(1.15) translateY(-15px) translateX(-10px);
}

/* تحريك لليمين */
.swiper-slide.hover-move-right .movie-slider-card:hover {
  transform: scale(1.15) translateY(-15px) translateX(10px);
}

.movie-slider-card .movie-slider-details {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #1f2937;
  padding: 0.5rem 0.6rem;
  animation: fadeIn 0.3s ease-in-out forwards;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.75rem;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}
.movie-slider-card:hover .movie-slider-details {
  display: flex;
}
.movie-slider-details {
  border-radius: 0 0 10px 10px;
}

/* Design 3: ensure hover card has space below for details */
div:has(> [data-design-type="3"]) {
  padding-bottom: 120px !important;
}

/* Movie Swiper Wrapper */
.movie-swiper-wrapper {
  margin-bottom: 70px;
  position: relative;
}

/* أسهم التنقل للسلايدر */
.movie-swiper-wrapper .swiper-button-prev,
.movie-swiper-wrapper .swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  pointer-events: auto;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.movie-swiper-wrapper .swiper-button-next {
  left: 10px !important;
  right: auto !important;
}

.movie-swiper-wrapper .swiper-button-prev {
  right: 10px !important;
  left: auto !important;
}

/* إظهار الأسهم عند تحريك الماوس داخل السلايدر */
.movie-swiper-wrapper:hover .swiper-button-prev,
.movie-swiper-wrapper:hover .swiper-button-next {
  opacity: 1;
  pointer-events: auto;
}

.swiper-button-disabled {
  opacity: 0.3;
  pointer-events: none;
  cursor: not-allowed;
}

.movie-swiper-wrapper .swiper-button-prev::after,
.movie-swiper-wrapper .swiper-button-next::after {
  font-size: 25px;
  font-weight: bold;
  color: white;
}

.movie-swiper-wrapper .swiper-button-prev::after {
  content: '‹';
}

.movie-swiper-wrapper .swiper-button-next::after {
  content: '›';
}

.movie-slider-subtitle {
  font-size: 12px;
  font-weight: 600;
  border-right: 4px solid #10b981;
  padding-right: 8px;
  margin-top: 8px;
  text-align: right;
  direction: rtl;
}

.movie-slider-card:hover .free-episodes-label {
  display: none;
}
.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;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

/* Hero video and backdrop - fill entire screen like banner */
.hero-video,
.hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  /* Scale up to fill vertical space, clips sides */
  transform: scale(1.2);
  transform-origin: center center;
}

/* Ensure hero section clips overflow */
#hero {
  overflow: hidden;
  position: relative;
}

.hero-slide {
  overflow: hidden;
  position: absolute;
  inset: 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;
}

/* =========================
   Card Glass Buttons (مثل البانر)
   ========================= */
.card-glass-btn {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.15), 0 4px 15px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.card-glass-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* زر شاهد الآن */
.card-watch-btn {
  height: 30px;
  padding: 0 10px 0 4px;
  gap: 6px;
}
.card-play-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  background: linear-gradient(135deg, #FF5252 0%, #E53935 100%);
  box-shadow: 0 2px 10px rgba(229, 57, 53, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* زر قائمتي */
.card-list-btn {
  height: 30px;
  padding: 0 8px 0 4px;
  gap: 4px;
}
.card-list-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: rgba(60, 60, 60, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* زر الإعجاب (دائرة فقط) */
.card-icon-btn {
  width: 30px;
  height: 30px;
  min-width: 30px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Continue watching - always show 2 cards on mobile/tablet */
@media (max-width: 1024px) {
  [class*="continue-watching-swiper-"] .swiper-slide {
    width: calc(50vw - 18px) !important;
  }
}

/* =============================================
   MOBILE RESPONSIVE - لا يؤثر على تصميم الكمبيوتر
   ============================================= */

@media (max-width: 768px) {
  /* === CRITICAL: SWIPER OVERFLOW FIX ===
     Inline styles set overflow:visible on containers.
     Must override to hidden so slides don't spill out. */
  [class*="section-container-"],
  .swiper[class*="home-section-swiper-"],
  .featured-section-swiper,
  [class*="continue-watching-swiper-"],
  .section-home-custom,
  .section-home-custom > div,
  .section-home-custom > div > div {
    overflow: hidden !important;
  }

  .design2-section {
    overflow: hidden !important;
  }

  .design2-section .swiper-slide {
    overflow: hidden !important;
  }

  /* === NAVBAR === */
  #navbar {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: background 0.3s ease, backdrop-filter 0.3s ease !important;
  }

  #navbar.scrolled {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
  }

  #navbar .px-6 {
    padding-left: 12px !important;
    padding-right: 12px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  #navbar .h-10,
  #navbar .h-11 {
    height: 36px !important;
  }

  #navbar .px-5 {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  #navbar .text-sm {
    font-size: 12px !important;
  }

  #navbar img.h-10 {
    height: 32px !important;
  }

  #navbar img.w-10 {
    width: 32px !important;
    height: 32px !important;
  }

  #navbar .w-11 {
    width: 36px !important;
    height: 36px !important;
  }

  #mobile-menu {
    max-height: 80vh;
    overflow-y: auto;
  }

  #mobile-menu a {
    padding: 10px 16px !important;
    font-size: 15px !important;
  }

  /* === HERO (Shahid-style mobile) === */
  #hero {
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 500px;
  }


  #hero .hero-gradient {
    background: linear-gradient(
      to bottom,
      transparent 30%,
      rgba(0,0,0,0.4) 50%,
      rgba(0,0,0,0.85) 75%,
      rgba(0,0,0,0.95) 100%
    ) !important;
  }

  #hero > .flex.relative.z-10 {
    align-items: flex-end !important;
    padding-bottom: 60px;
  }

  #hero > .flex.relative.z-10 > .container {
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  #hero .hero-content {
    max-width: 100% !important;
    width: 100% !important;
    opacity: 1 !important;
    transform: none !important;
    text-align: center;
  }

  #hero .hero-content:hover {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-content.video-playing {
    opacity: 0.9 !important;
    transform: none !important;
  }

  .hero-content.video-playing:hover {
    opacity: 1 !important;
    transform: none !important;
  }

  #hero .logo-wrapper {
    height: 70px !important;
    margin-bottom: 12px !important;
    display: flex;
    justify-content: center;
  }

  #hero .logo-wrapper img {
    max-height: 100%;
    width: auto;
  }

  .hero-info-line {
    justify-content: center !important;
    text-align: center;
    font-size: 13px !important;
  }

  .hero-episodes-info {
    justify-content: center !important;
  }

  .movie-slider-subtitle {
    text-align: center !important;
    border-right: none !important;
    border-left: none !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    font-size: 15px !important;
    margin-top: 4px !important;
  }

  #hero .hero-buttons-mobile {
    display: flex !important;
    flex-direction: row;
    gap: 10px;
    width: 100%;
    margin-top: 16px;
  }

  #hero .hero-glass-btn {
    justify-content: center;
  }

  #hero .hero-watch-pill {
    flex: 1 !important;
  }

  #hero .hero-mylist {
    flex: 1 !important;
  }

  #muteBtn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    top: 70px !important;
    bottom: auto !important;
    left: 16px !important;
    right: auto !important;
    width: 36px;
    height: 36px;
    padding: 0 !important;
    background: rgba(0,0,0,0.5) !important;
    border: 1px solid rgba(255,255,255,0.2);
  }

  #muteBtn svg {
    width: 18px !important;
    height: 18px !important;
  }

  .hero-video,
  .hero-backdrop {
    object-fit: cover !important;
    transform: scale(1.15) !important;
    object-position: center center !important;
  }

  .hero-dot-container {
    bottom: 8px !important;
  }

  .hero-nav-container {
    bottom: 12px !important;
  }

  .hero-nav-arrow {
    display: none !important;
  }

  .hero-progress-dots {
    gap: 6px !important;
  }

  #hero .hero-dot {
    width: 24px !important;
    height: 3px !important;
    border-radius: 2px;
    overflow: hidden;
    background: rgba(255,255,255,0.3);
    padding: 0 !important;
  }

  #hero .hero-dot.active {
    background: #FF3B3F !important;
  }

  #hero .hero-dot-logo {
    display: none !important;
  }

  .hero-top10-badge {
    justify-content: center !important;
  }

  #hero .description {
    display: none !important;
  }

  #hero .tags {
    display: none !important;
  }

  .hero-info-line {
    justify-content: center !important;
    font-size: 12px !important;
  }

  #hero .hero-buttons-row {
    margin-top: 16px !important;
    margin-bottom: 0 !important;
  }

  /* === DISABLE ALL HOVER EFFECTS ON TOUCH === */
  .movie-slider .swiper-slide:hover,
  .section-slider .swiper-slide:hover {
    transform: none !important;
  }

  .movie-slider-card:hover {
    transform: none !important;
    z-index: auto !important;
  }

  .swiper-slide:has(.movie-slider-card:hover) {
    z-index: auto !important;
  }

  .movie-vertical-card:hover {
    transform: none !important;
    z-index: auto !important;
  }

  .card-hover:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  .featured-card:hover,
  .featured-card.group:hover,
  .featured-card.group\/card:hover {
    transform: none !important;
  }

  .featured-card .group-hover\/card\:scale-110 {
    transform: none !important;
  }

  .continue-watching-card:hover {
    transform: none !important;
    z-index: auto !important;
  }

  .continue-watching-card:hover .card-content {
    box-shadow: none !important;
  }

  .continue-watching-card:hover .card-actions-section {
    display: none !important;
  }

  .btn-glow:hover,
  .mute-btn:hover,
  .design2-btn-watch:hover {
    transform: none !important;
  }

  .design2-btn-circle:hover .btn-circle-icon {
    transform: none !important;
  }

  .design2-card:not(.is-expanded) .design2-card-base:hover {
    transform: none !important;
  }

  .group:hover .group-hover\:scale-110 {
    transform: none !important;
  }

  /* === HIDE CARD DETAILS & OVERLAYS ON MOBILE === */
  .movie-slider-card .movie-slider-details {
    display: none !important;
  }

  .movie-vertical-card .movie-vertical-details {
    display: none !important;
  }

  /* Design 1 & Featured: hide categories/info panel on poster */
  .featured-card .absolute.flex.flex-col.items-end {
    display: none !important;
  }

  /* Design 1 & Featured: hide action buttons row (تفاصيل، مشاركة، أعجبني) */
  .featured-card .flex.items-center.justify-center.gap-3.mt-3 {
    display: none !important;
  }

  /* Featured section: hide rating/episodes row and play button row */
  .featured-card .flex.items-center.justify-center.gap-4 {
    display: none !important;
  }

  .featured-card .flex.justify-center.mb-4 {
    display: none !important;
  }

  /* Design 1: shrink play button */
  .featured-card .w-11.h-11 {
    width: 30px !important;
    height: 30px !important;
  }

  .featured-card .w-11.h-11 svg {
    width: 14px !important;
    height: 14px !important;
  }

  /* Design 1 & Featured: simplify bottom overlay */
  .featured-card .absolute.inset-0.flex.flex-col.justify-end {
    padding: 6px !important;
  }

  .featured-card .absolute.bottom-0.left-0.right-0.p-4 {
    padding: 6px !important;
  }

  .featured-card .text-xl.font-bold {
    font-size: 10px !important;
    margin-bottom: 2px !important;
  }

  /* Hide icon-button squares (w-10 h-10) inside featured cards */
  .featured-card .w-10.h-10.rounded-xl {
    display: none !important;
  }

  /* === DESIGN 2 (Netflix-style) - disable expansion === */
  .design2-expanded {
    display: none !important;
  }

  .design2-card.is-expanded {
    width: auto !important;
  }

  .design2-card.is-expanded .design2-card-base {
    width: 100% !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .design2-card-wrapper {
    height: auto !important;
    overflow: hidden !important;
  }

  .design2-card {
    width: 100% !important;
    height: auto !important;
  }

  .design2-card-base {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 2 / 3;
    overflow: hidden !important;
    border-radius: 8px !important;
    position: relative;
  }

  .design2-card-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    position: absolute;
    top: 0;
    left: 0;
  }

  .design2-card-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    z-index: 1;
  }

  .design2-badge-top {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    padding: 2px 5px !important;
  }

  .design2-badge-top span {
    font-size: 7px !important;
  }

  .design2-badge-top svg {
    width: 8px !important;
    height: 8px !important;
  }

  .swiper-slide.shift-away {
    transform: none !important;
  }

  [dir="rtl"] .swiper-slide.shift-away,
  html[lang="ar"] .swiper-slide.shift-away {
    transform: none !important;
  }

  /* === DESIGN 6 & CONTINUE WATCHING === */
  .continue-watching-slide {
    padding-bottom: 0 !important;
  }

  .continue-watching-card .card-actions-section {
    display: none !important;
  }

  .continue-watching-card .card-info-section p {
    font-size: 12px !important;
  }

  /* Featured section slides (still have inline 280px, uses slidesPerView:auto) */
  .featured-section-swiper .swiper-slide {
    width: calc(40vw - 10px) !important;
  }

  /* Continue watching section slides (still have inline 320px, uses slidesPerView:auto) */
  [class*="continue-watching-swiper-"] .swiper-slide {
    width: calc(50vw - 18px) !important;
  }

  /* === HIDE SIDE NAV ARROWS (use header arrows + swipe instead) === */
  [class*="home-section-prev-"],
  [class*="home-section-next-"] {
    display: none !important;
  }

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

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

  .carousel-arrow {
    display: none !important;
  }

  /* Header nav buttons - smaller on mobile */
  [class*="header-nav-prev-"],
  [class*="header-nav-next-"] {
    width: 26px !important;
    height: 26px !important;
  }

  [class*="header-nav-prev-"] svg,
  [class*="header-nav-next-"] svg {
    width: 14px !important;
    height: 14px !important;
  }

  /* === SECTION SPACING === */
  .mb-4.px-4.py-3.mx-auto {
    padding-left: 8px !important;
    padding-right: 8px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    margin-bottom: 6px !important;
    max-width: 100% !important;
  }

  .mb-4.px-4.py-3.mx-auto h2 {
    font-size: 1rem !important;
  }

  .mb-4.px-4.py-3.mx-auto .w-1.h-8 {
    height: 1rem !important;
  }

  .overflow-visible.mb-8.px-4.py-6 {
    padding: 8px !important;
    margin-bottom: 8px !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .overflow-visible.mb-8.px-4.py-6 h2 {
    font-size: 1rem !important;
  }

  .top-10-number {
    font-size: 3rem !important;
    right: -10px !important;
    top: -5px !important;
  }

  /* === DESIGN 3 MOBILE: VERTICAL POSTER CARDS === */
  .design3-card {
    text-decoration: none !important;
  }

  .design3-card .design3-img-landscape {
    display: none !important;
  }

  .design3-card .design3-img-poster {
    display: block !important;
    aspect-ratio: 2/3;
    border-radius: 8px !important;
  }

  .design3-card .design3-logo-overlay {
    display: none !important;
  }

  .design3-card .design3-mobile-title {
    display: none !important;
  }

  [data-design-type="3"] {
    overflow: hidden !important;
  }

  .section-container-design3,
  div[style*="padding-bottom: 30px"]:has([data-design-type="3"]) {
    padding-bottom: 0 !important;
  }

  /* === CARD STYLING === */
  .movie-slider-card {
    border-radius: 8px !important;
    overflow: hidden !important;
  }

  .movie-slider-card img {
    border-radius: 8px !important;
  }

  .featured-card {
    border-radius: 8px !important;
  }

  /* === SWIPER EDGES === */
  .swiper-wrapper::before,
  .swiper-wrapper::after {
    width: 8px !important;
  }

  /* === MOBILE HEADER REDESIGN (Shahid-style) === */
  .nav-main-flex {
    position: relative;
  }
  .nav-logo-section {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
  }
  .nav-logo-section img {
    height: 36px !important;
    width: auto !important;
    max-width: none !important;
  }
  .nav-actions-section {
    width: 100%;
    justify-content: space-between;
    flex-wrap: nowrap;
  }
  .nav-mobile-hide {
    display: none !important;
  }
  .nav-search-container {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    height: auto !important;
    order: 10;
  }
  .nav-notification-bell {
    order: 11;
  }
  .nav-notification-bell > button {
    background: transparent !important;
    border: none !important;
    width: auto !important;
    height: auto !important;
  }
  #mobile-menu-btn {
    order: -1;
    margin-inline-end: auto;
    margin-inline-start: 0;
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .nav-main-flex {
    position: relative;
  }
  .nav-logo-section {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
  }
  .nav-logo-section img {
    height: 36px !important;
    width: auto !important;
    max-width: none !important;
  }
  .nav-actions-section {
    width: 100%;
    justify-content: space-between;
    flex-wrap: nowrap;
  }
  .nav-mobile-hide {
    display: none !important;
  }
  .nav-search-container {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    height: auto !important;
    order: 10;
  }
  .nav-notification-bell {
    order: 11;
  }
  .nav-notification-bell > button {
    background: transparent !important;
    border: none !important;
    width: auto !important;
    height: auto !important;
  }
  #mobile-menu-btn {
    order: -1;
    margin-inline-end: auto;
    margin-inline-start: 0;
  }
  /* === DESIGN 3 TABLET: VERTICAL POSTER CARDS === */
  .design3-card .design3-img-landscape {
    display: none !important;
  }
  .design3-card .design3-img-poster {
    display: block !important;
    aspect-ratio: 2/3;
    border-radius: 8px !important;
  }
  .design3-card .design3-logo-overlay {
    display: none !important;
  }
  .design3-card .design3-mobile-title {
    display: none !important;
  }
  .movie-slider-card .movie-slider-details {
    display: none !important;
  }
  [data-design-type="3"] {
    overflow: hidden !important;
  }
  .section-container-design3,
  div[style*="padding-bottom: 30px"]:has([data-design-type="3"]) {
    padding-bottom: 0 !important;
  } 
  /* === DESIGN 1 TABLET: SAME AS MOBILE === */
  .featured-card:hover,
  .featured-card.group:hover,
  .featured-card.group\/card:hover {
    transform: none !important;
  }
  .featured-card .group-hover\/card\:scale-110 {
    transform: none !important;
  }
  .featured-card .absolute.flex.flex-col.items-end {
    display: none !important;
  }
  .featured-card .flex.items-center.justify-center.gap-3.mt-3 {
    display: none !important;
  }
  .featured-card .flex.items-center.justify-center.gap-4 {
    display: none !important;
  }
  .featured-card .flex.justify-center.mb-4 {
    display: none !important;
  }
  .featured-card .w-11.h-11 {
    width: 30px !important;
    height: 30px !important;
  }
  .featured-card .w-11.h-11 svg {
    width: 14px !important;
    height: 14px !important;
  }
  .featured-card .absolute.inset-0.flex.flex-col.justify-end {
    padding: 6px !important;
  }
  .featured-card .absolute.bottom-0.left-0.right-0.p-4 {
    padding: 6px !important;
  }
  .featured-card .text-xl.font-bold {
    font-size: 10px !important;
    margin-bottom: 2px !important;
  }
  .featured-card .w-10.h-10.rounded-xl {
    display: none !important;
  }
  .featured-card {
    border-radius: 8px !important;
  }  
}

@media (max-width: 480px) {
  /* === NAVBAR 480px === */
  #navbar .px-6 {
    padding-left: 8px !important;
    padding-right: 8px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  #navbar img.h-10,
  #navbar .profile-img {
    height: 28px !important;
    width: 28px !important;
  }

  #navbar .w-11,
  #navbar .h-11 {
    width: 32px !important;
    height: 32px !important;
  }

  #mobile-menu a {
    padding: 8px 12px !important;
    font-size: 14px !important;
  }

  /* === HERO 480px === */
  #hero {
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 500px;
  }

  #hero .hero-content {
    max-width: 100% !important;
    width: 100% !important;
  }

  #hero .logo-wrapper {
    height: 55px !important;
    margin-bottom: 10px !important;
  }

  #hero .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* Featured section slides - show ~2.5 cards */
  .featured-section-swiper .swiper-slide {
    width: calc(38vw - 8px) !important;
  }

  /* Continue watching - show ~1.5 cards */
  [class*="continue-watching-swiper-"] .swiper-slide {
    width: calc(50vw - 18px) !important;
  }

  .design2-badge-top {
    padding: 2px 5px !important;
  }

  .design2-badge-top span {
    font-size: 8px !important;
  }

  .mb-4.px-4.py-3.mx-auto {
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  .mb-4.px-4.py-3.mx-auto h2 {
    font-size: 0.85rem !important;
  }

  .top-10-number {
    font-size: 2rem !important;
  }

  [class*="header-nav-prev-"],
  [class*="header-nav-next-"] {
    width: 22px !important;
    height: 22px !important;
  }

  [class*="header-nav-prev-"] svg,
  [class*="header-nav-next-"] svg {
    width: 11px !important;
    height: 11px !important;
  }

  [class*="section-nav-bars-"] {
    display: none !important;
  }
}
