:root {
  --movie-color: 229, 9, 20; /* رنگ پیشفرض قرمز نتفلیکسی */
}
.bg-red {
  background-image: url(../inc/functions/img/bg-red.jpg);
}
.bg-orange {
  background-image: url(../inc/functions/img/bg-orange.jpg);
}
.bg-yellow {
  background-image: url(../inc/functions/img/bg-yellow.jpg);
}
.bg-green {
  background-image: url(../inc/functions/img/bg-green.jpg);
}
.bg-cyan {
  background-image: url(../inc/functions/img/bg-cyan.jpg);
}
.bg-blue {
  background-image: url(../inc/functions/img/bg-blue.jpg);
}
.bg-purple {
  background-image: url(../inc/functions/img/bg-purple.jpg);
}
.bg-pink {
  background-image: url(../inc/functions/img/bg-pink.jpg);
}
.bg-black {
  background-image: url(../inc/functions/img/bg-black.jpg);
}
.bg-cast {
  background-image: url(../inc/functions/img/bg-cast.jpg);
}
.bg-movie {
  background-image: url(../inc/functions/img/bg-movie.jpg);
}
@font-face {
  font-family: iran;
  font-weight: 100 1000;
  font-style: normal;
  src:
    url("../fonts/cinamtic-Medium.woff2") format("woff2"),
    url("../fonts/cinamtic-Medium.woff") format("woff");
}

@font-face {
  font-family: yekan;
  font-weight: 100 1000;
  font-style: normal;
  src:
    url("../fonts/YekanBakhFaNum05Medium.woff2") format("woff2"),
    url("../fonts/YekanBakhFaNum05Medium.woff") format("woff");
}

@font-face {
  font-family: ctv;
  font-weight: 100 1000;
  font-style: normal;
  src:
    url("../fonts/CinamaTicVariableVF.woff2") format("woff2"),
    url("../fonts/CinamaTicVariableVF.woff") format("woff");
}

@font-face {
  font-family: ctblack;

  font-style: normal;

  font-weight: 600;

  src: url("../fonts/CT-black.woff") format("woff");
}

@font-face {
  font-family: ctblack;

  font-style: normal;

  font-weight: 800;

  src: url("../fonts/CT-black.woff") format("woff");
}

.ct-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  background:
    /* فید عمودی پایین – قوی‌تر برای محو کامل خط */
    linear-gradient(
      to bottom,
      hsl(var(--background) / 0) 0%,
      hsl(var(--background) / 0.12) 55%,
      hsl(var(--background) / 0.3) 72%,
      hsl(var(--background) / 0.55) 86%,
      hsl(var(--background) / 1) 100%
    ),
    /* فید چپ → مرکز (همون قبلی) */
    linear-gradient(
        to right,
        hsl(var(--background) / 0.22) 0%,
        hsl(var(--background) / 0.1) 5%,
        hsl(var(--background) / 0.03) 10%,
        hsl(var(--background) / 0) 15%
      ),
    /* فید راست → مرکز (همون قبلی) */
    linear-gradient(
        to left,
        hsl(var(--background) / 0.22) 0%,
        hsl(var(--background) / 0.1) 5%,
        hsl(var(--background) / 0.03) 10%,
        hsl(var(--background) / 0) 15%
      );
}

    /* اصلاح ارتفاع و جلوگیری از کشیدگی */
    .relatedSwiper .swiper-wrapper {
        height: auto !important;
    }
    .relatedSwiper .swiper-slide {
        height: auto !important;
        transition: transform 0.3s ease; /* انیمیشن نرم برای هاور */
    }
    
    .swiper-button-next, .swiper-button-prev {
        background: rgba(0,0,0,0.5);
        width: 40px !important;
        height: 40px !important;
        border-radius: 50%;
        color: #fff !important;
        backdrop-filter: blur(5px);
        opacity: 0; /* در حالت عادی مخفی */
        transition: all 0.3s ease;
    }

    .swiper {
    touch-action: pan-y; /* این دستور به مرورگر می‌گوید که در حالت پیش‌فرض اجازه اسکرول عمودی بده */
}

.swiper-slide {
    /* اطمینان از اینکه هیچ عنصری در کارت‌ها جلوی لمس را نمی‌گیرد */
    user-select: none;
    -webkit-user-select: none;
}

/* این کد به صورت خودکار تمام افکت‌ها را فقط محدود به کارتِ زیرِ ماوس می‌کند */
.card-item:hover .group-hover\:opacity-100 {
    opacity: 1 !important;
}

.card-item:hover .group-hover\:translate-y-0 {
    transform: translateY(0) !important;
}

.card-item:hover .group-hover\:scale-\[1\.05\] {
    transform: scale(1.05) !important;
}

@media (hover: none) {
    .card-item:hover .group-hover\:opacity-100 { opacity: 0 !important; }
    .card-item:hover .group-hover\:translate-y-0 { transform: translateY(8px) !important; }
    .card-item:hover img { transform: scale(1) !important; }
}

    /* اصلاح ارتفاع و جلوگیری از کشیدگی برای همه اسلایدرها */
.swiper-wrapper {
    height: auto !important;
}
.swiper-slide {
    height: auto !important;
    transition: transform 0.3s ease;
}

/* استایل دکمه‌های ناوبری */
.slider-container { 
    position: relative; 
}

.swiper-button-next, 
.swiper-button-prev {
    background: rgba(0,0,0,0.5);
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
    color: #fff !important;
    backdrop-filter: blur(5px);
    opacity: 0; 
    transition: all 0.3s ease;
}

.swiper-button-next:after, 
.swiper-button-prev:after {
    font-size: 18px !important;
    font-weight: bold;
}

/* ظاهر شدن هنگام هاور روی کانتینر والد */
.slider-container:hover .swiper-button-next,
.slider-container:hover .swiper-button-prev {
    opacity: 1;
}

/* مخفی شدن دکمه‌های غیرفعال (زمانی که به انتها یا ابتدا می‌رسیم) */
.swiper-button-disabled { 
    opacity: 0 !important; 
    cursor: default;
}

.owl-carousel .owl-item .infobg img {
    width: auto !important;
}

.namelogo {
  max-width: 20vw;
  max-height: 10vw;
  margin-bottom: 15px;
  display: inline-block !important;
}

@media (max-width: 499px) {
  .namelogo {
    max-width: 35vw;
    max-height: 20vw;
    margin-bottom: 12px;
  }
}

.titr {
  font-family: ctv, tahoma;
}
.titr2 {
  font-family: ctblack !important;
}
.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition-property: all;
  transition-duration: 700ms;
  transition-timing-function: ease;
}
.navbar {
  position: fixed !important;
}
[x-cloak] {
  display: none !important;
}

.dark .dark\:block {
  display: block !important;
}
.dark .dark\:hidden {
  display: none !important;
}

.post-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;

  cursor: grab;
  user-select: none;

  scroll-snap-type: none;
  scroll-behavior: auto;

  -webkit-overflow-scrolling: touch;
}
@keyframes fadeInOverlay {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.8;
  }
}

