/*
Theme Name: FlexMoviez
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: قالب مشهد فیلم
Version: 3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flexmoviez
Tags: rtl-language, movies, series, entertainment
*/

/* === Import Yekan Font === */
@font-face {
    font-family: 'Yekan';
    src: url('/wp-content/themes/flexmoviez-theme/assets/fonts/iranyekan/YekanBakh-Medium.woff2') format('woff2'),
         url('/wp-content/themes/flexmoviez-theme/assets/fonts/iranyekan/YekanBakh-Medium.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Yekan';
    src: url('/wp-content/themes/flexmoviez-theme/assets/fonts/iranyekan/YekanBakh-Bold.woff2') format('woff2'),
         url('/wp-content/themes/flexmoviez-theme/assets/fonts/iranyekan/YekanBakh-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


/* ==========================================
   CSS VARIABLES - قابل تنظیم از Redux
========================================== */
:root {
  /* Primary Colors - قابل تنظیم از پنل */
  --primary-color: #fbbf24;
  --primary-hover: #f59e0b;
  
  /* Background Colors - قابل تنظیم از پنل */
  --sidebar-bg: #0a1120;
  --background-dark: #101314;
  --card-bg: #1e293b;
  
  /* Text Colors - قابل تنظیم از پنل */
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.05);
  
  /* Logo - از Redux */
  --logo-color-1: #ffffff;
  --logo-color-2: #fbbf24;
  --logo-width: 160px;
  
  /* Header - از Redux */
  --header-bg-color: #0a0a0a;
  --header-bg-alpha: 0.95;
  --header-height: 70px;
}

.view-all-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.view-all-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    transform: translateX(-5px);
}

.view-all-btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.view-all-btn:hover svg {
    transform: translateX(-3px);
}

.archive-movies-container {
    max-width: 1400px;
    margin: 120px auto 60px;
    padding: 0 20px;
}

.archive-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.movie-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* Pagination */
.pagination {
    text-align: center;
    margin-top: 40px;
}

.page-numbers {
    display: inline-block;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 0 3px;
    color: var(--text-primary);
}

.page-numbers.current,
.page-numbers:hover {
    background: var(--primary-color);
    color: #000;
}

/* Responsive */
@media (max-width: 768px) {
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .movies-grid {
        gap: 10px;
    }
}


/* ==========================================
   RESET & BASE STYLES
========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Yekan', 'Tahoma', Arial, sans-serif;
  background: #101314;
  color: var(--text-primary);
  direction: rtl;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================
   LAYOUT - TOP HEADER MODE
========================================== */

.header-layout-top .site-header-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent !important;
  backdrop-filter: none !important;
  padding: 0;
  border-bottom: none;
  height: var(--header-height);
}

.home .site-header-top {
  position: absolute !important;
  background: transparent !important;
}

.header-layout-top:not(.home) .site-header-top {
  position: relative;
  background: var(--header-bg-color) !important;
  backdrop-filter: blur(10px);
}

/* Container */
.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* Logo */
.top-header-logo {
  flex-shrink: 0;
}

.top-header-logo a {
  display: inline-flex;
  align-items: center;
}

.top-header-logo img {
  max-width: var(--logo-width);
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.site-logo {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.05em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.logo-flex {
  color: var(--logo-color-1);
}

.logo-moviez {
  color: var(--logo-color-2);
}

.top-header-navigation {
  flex: 0;
  display: flex;
  justify-content: flex-start;
  margin-right: 40px;
}

.top-nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.top-nav-menu li {
  position: relative;
}

.top-nav-menu a {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-block;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.top-nav-menu a:hover,
.top-nav-menu a.active,
.top-nav-menu .current-menu-item > a {
  color: var(--primary-color);
  background: rgba(251, 191, 36, 0.1);
}

.top-header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
  margin-right: auto;
}

/* ==========================================
   SEARCH BOX - اصلاح کامل
========================================== */

.header-search {
  position: relative;
  width: 100%;
  max-width: 350px;
}

.header-search *,
.header-search *::before,
.header-search *::after {
  box-sizing: border-box !important;
}

.header-search form,
.header-search .search-form {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 44px;
  backdrop-filter: blur(10px);
}

.header-search form:hover,
.header-search .search-form:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.header-search form:focus-within,
.header-search .search-form:focus-within {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
}

.audio-badge-top i {
    font-size: 16px;
    color: #ffffff;
}

.audio-badge-top {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    border-radius: 8px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.movie-audio-badges-top-right {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 15;
}

.audio-badge-top {
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.audio-badge-top svg {
    width: 18px;
    height: 18px;
    display: block;
}

.audio-badge-top svg path,
.audio-badge-top svg rect,
.audio-badge-top svg circle {
    stroke: #ffffff !important;
    fill: #ffffff !important;
}

.audio-badge-top:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.08);
}


.header-search .search-settings-btn,
.header-search .advanced-search-trigger {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--primary-color);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #101314;
  transition: all 0.3s ease;
  order: 1;
}

.header-search .search-settings-btn:hover,
.header-search .advanced-search-trigger:hover {
  background: var(--primary-hover);
  transform: rotate(90deg);
}

.header-search .search-settings-btn svg,
.header-search .advanced-search-trigger svg {
  width: 20px;
  height: 20px;
}

/* Input (وسط) */
.header-search input[type="search"],
.header-search input[type="text"],
.header-search .search-field {
  flex: 1;
  height: 44px;
  padding: 0 16px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  font-family: 'Yekan', sans-serif;
  outline: none;
  order: 2;
}

.header-search input::placeholder,
.header-search .search-field::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.header-search .search-submit {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s ease;
  order: 3;
}

.header-search .search-submit:hover {
  color: var(--primary-color);
  background: rgba(255, 255, 255, 0.05);
}

.header-search .search-submit svg {
  width: 18px;
  height: 18px;
}

/* Remove webkit search defaults */
.header-search input[type="search"]::-webkit-search-cancel-button,
.header-search input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

/* ==========================================
   HEADER ICONS (Notification & Profile)
========================================== */

.header-btn {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.header-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.header-btn svg {
  width: 20px;
  height: 20px;
}

/* ==========================================
   MOBILE MENU TOGGLE
========================================== */

.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.mobile-menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover span {
  background: var(--primary-color);
}

/* ==========================================
   CONTENT AREA
========================================== */
.home .site-content-full {
  padding-top: 0 !important;
}

.site-content-full {
  width: 100%;
  min-height: 100vh;
}

/* Spacing for homepage slider */
.home .site-main {
  padding-top: 0 !important;
}

.site-main {
   margin-top: 0 !important;
  padding-top: 1px;
}

/* ==========================================
   SIDEBAR MODE STYLES
========================================== */

.header-layout-sidebar .site-sidebar {
  width: 240px;
  background: var(--sidebar-bg);
  height: 100vh;
  position: fixed;
  right: 0;
  top: 0;
  padding: 30px 0;
  overflow-y: auto;
  z-index: 1000;
  border-left: 1px solid var(--border-color);
}

.header-layout-sidebar .site-content {
  margin-right: 240px;
  min-height: 100vh;
}

.header-layout-sidebar .site-header {
  background: var(--background-dark);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 1200px) {
  .top-nav-menu {
    gap: 20px;
  }
  
  .top-nav-menu a {
    font-size: 14px;
    padding: 6px 10px;
  }
}

@media (max-width: 1024px) {
  .header-container {
    padding: 0 30px;
    gap: 20px;
  }
  
  .top-nav-menu {
    gap: 15px;
  }
  
  .header-search {
    max-width: 280px;
  }
}

/* فقط در دسکتاپ نمایش داده شود */
.desktop-only {
    display: flex;
}

/* در موبایل مخفی شود */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

@media (max-width: 768px) {
  /* Hide desktop menu */
  .top-header-navigation {
    display: none;
  }
  
  /* Show mobile toggle */
  .mobile-menu-toggle {
    display: flex;
  }
  
  /* Full width search */
  .top-header-actions .header-search {
    display: none;
  }
  
  .header-container {
    gap: 15px;
    padding: 0 20px;
  }
  
  /* Sidebar mode adjustments */
  .header-layout-sidebar .site-sidebar {
    transform: translateX(100%);
  }
  
  .header-layout-sidebar .site-sidebar.active {
    transform: translateX(0);
  }
  
  .header-layout-sidebar .site-content {
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 60px;
  }
  
  .header-container {
    padding: 0 15px;
  }
  
  .top-header-logo img {
    max-width: 120px;
  }
  
  .site-logo {
    font-size: 22px;
  }
  
  .header-btn,
  .mobile-menu-toggle {
    width: 40px;
    height: 40px;
  }
}

/* ==========================================
   FMZ HERO SLIDER - Final
========================================== */
.fmz-hero {
  position: relative;
  height: 680px;
  overflow: hidden;
  border-radius: 20px;
  background: #0a0d10;
  margin-bottom: 40px;
}

/* مخفی در موبایل */
@media (max-width: 768px) {
  .fmz-hero { display: none; }
}

.fmz-hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 70%; height: 100%;
}
.fmz-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: opacity .5s;
}
.fmz-bg-l {
  position: absolute; inset: 0;
  background: linear-gradient(to left,
    transparent 0%, rgba(10,13,16,.1) 40%, rgba(10,13,16,.65) 100%);
}
.fmz-bg-r {
  position: absolute; top: 0; right: 0;
  width: 65%; height: 100%;
  background: linear-gradient(to right,
    transparent 0%, rgba(10,13,16,.75) 50%, #0a0d10 88%);
}

.fmz-hero-body {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0 28px;
  gap: 28px;
  direction: ltr;
  z-index: 5;
}

/* اطلاعات — چپ */
.fmz-hero-info {
  flex: 0 0 580px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  direction: ltr;
}
.fmz-htitle {
  font-size: 45px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 12px;
  direction: ltr;
  text-align: left;
  width: 100%;
}
.fmz-hrating {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 10px;
  direction: ltr;
}
.fmz-hrating-score {
  font-size: 39px;
  font-weight: 700;
  color: #FBBF24;
  line-height: 1;
}
.fmz-hrating-sep {
  font-size: 18px;
  color: #fff;
  margin: 0 0px;
}
.fmz-hrating-total {
  font-size: 18px;
  color: #fff;
}
.fmz-hquality {
  display: inline-block;
  margin-bottom: 12px;
  background: rgba(251,191,36,.12);
  border: 1px solid rgba(251,191,36,.4);
  color: #fbbf24;
  font-size: 13px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.fmz-haudio-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  direction: rtl;
  flex-wrap: wrap;
}
.fmz-atag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
}
.fmz-atag-dub {
  background: #20BE5A;
  color: #fff;
}
.fmz-atag-sub {
  background: #ec4899;
  color: #fff;
}
.fmz-hsynopsis {
  font-size: 17.5px;
  line-height: 1.8;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  direction: rtl;
  text-align: right;
  width: 100%;
  margin-bottom: 20px;
}
.fmz-hbtns {
  display: flex;
  gap: 10px;
  direction: ltr;
}
.fmz-hbtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s, opacity .15s;
  border: none;
  direction: rtl;
}
.fmz-hbtn:hover { transform: translateY(-2px); opacity: .9; }
.fmz-hbtn svg  { width: 15px; height: 15px; flex-shrink: 0; }
.fmz-hbtn-watch { background: #fbbf24; color: #0a0d10; }
.fmz-hbtn-dl {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
}

.fmz-hero-cards-wrap {
  margin-left: auto;
  flex-shrink: 0;
  width: 860px;     
  overflow: visible;
  position: relative;
  align-self: flex-end;
  padding-bottom: 32px;
}


.fmz-hero-cards {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  direction: ltr;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  padding-top: 8px;   
}
.fmz-hero-cards::-webkit-scrollbar { display: none; }
.fmz-hero-cards.grabbing { cursor: grabbing; }

.fmz-hcard {
  flex: 0 0 189px;
  width: 189px;
  cursor: pointer;
  transition: transform .3s;
  position: relative;
}
.fmz-hcard:hover { transform: translateY(-6px); }


.fmz-hcard-poster {
  position: relative;
  padding-bottom: 150%;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1d20;
  box-shadow: 0 4px 15px rgba(0,0,0,.35);
  transition: box-shadow .3s;
}
.fmz-hcard:hover .fmz-hcard-poster {
  box-shadow: 0 8px 28px rgba(0,0,0,.55);
}
.fmz-hcard.active .fmz-hcard-poster {
  box-shadow: 0 8px 28px rgba(0,0,0,.55), 0 0 0 1.5px #fbbf24;
}
.fmz-hcard-poster img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.fmz-hcard:hover .fmz-hcard-poster img { transform: scale(1.05); }

/* gradient روی پوستر */
.fmz-hcard-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 50%);
}