.post-slider > * {
  flex: 0 0 auto;
}

.post-slider.dragging {
  cursor: grabbing;
}

#hero-slider.owl-theme .owl-dots {
  display: block;
}

/* snap فقط موبایل */
@media (min-width: 768px) {
  .post-slider {
    scroll-snap-type: none !important;
    scroll-behavior: auto;
  }
  #hero-slider.owl-theme .owl-dots {
    display: none;
  }
}

.post-slider::-webkit-scrollbar {
  display: none;
}
.post-slider {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
/* Apple-style micro animation */
.group:hover .watchlist-elite {
  box-shadow:
    0 0 12px rgba(255, 255, 255, 0.15),
    0 0 28px rgba(255, 255, 255, 0.08);
  transform: scale(1.04);
}

.watchlist-elite {
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s ease;
}
.cinema-glow {
  background: radial-gradient(
    circle at 50% 40%,
    rgba(255, 255, 255, 0.15),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.7s ease;
  filter: blur(40px);
}

.group:hover .cinema-glow {
  opacity: 1;
}
.cinematic-badge {
  position: absolute;
  top: 16px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 12px;
  border-radius: 0 12px 12px 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #fff;
  backdrop-filter: blur(16px);
  background: rgba(0, 0, 0, 0.35);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.35),
    inset 0 0 10px rgba(255, 255, 255, 0.06);
  z-index: 60;
  transition: all 0.4s ease;
}

.cinematic-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.cinematic-badge .label {
  opacity: 0.8;
}

.cinematic-badge .time {
  opacity: 1;
  font-size: 8px;
  transition: opacity 0.4s ease;
}

/* نمایش زمان فقط هنگام هاور کارت */
.group:hover .cinematic-badge .time {
  opacity: 1;
}

/* افکت نور پویا هنگام هاور */
.group:hover .cinematic-badge .dot {
  transform: scale(1.6);
  box-shadow: 0 0 18px currentColor;
}

/* رنگ‌بندی بر اساس زمان بروزرسانی */
.cinematic-badge.new {
  color: #22c55e; /* سبز تازه */
  animation: newPulse 4s ease-in-out infinite;
}

.cinematic-badge.recent {
  color: #f59e0b; /* طلایی */
  background: linear-gradient(
    90deg,
    rgba(245, 158, 11, 0.35),
    rgba(0, 0, 0, 0.45)
  );
}

.cinematic-badge.week {
  color: #fb923c; /* نارنجی */
  background: linear-gradient(
    90deg,
    rgba(251, 146, 60, 0.3),
    rgba(0, 0, 0, 0.45)
  );
}

.cinematic-badge.old {
  color: #9ca3af; /* خاکستری کم‌رنگ */
  background: rgba(0, 0, 0, 0.4);
}
.update-intro-card {
  aspect-ratio: 2 / 3; /* دقیقا اندازه کارت‌ها */
  background:
    radial-gradient(
      circle at 40% 30%,
      rgba(255, 255, 255, 0.12),
      transparent 70%
    ),
    linear-gradient(145deg, rgba(20, 20, 20, 0.95), rgba(10, 10, 10, 0.95));

  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.6),
    inset 0 0 40px rgba(255, 255, 255, 0.04);

  position: relative;
  z-index: 3; /* بالاتر از کارت دوم */
}

/* سایه هدایت‌کننده تا کارت دوم */
.update-intro-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: -100px; /* بلند تا کارت دوم */
  width: 200px;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
  pointer-events: none;
}
/* کارت ژانر – ارتقا یافته */
.genre-card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  transform-style: preserve-3d;
}

/* افکت هاور دسکتاپ */
@media (hover: hover) {
  .genre-card:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 10px 18px -4px rgba(0, 0, 0, 0.25);
  }

  .genre-card:hover img,
  .genre-card:hover i {
    transform: scale(1.15);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.35));
  }
}

/* آیکون */
.genre-card img,
.genre-card i {
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}
.post-slider {
  scroll-snap-type: none;
}
/* نور سینمایی داخل کارت */
.intro-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 65% 35%,
      rgba(0, 255, 255, 0.14),
      transparent 55%
    ),
    radial-gradient(circle at 20% 70%, rgba(255, 0, 200, 0.14), transparent 60%);
  filter: blur(45px);
  opacity: 0.75;
  z-index: 1;
  pointer-events: none;
}
.skeleton-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
}

.skeleton-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  animation: skeleton 1.6s infinite;
}

@keyframes skeleton {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@media (min-width: 768px) {
  .group:hover .card-inner {
    transform: perspective(1200px) rotateX(2deg) rotateY(-2deg) scale(1.06)
      translateY(-6px);
  }
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
/* شخصی‌سازی نقطه‌های پایین اسلایدر */
.owl-theme .owl-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}

.owl-theme .owl-dots .owl-dot span {
  background: rgba(255, 255, 255, 0.3) !important;
  width: 10px;
  height: 10px;
  transition: all 0.3s ease;
}

.owl-theme .owl-dots .owl-dot.active span {
  background: #3b82f6 !important; /* رنگ اصلی برند شما */
  width: 30px; /* کشیده شدن نقطه فعال */
}
/* جلوگیری از بیرون زدن المان‌ها هنگام انیمیشن ورودی */
[data-aos] {
  pointer-events: none;
}
[data-aos].aos-animate {
  pointer-events: auto;
}

.owl-stage {
  padding-right: 0 !important;
}

/* تنظیمات اصلی کامپوننت */
.ld-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: hsl(var(--glass) / 0.4);
  border-color: hsl(var(--glass-border) / 0.5);
  border-width: 1px;
  border-radius: 12px;
  overflow: hidden;
  position: relative; /* برای چسبیدن کامل باکس درصد */
  direction: rtl; /* 💡 فعال‌سازی حالت راست‌به‌چپ */
}

/* استایل دکمه‌ها در حالت هاور و فعال */
.ld-btn:hover {
  transform: scale(1.05);
}
.ld-like-btn.active {
  color: #22c55e; /* رنگ سبز برای دکمه فعال */
}
.ld-dislike-btn.active {
  color: #ef4444; /* رنگ قرمز برای دیس‌لایک فعال */
}
.ld-donut {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: conic-gradient(#00e676 0%, #ff5252 0%);
  position: relative;
  transition: background 0.5s ease;
}

.ld-box button {
  /*background: hsl(var(--glass-border) / 0.5);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  padding: 5px;
  font-size: 18px;
  margin: 0 5px;
  line-height: 0;*/
}

.ld-percent,
.ld-total {
  transition: all 0.3s ease;
}
.ld-donut::before {
  content: "";
  position: absolute;
  inset: 10px;
  background: #222;
  border-radius: 50%;
}

.ld-donut-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  font-weight: bold;
  color: #00e676;
}

.ld-btn.active i {
  font-weight: 900;
}
.ld-btn.clicked {
  transform: scale(0.9);
}

.ld-toast {
  background-color: #00e676;
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  opacity: 0; /* شروع با شفافیت صفر برای انیمیشن ورود */
  transform: translateX(100%); /* شروع از سمت راست */
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    background-color 0.5s ease;
  position: relative;
  overflow: hidden;
  min-width: 250px;
}

.ld-toast.show {
  opacity: 1;
  transform: translateX(0);
}

.ld-toast.success {
  background-color: #4caf50; /* سبز */
}

.ld-toast.info {
  background-color: #3b82f6;
}

.ld-toast.error {
  background-color: #ef4444;
}

.ld-toast.dislike {
  background-color: #f44336; /* قرمز */
}

.ld-toast.cancel {
  background-color: #d08f2d; /* نارنجی */
}

.ld-toast.ld-toast-like {
  background-color: #22c55e; /* سبز */
}

.ld-toast.ld-toast-dislike {
  background-color: #f44336; /* قرمز */
}

.ld-toast.ld-toast-cancel {
  background-color: #fbbf24; /* زرد */
}

.toast-content {
  padding-bottom: 4px;
}
.ld-toast-container {
  position: fixed;
  /* top: 20px; */
  /* right: 20px; */
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 300px;
}

.ld-toast-container:empty {
  display: none;
}
.ld-toast {
  position: relative;
  padding: 12px 16px 12px 48px; /* فضای کافی برای آیکون */
  border-radius: 4px;
  color: white;
  margin-top: 10px;
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.2);
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.4s,
    transform 0.4s;
}

.ld-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.ld-toast-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 100%;
  background-color: rgba(255 255 255 / 0.5);
  border-radius: 4px 4px 0 0;
}

.ld-toast.ld-toast-like {
  background-color: #22c55e;
}

.ld-toast.ld-toast-dislike {
  background-color: #f44336;
}

.ld-toast.ld-toast-cancel {
  background-color: #fbbf24;
}

.ld-toast.error {
  background-color: #f44336;
}

.ld-toast.info {
  background-color: #3b82f6;
}

.ld-success {
  background: #22c55e;
}
.ld-error {
  background: #f43f5e;
}
.ld-cancel {
  background: #f97316;
}
.ld-info {
  background: #3b82f6;
}

.ld-toast-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
}

.ld-toast-message {
  display: inline-block;
  vertical-align: middle;
  font-weight: 600;
}

.movie-actors {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
}
.actor-card {
  width: 150px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
  text-align: center;
  overflow: hidden;
  transition: 0.3s;
}
.actor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 25px rgba(0, 0, 0, 0.25);
}
.actor-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  transition: 0.3s;
}
.actor-card:hover img {
  transform: scale(1.05);
}
.actor-name {
  display: block;
  margin: 10px 0 5px;
  font-weight: 700;
  color: #0073aa;
  text-decoration: none;
}
.actor-progress {
  width: 36px;
  height: 36px;
  margin: 5px auto 12px;
  border-radius: 50%;
  background: conic-gradient(#eee 0%, #eee 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: bold;
  color: #333;
}

.theme-toggle-btn .sun-icon,
:root.dark .theme-toggle-btn .moon-icon {
  display: none;
}

:root.dark .theme-toggle-btn .sun-icon,
.theme-toggle-btn .moon-icon {
  display: block;
}

.theme-toggle-btn:active {
  transform: rotate(15deg) scale(0.9);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: hsl(var(--background));
}

::-webkit-scrollbar-thumb {
  background: hsl(var(--muted-foreground) / 0.3);
  border-radius: 100vh;
  border: 2px solid hsl(var(--background));
}

::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--primary) / 0.8);
}

html {
  scrollbar-color: hsl(var(--muted-foreground) / 0.5) hsl(var(--background));
  scrollbar-width: thin;
}

.video-container {
  --plyr-color-main: hsl(var(--primary));
  --plyr-video-control-background-hover: hsl(var(--primary) / 0.2);
  --plyr-video-controls-background: linear-gradient(
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.7)
  );
  border: 1px solid hsl(var(--glass-border) / 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.plyr--full-ui input[type="range"] {
  color: hsl(var(--primary));
}

.plyr__control--overlaid {
  background: hsl(var(--primary) / 0.8);
  backdrop-filter: blur(8px);
}

.plyr__menu__container {
  background: hsl(var(--glass) / 0.9) !important;
  backdrop-filter: blur(20px);
  border: 1px solid hsl(var(--glass-border) / 0.5);
  color: hsl(var(--foreground));
  border-radius: var(--radius);
}

.active-item {
  border-color: hsl(var(--primary)) !important;
  background: hsl(var(--primary) / 0.15);
  box-shadow: inset 0 0 10px hsl(var(--primary) / 0.1);
}

.poster-card {
  width: 200px;
  height: 300px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  margin-bottom: 25px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.poster-card:hover {
  transform: scale(1.08) translateY(-10px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
  .poster-card {
    margin-left: auto;
    margin-right: auto;
    width: 160px;
    height: 240px;
  }

  #hero-slider .max-w-2xl {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #hero-slider .flex.items-center.gap-3 {
    justify-content: center;
  }

  #hero-slider .flex.items-center.gap-4 {
    justify-content: center;
  }
}
.dynamic-glow {
  text-shadow: 0 0 20px rgba(var(--movie-color), 0.5);
}
.dynamic-bg-gradient {
  background: linear-gradient(to top, #0a0a0a, rgba(var(--movie-color), 0.15));
}

.quality-badge {
  background-color: rgb(var(--movie-color)) !important;
}

.plot-langs {
  display: flex;
  gap: 2px;
  background: hsl(var(--secondary) / 0.5);
}

.plot-btn {
  color: hsl(var(--muted-foreground));
  padding: 4px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 11px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.plot-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 229, 255, 0.5);
}

.plot-btn.active {
  background: #00e5ff;
  color: #000;
  border-color: #00e5ff;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.plot-text-area.active {
  display: block;
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (min-width: 768px) {
  .content-with-arrow {
    position: relative;
  }

  .content-with-arrow::before {
    content: "";
    position: absolute;
    top: 40px;
    right: -12px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 12px;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.05);
    z-index: 20;
    pointer-events: none;
  }
}
.post_arrow {
  position: absolute;
  top: 0;
  right: -30px;
  height: 100%;
  width: auto;
  max-width: 29px;
  fill: hsl(var(--glass) / 0.4);
  backdrop-filter: blur(12px);
  pointer-events: none;
  z-index: 10;
}
.poster-align {
  justify-content: flex-end;
}
@media (max-width: 768px) {
  .post_arrow {
    top: -16px !important;
    left: 50% !important;
    right: unset !important;
    transform: translateY(-50%) translateX(-50%) rotate(270deg) !important;
    height: 50%;
  }
  .poster-align {
    justify-content: center;
    display: flex;
  }
}
.content-with-svg {
  position: relative;
  overflow: visible !important;
}
.weekly-day {
  margin-bottom: 50px;
}

.weekly-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 20px;
  padding: 12px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f0f0f, #1e1e1e);
  color: #fff;
}