/* امتیاز */
.fmz-hcard-rating {
  position: absolute; top: 7px; left: 7px;
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(6px);
  padding: 3px 7px;
  border-radius: 5px;
  display: flex;
  align-items: baseline;
  gap: 2px;
  z-index: 2;
}
.fmz-hcard-rating-score {
  font-size: 18px;
  font-weight: 700;
  color: #FBBF24;
}
.fmz-hcard-rating-total {
  font-size: 11px;
  color: #fff;
}

/* بج‌های صوتی */
.fmz-hcard-badges {
  position: absolute; bottom: 7px; right: 7px;
  display: flex; gap: 4px; z-index: 2;
}
.fmz-hcard-badge {
  width: 22px; height: 22px;
  border-radius: 4px;
  background: rgba(0,0,0,.8);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
}
.fmz-hcard-badge.mic { color: #34d399; }
.fmz-hcard-badge.cc  { color: #60a5fa; }

/* hover play */
.fmz-hcard-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
  border-radius: 10px;
}
.fmz-hcard:hover .fmz-hcard-overlay { opacity: 1; }
.fmz-hcard-play {
  width: 38px; height: 38px;
  background: #fbbf24; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(251,191,36,.4);
}
.fmz-hcard-play svg { width: 20px; height: 20px; fill: #0a0d10; margin-left: 2px; }

.fmz-hcard-info {
  padding: 7px 2px 0;
  overflow: hidden;
}
.fmz-hcard-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: center;
  text-align: center;
  margin-bottom: 3px;
  display: block; 
  max-width: 100%;
}
.fmz-hcard-year {
  font-size: 14px;
  color: #fff;
  direction: center;
  text-align: center;
  display: block;
}

/* نقاط */
.fmz-hero-dots {
  position: absolute;
  bottom: 18px; left: 28px;
  display: flex; gap: 6px;
  z-index: 6;
  direction: ltr;
}
.fmz-hdot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  transition: all .3s;
}
.fmz-hdot.active {
  background: #fbbf24;
  width: 18px;
  border-radius: 3px;
}

/* ============================================
   نوار اطلاع رسانی شیشه‌ای - نسخه جمع‌وجور
   ============================================ */