.today-badge {
  background: #ff3d00;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
}

html.light .weekly-title {
  background: #ffffff;
  color: #111;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.weekly-item {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 18px;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.35s ease;
}

.weekly-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

html.light .weekly-item {
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.weekly-poster img {
  width: 80px;
  border-radius: 14px;
}

.weekly-info h4 {
  margin: 0;
  font-weight: 800;
}

.weekly-info a {
  text-decoration: none;
  color: inherit;
}

.weekly-meta {
  font-size: 13px;
  opacity: 0.7;
}
.glass-card.pattern {
  position: relative;
  background-color: hsl(var(--glass) / 0.4);
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='1'/%3E%3Ccircle cx='13' cy='13' r='1'/%3E%3C/g%3E%3C/svg%3E");
  backdrop-filter: blur(12px);
}
.glass-card.pattern-2 {
  position: relative;
  overflow: hidden;
  background: hsl(var(--glass) / 0.4);
}

/* ایجاد هاله نوری با استفاده از Pseudo-elements برای سرعت بیشتر */
.glass-card.pattern-2::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.15) 0%,
    transparent 70%
  );
  filter: blur(50px);
  z-index: 0;
}

.glass-card.pattern-2::after {
  content: "";
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 250px;
  height: 250px;
  background: radial-gradient(
    circle,
    rgba(168, 85, 247, 0.15) 0%,
    transparent 70%
  );
  filter: blur(50px);
  z-index: 0;
}
.glass-card.pattern-3 {
  position: relative;
  background-color: hsl(var(--glass) / 0.4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 86c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm66 3c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm-46-45c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zm54 24c0-1.105-.895-2-2-2s-2 .895-2 2 .895 2 2 2zM37 17c0-1.105-.895-2-2-2s-2 .895-2 2 .895 2 2 2zm-11 46c0-1.105-.895-2-2-2s-2 .895-2 2 .895 2 2 2zM82 6c0-1.105-.895-2-2-2s-2 .895-2 2 .895 2 2 2zM8 52c0-1.105-.895-2-2-2s-2 .895-2 2 .895 2 2 2zm74 36c0-1.105-.895-2-2-2s-2 .895-2 2 .895 2 2 2zM2 42c0-1.105-.895-2-2-2s-2 .895-2 2 .895 2 2 2zm60-24c0-1.105-.895-2-2-2s-2 .895-2 2 .895 2 2 2zM94 71c0-1.105-.895-2-2-2s-2 .895-2 2 .895 2 2 2zM21 34c0-1.105-.895-2-2-2s-2 .895-2 2 .895 2 2 2zm56 49c0-1.105-.895-2-2-2s-2 .895-2 2 .895 2 2 2zM102 4c0-1.105-.895-2-2-2s-2 .895-2 2 .895 2 2 2z' fill='%236366f1' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}
.glass-card.pattern-4 {
  position: relative;
  background-color: hsl(var(--glass) / 0.4);
  /* پترن نقطه پیکسلی */
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.05) 1px,
    transparent 0
  );
  background-size: 24px 24px;
  background-position: -19px -19px;
}
.glass-card.pattern-5 {
  position: relative;
  overflow: hidden;
  background: hsl(var(--glass) / 0.4);
  z-index: 1;
}

.glass-card.pattern-5::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.1) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(236, 72, 153, 0.05) 0px, transparent 50%);
  z-index: -1;
}
.glass-card.pattern-6 {
  position: relative;
  background-color: hsl(var(--glass) / 0.4);
  background-image:
    linear-gradient(
      30deg,
      #1e293b 12%,
      transparent 12.5%,
      transparent 87%,
      #1e293b 87.5%,
      #1e293b
    ),
    linear-gradient(
      150deg,
      #1e293b 12%,
      transparent 12.5%,
      transparent 87%,
      #1e293b 87.5%,
      #1e293b
    ),
    linear-gradient(
      30deg,
      #1e293b 12%,
      transparent 12.5%,
      transparent 87%,
      #1e293b 87.5%,
      #1e293b
    ),
    linear-gradient(
      150deg,
      #1e293b 12%,
      transparent 12.5%,
      transparent 87%,
      #1e293b 87.5%,
      #1e293b
    ),
    linear-gradient(
      60deg,
      #1e293b 25%,
      transparent 25.5%,
      transparent 75%,
      #1e293b 75%,
      #1e293b
    ),
    linear-gradient(
      60deg,
      #1e293b 25%,
      transparent 25.5%,
      transparent 75%,
      #1e293b 75%,
      #1e293b
    );
  background-size: 40px 70px;
  background-position:
    0 0,
    0 0,
    20px 35px,
    20px 35px,
    0 0,
    20px 35px;
}
.glass-card.pattern-7 {
  position: relative;
  background-color: hsl(var(--glass) / 0.4);
  overflow: hidden;
}

.glass-card.pattern-7::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  /* ایجاد پترن شطرنجی ریز */
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.08) 1px,
    transparent 1px
  );
  background-size: 20px 20px;
  /* ایجاد ماسک برای محو شدن از گوشه به سمت مرکز */
  -webkit-mask-image: radial-gradient(
    circle at bottom left,
    black 10%,
    transparent 70%
  );
  mask-image: radial-gradient(
    circle at bottom left,
    black 10%,
    transparent 70%
  );
  pointer-events: none;
}
.glass-card.pattern-8 {
  position: relative;
  background-color: hsl(var(--glass) / 0.4);
  overflow: hidden;
}

.glass-card.pattern-8::before {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 5px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(59, 130, 246, 0.2); /* رنگ آبی دکمه شما */
  transform: rotate(-15deg);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.05);
  border-radius: 10px;
  pointer-events: none;
  animation: border-glow 4s infinite ease-in-out;
}

.glass-card.pattern-8::after {
  content: "";
  position: absolute;
  bottom: 40px;
  left: 60px;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(168, 85, 247, 0.15); /* رنگ بنفش دکمه شما */
  transform: rotate(10deg);
  border-radius: 8px;
  pointer-events: none;
}
@keyframes border-glow {
  0% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 0.3;
  }
}
/* انیمیشن برای دایره IMDb */
@keyframes progress-circle {
  from {
    stroke-dasharray: 0, 100;
  }
}

/* انیمیشن برای قلب و مربع (از پایین به بالا) */
@keyframes progress-fill {
  from {
    clip-path: inset(100% 0 0 0);
  }
}
@keyframes ring-grow-custom {
  from {
    stroke-dasharray: 0 100;
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fade-glow {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.poster-align {
  animation: fade-glow 0.8s ease-out forwards;
}
.animate-ring-grow {
  animation: ring-grow-custom 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* افزایش درخشش در زمان هاور برای جذابیت بیشتر */
.group:hover .animate-ring-grow {
  stroke-width: 1.6;
  filter: drop-shadow(0 0 7px currentColor);
  transition: all 0.4s ease;
}
.animate-progress-circle {
  animation: progress-circle 2s ease-out forwards;
}

.animate-progress-fill {
  animation: progress-fill 2s ease-out forwards;
}
.glass-card.pattern-9 {
  position: relative;
  background-color: hsl(var(--glass) / 0.4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Crect x='80' y='80' width='10' height='10' fill='%23ffffff' fill-opacity='0.05'/%3E%3Crect x='60' y='70' width='5' height='5' fill='%23ffffff' fill-opacity='0.03'/%3E%3Crect x='85' y='50' width='8' height='8' fill='%23ffffff' fill-opacity='0.02'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: bottom left;
}
.glass-card.pattern-10 {
  position: relative;
  background-color: hsl(var(--glass) / 0.4);
  overflow: hidden;
}

.glass-card.pattern-10::before {
  content: "";
  position: absolute;
  bottom: -10px;
  left: -10px;
  width: 120px;
  height: 120px;
  background-image: moseaic-gradient; /* مفهومی */
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
  background-size: 15px 15px;
  mask-image: linear-gradient(to top left, black, transparent 80%);
  -webkit-mask-image: linear-gradient(to top left, black, transparent 80%);
}
.glass-card.pattern-11 {
  position: relative;
  overflow: hidden;
}

.glass-card.pattern-11::after {
  content: "";
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 60px;
  height: 100px;
  border-left: 2px solid rgba(168, 85, 247, 0.3);
  border-bottom: 2px solid rgba(59, 130, 246, 0.3);
  border-radius: 0 0 15px 0;
}

.glass-card.pattern-11::before {
  content: "";
  position: absolute;
  bottom: 40px;
  left: 40px;
  width: 30px;
  height: 30px;
  background: rgba(71, 71, 71, 0.18);
  border: 1px solid rgba(72, 72, 72, 0.21);
  transform: rotate(45deg);
}
.glass-card.pattern-12 {
  position: relative;
}

.glass-card.pattern-12::after {
  content: "";
  position: absolute;
  bottom: 15px;
  left: 15px;
  width: 40px;
  height: 40px;
  border-right: 3px solid #3b82f6;
  border-bottom: 3px solid #3b82f6;
  opacity: 0.4;
}

.glass-card.pattern-12::before {
  content: "";
  position: absolute;
  bottom: 30px;
  left: 30px;
  width: 10px;
  height: 10px;
  background: #a855f7;
  border-radius: 2px;
  opacity: 0.5;
}
.glass-card.pattern-13 {
  position: relative;
  overflow: hidden;
}

.glass-card.pattern-13::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.glass-card.pattern-13::before {
  content: "";
  position: absolute;
  bottom: 10px;
  left: 10px;
  width: 80px;
  height: 80px;
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: 50%;
}
.glass-card.pattern-14 {
  position: relative;
  overflow: hidden;
}

.glass-card.pattern-14::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: -20px;
  width: 100px;
  height: 60px;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.05) 2px,
    transparent 2px,
    transparent 10px
  );
  transform: skewX(-20deg);
}
.post-title {
  background: linear-gradient(to bottom, #fff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.movie-card-container {
  position: relative;
  z-index: 1;
}

.movie-card-container::before {
  content: "";
  position: absolute;
  top: 5%;
  left: 5%;
  width: 90%;
  height: 90%;
  background-image: var(--poster-url); /* این مقدار از PHP می‌آید */
  background-size: cover;
  background-position: center;
  filter: blur(50px) brightness(0.9); /* مقدار بلور را کمی بیشتر کردم برای نرمی */
  opacity: 0.35;
  z-index: -1;
  border-radius: 40px;
  pointer-events: none; /* حتماً این را اضافه کن */
}

/* موبایل */
@media (max-width: 768px) {
  .weekly-item {
    flex-direction: column;
    text-align: center;
  }

  .weekly-poster img {
    width: 100px;
  }
}
.glass-card-me,
.glass-card-me-hover {
  border-radius: 0.75rem;
  border-width: 1px;
  border-color: hsl(var(--glass-border) / 0.5);
  background-color: hsl(var(--glass) / 0.4);
  --tw-backdrop-blur: blur(24px);
  -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness)
    var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale)
    var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert)
    var(--tw-backdrop-opacity) var(--tw-backdrop-saturate)
    var(--tw-backdrop-sepia);
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness)
    var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale)
    var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert)
    var(--tw-backdrop-opacity) var(--tw-backdrop-saturate)
    var(--tw-backdrop-sepia);
  box-shadow:
    0 8px 32px #0006,
    inset 0 1px hsla(var(--glass-highlight), 0.08);
}

.glass-card-me-hover {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 0.3s;
  animation-duration: 0.3s;
}

.glass-card-me-hover:hover {
  --tw-scale-x: 1.03;
  --tw-scale-y: 1.03;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y))
    rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y))
    scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  border-color: hsl(var(--primary) / 0.4);
  box-shadow:
    0 12px 40px #19d5e626,
    inset 0 1px hsla(var(--glass-highlight), 0.15);
}
#videoOverlay {
  background: #000;
}
html.no-scroll,
body.no-scroll {
  overflow: hidden !important;
  height: 100vh !important;
}
#videoOverlay .plyr {
  height: 100vh !important;
  width: 100vw !important;
  max-width: none !important;
  background: #000 !important;
}

.episode-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.episode-modal.active {
  display: block;
}

.episode-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.episode-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  max-width: 95%;
  max-height: 80vh;
  background: #0f172a;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.episode-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 18px;
}

#episodeModalClose {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.episode-modal-body {
  padding: 20px;
  overflow-y: auto;
}

.episode-item {
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
  cursor: pointer;
  transition: 0.2s;
}

.episode-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.player-wrapper {
  width: 100%;
  height: 100%;
  background: black;
}

.player-wrapper:hover .plyr__controls {
  opacity: 1;
}

.plyr--hide-controls .plyr__controls {
  opacity: 0;
  pointer-events: none;
}

.plyr__controls {
  transition: opacity 0.25s ease;
}

.plyr__video-wrapper {
  height: 100% !important;
}

#player {
  height: 100% !important;
  width: 100% !important;
  object-fit: contain;
  pointer-events: none;
}

.plyr__controls,
.plyr__video-wrapper {
  pointer-events: auto;
}

.plyr__control--icon {
  font-size: 18px;
}

/* ===================== */
/* Episode Navigation */
/* ===================== */

.plyr-episode-nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s;
}

.group:hover .plyr-episode-nav {
  opacity: 1;
}

/* ===================== */
/* Controls Layout */
/* ===================== */
.plyr__controls {
  flex-wrap: wrap !important;
  padding-bottom: 15px !important;
}

.plyr__controls::before {
  content: "";
  display: block;
  width: 100%;
  order: 4;
  height: 10px;
}

.plyr__controls .plyr__time--current {
  order: 1;
}
.plyr__controls .plyr__progress__container {
  order: 2;
  flex-grow: 1 !important;
}
.plyr__controls .plyr__time--duration {
  order: 3;
}