.top-notification-bar {
    position: relative;
    width: 65%;
    max-width: 900px;
    min-width: auto;  /* تغییر: حذف min-width ثابت */
    margin: 25px auto;
    background: rgba(251, 191, 36, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 60px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* ریسپانسیو */
@media (max-width: 900px) {
    .top-notification-bar {
        width: 80%;
        min-width: auto;
    }
    
    .notification-container {
        padding: 12px 16px;
        gap: 12px;
    }
    
    .notification-label {
        font-size: 12px;
        padding: 4px 12px;
    }
    
    .notification-link {
        font-size: 13px;
    }
    
    .notification-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* ریسپانسیو نوار اطلاع رسانی - اصلاح شده */
@media (max-width: 650px) {
    .top-notification-bar {
        width: 95%;
        min-width: auto;
        border-radius: 16px;
        margin: 15px auto;
    }
    
    .notification-container {
        flex-direction: column;  /* تغییر به ستونی */
        flex-wrap: wrap;
        padding: 12px;
        gap: 8px;
        position: relative;
    }
    
    .notification-icon {
        display: none;  /* مخفی کردن آیکون زنگ */
    }
    
    .notification-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        gap: 6px;
        padding: 0 25px 0 25px;  /* فاصله از دکمه بستن */
    }
    
    .notification-label {
        font-size: 11px;
        padding: 3px 12px;
        white-space: nowrap;
        display: inline-block;
        width: fit-content;
    }
    
    .notification-link {
        font-size: 11px;
        text-align: center;
        line-height: 1.5;
        display: block;
        word-break: break-word;
    }
    
    .notification-close {
        position: absolute;
        top: 10px;
        left: 10px;
        width: 28px;
        height: 28px;
        background: rgba(255, 255, 255, 0.15);
        margin: 0;
    }
    
    .notification-close:hover {
        transform: rotate(90deg);
    }
}

@media (max-width: 480px) {
    .top-notification-bar {
        width: 98%;
        margin: 10px auto;
        border-radius: 12px;
    }
    
    .notification-container {
        padding: 10px;
        gap: 6px;
    }
    
    .notification-text {
        padding: 0 20px 0 20px;
        gap: 4px;
    }
    
    .notification-label {
        font-size: 10px;
        padding: 2px 10px;
    }
    
    .notification-link {
        font-size: 10px;
    }
    
    .notification-close {
        top: 8px;
        left: 8px;
        width: 24px;
        height: 24px;
    }
    
    .notification-close svg {
        width: 12px;
        height: 12px;
    }
}

/* ==========================================
   UTILITY CLASSES
========================================== */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

/* Screen Reader */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================
   ANIMATIONS
========================================== */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.header-layout-top .site-header-top.transparent {
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: none;
}

.header-transparent .site-content-full {
  padding-top: 0;
}

.header-layout-top .site-header-top.sticky.scrolled {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}

.header-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.top-header-logo {
  flex-shrink: 0;
}

.top-header-logo a {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
}

.top-nav-menu .menu-item-mega {
  position: static !important;
}

.top-nav-menu .menu-item-mega .cmm-dropdown {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  top: var(--header-height) !important;
  width: 100vw !important;
  max-width: 100vw !important;
}

/* ==========================================
   FIX CREW ITEMS IN MOBILE
========================================== */

@media (max-width: 768px) {
    .crew-item {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        margin-bottom: 12px !important;
    }
    
    .crew-label {
        flex-shrink: 0 !important;
        width: auto !important;
        margin-left: 0 !important;
        font-size: 14px !important;
    }
    
    .crew-tag {
        display: inline-flex !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        margin: 0 !important;
    }
    
    .crew-item:has(.crew-tag:nth-child(5)) {
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        padding-bottom: 8px !important;
    }
    
    .crew-item::-webkit-scrollbar {
        height: 3px;
    }
}

.top-nav-menu li a {
  color: #fff !important;
  font-weight: 600 !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
}


.top-nav-menu li a:hover {
  color: rgba(255, 255, 255, 0.7) !important;
  background: rgba(255, 255, 255, 0.06) !important;
}


.top-nav-menu li a.active,
.top-nav-menu .current-menu-item > a {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}


.top-nav-menu .menu-item-categories > .mega-toggle {
  color: #fff !important;
}


.cmm-wrap.cmm-modern {
  max-width: 1400px;
  margin: 0 auto;
}


.top-nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
  align-items: center;
}

.top-nav-menu li {
  margin: 0;
}

.top-nav-menu li a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.top-nav-menu li a:hover,
.top-nav-menu li a.current-menu-item,
.top-nav-menu li.current-menu-item > a,
.top-nav-menu li.current_page_item > a {
  background: rgba(251, 191, 36, 0.1);
  color: var(--primary-color);
}

.top-nav-menu svg {
  width: 18px;
  height: 18px;
}

/* Top Header Actions */
.top-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.header-layout-top .top-header-actions .header-search {
  max-width: 300px;
}

.header-layout-top .top-header-actions .header-search input,
.header-layout-top .top-header-actions .header-search .search-field {
  padding: 0.65rem 2.8rem 0.65rem 1rem;
  font-size: 0.875rem;
  border-radius: 10px;
}

.header-layout-top .top-header-actions .header-search svg,
.header-layout-top .top-header-actions .header-search .search-submit {
  width: 18px;
  height: 18px;
  left: 0.85rem;
}

/* ==========================================
   MOBILE MENU TOGGLE
========================================== */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  padding: 10px 12px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-color);
}

.mobile-menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
  display: block;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
}

.mobile-menu-overlay.active {
  display: block;
}

/* Mobile Navigation */
.header-layout-top .top-header-navigation.mobile-active {
  display: flex;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--sidebar-bg);
  border-top: 1px solid var(--border-color);
  z-index: 1000;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-layout-top .top-header-navigation.mobile-active .top-nav-menu {
  flex-direction: column;
  width: 100%;
  gap: 0.5rem;
}

.header-layout-top .top-header-navigation.mobile-active .top-nav-menu li {
  width: 100%;
}

.header-layout-top .top-header-navigation.mobile-active .top-nav-menu li a {
  width: 100%;
  padding: 0.875rem 1rem;
  justify-content: flex-start;
}

/* ==========================================
   HERO SLIDER
========================================== */

/* Container */
.hero-slider {
  position: relative !important;
  width: 100% !important;
  height: 100vh !important;
  min-height: 600px !important;
  max-height: 900px !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Slides */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

/* Image */
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay - تیرگی کمتر، عکس بیشتر */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, 
    transparent 0%,
    rgba(16, 19, 20, 0.1) 40%,
    rgba(16, 19, 20, 0.4) 70%,
    #101314 100%
  );
  z-index: 1;
}

/* Content */
.hero-content {
  position: absolute;
  bottom: 80px;
  right: 50px;
  max-width: 600px;
  z-index: 2;
  color: white;
}

/* Badges */
.hero-badges {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
}

.hero-imdb {
  background: rgba(245, 197, 24, 0.9) !important;
  color: #000;
}

/* Title */
.hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

/* Genres */
.hero-genres {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
}

.genre-badge {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  font-size: 12px;
}

/* Description */
.hero-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
  opacity: 0.9;
}

/* Buttons */
.hero-buttons {
  display: flex;
  gap: 15px;
}

/* Slider Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.slider-prev {
  left: 20px;
}

.slider-next {
  right: 20px;
}

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background: white;
  width: 30px;
  border-radius: 6px;
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}


/*


/* اسلایدر مخصوص موبایل - Center Mode */
@media (max-width: 768px) {
    .hero-slider {
        display: none !important;
    }
    
    /* نمایش اسلایدر موبایل */
    .mobile-hero-carousel {
        margin-top: 74px !important;
        position: relative;
        z-index: 1;
    }
    
    .mobile-carousel-container {
        display: flex;
                padding-top: 10px !important;
        margin-top: 0 !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 15px;
        padding: 20px 15px;
    }
    
    .mobile-carousel-container::-webkit-scrollbar {
        display: none;
    }
    
    .mobile-carousel-item {
        flex: 0 0 75%;
        scroll-snap-align: center;
        transition: all 0.3s ease;
        transform: scale(0.85);
        opacity: 0.7;
    }
    
    /* کارت وسط (مرکز) - بزرگ و برجسته */
    .mobile-carousel-item.center-active {
        transform: scale(1.13);
        opacity: 1;
    }
    
    /* کارت سمت چپ و راست - کوچک‌تر */
    .mobile-carousel-item.prev-active {
        transform: scale(0.75);
        opacity: 0.7;
    }
    
    .mobile-carousel-item.next-active {
        transform: scale(0.85);
        opacity: 0.7;
    }
    
    /* کارت فیلم */
    .mobile-movie-card {
        background: rgba(30, 41, 59, 0.95);
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
        transition: all 0.3s ease;
        position: relative;
    }
    
    .mobile-movie-poster {
        position: relative;
        aspect-ratio: 16/9;
        overflow: hidden;
    }
    
    .mobile-movie-poster img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }
    
    .mobile-carousel-item.center-active .mobile-movie-poster img {
        transform: scale(1.05);
    }
    
    .mobile-movie-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
        height: 60%;
        pointer-events: none;
    }
    
    .mobile-movie-info {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 20px 15px 15px;
        z-index: 2;
    }
    
    .mobile-movie-badges {
        display: flex;
        gap: 8px;
        margin-bottom: 8px;
        flex-wrap: wrap;
    }
    
    .mobile-movie-imdb {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        padding: 3px 8px;
        border-radius: 20px;
        font-size: 11px;
        font-weight: 600;
        color: #fbbf24;
    }
    
    .mobile-movie-quality,
    .mobile-movie-year {
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        padding: 3px 8px;
        border-radius: 20px;
        font-size: 10px;
        color: #e2e8f0;
    }
    
    .mobile-movie-title {
        font-size: 16px;
        font-weight: 700;
        color: #fff;
        margin-bottom: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .mobile-movie-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: #fbbf24;
        color: #101314;
        padding: 6px 16px;
        border-radius: 30px;
        text-decoration: none;
        font-size: 12px;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    
    .mobile-movie-btn:hover {
        background: #f59e0b;
        transform: scale(1.02);
    }
    
    /* نشانگر اسکرول (دات‌ها) */
    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 15px;
        padding-bottom: 10px;
    }
    
    .carousel-dot {
        width: 8px;
        height: 8px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        transition: all 0.3s ease;
        cursor: pointer;
    }
    
    .carousel-dot.active {
        width: 24px;
        background: #fbbf24;
        border-radius: 10px;
    }
}