.plyr__controls [data-plyr="restart"] {
  order: 5;
}
.plyr__controls [data-plyr="rewind"] {
  order: 6;
}
.plyr__controls [data-plyr="play"] {
  order: 7;
}
.plyr__controls [data-plyr="fast-forward"] {
  order: 8;
}

.plyr__controls .plyr__volume {
  order: 9;
  margin-inline-end: auto !important;
}

.plyr__controls [data-plyr="captions"] {
  order: 10;
}

.plyr__controls .plyr__menu {
  order: 11;
}

.plyr__controls [data-plyr="pip"] {
  order: 12;
}

.plyr__controls [data-plyr="fullscreen"] {
  order: 13;
}

.plyr__controls .plyr__progress__container input[type="range"] {
  height: 4px;
  transition: transform 0.3s ease;
  transform-origin: center;
}

.plyr__captions {
  font-size: var(--caption-size, 18px);
  color: var(--caption-color, #ffffff);
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
  bottom: 60px !important;
}

.plyr__menu__item span:hover {
  cursor: pointer;
}
.plyr__menu__item:hover span,
.plyr__menu__item:hover select {
  cursor: pointer !important;
}
/* ===================== */
/* Center Play Button */
/* ===================== */

.plyr__control--overlaid svg {
  display: none;
}

.plyr__control--overlaid {
  width: 80px !important;
  height: 80px !important;
  background: linear-gradient(
    135deg,
    hsl(185deg 80% 50%),
    hsl(260deg 60% 55%)
  ) !important;
  border-radius: 9999px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  box-shadow: 0 8px 32px
    color-mix(in srgb, hsl(185deg 80% 50%) 40%, transparent) !important;
  opacity: 1 !important;
  transition: transform 0.3s ease !important;
}

.plyr__control--overlaid::after {
  content: "";
  display: block;
  width: 32px;
  height: 32px;
  background-color: rgb(12 14 18);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon points='6 3 20 12 6 21 6 3'/%3E%3C/svg%3E")
    no-repeat center;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon points='6 3 20 12 6 21 6 3'/%3E%3C/svg%3E")
    no-repeat center;
  margin-left: 4px;
}

/* رنگ progress */
.plyr--full-ui input[type="range"] {
  color: #2271b1 !important;
}

/*.nav-center-btn {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.nav-center-btn:hover:not(:disabled) {
  background: #2271b1;
  border-color: #2271b1;
  transform: scale(1.1);
}
.nav-center-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}**/

.active-item {
  border-color: #2271b1 !important;
  background: rgba(34, 113, 177, 0.2) !important;
}
.custom-scrollbar::-webkit-scrollbar {
  width: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
}

.pwa-wrapper {
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  background: hsl(var(--card) / 0.85);
  border: hsl(var(--border) / 0.4);
  border-radius: 12px;
  z-index: 10000;
  direction: rtl;
  box-shadow:
    0 10px 30px var(--tw-ring-offset-shadow, 0 0 #0000),
    var(--tw-ring-shadow, 0 0 #0000),
    var(--tw-shadow);
}
.pwa-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.pwa-app-icon {
  width: 45px;
  height: 45px;
  border-radius: 8px;
}
.pwa-text strong {
  display: block;
  font-size: 14px;
}
.pwa-text span {
  font-size: 11px;
}
.pwa-close {
  margin-right: auto;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}
.pwa-body p {
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}
#pwa-install-btn {
  width: 100%;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  font-family: inherit;
}

.blurfooter {
  position: absolute;
  inset: auto 0 0 0;
  height: 100%;
  pointer-events: none;
}
.blurfooter {
  background: linear-gradient(
    0deg,
    var(--bg, #f9fafb) 10%,
    rgba(10, 13, 16, 0)
  );
}
html.dark .blurfooter {
  background: linear-gradient(
    0deg,
    hsl(var(--background)) 10%,
    rgba(10, 13, 16, 0)
  );
}
:root {
  --accent-dynamic: #ff3d3d;
}

@keyframes heroKenBurns {
  0% {
    transform: scale(1) translateY(0);
  }
  100% {
    transform: scale(1.08) translateY(-10px);
  }
}

.hero-kenburns {
  animation: heroKenBurns 28s ease-in-out infinite alternate;
}

.hero-fade {
  mask-image: linear-gradient(to top, transparent 0%, black 25%, black 100%);
  -webkit-mask-image: linear-gradient(
    to top,
    transparent 0%,
    black 25%,
    black 100%
  );
}

.hero-bottom-overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 45%;
  pointer-events: none;

  background: linear-gradient(
    to bottom,
    hsl(var(--background) / 0) 0%,
    hsl(var(--background) / 0.35) 35%,
    hsl(var(--background) / 0.65) 70%,
    hsl(var(--background) / 1) 100%
  );
}

.hero-bottom-overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 45%;
  pointer-events: none;

  background: linear-gradient(
    to bottom,
    hsl(var(--background) / 0) 0%,
    hsl(var(--background) / 0.35) 35%,
    hsl(var(--background) / 0.65) 70%,
    hsl(var(--background) / 1) 100%
  );
}

.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;

  background: radial-gradient(
    circle at center,
    transparent 0%,
    transparent 40%,
    hsl(var(--background) / 0.5) 100%
  );
}

.hero-text-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;

  background: linear-gradient(
    to top,
    hsl(var(--background) / 1) 0%,
    hsl(var(--background) / 0) 60%
  );
}

.hero-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  mix-blend-mode: overlay;
  pointer-events: none;

  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-depth {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(2px);
  mask-image: linear-gradient(to bottom, transparent 0%, black 35%, black 100%);
  pointer-events: none;
}

.poster-card {
  width: 120px;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;

  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.45),
    0 0 30px var(--accent-dynamic);

  transition: 0.35s;
}

.poster-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.65),
    0 0 40px var(--accent-dynamic);
}

.glow-text {
  text-shadow:
    0 4px 20px rgba(0, 0, 0, 0.6),
    0 2px 6px rgba(0, 0, 0, 0.8);
}

.slider-fade-edges {
  position: relative;
}

.slider-fade-edges::before,
.slider-fade-edges::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 160px;
  pointer-events: none;
  z-index: 5;
}

.slider-fade-edges::before {
  left: 0;
  background: linear-gradient(
    to right,
    hsl(var(--background)) 0%,
    hsl(var(--background) / 0.9) 40%,
    transparent 100%
  );
}

.slider-fade-edges::after {
  right: 0;
  background: linear-gradient(
    to left,
    hsl(var(--background)) 0%,
    hsl(var(--background) / 0.9) 40%,
    transparent 100%
  );
}

.header-slider-wrapper .owl-carousel .owl-nav button {
  background: rgba(0, 0, 0, 0.55) !important;
  color: #fff !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  margin: 0 8px !important;
  font-size: 20px !important;
  transition: all 0.3s;
}
.header-slider-wrapper.owl-nav {
  display: none;
}

.header-slider-wrapper {
  height: 60vh;
  min-height: 480px;
  overflow: hidden;
}

.header-slider-wrapper .owl-stage-outer {
  overflow: hidden !important;
  padding: 50px 0;
}

.header-slider-wrapper .owl-item {
  transition: all 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  transform-origin: center center;
}

.header-slider-wrapper .owl-item.center {
  transform: scale(1.15);
  z-index: 5;
}
.header-slider-wrapper .owl-item:not(.center) {
  transform: scale(0.97);
  opacity: 0.9;
  filter: brightness(0.95);
}

.header-slider-wrapper .slider-card {
  width: 180px !important;
  height: 270px !important;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  transform: translateZ(0);
}

.header-slider-wrapper .slider-card:hover {
  transform: translateY(-10px) scale(1.04);
}

.header-slider-wrapper .slider-card img {
  transition: transform 0.7s ease;
  transform: scale(1.1);
}

.header-slider-wrapper .slider-card:hover img {
  transform: scale(1.18);
}

.glass-reflection {
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.05) 35%,
    rgba(255, 255, 255, 0) 60%
  );
  mix-blend-mode: screen;
  opacity: 0.5;
}

.header-slider-wrapper .slider-card h3 {
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.7);
}

.header-slider-wrapper .slider-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center;
}

.header-slider-wrapper .slider-card h3,
.header-slider-wrapper .slider-card .imdb,
.header-slider-wrapper .slider-card .year {
  color: white !important;
}

.header-slider-wrapper .slider-card:hover img {
  transform: scale(1.08);
}

#main-play-btn svg {
  transition: all 0.4s ease;
}

#main-play-btn:hover svg {
  transform: scale(1.2);
  filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.8));
}
/* موبایل – نسخه اصلاح شده */
@media (max-width: 767px) {
  .header-slider-wrapper .owl-carousel .owl-item .item a {
    transform-origin: bottom center;
    transition: transform 0.5s ease; /* فقط موقع تغییر اسلاید نرم باشد */
  }

  /* کارت مرکزی همیشه صاف و برجسته */
  .header-slider-wrapper .owl-carousel .owl-item.center .item a {
    transform: rotate(0deg) scale(1.08);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
    z-index: 3;
  }

  /* آیتم‌های کناری فعال (غیر مرکزی) */
  .header-slider-wrapper.owl-carousel .owl-item.active:not(.center) .item a {
    transform: rotate(0deg) scale(0.94);
  }

  /* آیتم سمت چپ مرکز (معمولاً آیتم قبلی مرکز) → همیشه به چپ بچرخد */
  .header-slider-wrapper
    .owl-carousel
    .owl-item.active:not(.center):has(+ .owl-item.center)
    .item
    a,
  .header-slider-wrapper
    .owl-carousel
    .owl-item.cloned.active:not(.center):has(+ .owl-item.center)
    .item
    a {
    transform: rotate(10deg) scale(0.94);
  }

  /* آیتم سمت راست مرکز (معمولاً آیتم بعدی مرکز) → همیشه به راست بچرخد */
  .header-slider-wrapper
    .owl-carousel
    .owl-item.center
    + .owl-item.active:not(.center)
    .item
    a,
  .header-slider-wrapper
    .owl-carousel
    .owl-item.center
    + .owl-item.cloned.active:not(.center)
    .item
    a {
    transform: rotate(-10deg) scale(0.94);
  }

  /* آیتم‌های دورتر کوچک و کم‌رنگ */
  .header-slider-wrapper .owl-carousel .owl-item:not(.active) .item a {
    opacity: 0.65;
    transform: scale(0.85) rotate(0deg);
  }
  .header-slider-wrapper .glass-card.pattern-8::before {
    left: -14px;
  }

  .header-posts-carousel .owl-stage {
    padding-right: 30px !important;
  }
  /* عکس کل کارت را پوشش دهد */
  .header-slider-wrapper .slider-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
  }
}

@media (max-width: 767px) {
  /* همه کارت‌ها محور چرخش از پایین داشته باشند */
}
.animate-fadeIn {
  animation: fadeIn 0.5s ease-out forwards;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.tab-link {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.tab-content {
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.stagger-item {
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
/* افکت شیشه‌ای برای دراپ‌داون */
#user-menu.glass-card {
  background: rgba(15, 15, 20, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* انیمیشن باز شدن */
.fade-in {
  animation: menuFade 0.2s ease-out;
}

@keyframes menuFade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* جلوگیری از اسکرول خوردن منو در موبایل */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
/* استایل‌های اختصاصی برای هماهنگی کامل با متغیرهای HSL شما */
.modern-select {
  width: 100%;
  border-radius: 1rem;
  padding: 0.7rem 1rem;
  font-size: 0.8rem;
  outline: none;
  transition: all 0.3s ease;
  background-color: hsl(var(--secondary) / 0.5);
  border: 1px solid hsl(var(--border) / 0.5);
  color: hsl(var(--foreground));
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2306b6d4' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: left 0.7rem center;
  background-repeat: no-repeat;
  background-size: 1.2em 1.2em;
}

.modern-select:focus {
  border-color: #06b6d4;
  background-color: hsl(var(--secondary) / 0.8);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.modern-select option {
  background-color: hsl(var(--card));
  color: hsl(var(--foreground));
}

/* حالت بارگذاری نتایج */
#search-results.loading {
  opacity: 0.3;
  filter: blur(5px);
  transform: scale(0.98);
  pointer-events: none;
}

/* رفع مشکل رنگ متن در ورودی‌های عددی */
input[type="number"]::placeholder {
  color: #666;
}
.lang-tab {
  padding: 5px 9px;
  cursor: pointer;
  border: 1px solid hsl(var(--glass-border) / 0.5);
  margin: 0 8px;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  background-color: hsl(var(--glass) / 0.2);
  transition: background-color 0.3s ease;
}
.lang-tab.active {
  background-color: hsl(var(--primary) / 0.05);
  border-color: hsl(var(--primary) / 0.2);
  border-bottom: none;
  color: hsl(var(--primary) / 0.5); /* رنگ اصلی شما */
}
.lang-content.hidden {
  display: none;
}
.tab-container {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  overflow-x: auto; /* برای اسکرول در موبایل */
  padding-bottom: 5px; /* فضای اضافی برای اسکرول */
}
.season-tab {
  padding: 8px 15px;
  cursor: pointer;
  border-radius: 6px;
  background-color: hsl(var(--glass) / 0.4);
  border: 1px solid hsl(var(--glass-border) / 0.5);
  transition: all 0.3s ease;
  white-space: nowrap; /* جلوگیری از شکستن خط */
}
.season-tab:hover {
  background-color: hsl(var(--glass) / 0.8);
}
.season-tab.active-tab {
  background-color: #17bfcf; /* رنگ اصلی شما */
  color: white;
  font-weight: 600;
  border-color: #17bfcf;
}
.season-content {
  border-radius: 8px; /* گوشه‌های گرد برای محتوای فصل */
}
.season-content.hidden {
  display: none;
}
.cardc:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.15);
}
/* استایل اختصاصی صفحه‌بندی هماهنگ با تم */
.pagination-container .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 45px;
  height: 45px;
  padding: 0 8px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid hsl(var(--border) / 0.4);
  background-color: hsl(var(--secondary) / 0.4);
  color: hsl(var(--muted-foreground));
  backdrop-filter: blur(8px);
}

.pagination-container .page-numbers:hover:not(.current) {
  background-color: hsl(var(--secondary) / 0.8);
  color: hsl(var(--foreground));
  transform: translateY(-3px);
  border-color: hsl(var(--primary) / 0.5);
  box-shadow: 0 10px 15px -3px hsl(var(--primary) / 0.1);
}

.pagination-container .page-numbers.current {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
  box-shadow: 0 8px 20px -4px hsl(var(--primary) / 0.4);
}

.pagination-container .dots {
  background: transparent;
  border: none;
  letter-spacing: 2px;
}

/* استایل مخصوص دکمه‌های قبلی و بعدی */
.pagination-container .prev,
.pagination-container .next {
  background-color: hsl(var(--card));
  color: hsl(var(--primary));
}

.pagination-container .prev:hover,
.pagination-container .next:hover {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground)) !important;
}