@media (min-width: 769px) {
    .mobile-hero-carousel {
        margin-top: 70px !important;
        display: none !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
  
  .hero-content {
    right: 20px;
    left: 20px;
    bottom: 40px;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-description {
    font-size: 14px;
  }
  
  .slider-arrow {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .hero-slider {
    height: 60vh !important;
    min-height: 400px !important;
  }
  
  .hero-title {
    font-size: 26px;
  }
  
  .hero-content {
    bottom: 30px;
  }
  
  .slider-dots {
    bottom: 15px;
  }
}

/* ==========================================
   BUTTONS
========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--background-dark);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
}

.btn-watch,
.btn-trailer {
  background: var(--primary-color);
  color: var(--background-dark);
}

.btn-watch:hover,
.btn-trailer:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.3);
}

.btn-watchlist {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-watchlist:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
}

.btn-download {
  background: var(--primary-color);
  color: var(--background-dark);
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.btn-download:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

/* ==========================================
   MOVIES SECTION
========================================== */
.movies-section {
  padding: 60px 40px;
}

.movie-category {
  margin-bottom: 50px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  padding-right: 15px;
  border-right: 4px solid var(--primary-color);
}

.section-title .part1 {
    color: #ffffff;
}

.section-title .part2 {
    color: #fbbf24;
}

.view-all-link {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s ease;
}

.view-all-link:hover {
  color: var(--primary-color);
}

.movies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.series-card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.series-card-link:hover .series-card {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* ==========================================
   MOVIE CARD
========================================== */
.movie-card {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
}

.movie-poster-wrap {
  position: relative;
  padding-bottom: 150%;
  overflow: hidden;
  border-radius: 10px;
  background: var(--card-bg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.movie-card:hover .movie-poster-wrap {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.movie-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.movie-card:hover .movie-poster {
  transform: scale(1.05);
}

.movie-quality-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--primary-color);
  color: var(--background-dark);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.movie-rating-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
  color: white;
}

.movie-rating-badge .imdb-icon {
  width: 28px;
  height: 14px;
  flex-shrink: 0;
}

.movie-audio-badges {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.audio-badge {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  padding: 4px 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subtitle-badge {
  color: #60a5fa;
}

.dubbing-badge {
  color: #34d399;
}

.movie-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 10px;
}

.movie-card:hover .movie-play-overlay {
  opacity: 1;
}

.play-button {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.movie-card:hover .play-button {
  transform: scale(1);
}

.play-button svg {
  color: var(--background-dark);
  margin-right: -2px;
}

.movie-info {
  padding: 12px 5px 0;
}

.movie-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #cbd5e1;
}

.movie-year {
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

.movie-duration {
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

/* ==========================================
   SINGLE MOVIE PAGE
========================================== */
.single-movie-hero {
  position: relative;
  min-height: 70vh;
  background: var(--background-dark);
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.single-hero-content {
  position: relative;
  z-index: 10;
  padding: 120px 60px 60px;
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 60px;
  align-items: start;
}

.hero-left {
  max-width: 800px;
}

.single-movie-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.1;
}

.original-title {
  font-size: 18px;
  color: #fff;
  margin-bottom: 25px;
}

.movie-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.movie-badges > span {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border-color);
}

.badge-quality {
  background: rgba(251, 191, 36, 0.15) !important;
  border-color: var(--primary-color) !important;
  color: var(--primary-color);
}

.badge-rating {
  color: #fbbf24;
}

.badge-metascore,
.badge-rated,
.badge-year,
.badge-duration {
  background: rgba(255, 255, 255, 0.08);
}

.synopsis-section {
  margin-bottom: 30px;
}

.section-heading {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary-color);
}

.synopsis-text {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-muted);
}

.crew-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.crew-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.crew-item svg {
  color: var(--primary-color);
  flex-shrink: 0;
}

.crew-label {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  font-weight: 600;
  min-width: 80px;
}

.crew-tag {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 6px 14px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

a.crew-tag {
  color: #fff;
}

a.crew-tag:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

a.crew-tag:active {
  transform: translateY(0);
}

span.crew-tag {
  cursor: default;
}

span.crew-tag:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.crew-names {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 600;
}

.crew-names a {
  color: var(--primary-color);
  transition: opacity 0.3s ease;
}

.crew-names a:hover {
  opacity: 0.8;
}

.hero-right {
  position: sticky;
  top: 100px;
}

.movie-poster-large {
  position: relative;
  max-width: 280px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.movie-poster-large img {
  width: 100%;
  display: block;
}

.poster-audio-badges {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
}

.audio-badge-large {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  padding: 6px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.audio-badge-large.subtitle {
  color: #60a5fa;
}

.audio-badge-large.dubbing {
  color: #34d399;
}

.movie-action-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* ==========================================
   DOWNLOAD SECTION
========================================== */
.download-section {
  padding: 60px 60px;
  background: var(--background-dark);
}

.section-header-download {
  margin-bottom: 30px;
}

.download-title {
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary-color);
}

.download-title svg {
  color: var(--primary-color);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.download-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
}

.download-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.download-info {
  flex: 1;
}

.download-size {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.download-quality {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.download-encoder {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================
   SIMILAR MOVIES & CAST SECTIONS
========================================== */
.similar-movies-section,
.cast-section {
  padding: 60px 60px 40px;
  background: var(--background-dark);
}

.cast-section {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
}

.cast-toggle-button {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.cast-toggle-button:hover {
  background: rgba(251, 191, 36, 0.1);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.cast-toggle-button svg {
  transition: transform 0.3s ease;
}

.cast-toggle-button.active .chevron-icon {
  transform: rotate(180deg);
}

.cast-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.5s ease;
  margin-top: 0;
}

.cast-content.active {
  max-height: 2000px;
  opacity: 1;
  margin-top: 30px;
}

.cast-header {
  margin-bottom: 25px;
}

.cast-title {
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-color);
}

.cast-title svg {
  color: var(--primary-color);
}

.cast-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 40px 30px;
  padding: 20px 0;
}

.cast-grid::before {
  content: '';
  position: absolute;
  top: 55px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--primary-color) 10%,
    var(--primary-color) 90%,
    transparent 100%
  );
  z-index: 0;
}

.cast-member {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 1;
  transition: all 0.3s ease;
}

.cast-member:hover {
  transform: translateY(-8px);
}

.cast-member-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  width: 100%;
}

.cast-member-image {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--background-dark);
  position: relative;
  border: 4px solid var(--card-bg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.cast-member:hover .cast-member-image {
  border-color: var(--primary-color);
  box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4);
  transform: scale(1.08);
}

.cast-member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cast-no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e293b 0%, #101314 100%);
  color: var(--text-muted);
}

.cast-no-image svg {
  width: 45px;
  height: 45px;
  opacity: 0.5;
}

.cast-member-info {
  padding: 12px 8px 0;
  text-align: center;
  width: 100%;
}

.cast-member-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.cast-member:hover .cast-member-name {
  color: var(--primary-color);
}

.cast-member-role {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
}

.view-more-cast {
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.view-more-cast:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .cast-grid {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 30px 20px;
  }
  
.cast-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 40px 30px;
  padding: 20px 0;
}

.cast-grid::before {
  content: '';
  position: absolute;
  top: 55px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
  opacity: 0.6;
  z-index: 0;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.cast-member-image::before {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
  border: 2px solid var(--card-bg);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cast-member:hover .cast-member-image::before {
  opacity: 1;
}
  
  .cast-member-name {
    font-size: 12px;
  }
  
  .cast-member-role {
    font-size: 10px;
  }
  
  .cast-no-image svg {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 480px) {
  .cast-grid {
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
    gap: 25px 15px;
  }
  
  .cast-grid::before {
    top: 38px;
  }
  
  .cast-member-image {
    width: 75px;
    height: 75px;
  }
  
  .cast-member-info {
    padding: 8px 4px 0;
  }
  
  .cast-member-name {
    font-size: 11px;
  }
}

/* Movie Tooltip */
.movie-tooltip {
  position: relative;
  cursor: help;
}

.movie-tooltip::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(0, 0, 0, 0.95);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 100;
}

.movie-tooltip:hover::before {
  opacity: 1;
}

/* ==========================================
   FOOTER
========================================== */
.site-footer {
  background: linear-gradient(180deg, #101314 0%, #0a0a0a 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

.site-footer a {
  color: var(--primary-color);
  transition: opacity 0.3s ease;
}

.site-footer a:hover {
  opacity: 0.8;
}

/* ==========================================
   SCROLLBAR
========================================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

/* ==========================================
   RESPONSIVE DESIGN
========================================== */

/* Large Screens */
@media (min-width: 1400px) {
  .header-container {
    max-width: 1800px;
  }
}

/* Tablets */
@media (max-width: 1024px) {
  /* Sidebar Mode */
  .header-layout-sidebar .site-sidebar {
    width: 200px;
  }
  
  .header-layout-sidebar .site-content {
    margin-right: 200px;
  }
  
  /* Top Header Mode */
  .header-layout-top .top-header-navigation {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .header-container {
    padding: 0.875rem 1.5rem;
    gap: 1.5rem;
  }
  
  .header-layout-top .top-header-actions .header-search {
    max-width: 220px;
  }
  
  .movies-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .hero-content {
    right: 40px;
    max-width: 550px;
  }
  
  .hero-title {
    font-size: 42px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* Hide sidebar by default on mobile */
  .header-layout-sidebar .site-sidebar {
    transform: translateX(100%);
    transition: transform 0.3s ease;
    width: 280px;
  }
  
  .header-layout-sidebar .site-sidebar.active {
    transform: translateX(0);
  }
  
  .header-layout-sidebar .site-content {
    margin-right: 0;
  }
  
  .header-layout-sidebar .site-header {
    padding: 1rem 1.25rem;
  }
  
  /* Top Header Mode */
  .header-layout-top .site-content-full {
    padding-top: 60px;
  }
  
  .header-container {
    padding: 0.75rem 1rem;
    gap: 1rem;
  }
  
  .header-layout-top .top-header-actions .header-search {
    display: none;
  }
  
  /* Hero */
  .hero-content {
    right: 20px;
    bottom: 40px;
    max-width: calc(100% - 40px);
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .hero-slider {
    height: 60vh;
    min-height: 400px;
  }
  
  /* Sections */
  .movies-section,
  .download-section,
  .similar-movies-section,
  .cast-section {
    padding: 40px 20px;
  }
  
  /* Single Movie */
  .single-hero-content {
    grid-template-columns: 1fr;
    padding: 40px 20px;
    gap: 30px;
  }
  
  .hero-right {
    position: relative;
    top: 0;
  }
  
  .movie-poster-large {
    max-width: 300px;
    margin: 0 auto;
  }
  
  .single-movie-title {
    font-size: 28px;
  }
  
  .download-grid {
    grid-template-columns: 1fr;
  }
  
  .cast-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
  }
  
  .header-btn {
    width: 36px;
    height: 36px;
  }
  
  .header-btn svg {
    width: 18px;
    height: 18px;
  }
  
  .section-title {
    font-size: 20px;
  }
  
  .crew-section {
    gap: 12px;
  }
  
  .crew-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .crew-label {
    min-width: auto;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-title {
    font-size: 26px;
  }
  
  .single-movie-title {
    font-size: 24px;
  }
  
  .section-title {
    font-size: 18px;
  }
  
  .movies-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .header-search input,
  .header-search .search-field {
    font-size: 0.8rem;
    padding: 0.6rem 2.5rem 0.6rem 0.9rem;
  }
  
  .header-search svg,
  .header-search .search-submit {
    width: 16px;
    height: 16px;
    left: 0.7rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 13px;
  }
  
  .hero-content {
    right: 15px;
    left: 15px;
    bottom: 30px;
  }
  
  .hero-slider {
    min-height: 350px;
  }
  
  .movie-badges {
    gap: 8px;
  }
  
  .movie-badges > span {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* Print Styles */
@media print {
  .site-sidebar,
  .site-header,
  .site-header-top,
  .mobile-menu-toggle,
  .header-actions,
  .top-header-actions,
  .site-footer {
    display: none !important;
  }
  
  .site-content,
  .site-content-full {
    margin: 0 !important;
    padding: 0 !important;
  }
  
  body {
    background: white;
    color: black;
  }
}

/* ==========================================
   SIDEBAR LAYOUT
========================================== */

/* Sidebar Container */
.header-layout-sidebar .site-sidebar {
  width: 260px;
  background: var(--sidebar-bg);
  height: 100vh;
  position: fixed;
  right: 0;
  top: 0;
  padding: 30px 0;
  overflow-y: auto;
  z-index: 1000;
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.header-layout-sidebar .sidebar-logo {
  padding: 0 20px 30px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
  text-align: center;
}

.header-layout-sidebar .sidebar-logo a {
  display: inline-block;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
}

.header-layout-sidebar .sidebar-logo .logo-flex {
  color: var(--logo-color-1);
}

.header-layout-sidebar .sidebar-logo .logo-moviez {
  color: var(--logo-color-2);
}

/* Navigation در Sidebar */
.header-layout-sidebar .sidebar-nav {
  list-style: none;
  padding: 0 15px;
  margin: 0;
  flex: 1;
}

.header-layout-sidebar .sidebar-nav li {
  margin-bottom: 5px;
}

.header-layout-sidebar .sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.header-layout-sidebar .sidebar-nav a:hover,
.header-layout-sidebar .sidebar-nav a.active {
  background: rgba(251, 191, 36, 0.1);
  color: var(--primary-color);
}

.header-layout-sidebar .sidebar-nav svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.header-layout-sidebar .site-content {
  margin-right: 260px;
  min-height: 100vh;
  width: calc(100% - 260px);
}

.header-layout-sidebar .site-header {
  background: var(--background-dark);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.header-layout-sidebar .site-header .header-search {
  max-width: 400px;
  flex: 1;
}

.header-layout-sidebar .site-header .header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* ==========================================
   HERO SLIDER در SIDEBAR MODE
========================================== */

.header-layout-sidebar .hero-slider {
  position: relative !important;
  width: 100% !important;
  height: 80vh !important;
  min-height: 700px !important;
  max-height: none !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

.header-layout-sidebar .site-main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* ==========================================
   RESPONSIVE - SIDEBAR MODE
========================================== */

/* Tablet */
@media (max-width: 1024px) {
  .header-layout-sidebar .site-sidebar {
    width: 220px;
  }
  
  .header-layout-sidebar .site-content {
    margin-right: 220px;
    width: calc(100% - 220px);
  }
  
  .header-layout-sidebar .sidebar-nav a {
    font-size: 13px;
    padding: 10px 12px;
  }
  
  .header-layout-sidebar .sidebar-nav svg {
    width: 18px;
    height: 18px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* Sidebar پنهان به صورت پیش‌فرض */
  .header-layout-sidebar .site-sidebar {
    transform: translateX(100%);
    transition: transform 0.3s ease;
    width: 280px;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
  }
  
  .header-layout-sidebar .site-sidebar.active {
    transform: translateX(0);
  }
  
  .header-layout-sidebar .site-content {
    margin-right: 0;
    width: 100%;
  }
  
  .header-layout-sidebar .site-header {
    padding: 15px 20px;
  }
  
  .header-layout-sidebar .mobile-menu-toggle {
    display: flex;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }
  
  .header-layout-sidebar .mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  
  .header-layout-sidebar .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  
  .header-layout-sidebar .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .header-layout-sidebar .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  
  /* Overlay */
  .header-layout-sidebar .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
  }
  
  .header-layout-sidebar .sidebar-overlay.active {
    display: block;
  }
  
  .header-layout-sidebar .hero-slider {
    height: 60vh !important;
    min-height: 500px !important;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .header-layout-sidebar .site-sidebar {
    width: 260px;
  }
  
  .header-layout-sidebar .site-header {
    padding: 12px 15px;
  }
  
  .header-layout-sidebar .hero-slider {
    height: 50vh !important;
    min-height: 400px !important;
  }
}


/* ==========================================
   SCROLLBAR در SIDEBAR
========================================== */

.header-layout-sidebar .site-sidebar::-webkit-scrollbar {
  width: 6px;
}

.header-layout-sidebar .site-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.header-layout-sidebar .site-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.header-layout-sidebar .site-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ==========================================
   SERIES SECTION - استایل نهایی
========================================== */

.series-section {
    padding: 60px 0;
    background: var(--background-dark);
}

.series-section .section-header-horizontal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    margin-bottom: 30px;
}

.series-section .section-title-horizontal {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.series-section .view-all-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.series-section .view-all-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    transform: translateX(-5px);
}

.horizontal-scroll {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 0 40px;
    overflow-x: visible !important;
}

.series-backdrop {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
/* ==========================================
   سریال‌ها - اصلاح موقعیت المان‌ها
========================================== */

.series-section.grid-mode .series-card {
    position: relative !important;
    overflow: visible !important;
    background: transparent !important;
}

.series-backdrop-wrapper {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 5px;
    width: 100%;
    height: 100%;
}

/* ========== تمام المان‌های مطلق ========== */

.series-imdb-bottom {
    position: absolute !important;
    bottom: 10px !important;
    left: 10px !important;
    z-index: 20 !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(6px) !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    color: #fff !important;
}

.imdb-max {
    font-size: 10px !important;
    opacity: 0.7;
}

.series-season-episode-bottom {
    position: absolute !important;
    bottom: 10px !important;
    right: 10px !important;
    z-index: 20 !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
}

.season-badge-card,
.episode-badge-card {
    padding: 4px 10px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.season-badge-card {
    background: #fbbf24 !important;
    color: #000 !important;
}

.episode-badge-card {
    background: rgba(0, 0, 0, 0.7) !important;
    color: #fff !important;
}

.series-audio-badges {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 20 !important;
    display: flex !important;
    gap: 6px !important;
}

.audio-badge-top {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(6px) !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.series-info {
    position: relative !important;
    padding: 10px 8px 0 8px !important;
    text-align: right;
    background: transparent !important;
}

.series-audio-badges-top {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
    z-index: 3;
}

.series-audio-badge {
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-dubbed {
    color: #34d399;
}

.badge-subtitle {
    color: #60a5fa;
}

.series-imdb-bottom {
    position: absolute;
    bottom: 12px;
    left: 12px;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    z-index: 3;
    background: transparent;
}

.imdb-max {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
}

.series-season-episode-bottom {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 3;
}

.season-badge-card {
    background: #fbbf24;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #000;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.episode-badge-card {
    background: #1a1a1a;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.series-card .series-title {
    display: block !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    margin-bottom: 5px !important;
    line-height: 1.4 !important;
    color: #fff !important;
}

.series-card .series-title a {
    color: #fff !important;
    text-decoration: none !important;
}

.series-card .series-subtitle {
    display: block !important;
    font-size: 15px !important;
    color: #fff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.series-card {
    background: transparent !important;
    overflow: visible !important;
}

/* ==========================================
   نمایش زیرنویس سریال (انگلیسی + سال)
========================================== */

.series-subtitle {
    display: block !important;
    font-size: 15px !important;
    color: #fff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    direction: ltr !important;
    text-align: left !important;
}

.series-subtitle {
    direction: ltr !important;
    text-align: left !important;
}

.series-info {
    background: transparent !important;
    padding: 12px 8px 0 8px !important;
    text-align: right;
}

.series-subtitle {
    position: relative !important;
    z-index: 6 !important;
}

.series-section .series-meta,
.series-hover-details,
.series-update-badge-bottom,
.series-badges,
.series-audio-badges {
    display: none;
}

/* Responsive */
@media (max-width: 1200px) {
    .horizontal-scroll {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .horizontal-scroll {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 20px;
    }
    
    .series-section .series-title {
        font-size: 13px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    
    .series-imdb-bottom {
        font-size: 14px;
        bottom: 8px;
        left: 8px;
    }
    
    .season-badge-card,
    .episode-badge-card {
        font-size: 12px;
        padding: 3px 8px;
    }
}

/* ==========================================
   نهایی - نمایش عنوان سریال در چند خط
========================================== */

.series-section .series-title {
    display: block !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    line-height: 1.4 !important;
    height: auto !important;
    max-height: 42px !important;
    min-height: auto !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    margin-bottom: 5px !important;
}

.series-section .series-title a {
    display: inline !important;
    white-space: normal !important;
    word-break: break-word !important;
     transition: color 0.3s ease !important;
}


/* ==========================================
   OVERRIDE HEADER - شیشه‌ای نهایی
========================================== */

.header-layout-top .site-header-top {
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    position: fixed !important;
}

.home .header-layout-top .site-header-top {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
}

.header-layout-top .site-header-top.sticky.scrolled {
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

.single-movie .header-layout-top .site-header-top,
.single-series .header-layout-top .site-header-top {
    background: rgba(0, 0, 0, 0.25) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

.movie-rating-year {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px 0;
}


/* گرید اصلی */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 20px;
    width: 100%;
    overflow-x: hidden;
}

.similar-movies-section {
    width: 100%;
    overflow-x: hidden;
    padding: 60px 40px;
    box-sizing: border-box;
}

.section-header {
    width: 100%;
    margin-bottom: 30px;
}

.movie-card {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.movie-poster-wrap {
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
}

/* ========== ریسپانسیو ========== */

/* تبلت */
@media (max-width: 1024px) {
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .similar-movies-section {
        padding: 40px 30px;
    }
}

/* موبایل */
@media (max-width: 768px) {
    .movies-grid {
        grid-template-columns: repeat(3, 1fr);  /* 3 ستون در موبایل */
        gap: 12px;
    }
    
    .similar-movies-section {
        padding: 40px 15px;
    }
    
    .section-title {
        font-size: 20px;
    }
}

/* موبایل کوچک (480px) */
@media (max-width: 480px) {
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);  /* 2 ستون در موبایل کوچک */
        gap: 10px;
    }
    
    .similar-movies-section {
        padding: 30px 12px;
    }
    
    .movie-title {
        font-size: 12px;
    }
    
    .movie-meta {
        font-size: 10px;
    }
}

/* موبایل خیلی کوچک (380px) */
@media (max-width: 380px) {
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

.series-section .series-title {
    display: block !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin: 0 0 5px 0 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.series-section .series-title a {
    color: #ffffff !important;
    text-decoration: none !important;
}

.series-title a:hover {
    color: var(--primary-color, #fbbf24) !important;
}

.series-section.grid-mode .horizontal-scroll {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 25px;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 40px;
  overflow-x: visible !important;
}

.series-section.grid-mode .horizontal-scroll-container::after {
  display: none;
}

.series-section.grid-mode .scroll-nav-btn {
  display: none !important;
}

.series-section.grid-mode .series-card {
    flex: none !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 22/11 !important;
    border-radius: 6px;
    overflow: visible !important;
}

.series-backdrop-wrapper {
    border-radius: 6px;
    overflow: hidden;
    background: transparent;
}

.series-section .series-card:hover .series-backdrop {
    transform: scale(1.08);
}

.series-section .series-backdrop-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden !important;
  border-radius: 6px !important;
  background: linear-gradient(135deg, #1e293b 0%, #101314 100%);
}

.series-section .series-backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1) !important;
}

/* پایه کارت سریال */
.series-section .series-card {
    border: 0.5px solid transparent !important;
    transition: all 0.3s ease !important;
    transform: translateY(0) !important;
}

/* هاور روی کارت - حرکت به بالا + سایه + بردر طلایی */
.series-section .series-card:hover {
    transform: translateY(-8px) !important;
    border-color: #fbbf24 !important;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.5) !important;
    border: 0.5px solid var(--primary-color, #fbbf24) !important;
    border-radius: 6px !important;
}

.series-section .series-backdrop-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 40%,
        rgba(0, 0, 0, 0.4) 70%,
        rgba(0, 0, 0, 0.85) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Responsive Grid */
@media (max-width: 1200px) {
  .series-section.grid-mode .horizontal-scroll {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px;
    padding: 0 30px;
  }
}


/* ==========================================
   ADVANCED COMMENTS - COMPLETE STYLES
   ========================================= */

.comments-advanced {
    max-width: 1850px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: 'Yekan', 'Tahoma', Arial, sans-serif;
    background: transparent !important;
}

/* Header */
.comments-header-sort {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ========== نوار مرتب‌سازی نظرات ========== */
.comments-sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 25px 0 20px;
    padding: 12px 18px;
    background: rgba(16, 19, 20, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.sort-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color, #fbbf24);
    font-size: 14px;
    font-weight: 500;
}

.sort-info i {
    font-size: 16px;
}

.comment-sort-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sort-label {
    color: var(--text-muted, #94a3b8);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sort-link {
    color: var(--text-muted, #94a3b8);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 20px;
}

.sort-link i {
    font-size: 12px;
}

.sort-link:hover {
    color: var(--primary-color, #fbbf24);
    background: rgba(251, 191, 36, 0.1);
}

.sort-link.active {
    color: var(--primary-color, #fbbf24);
    background: rgba(251, 191, 36, 0.15);
}

.sort-separator {
    color: rgba(255, 255, 255, 0.15);
    font-size: 12px;
}

/* موبایل */
@media (max-width: 768px) {
    .comments-sort-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comment-sort-links {
        width: 100%;
        justify-content: flex-start;
    }
}

.comments-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color, #fbbf24);
    margin: 0;
}

.comments-title i {
    margin-left: 10px;
}

.comment-sort-links {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 18px;
    border-radius: 40px;
}

.sort-link {
    color: var(--text-muted, #94a3b8);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sort-link i {
    font-size: 12px;
}

.sort-link:hover,
.sort-link.active {
    color: var(--primary-color, #fbbf24);
}

.sort-separator {
    color: rgba(255, 255, 255, 0.2);
    font-size: 12px;
}

/* فرم ثبت نظر */
.comment-respond {
    background: var(--background-dark, #101314);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.comment-reply-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-reply-title i {
    margin-left: 8px;
}

#cancel-comment-reply-link {
    font-size: 12px;
    color: #ef4444;
    text-decoration: none;
    padding: 4px 12px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 20px;
}

#cancel-comment-reply-link i {
    margin-left: 5px;
}

/* Input Wrapper */
.comment-input-wrapper,
.input-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.comment-input-wrapper i,
.input-wrapper i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 1;
}

.comment-input-wrapper i {
    top: 20px;
    transform: none;
}

.comment-form textarea,
.comment-form-fields input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-family: 'Yekan', sans-serif;
    font-size: 14px;
    transition: all 0.3s;
}

.comment-form textarea:focus,
.comment-form-fields input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.5);
}

.comment-form-fields {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-form-fields .input-wrapper {
    flex: 1;
    margin-bottom: 0;
}

/* Spoiler Checkbox */
.spoiler-option {
    margin: 15px 0;
}

.spoiler-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.spoiler-checkbox input {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    position: relative;
    transition: all 0.3s;
}

.spoiler-checkbox input:checked + .checkbox-custom {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.spoiler-checkbox input:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-size: 12px;
}

.spoiler-text {
    color: var(--text-muted);
    font-size: 13px;
}

.spoiler-text i {
    color: #ef4444;
    margin-left: 6px;
}

/* دکمه ارسال */
.submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #000;
    font-weight: 700;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s;
}

.submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(251, 191, 36, 0.3);
}

/* لیست نظرات */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-body {
    background: var(--background-dark, #101314);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s;
}

.comment-body:hover {
    border-color: rgba(251, 191, 36, 0.2);
}

/* نویسنده نظر */
.comment-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-author .avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.author-info .fn {
    font-weight: 700;
    color: var(--primary-color);
}

.comment-metadata {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.comment-metadata i {
    margin-left: 5px;
    font-size: 11px;
}

.comment-metadata a {
    color: var(--text-muted);
    text-decoration: none;
}

/* متن نظر */
.comment-content {
    font-size: 14px;
    line-height: 1.7;
    margin: 15px 0;
    padding: 0 10px;
}

/* باکس اسپویل */
.spoiler-box {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    border: 1px dashed rgba(239, 68, 68, 0.4);
}

.spoiler-hidden {
    color: #ef4444;
    margin-bottom: 10px;
}

.spoiler-hidden i {
    margin-left: 8px;
}

.reveal-spoiler-btn {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Yekan', sans-serif;
    transition: all 0.3s;
}

.reveal-spoiler-btn i {
    margin-left: 6px;
}

.reveal-spoiler-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: scale(1.02);
}

/* دکمه‌های لایک/دیسلایک */
.comment-actions-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-votes-group {
    display: flex;
    gap: 12px;
}

.comment-like,
.comment-dislike {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.comment-like i {
    color: #22c55e;
}

.comment-dislike i {
    color: #ef4444;
}

.comment-like:hover {
    background: rgba(34, 197, 94, 0.15);
    transform: translateY(-2px);
}

.comment-dislike:hover {
    background: rgba(239, 68, 68, 0.15);
    transform: translateY(-2px);
}

.comment-like.voted {
    background: rgba(34, 197, 94, 0.25);
    border: 1px solid rgba(34, 197, 94, 0.5);
}

.comment-like.voted i {
    color: #22c55e;
}

.comment-dislike.voted {
    background: rgba(239, 68, 68, 0.25);
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.comment-dislike.voted i {
    color: #ef4444;
}

.like-count,
.dislike-count {
    font-weight: 600;
}

/* دکمه پاسخ */
.comment-reply-group a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    text-decoration: none;
    transition: all 0.3s;
}

.comment-reply-group a i {
    font-size: 12px;
}

.comment-reply-group a:hover {
    background: #3b82f6;
    color: #fff;
    transform: translateY(-2px);
}

/* پاسخ‌های فرزند */
.children {
    list-style: none;
    margin-top: 20px;
    margin-right: 45px;
    padding-right: 20px;
    border-right: 2px solid rgba(251, 191, 36, 0.3);
}

.children .comment-body {
    background: rgba(16, 19, 20, 0.8);
}

/* استایل ویژه برای باکس بدون نظر */
.no-comments {
    text-align: center;
    padding: 50px 20px;
    background: rgba(16, 19, 20, 0.8) !important;
    border-radius: 20px;
    font-size: 15px;
    color: #94a3b8;
    border: 2px dashed rgba(251, 191, 36, 0.3) !important;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.no-comments i {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
    color: #fbbf24;
    opacity: 0.7;
}

.no-comments:hover {
    border-color: rgba(251, 191, 36, 0.6) !important;
    background: rgba(16, 19, 20, 0.9) !important;
}

.no-comments:hover i {
    opacity: 1;
}

/* صفحه‌بندی */
.comment-navigation {
    margin-top: 30px;
    text-align: center;
}

.comment-navigation .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--background-dark, #101314);
    border-radius: 12px;
    margin: 0 3px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s;
}

.comment-navigation .page-numbers.current,
.comment-navigation .page-numbers:hover {
    background: var(--primary-color);
    color: #000;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 12px 24px;
    background: var(--background-dark, #101314);
    border-radius: 12px;
    color: white;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-notification i {
    margin-left: 8px;
}

.toast-success {
    border-right: 3px solid #22c55e;
}

.toast-error {
    border-right: 3px solid #ef4444;
}

.toast-warning {
    border-right: 3px solid #fbbf24;
}

/* Responsive */
@media (max-width: 768px) {
    .comments-advanced {
        padding: 0 15px;
    }
    
    .comments-header-sort {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comment-sort-links {
        width: 100%;
        justify-content: center;
    }
    
    .comment-form-fields {
        flex-direction: column;
        gap: 12px;
    }
    
    .comment-form-fields .input-wrapper {
        width: 100%;
    }
    
    .comment-actions-footer {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .children {
        margin-right: 20px;
        padding-right: 12px;
    }
    
    .comment-author {
        flex-wrap: wrap;
    }
}



/* ==========================================
   اصلاح سریال‌ها - موقعیت المان‌ها روی تصویر
========================================== */

.series-card {
    position: relative !important;
    background: transparent !important;
    overflow: visible !important;
}

.series-backdrop-wrapper {
    position: relative !important;
    border-radius: 5px;
    overflow: hidden;
}

/* المان‌ها باید روی تصویر قرار بگیرند */
.series-imdb-bottom,
.series-season-episode-bottom,
.series-audio-badges {
    position: absolute !important;
    z-index: 10 !important;
}


/* فصل و قسمت - گوشه پایین راست */
.series-season-episode-bottom {
    position: absolute !important;
    bottom: 12px !important;
    right: 12px !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}

.season-badge-card,
.episode-badge-card {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.season-badge-card {
    background: #fbbf24;
    color: #000;
}

.episode-badge-card {
    background: #1a1a1a;
    color: #fff;
}

/* آیکون‌های دوبله و زیرنویس - گوشه بالا راست */
.series-audio-badges {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    display: flex;
    gap: 6px;
    z-index: 10;
}

.audio-badge-top {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-badge-top i,
.audio-badge-top svg {
    color: #fff !important;
    font-size: 14px;
}

/* عنوان سریال - زیر تصویر (بدون پس زمینه) */
.series-info {
    position: relative !important;
    background: transparent !important;
    padding: 10px 8px 0 8px !important;
    text-align: right;
}

.series-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    margin: 0 0 4px 0 !important;
    color: #fff !important;
}

.series-subtitle {
    font-size: 11px !important;
    color: #94a3b8 !important;
}

/* حذف افکت هاور روی خود کارت */
.series-card:hover {
    transform: none !important;
    background: transparent !important;
}

/* فقط عکس در هاور بزرگ شود */
.series-card:hover .series-backdrop {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.series-backdrop {
    transition: transform 0.3s ease;
}


/* ==========================================
   FIX COMMENTS FONT - OVERRIDE MONOSPACE
========================================== */

/* override قوی برای همه عناصر نظرات (به جز آیکون‌ها) */
.comments-area:not(i):not(.fa):not(.fas):not(.far),
.comments-area *:not(i):not(.fa):not(.fas):not(.far),
#comments:not(i):not(.fa):not(.fas):not(.far),
#comments *:not(i):not(.fa):not(.fas):not(.far),
.comment-list:not(i):not(.fa):not(.fas):not(.far),
.comment-list *:not(i):not(.fa):not(.fas):not(.far),
.comment-respond:not(i):not(.fa):not(.fas):not(.far),
.comment-respond *:not(i):not(.fa):not(.fas):not(.far),
.comment-form:not(i):not(.fa):not(.fas):not(.far),
.comment-form *:not(i):not(.fa):not(.fas):not(.far),
.comment-content:not(i):not(.fa):not(.fas):not(.far),
.comment-content *:not(i):not(.fa):not(.fas):not(.far) {
    font-family: 'Yekan', 'Tahoma', 'Arial', sans-serif !important;
}

/* override برای تگ‌های خاص */
.comment-content p,
.comment-content a,
.comment-author .fn,
.comment-metadata a,
.comment-reply-link,
.comment-awaiting-moderation {
    font-family: 'Yekan', 'Tahoma', 'Arial', sans-serif !important;
}

/* فیلدهای فرم */
.comment-form input,
.comment-form textarea,
.comment-form .submit {
    font-family: 'Yekan', 'Tahoma', 'Arial', sans-serif !important;
}

/* عنوان‌ها */
.comments-title,
.comment-reply-title {
    font-family: 'Yekan', 'Tahoma', 'Arial', sans-serif !important;
}

/* ==========================================
   FONT AWESOME ICONS - EXCEPTION
========================================== */

/* آیکون‌های Font Awesome */
.comments-area i.fa,
.comments-area i.fas,
.comments-area i.far,
.comments-area i.fal,
.comments-area i.fad,
#comments i.fa,
#comments i.fas,
#comments i.far,
#comments i.fal,
#comments i.fad,
.comment-list i.fa,
.comment-list i.fas,
.comment-list i.far,
.comment-respond i.fa,
.comment-respond i.fas,
.comment-respond i.far,
.comment-form i.fa,
.comment-form i.fas,
.comment-form i.far,
.comment-content i.fa,
.comment-content i.fas,
.comment-content i.far,
.comment-like i,
.comment-dislike i,
.submit i,
.comment-reply-group a i,
.reveal-spoiler-btn i,
.spoiler-text i,
.comment-metadata i,
.no-comments i,
.comments-title i,
.sort-link i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-variant: normal !important;
}

/* آیکون‌های outline (far) */
.comments-area i.far,
#comments i.far,
.comment-list i.far,
.comment-respond i.far,
.comment-form i.far,
.comment-content i.far {
    font-weight: 400 !important;
}

/* اطمینان از نمایش صحیح */
.fa,
.fas,
.far,
.fal,
.fad
 {
    font-family: "Font Awesome 6 Free" !important;
}

.far {
    font-weight: 400 !important;
}

.fas,
.fa {
    font-weight: 900 !important;
}

/* ==========================================
   BLOG SECTION STYLES - بدون تداخل با سایر بخش‌ها
========================================== */

.blog-archive-container {
    max-width: 1200px;
    margin: 100px auto 60px;
    padding: 0 20px;
}

.archive-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-item:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.blog-cover {
    position: relative;
    display: block;
    overflow: hidden;
}

.blog-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-item:hover .blog-thumbnail {
    transform: scale(1.05);
}

.blog-title-holder {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.blog-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.blog-title-holder h2 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.4;
}

.blog-excerpt {
    padding: 20px;
}

.blog-excerpt p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(251, 191, 36, 0.15);
    border-radius: 25px;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.read-more-btn:hover {
    background: var(--primary-color);
    color: #000;
}

.blog-pagination {
    text-align: center;
    margin-top: 40px;
}

.blog-pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin: 0 3px;
    color: var(--text-primary);
    text-decoration: none;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
    background: var(--primary-color);
    color: #000;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .archive-title {
        font-size: 24px;
    }
}


/* ==========================================
   BLOG SECTION ON HOMEPAGE
========================================== */

.blog-section-home {
    margin-top: 60px !important;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    width: 100%;
    overflow-x: visible !important;
}

/* هدر بخش - ثابت و بدون اسکرول */
.blog-section-home .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.blog-home-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 20px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
    padding: 0 20px 15px 20px !important;
    margin: 0 !important;
}

.blog-home-card {
    flex: 0 0 320px !important;
    width: 320px !important;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: normal;
}

.blog-home-card:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 191, 36, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.blog-home-cover {
    position: relative;
    display: block;
    overflow: hidden;
}

.blog-home-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-home-card:hover .blog-home-thumbnail {
    transform: scale(1.05);
}

.blog-home-no-image {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
}

.blog-home-title-holder {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.blog-home-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
}

.blog-home-title-holder h3 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.4;
}

.blog-home-excerpt {
    padding: 15px;
}

.blog-home-excerpt p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-home-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(251, 191, 36, 0.12);
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.blog-home-readmore:hover {
    background: var(--primary-color);
    color: #000;
}

/* استایل اسکرولبار */
.blog-home-grid::-webkit-scrollbar {
    height: 4px;
}

.blog-home-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.blog-home-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

/* Responsive - موبایل */
@media (max-width: 768px) {
    .blog-home-card {
        flex: 0 0 280px !important;
        width: 280px !important;
    }
    
    .blog-home-thumbnail,
    .blog-home-no-image {
        height: 160px !important;
    }
    
    .blog-home-title-holder h3 {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .blog-home-card {
        flex: 0 0 260px !important;
        width: 260px !important;
    }
    
    .blog-home-thumbnail,
    .blog-home-no-image {
        height: 140px !important;
    }
}

/* ==========================================
   SINGLE BLOG PAGE - برجسته و حرفه‌ای
========================================== */

.single-blog-container {
    max-width: 900px;
    margin: 120px auto 60px !important;
    padding: 0 20px;
}

/* hero بخش بالایی */
.blog-hero {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 50px;
    margin-top: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.blog-hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.blog-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.85) 100%);
}

.blog-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

.blog-title {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ========== باکس محتوای اصلی ========== */
.blog-content-wrapper {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    margin-top: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.blog-content {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-primary);
}

/* استایل متن داخل محتوا */
.blog-content p {
    margin-bottom: 1.5em;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4 {
    color: var(--primary-color);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 20px 0;
}

.blog-content blockquote {
    border-right: 4px solid var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
    padding: 20px 30px;
    margin: 20px 0;
    border-radius: 16px;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .single-blog-container {
        margin: 100px auto 40px !important;
    }
    
    .blog-hero-image {
        height: 280px;
    }
    
    .blog-title {
        font-size: 26px;
    }
    
    .blog-hero-content {
        padding: 25px;
    }
    
    .blog-content-wrapper {
        padding: 25px;
    }
    
    .blog-content {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .blog-hero-image {
        height: 220px;
    }
    
    .blog-title {
        font-size: 22px;
    }
    
    .blog-content-wrapper {
        padding: 20px;
    }
}


/* ==========================================
   FORCE HORIZONTAL SCROLL ON MOBILE
========================================== */

@media (max-width: 768px) {
    
    /* override قبلی */
    .series-section.grid-mode .horizontal-scroll,
    .series-section .horizontal-scroll,
    .horizontal-scroll {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        grid-template-columns: unset !important;
        gap: 15px !important;
        padding: 0 20px 15px 20px !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    /* کارت‌ها با عرض ثابت در یک ردیف */
    .series-section.grid-mode .series-card,
    .series-section .series-card {
        flex: 0 0 280px !important;
        width: 280px !important;
        min-width: 280px !important;
        max-width: 280px !important;
        aspect-ratio: 16/9 !important;
        margin: 0 !important;
    }
    
    /* حذف هرگونه grid از والد */
    .series-section .horizontal-scroll-container {
        overflow-x: visible !important;
    }
}

/* موبایل کوچک */
@media (max-width: 480px) {
    .series-section.grid-mode .series-card,
    .series-section .series-card {
        flex: 0 0 260px !important;
        width: 260px !important;
        min-width: 260px !important;
    }
}