/* ریسپانسیو موبایل */
@media (max-width: 640px) {
  .pagination-container .page-numbers {
    min-width: 38px;
    height: 38px;
    font-size: 12px;
    border-radius: 10px;
  }
}

.backtitle {
  background-color: hsl(var(--secondary) / 0.5);
  font-weight: 500;
  border-radius: 30px;
  font-size: 15px;
  display: inline-flex;
  width: 125px;
  text-align: center;
  height: 35px;
  overflow: hidden;
}

.backicon {
  height: 100%;
  display: inline-flex;
  align-items: center;
  width: 30px;
  padding-right: 10px;
  justify-content: center;
  background-color: var(--btn-bg, hsl(var(--primary)));
  color: #fff;
  position: relative;
}

.backicon::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-left: 0 solid transparent;
  right: 30px;
  top: 0;
  border-right: 15px solid var(--btn-bg, hsl(var(--primary)));
  border-bottom: 35px solid transparent;
}

.lineer {
  flex: 1;
  height: 0.2px;
  background: hsl(var(--border));
  margin: 0 10px;
}

.backbadge {
  display: inline-flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 300;
}

.backbadge a:hover {
  --tw-text-opacity: 1;
  color: rgb(96 165 250 / var(--tw-text-opacity, 1));
}
[class^="cticon-"] {
  font-size: 17px;
  font-weight: 700;
}

[class^="cticon-"]:before,
[class*=" cticon-"]:before,
[class^="cticon-"]:after,
[class*=" cticon-"]:after {
  font-family: cinamatic-icon;
  font-style: normal;
}

.cticon-layers:before {
  content: "\f100";
}

.cticon-search:before {
  content: "\f101";
}

.cticon-like:before {
  content: "\f102";
}

.cticon-add:before {
  content: "\f103";
}

.cticon-play-button:before {
  content: "\f104";
}

.cticon-arrow-right:before {
  content: "\f105";
}

.cticon-arrow-left:before {
  content: "\f106";
}

.cticon-arrow-down:before {
  content: "\f107";
}

.cticon-arrow-up:before {
  content: "\f108";
}

.cticon-arrow-down-sign:before {
  content: "\f109";
}

.cticon-arrow-right-sign:before {
  content: "\f10a";
}

.cticon-arrow-left-sign:before {
  content: "\f10b";
}

.cticon-check:before {
  content: "\f10c";
}

.cticon-arrow-up-sign:before {
  content: "\f10d";
}

.cticon-arrows-circle:before {
  content: "\f10e";
}

.cticon-telegram:before {
  content: "\f10f";
}

.cticon-twitter:before {
  content: "\f110";
}

.cticon-instagram:before {
  content: "\f111";
}

.cticon-linkedin:before {
  content: "\f112";
}

.cticon-whatsapp:before {
  content: "\f113";
}

.cticon-youtube:before {
  content: "\f114";
}

.cticon-google-plus:before {
  content: "\f115";
}

.cticon-skype:before {
  content: "\f116";
}

.cticon-delete:before {
  content: "\f117";
}

.cticon-menu-button:before {
  content: "\f118";
}

.cticon-menu:before {
  content: "\f119";
}

.cticon-calendar-page-empty:before {
  content: "\f11a";
}

.cticon-telephone:before {
  content: "\f11b";
}

.cticon-placeholder:before {
  content: "\f11c";
}

.cticon-envelope:before {
  content: "\f11d";
}

.cticon-global:before {
  content: "\f11e";
}

.cticon-download:before {
  content: "\f11f";
}

.cticon-chat:before {
  content: "\f120";
}

.cticon-tag:before {
  content: "\f121";
}

.cticon-padlock:before {
  content: "\f122";
}

.cticon-clock:before {
  content: "\f123";
}

.cticon-facebook:before {
  content: "\f124";
}

.cticon-video-camera:before {
  content: "\f125";
}

.cticon-play:before {
  content: "\f126";
}

.cticon-clapperboard:before {
  content: "\f127";
}

.cticon-chair:before {
  content: "\f128";
}

.cticon-user:before {
  content: "\f129";
}

.cticon-oscar:before {
  content: "\f12a";
}

.cticon-star:before {
  content: "\f12b";
}

.cticon-star-o:before {
  content: "\f12c";
}

.cticon-notification:before {
  content: "\f12d";
}

.cticon-microphone:before {
  content: "\f12e";
}

.cticon-volume:before {
  content: "\f12f";
}

.cticon-subtitles:before {
  content: "\f130";
}

.cticon-resolution:before {
  content: "\f131";
}

.cticon-hd-sign:before {
  content: "\f132";
}

.cticon-tv:before {
  content: "\f133";
}

.cticon-film:before {
  content: "\f134";
}

.cticon-settings:before {
  content: "\f135";
}

.cticon-camera:before {
  content: "\f136";
}

.cticon-avatar:before {
  content: "\f137";
}

.cticon-home:before {
  content: "\f138";
}

.cticon-share:before {
  content: "\f139";
}

.cticon-happy:before {
  content: "\f13a";
}

.cticon-dislike:before {
  content: "\f13b";
}

.cticon-like-1:before {
  content: "\f13c";
}

.cticon-format-size:before {
  content: "\f13d";
}

.cticon-maximize:before {
  content: "\f13e";
}

.cticon-bookmark:before {
  content: "\f13f";
}

.cticon-cloud:before {
  content: "\f140";
}

.cticon-film-reel:before {
  content: "\f141";
}

.cticon-baby-boy:before {
  content: "\f142";
}

.cticon-down-arrow:before {
  content: "\f143";
}

.cticon-imdb:before {
  content: "IMDb";
  font-weight: 200 !important;
  font-family: Impact, tahoma;
}
