/*
Theme Name: DRN Theme
Theme URI: https://digitalrn.ir/
Author: DRN Team
Author URI: https://yourwebsite.com/
Description: پوسته وردپرس DRN - مرجع مطالب آموزشی و سرگرمی
Version: 1.26.260
License: GPL v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: drn
Domain Path: /languages
RTL: true
*/

/* ============================================
   پالت پیش‌فرض: Moonlight (بدون کلاس اضافی)
============================================ */
:root {
    --primary-color: #6C5CE7;
    --primary-dark: #5541d7;
    --primary-light: #a29bfe;
    --secondary-color: #00CEC9;
    --accent-color: #FF7675;
    --text-color: #2d3436;
    --text-light: #636e72;
    --text-dark: #111;
    --bg-color: #f5f6fa;
    --bg-light: #ffffff;
    --bg-dark: #2d3436;
    --border-color: #dfe6e9;
    --shadow: 0 4px 12px rgba(108, 92, 231, 0.1);
    --shadow-hover: 0 8px 24px rgba(108, 92, 231, 0.15);
    
    /* Typography */
    --font-primary: 'lalezar', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: system-ui, -apple-system, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   حالت تاریک برای پالت Moonlight
============================================ */
body.dark-mode {
    --text-color: #dfe6e9;
    --text-light: #b2bec3;
    --text-dark: #ffffff;
    --bg-color: #1e272e;
    --bg-light: #2d3436;
    --bg-dark: #0a0a0a;
    --border-color: #485460;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.5);
    --primary-color: #a29bfe;
    --primary-dark: #6C5CE7;
    --secondary-color: #55efc4;
    --accent-color: #ff7675;
}

/* ============================================
   پالت Midnight Gold (اصلاح‌شده – دکمه‌های طلایی)
============================================ */
body.palette-midnight-gold {
    --primary-color: #FFD700;      /* طلایی خالص */
    --primary-dark: #DAA520;       /* طلایی تیره (هاور) */
    --primary-light: #FFF8DC;      /* کرم طلایی (برای پس‌زمینه‌های روشن) */
    --secondary-color: #FFC107;    /* طلایی کهربایی (دکمه‌های اصلی) */
    --accent-color: #FF8C00;       /* نارنجی طلایی (CTAها) */
    --text-color: #E0E0E0;
    --text-light: #BDC3C7;
    --text-dark: #FFFFFF;
    --bg-color: #121212;
    --bg-light: #1E1E1E;
    --bg-dark: #0A0A0A;
    --border-color: #333333;
    --shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
    --shadow-hover: 0 8px 24px rgba(255, 215, 0, 0.35);
}

/* حالت دارک‌مود (در صورت فعال بودن دارک‌مود سایت) */
body.palette-midnight-gold.dark-mode {
    --primary-color: #FFD700;
    --primary-dark: #FFC107;
    --secondary-color: #DAA520;
    --accent-color: #FF8C00;
    --text-color: #FFFFFF;
    --bg-color: #000000;
    --bg-light: #121212;
    --border-color: #444444;
}

/* ============================================
   پالت DRN Classic
============================================ */
body.palette-drn-classic {
    --primary-color: #8a2be2;
    --primary-dark: #7b1fa2;
    --primary-light: #9c4dff;
    --secondary-color: #228b22;
    --accent-color: #0400ff;
    --text-color: #333;
    --text-light: #666;
    --text-dark: #111;
    --bg-color: #f0f8ff;
    --bg-light: #ffffff;
    --bg-dark: #1a1a1a;
    --border-color: #ddd;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.15);
}

body.palette-drn-classic.dark-mode {
    --text-color: #e0e0e0;
    --text-light: #b0b0b0;
    --text-dark: #ffffff;
    --bg-color: #121212;
    --bg-light: #1e1e1e;
    --bg-dark: #0a0a0a;
    --border-color: #444;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.5);
    --primary-color: #a55cff;
    --primary-dark: #8a2be2;
    --secondary-color: #2e8b57;
}

/* ============================================
   ۳. فونت
============================================ */
@font-face {
    font-family: 'lalezar';
    src: url('fonts/Lalezar-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
/* ... (بقیه فایل style.css شما) ... */

/* ============================================
   ۳. فونت
============================================ */
@font-face {
    font-family: 'lalezar';
    src: url('fonts/Lalezar-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   ۴. ریست و استایل‌های پایه
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    direction: rtl;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.2s ease;
    padding-top: 80px;
}

body.home,
body.front-page {
    padding-top: 0;
}

/* ============================================
   ۵. تایپوگرافی
============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: normal;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: var(--spacing-md); }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover { color: var(--primary-dark); }

/* ============================================
   ۶. کانتینر
============================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ============================================
   ۷. هدر (Fixed + شفاف + شیشه‌ای)
============================================ */
#masthead.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease, backdrop-filter 0.3s ease;
    background-color: transparent;
    box-shadow: none;
}

#masthead.header.scrolled {
    background-color: rgba(138, 43, 226, 0.75) !important;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 0 !important;
}

#masthead.header.transparent .logo-text,
#masthead.header.transparent .nav-link {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

#masthead.header.scrolled .logo-text,
#masthead.header.scrolled .nav-link {
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

#masthead.header.transparent .menu-toggle span {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo .drn-logo {
    max-height: 60px;
    width: auto;
    transition: max-height 0.3s ease;
}

.header.scrolled .logo .drn-logo {
    max-height: 45px !important;
}

.logo-text {
    font-size: 2rem;
    margin: 0;
    color: inherit;
}

/* ============================================
   ۸. دکمه دارک مود (با تصویر هم‌اندازه ماه)
============================================ */
.dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    padding: 8px;
    margin-right: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.dark-mode-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dark-mode-toggle svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* آیکون ماه (پیش‌فرض نمایش داده شود) */
.dark-mode-toggle .moon-icon {
    display: block;
}

/* آیکون خورشید (پیش‌فرض مخفی) */
.dark-mode-toggle .sun-icon {
    display: none;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

/* تصویر سفارشی داخل sun-icon */
.dark-mode-toggle .sun-icon img {
    width: 22px;
    height: 22px;
    object-fit: cover; /* تصویر را دقیقاً به اندازه ۲۲×۲۲ درمی‌آورد */
    border-radius: 50%; /* اختیاری: اگر می‌خواهید دایره‌ای شود */
    display: block;
}

/* در حالت دارک مود: ماه مخفی، خورشید (تصویر) نمایش داده شود */
body.dark-mode .dark-mode-toggle .moon-icon {
    display: none;
}

body.dark-mode .dark-mode-toggle .sun-icon {
    display: flex;
}

/* ============================================
   ۹. ناوبری و منوی موبایل
============================================ */
.main-nav {
    position: relative;
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    flex-direction: column;
    gap: 4px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--bg-light);
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-link {
    color: inherit;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    transition: background-color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    background-color: var(--secondary-color);
    color: white;
}

/* منوی موبایل */
@media (max-width: 767px) {
    .menu-toggle { display: flex; }
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--primary-color);
        padding: 80px 20px 20px;
        flex-direction: column;
        transition: right 0.3s;
        z-index: 999;
    }
    .nav-list.active { right: 0; }
}

/* ============================================
   ۱۰. بخش Hero و اسلایدر
============================================ */
.hero-slider {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
}

.swiper-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
    width: 100%;
    margin: 0 auto;
}

.slide-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    display: inline-block;
    padding: 0.5rem 2rem;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    line-height: 1.4;
    animation: slideInUp 0.8s ease-out;
}

.slide-description {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: inline-block;
    padding: 0.4rem 1.5rem;
    border-radius: 30px;
    animation: slideInUp 0.8s 0.2s both;
}

.slide-btn {
    animation: slideInUp 0.8s 0.4s both;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    color: white;
    background: rgba(0, 0, 0, 0.4);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.hero-slider .swiper-button-next:after,
.hero-slider .swiper-button-prev:after {
    font-size: 22px;
    font-weight: bold;
}

.hero-slider .swiper-pagination-bullet {
    background: white;
    opacity: 0.7;
    width: 12px;
    height: 12px;
}

.hero-slider .swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
    transform: scale(1.3);
}

/* Hero استاتیک (fallback) */
.hero {
    position: relative;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('images/12345.jpg') center/cover no-repeat;
    color: var(--bg-light);
    padding: var(--spacing-xl) 0;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    color: var(--bg-light);
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 1s ease;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 1s ease 0.3s both;
}

/* ============================================
   ۱۱. دکمه‌ها
============================================ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1.1rem;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--bg-light);
}

.btn-primary:hover {
    background-color: #1e7a1e;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--bg-light);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: var(--bg-light);
}

.btn-secondary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    padding: 14px;
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
}

.btn-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.4);
}

/* ===== پروفایل کاربری و پنل کشویی ===== */
.user-profile-dropdown {
    position: relative;
    margin-right: 15px;
}

.profile-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: inherit;
    padding: 5px 10px 5px 5px;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.profile-toggle:hover {
    background: rgba(255,255,255,0.2);
}

.profile-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
}

.profile-name {
    font-size: 0.95rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    transition: transform 0.3s;
}

.user-profile-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* پنل کشویی */
.profile-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 300px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 1000;
    overflow: hidden;
}

.user-profile-dropdown.active .profile-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* هدر پنل */
.panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.panel-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.5);
    object-fit: cover;
}

.panel-user-info {
    flex: 1;
}

.panel-display-name {
    margin: 0 0 5px;
    font-size: 1.2rem;
    color: white;
}

.panel-user-email {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
    word-break: break-all;
}

/* بدنه پنل */
.panel-body {
    padding: 10px 0;
}

.panel-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.panel-menu li {
    margin: 0;
}

.panel-menu a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.2s;
    font-size: 0.95rem;
}

.panel-menu a:hover {
    background: rgba(138, 43, 226, 0.1);
    color: var(--primary-color);
}

/* فوتر پنل */
.panel-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* دکمه تغییر حالت (فقط آیکون) */
.panel-dark-toggle {
    display: flex;
    margin: 0 auto; /* وسط‌چین کردن حاشیه‌های خودکار */
    align-items: center;
    justify-content: center;
    gap: 0;
    background: none;
    border: none;
    color: var(--text-color);
    padding: 8px;
    border-radius: var(--radius-md);
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

.panel-dark-toggle:hover {
    background: var(--bg-color);
}

.panel-dark-toggle .moon-icon,
.panel-dark-toggle .sun-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible; /* اجازه می‌دهد تصویر بزرگ‌شده از کادر بیرون نزند */
}

.panel-dark-toggle .sun-icon {
    display: none;
}

body.dark-mode .panel-dark-toggle .moon-icon {
    display: none;
}

body.dark-mode .panel-dark-toggle .sun-icon {
    display: flex;
}

.panel-dark-toggle .sun-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transform: scale(1.15); /* بزرگ‌نمایی بیشتر برای جبران فضای خالی */
    transition: transform 0.2s;
}

/* مخفی کردن متن احتمالی داخل دکمه */
.panel-dark-toggle span {
    display: none;
}

.logout-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--radius-md);
    color: #e74c3c;
    text-decoration: none;
    transition: background 0.2s;
    font-size: 0.95rem;
}

.logout-link:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
}

/* لینک ورود برای مهمان */
.login-link {
    margin-right: 15px;
}

/* ریسپانسیو */
@media (max-width: 767px) {
    .profile-name {
        display: none;
    }
    .profile-panel {
        width: 280px;
        right: 0;
        left: auto;
    }
    .user-profile-dropdown {
        margin-right: 5px;
    }
}

/* هماهنگی با هدر شفاف */
#masthead.header.transparent .profile-toggle {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(5px);
}

#masthead.header.scrolled .profile-toggle {
    background: rgba(255,255,255,0.1);
}

/* ============================================
   ۱۲. بخش باکس‌ها (پلتفرم‌ها)
============================================ */
.boxes-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: var(--spacing-sm);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-description {
    color: var(--text-light);
    font-size: 1.1rem;
}

.boxes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.box-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border: 1px solid var(--border-color);
}

.box-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.box-image {
    height: 200px;
    overflow: hidden;
}

.box-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.box-card:hover .box-image img {
    transform: scale(1.1);
}

.box-content {
    padding: var(--spacing-lg);
}

.box-title {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.box-text {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.box-link {
    color: var(--secondary-color);
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.box-link::after {
    content: '←';
    transition: transform var(--transition-fast);
}

.box-link:hover::after {
    transform: translateX(-5px);
}

/* ============================================
   ۱۳. آخرین مطالب
============================================ */
.latest-posts {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-color) 100%);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.post-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition-normal);
    border: 1px solid rgba(138, 43, 226, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.post-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.post-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.post-card:hover .post-thumb {
    transform: scale(1.1);
}

.post-content {
    padding: var(--spacing-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    font-size: 0.85rem;
    color: var(--text-light);
}

.post-category {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
}

.post-title {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1.4;
}

.post-title a {
    color: var(--text-dark);
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
    flex-grow: 1;
}

.post-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.95rem;
    transition: gap var(--transition-fast);
}

.post-link:hover { gap: 0.75rem; }
.post-link:hover svg { transform: translateX(-5px); }

.view-all-posts { text-align: center; }
.no-posts { text-align: center; padding: var(--spacing-xl); color: var(--text-light); }

/* ============================================
   ۱۴. آرشیو و دکمه‌های تغییر حالت (Grid/List)
============================================ */
.archive-header {
    margin: var(--spacing-xl) 0 var(--spacing-lg);
}

.archive-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.archive-title {
    font-size: 2.5rem;
    margin: 0;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.archive-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 70px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.archive-description {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: var(--spacing-sm);
}

.archive-view-toggle {
    display: flex;
    gap: 10px;
}

.view-toggle-btn {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-light);
    transition: all var(--transition-fast);
    padding: 0;
}

.view-toggle-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.view-toggle-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* حالت لیست */
.posts-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.posts-grid.list-view .post-card {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--spacing-lg);
    height: auto;
}

.posts-grid.list-view .post-image {
    height: 100%;
    min-height: 180px;
}

.posts-grid.list-view .post-content {
    padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-lg) 0;
}

/* ============================================
   ۱۵. صفحه نوشته تکی
============================================ */
.single-post {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    margin: var(--spacing-xl) 0;
    box-shadow: var(--shadow);
}

.single-post-header.two-columns {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    direction: rtl;
}

.post-header-content { grid-column: 1; }

.post-thumbnail-single {
    grid-column: 2;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.single-featured-image { width: 100%; height: auto; display: block; }

.post-content-single {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: var(--spacing-xl);
}

.author-bio {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background: var(--bg-color);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin: var(--spacing-xl) 0;
    border: 1px solid var(--border-color);
}

.author-avatar img { border-radius: 50%; border: 3px solid var(--primary-color); }

/* ============================================
   ۱۶. بخش نظرات
============================================ */
.comments-area {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 2px solid var(--border-color);
}

.comment-body {
    background: var(--bg-color);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.comment-reply-link {
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: var(--radius-md);
}

.comment-respond {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: var(--bg-color);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-light);
    color: var(--text-color);
}

.comment-form .submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: var(--radius-md);
    cursor: pointer;
}

/* ============================================
   ۱۷. بخش تیم ما
============================================ */
.team-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.team-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.team-card:hover { transform: translateY(-10px); }

.team-image { height: 280px; overflow: hidden; }

.team-image img { width: 100%; height: 100%; object-fit: cover; }

.team-content { padding: var(--spacing-lg); text-align: center; }

.team-name { font-size: 1.5rem; color: var(--text-dark); }

.team-position { color: var(--primary-color); font-weight: bold; }

.team-social { display: flex; justify-content: center; gap: 15px; }

/* ===== Media Hub Section (Redesigned) ===== */
.media-hub-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-color);
}

.media-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: var(--spacing-lg);
}

.media-hub-item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 16 / 6;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.media-hub-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.media-hub-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: white;
}

.media-hub-bg {
    width: 100%;
    height: 100%;
}

.media-hub-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.media-hub-item:hover .media-hub-bg img {
    transform: scale(1.05);
}

.media-hub-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    padding: 30px 20px 20px;
    text-align: center;
    color: white;
    pointer-events: none;
}

.media-hub-title {
    font-size: 2rem;
    margin-bottom: 5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    font-family: var(--font-primary);
    color: white;
    line-height: 1.2;
}

.media-hub-subtitle {
    font-size: 1rem;
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* ریسپانسیو */
@media (max-width: 991px) {
    .media-hub-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .media-hub-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 767px) {
    .media-hub-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .media-hub-item {
        aspect-ratio: 16 / 5;
    }
    .media-hub-title {
        font-size: 1.6rem;
    }
    .media-hub-subtitle {
        font-size: 0.95rem;
    }
    .media-hub-overlay {
        padding: 25px 15px 15px;
    }
}

/* ===== Comic Reader Styles ===== */
.comic-reader-main {
    background-color: #0a0a0a;
    min-height: 100vh;
    padding-top: 0;
}

.comic-reader-toolbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 10px 0;
    color: white;
}

.toolbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.comic-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-to-series {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.back-to-series:hover {
    color: var(--primary-color);
}

.chapter-title {
    color: white;
    font-size: 1.3rem;
    margin: 0;
}

.reader-controls {
    display: flex;
    gap: 10px;
}

.reader-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.2s;
}

.reader-btn:hover {
    background: rgba(255,255,255,0.2);
}

.comic-reader-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.comic-page {
    margin-bottom: 0;
    line-height: 0;
}

.comic-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.2s ease;
    user-select: none;
    -webkit-user-drag: none;
}

/* بزرگنمایی با Pinch-to-Zoom (به صورت native توسط مرورگر هندل می‌شود) */
.comic-image.zoomed {
    cursor: zoom-out;
}

.comic-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 30px 20px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(5px);
    position: sticky;
    bottom: 0;
    z-index: 90;
    color: white;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: background 0.2s;
}

.nav-btn:hover:not(:disabled) {
    background: var(--primary-color);
}

.nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-indicator {
    font-size: 1.1rem;
    color: #ccc;
}

/* حالت تمام‌صفحه */
.comic-reader-main:fullscreen {
    background: black;
}

.comic-reader-main:fullscreen .comic-reader-toolbar {
    background: black;
}

/* ریسپانسیو */
@media (max-width: 767px) {
    .toolbar-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comic-reader-container {
        padding: 0;
    }
    
    .nav-btn span {
        display: none;
    }
    
    .nav-btn {
        padding: 12px;
        border-radius: 50%;
    }
}

/* ===== کتابخانه کمیک ===== */
.series-grid, .chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 30px;
    margin: 40px 0;
}
.series-card, .chapter-card {
    text-align: center;
    transition: transform 0.3s;
}
.series-card:hover, .chapter-card:hover {
    transform: translateY(-8px);
}
.series-cover, .chapter-cover {
    aspect-ratio: 2/3;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    background: #f0f0f0;
}
.series-thumb, .chapter-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.series-placeholder, .chapter-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8a2be2, #5f1a9e);
    color: white;
    font-family: 'lalezar';
}
.series-title, .chapter-title {
    font-size: 1.2rem;
    margin-bottom: 5px;
}
.series-count, .chapter-meta {
    color: #666;
    font-size: 0.9rem;
}

/* ============================================
   ۱۸. صفحات ورود و ثبت‌نام
============================================ */
.auth-form-wrapper {
    max-width: 480px;
    margin: 60px auto;
    padding: 40px;
    background: var(--bg-light);
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-form-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.2);
}

.auth-title {
    font-family: var(--font-primary);
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-dark);
    position: relative;
}

.auth-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.custom-auth-form .form-group {
    margin-bottom: 20px;
}

.custom-auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.input-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon svg {
    position: absolute;
    right: 15px;
    color: var(--text-light);
    pointer-events: none;
    z-index: 2;
}

.input-icon .auth-input {
    width: 100%;
    padding: 14px 45px 14px 15px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    background: var(--bg-light);
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(138, 43, 226, 0.15);
}

.remember-me {
    margin: 25px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
    color: var(--text-light);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.auth-links {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
    color: var(--text-light);
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin: 0 8px;
    transition: color 0.2s;
}

.auth-links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.auth-error {
    background: #ffe6e6;
    color: #b71c1c;
    padding: 12px 20px;
    border-radius: 50px;
    border-right: 5px solid #b71c1c;
    margin-bottom: 25px;
    font-size: 0.95rem;
    text-align: center;
    animation: shake 0.5s;
}

/* ===== Footer Social Icons with Images ===== */
.social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    overflow: hidden;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* اضافه کردن برای اطمینان */
}


/* آیکون پیش‌فرض (حرف اول) */
.default-icon {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
}

/* در حالت تاریک */
body.dark-mode .social-icon {
    background-color: rgba(255, 255, 255, 0.05);
}

body.dark-mode .social-icon:hover {
    background-color: var(--primary-color);
}

/* ============================================
   ۱۹. فوتر
============================================ */
.footer {
    background-color: var(--bg-dark);
    color: var(--bg-light);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-logo {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: var(--spacing-sm);
}

.footer-description {
    color: #aaa;
    line-height: 1.6;
}

.footer-title {
    color: var(--bg-light);
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
}

.footer-list {
    list-style: none;
}

.footer-list li {
    margin-bottom: var(--spacing-xs);
}

.footer-list a {
    color: #aaa;
    transition: color var(--transition-fast);
}

.footer-list a:hover {
    color: var(--primary-light);
    padding-right: var(--spacing-xs);
}

.social-icons {
    display: flex;
    gap: var(--spacing-sm);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--bg-light);
    transition: all var(--transition-fast);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.social-icons span { display: none; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
    text-align: center;
}

.copyright {
    color: #aaa;
    font-size: 0.9rem;
}

/* ============================================
   ۲۰. سایدبار و ویجت‌ها
============================================ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.sidebar-widget {
    background: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.widget-title {
    color: var(--primary-color);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--border-color);
    margin-bottom: var(--spacing-md);
}

/* ===== Category Page Header ===== */
.category-header {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1) 0%, rgba(138, 43, 226, 0.02) 100%);
    padding: var(--spacing-xl) 0;
    margin: var(--spacing-xl) 0 var(--spacing-lg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
}

.category-header-inner {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.category-title {
    font-family: var(--font-primary);
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    padding-bottom: var(--spacing-sm);
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.category-description {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-top: var(--spacing-md);
}

.category-description p {
    margin-bottom: 0;
}

/* حالت تاریک */
body.dark-mode .category-header {
    background: linear-gradient(135deg, rgba(165, 92, 255, 0.1) 0%, rgba(165, 92, 255, 0.02) 100%);
    border-color: var(--border-color);
}

/* واکنش‌گرایی */
@media (max-width: 767px) {
    .category-header {
        padding: var(--spacing-lg) 0;
        margin: var(--spacing-lg) 0;
    }
    .category-title {
        font-size: 2.2rem;
    }
    .category-description {
        font-size: 1rem;
    }
}

/* ============================================
   ۲۱. استایل‌های عمومی صفحه
============================================ */
.page-header {
    background-color: var(--primary-color);
    color: var(--bg-light);
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.page-title {
    color: var(--bg-light);
    font-size: 2.5rem;
}

.page-content {
    padding: var(--spacing-xl) 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--spacing-xl);
}

.main-article {
    background: var(--bg-light);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

/* ============================================
   ۲۲. ریسپانسیو (موبایل و تبلت)
============================================ */
@media (max-width: 991px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    body { padding-top: 60px; }
    .hero-slider { height: 400px; }
    .slide-title { font-size: 2.2rem; padding: 0.4rem 1.2rem; }
    .slide-description { font-size: 1rem; padding: 0.3rem 1rem; }
    .hero-title { font-size: 2rem; }
    .archive-header-content { flex-direction: column; align-items: flex-start; }
    .archive-title { font-size: 2rem; }
    .single-post-header.two-columns { grid-template-columns: 1fr; }
    .post-thumbnail-single { grid-column: 1; }
    .posts-grid.list-view .post-card { grid-template-columns: 1fr; }
    .posts-grid.list-view .post-content { padding: var(--spacing-md); }
    .auth-form-wrapper { margin: 30px 15px; padding: 30px 20px; }
    .auth-title { font-size: 1.8rem; }
    .team-grid { grid-template-columns: 1fr; }
}

/* ============================================
   ۲۳. انیمیشن‌ها
============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ===== Comic Library Grid ===== */
.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.series-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.series-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.series-cover {
    position: relative;
    aspect-ratio: 2 / 3; /* نسبت استاندارد جلد کمیک */
    overflow: hidden;
    background-color: var(--bg-dark);
}

.series-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.series-card:hover .series-thumb {
    transform: scale(1.05);
}

.series-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    font-family: var(--font-primary);
    font-size: 1.2rem;
}

.series-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: var(--spacing-md);
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

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

.series-read {
    color: white;
    font-weight: bold;
    padding: 8px 16px;
    background: var(--primary-color);
    border-radius: 50px;
    display: inline-block;
    font-size: 0.9rem;
}

.series-title {
    font-size: 1.2rem;
    margin: var(--spacing-sm) var(--spacing-sm) 5px;
    color: var(--text-dark);
    text-align: center;
}

.series-meta {
    text-align: center;
    padding-bottom: var(--spacing-sm);
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ریسپانسیو */
@media (max-width: 767px) {
    .series-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    .series-title {
        font-size: 1rem;
    }
}

/* ===== Comic Reader Full Styles ===== */
.comic-reader-wrapper {
    background-color: #0a0a0a;
    min-height: 100vh;
    color: white;
}

/* هدر */
.reader-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 12px 0;
}

.reader-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.back-button:hover {
    color: var(--primary-color);
}

.reader-controls-top {
    display: flex;
    gap: 5px;
}

.reader-icon-btn {
    background: transparent;
    border: none;
    color: #ccc;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.reader-icon-btn:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

/* محتوای اصلی */
.reader-content {
    padding-bottom: 100px;
}

/* بخش اطلاعات فصل */
.chapter-info-section {
    padding: 40px 0 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.chapter-main-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: white;
}

.chapter-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 30px;
}

.chapter-description {
    flex: 1;
    color: #ccc;
    font-size: 1rem;
    line-height: 1.7;
}

.chapter-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 50px;
}

.rating-stars {
    color: #ffc107;
    font-size: 1.2rem;
}

.rating-value {
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

.chapter-cover {
    text-align: center;
    max-width: 300px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.cover-image {
    width: 100%;
    height: auto;
    display: block;
}

/* صفحات کمیک */
.comic-pages-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.comic-page-wrapper {
    text-align: center;
    margin-bottom: 0;
    line-height: 0;
}

.comic-page-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.2s ease;
    user-select: none;
    -webkit-user-drag: none;
}

/* فوتر و ناوبری */
.reader-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 15px 0;
    z-index: 100;
}

.progress-bar-container {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.2);
    margin-bottom: 15px;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.1s;
}

.navigation-row {
    display: flex;
    justify-content: center;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-chapter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}

.nav-chapter-btn:hover {
    background: var(--primary-color);
}

.nav-chapter-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.page-indicator {
    color: #ccc;
    font-size: 1rem;
}

/* حالت تمام‌صفحه */
.comic-reader-wrapper:fullscreen .reader-header {
    background: black;
}

.comic-reader-wrapper:fullscreen .reader-footer {
    background: black;
}

/* ریسپانسیو */
@media (max-width: 767px) {
    .chapter-main-title {
        font-size: 1.8rem;
    }
    
    .chapter-meta-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .comic-pages-container {
        padding: 10px 0;
    }
    
    .nav-chapter-btn span {
        display: none;
    }
    
    .nav-chapter-btn {
        padding: 12px;
        border-radius: 50%;
    }
    
    .nav-buttons {
        gap: 20px;
    }
}

/* ===== Chapters Grid (inside series page) ===== */
.chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.chapter-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.chapter-card:hover {
    transform: translateY(-5px);
}

.chapter-cover {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.chapter-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chapter-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    font-family: var(--font-primary);
}

.chapter-title {
    font-size: 1rem;
    margin: var(--spacing-sm);
    text-align: center;
    color: var(--text-dark);
}

.chapter-meta {
    text-align: center;
    padding-bottom: var(--spacing-sm);
    color: var(--text-light);
    font-size: 0.8rem;
}

/* ===== Series Grid (existing) ===== */
.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.series-card {
    text-align: center;
}

.series-placeholder {
    aspect-ratio: 2 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: var(--radius-lg);
}

.series-thumb {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.series-title {
    margin-top: var(--spacing-sm);
    font-size: 1.2rem;
}

.series-count {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ===== تضمین نمایش دائمی کنترل‌های Reader ===== */
.comic-reader-wrapper .reader-header,
.comic-reader-wrapper .reader-footer {
    opacity: 1 !important;
    visibility: visible !important;
    transition: none !important;
}

.comic-reader-wrapper .reader-controls-top,
.comic-reader-wrapper .reader-icon-btn {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* ===== رفع اسکرول در حالت تمام‌صفحه ===== */
.comic-reader-wrapper:fullscreen {
    overflow-y: auto !important;
    height: 100vh !important;
    display: block !important;
}

.comic-reader-wrapper:fullscreen .reader-content {
    min-height: 100vh;
    padding-bottom: 100px; /* فضای کافی برای فوتر */
}

.comic-reader-wrapper:fullscreen .reader-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

/* ===== ریسپانسیو کتابخانه کمیک و Reader ===== */
@media (max-width: 767px) {
    /* گرید مجموعه‌ها و فصل‌ها - ۲ ستونه */
    .series-grid,
    .chapters-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
        margin: 20px 0;
    }
    
    .series-card .series-title,
    .chapter-card .chapter-title {
        font-size: 1rem;
        margin-top: 8px;
    }
    
    .series-cover,
    .chapter-cover {
        aspect-ratio: 2/3;
    }
    
    .series-count,
    .chapter-meta {
        font-size: 0.8rem;
    }

    /* هدر Reader در موبایل */
    .comic-reader-wrapper .reader-header-container {
        flex-wrap: wrap;
        padding: 10px 15px;
    }
    
    .back-button {
        order: 1;
        margin-left: auto;
    }
    
    .reader-controls-top {
        order: 2;
        margin-right: 0;
    }
    
    .chapter-main-title {
        order: 3;
        width: 100%;
        text-align: center;
        font-size: 1.3rem;
        margin: 10px 0 5px;
    }

    /* فوتر Reader در موبایل */
    .reader-footer {
        padding: 10px 0;
    }
    
    .nav-buttons {
        gap: 10px;
    }
    
    .nav-chapter-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .nav-chapter-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .page-indicator {
        font-size: 0.9rem;
    }

    /* تصاویر کمیک */
    .comic-pages-container {
        padding: 10px 0;
    }
}

/* برای موبایل‌های بسیار کوچک (عرض کمتر از 480px) */
@media (max-width: 480px) {
    .series-grid,
    .chapters-grid {
        gap: 10px;
    }
    
    .nav-chapter-btn span {
        display: none; /* فقط آیکون نشان داده شود */
    }
    
    .nav-chapter-btn {
        padding: 10px;
        border-radius: 50%;
    }
}

/* ===== دکمه‌های کنترل Reader (تضمینی) ===== */
.comic-reader-wrapper .reader-icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    margin: 0 2px;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.comic-reader-wrapper .reader-icon-btn:hover {
    background: var(--primary-color);
}

.comic-reader-wrapper .reader-icon-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

/* تضمین نمایش دائمی */
.comic-reader-wrapper .reader-header,
.comic-reader-wrapper .reader-footer {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ============================================
   بهینه‌سازی کامل موبایل برای کمیک‌ها و Reader
============================================ */
@media (max-width: 767px) {
    /* ---------- ۱. کتابخانه کمیک (مجموعه‌ها و فصل‌ها) ---------- */
    .series-grid,
    .chapters-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
        margin: 20px 0;
        padding: 0 5px;
    }

    .series-card .series-title,
    .chapter-card .chapter-title {
        font-size: 0.95rem;
        margin-top: 6px;
        margin-bottom: 2px;
        line-height: 1.3;
    }

    .series-cover,
    .chapter-cover {
        aspect-ratio: 2/3;
        border-radius: 8px;
    }

    .series-placeholder,
    .chapter-placeholder {
        font-size: 0.8rem;
    }

    .series-count,
    .chapter-meta {
        font-size: 0.7rem;
    }

    /* ---------- ۲. هدر صفحه مجموعه/فصل ---------- */
    .page-header {
        padding: 30px 0 20px !important;
    }

    .page-title {
        font-size: 1.8rem !important;
    }

    /* ---------- ۳. Comic Reader - هدر ---------- */
    .comic-reader-wrapper .reader-header {
        padding: 8px 0;
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .comic-reader-wrapper .reader-header-container {
        flex-wrap: wrap;
        padding: 5px 12px;
    }

    .comic-reader-wrapper .back-button {
        order: 1;
        margin-right: auto;
    }

    .comic-reader-wrapper .back-button span {
        display: none; /* فقط آیکون فلش */
    }

    .comic-reader-wrapper .back-button svg {
        width: 22px;
        height: 22px;
    }

    .comic-reader-wrapper .reader-controls-top {
        order: 2;
        display: flex;
        gap: 2px;
    }

    .comic-reader-wrapper .reader-icon-btn {
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.15);
    }

    .comic-reader-wrapper .reader-icon-btn svg {
        width: 18px;
        height: 18px;
    }

    .comic-reader-wrapper .chapter-main-title {
        order: 3;
        width: 100%;
        text-align: center;
        font-size: 1.2rem;
        margin: 8px 0 5px;
        padding: 0 10px;
    }

    /* ---------- ۴. Comic Reader - محتوای تصاویر ---------- */
    .comic-reader-wrapper .comic-pages-container {
        padding: 5px 0 80px;
    }

    .comic-reader-wrapper .comic-page-image {
        width: 100%;
        height: auto;
    }

    /* ---------- ۵. Comic Reader - فوتر ---------- */
    .comic-reader-wrapper .reader-footer {
        padding: 8px 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }

    .comic-reader-wrapper .progress-bar-container {
        margin-bottom: 8px;
        height: 2px;
    }

    .comic-reader-wrapper .navigation-row {
        padding: 0 10px;
    }

    .comic-reader-wrapper .nav-buttons {
        gap: 8px;
        width: 100%;
        justify-content: space-between;
    }

    .comic-reader-wrapper .nav-chapter-btn {
        padding: 8px 10px;
        font-size: 0.8rem;
        border-radius: 30px;
        background: rgba(255, 255, 255, 0.12);
    }

    .comic-reader-wrapper .nav-chapter-btn svg {
        width: 16px;
        height: 16px;
    }

    .comic-reader-wrapper .nav-chapter-btn span {
        display: inline; /* نمایش متن */
    }

    .comic-reader-wrapper .page-indicator {
        font-size: 0.8rem;
        min-width: 70px;
        text-align: center;
        background: rgba(255, 255, 255, 0.1);
        padding: 6px 10px;
        border-radius: 20px;
    }

    /* ---------- ۶. حالت تمام‌صفحه در موبایل ---------- */
    .comic-reader-wrapper:fullscreen .reader-footer {
        padding-bottom: 15px;
    }

    .comic-reader-wrapper:fullscreen .nav-chapter-btn {
        padding: 10px 15px;
    }
}

/* برای موبایل‌های بسیار کوچک (عرض کمتر از 400px) */
@media (max-width: 400px) {
    .series-grid,
    .chapters-grid {
        gap: 8px;
    }

    .comic-reader-wrapper .reader-icon-btn {
        width: 32px;
        height: 32px;
    }

    .comic-reader-wrapper .nav-chapter-btn span {
        display: none; /* فقط آیکون */
    }

    .comic-reader-wrapper .nav-chapter-btn {
        padding: 10px;
        border-radius: 50%;
    }

    .comic-reader-wrapper .page-indicator {
        min-width: 60px;
        padding: 5px 8px;
    }
}

/* ===== Media Hub Section (New Design) ===== */
.media-hub-section {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-color);
}

.media-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.media-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 16 / 6; /* کارت‌های کشیده‌تر */
}

.media-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.media-card-link {
    display: block;
    width: 100%;
    height: 100%;
}

.media-card-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.media-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.media-card:hover .media-card-image img {
    transform: scale(1.08);
}

.media-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
    transition: background 0.3s ease;
}

.media-card:hover .media-card-overlay {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.5) 0%, rgba(0,0,0,0.8) 100%);
}

.media-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-lg);
    color: white;
    text-align: center;
}

.media-card-title {
    font-size: 2.2rem;
    margin-bottom: 5px;
    color: white;
    text-shadow: 0 4px 12px rgba(0,0,0,0.5);
    font-family: var(--font-primary);
    letter-spacing: -0.5px;
}

.media-card-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.media-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    color: white;
    margin-top: 5px;
}

.media-card:hover .media-card-arrow {
    background: var(--primary-color);
    transform: translateX(-5px);
}

.media-card-arrow svg {
    width: 20px;
    height: 20px;
}

/* ریسپانسیو */
@media (max-width: 991px) {
    .media-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
}

@media (max-width: 767px) {
    .media-cards-grid {
        grid-template-columns: 1fr;
    }
    .media-card {
        aspect-ratio: 16 / 7;
    }
    .media-card-title {
        font-size: 1.8rem;
    }
    .media-card-subtitle {
        font-size: 1rem;
    }
    .media-card-arrow {
        width: 40px;
        height: 40px;
    }
}

/* ===== Comic Reader Light Mode ===== */
.comic-reader-wrapper.light-mode {
    background-color: #f5f5f5;
    color: #333;
}

.comic-reader-wrapper.light-mode .reader-header,
.comic-reader-wrapper.light-mode .reader-footer {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(0, 0, 0, 0.1);
}

.comic-reader-wrapper.light-mode .back-button,
.comic-reader-wrapper.light-mode .chapter-main-title,
.comic-reader-wrapper.light-mode .reader-icon-btn {
    color: #333;
}

.comic-reader-wrapper.light-mode .reader-icon-btn {
    background: rgba(0, 0, 0, 0.05);
}

.comic-reader-wrapper.light-mode .reader-icon-btn:hover {
    background: var(--primary-color);
    color: white;
}

.comic-reader-wrapper.light-mode .progress-bar {
    background: var(--primary-color);
}

.comic-reader-wrapper.light-mode .nav-chapter-btn {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

.comic-reader-wrapper.light-mode .nav-chapter-btn:hover {
    background: var(--primary-color);
    color: white;
}

.comic-reader-wrapper.light-mode .page-indicator {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

.comic-reader-wrapper.light-mode .comic-pages-container {
    background: #f5f5f5;
}

/* ===== Profile Edit Page ===== */
.profile-edit-wrapper {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.profile-edit-form .form-row {
    margin-bottom: 20px;
}

.profile-edit-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-dark);
}

.profile-edit-form input[type="text"],
.profile-edit-form input[type="email"],
.profile-edit-form textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-light);
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
}

.profile-edit-form input:focus,
.profile-edit-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.1);
}

.avatar-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.current-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.avatar-upload {
    flex: 1;
}

.help-text {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 5px;
}

.alert {
    padding: 12px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.alert-error {
    background: #ffe6e6;
    color: #b71c1c;
    border-right: 4px solid #b71c1c;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-right: 4px solid #2e7d32;
}

.account-settings-wrapper {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.settings-section {
    margin-top: 30px;
}

.settings-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-dark);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.settings-form .form-row {
    margin-bottom: 20px;
}

.settings-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.settings-form input[type="password"] {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-light);
    color: var(--text-color);
    font-family: inherit;
}

/* ===== صفحه مجموعه‌های کمیک (طراحی ویژه) ===== */

/* بنر تمام‌عرض */
.comics-banner {
    position: relative;
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center;
    margin-bottom: var(--spacing-xl);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(138,43,226,0.5) 100%);
}

.banner-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    z-index: 2;
}

.banner-title {
    font-size: 4rem;
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    animation: fadeInUp 0.8s;
}

.banner-description {
    font-size: 1.5rem;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    animation: fadeInUp 0.8s 0.2s both;
}

/* آمار */
.comics-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 40px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-family: var(--font-primary);
    color: var(--primary-color);
    line-height: 1.2;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* فیلتر ژانر */
.genre-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.genre-btn {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
}

.genre-btn.active,
.genre-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* گرید مجموعه‌ها (کارت‌های شیشه‌ای) */
.series-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.series-card-enhanced {
    background: var(--bg-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    animation: fadeInUp 0.5s both;
    animation-delay: calc(var(--animation-order, 0) * 0.1s);
}

.series-card-enhanced:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.series-card-image {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.series-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.series-card-enhanced:hover .series-card-image img {
    transform: scale(1.1);
}

.series-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
    text-align: center;
}

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

.overlay-text {
    color: white;
    font-weight: bold;
    background: var(--primary-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
}

.series-card-content {
    padding: 20px;
}

.series-card-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-dark);
    text-align: center;
}

.series-card-meta {
    text-align: center;
}

.chapter-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.series-excerpt {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 10px 0 0;
}

/* انیمیشن */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ریسپانسیو */
@media (max-width: 767px) {
    .comics-banner {
        height: 250px;
    }
    .banner-title {
        font-size: 2.5rem;
    }
    .banner-description {
        font-size: 1.2rem;
    }
    .comics-stats {
        gap: 30px;
    }
    .stat-number {
        font-size: 2.2rem;
    }
    .series-grid-enhanced {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* ===== صفحه انتخاب قلمرو ===== */
.realm-selector-page {
    min-height: 100vh;
    background: #0a0a0a;
    padding: 0;
    margin: 0;
}

.realm-container {
    display: flex;
    min-height: 100vh;
}

.realm-side {
    flex: 1;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: flex 0.5s ease;
    overflow: hidden;
}

.realm-side:hover {
    flex: 1.2;
}

.realm-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.realm-hell .realm-overlay {
    background: linear-gradient(135deg, rgba(180, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.realm-heaven .realm-overlay {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.4) 0%, rgba(255, 255, 255, 0.2) 100%);
}

.realm-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 40px;
    max-width: 500px;
}

.realm-title {
    font-size: 5rem;
    font-family: var(--font-primary);
    text-shadow: 0 0 30px rgba(0,0,0,0.7);
    margin-bottom: 20px;
    animation: fadeInUp 0.8s;
}

.realm-desc {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.9;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    animation: fadeInUp 0.8s 0.2s both;
}

.realm-btn {
    background: transparent;
    border: 3px solid white;
    color: white;
    padding: 15px 40px;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    backdrop-filter: blur(5px);
}

.hell-btn:hover {
    background: #b00000;
    border-color: #b00000;
    box-shadow: 0 0 30px #b00000;
}

.heaven-btn:hover {
    background: #ffd700;
    border-color: #ffd700;
    color: #333;
    box-shadow: 0 0 30px #ffd700;
}

.realm-selected {
    display: inline-block;
    padding: 15px 30px;
    background: rgba(255,255,255,0.2);
    border-radius: 50px;
    font-size: 1.2rem;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255,255,255,0.5);
}

/* ریسپانسیو */
@media (max-width: 767px) {
    .realm-container {
        flex-direction: column;
    }
    .realm-title {
        font-size: 3rem;
    }
    .realm-desc {
        font-size: 1.2rem;
    }
    .realm-btn {
        padding: 12px 30px;
        font-size: 1.1rem;
    }
}

.realm-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    vertical-align: middle;
}

.realm-badge svg {
    display: block;
    width: 18px;
    height: 18px;
}

.panel-display-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.panel-dark-toggle .moon-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
}

.panel-dark-toggle .moon-icon img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    display: block;
}

/* ===== Color Palette Selection ===== */
.palette-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

.palette-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.3s;
    flex: 1;
    min-width: 120px;
}

.palette-option.active {
    border-color: var(--primary-color);
    background: rgba(108, 92, 231, 0.05);
}

.palette-option input[type="radio"] {
    display: none;
}

.palette-preview {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: var(--shadow);
    border: 2px solid white;
}

.classic-preview {
    background: linear-gradient(135deg, #8a2be2 0%, #228b22 100%);
}

.midnight-preview {
    background: linear-gradient(135deg, #4B0082 0%, #FFD700 100%);
}

.moonlight-preview {
    background: linear-gradient(135deg, #6C5CE7 0%, #00CEC9 100%);
}

.palette-name {
    font-weight: bold;
    color: var(--text-dark);
}

/* ===== صفحه اختصاصی یک مجموعه کمیک ===== */
.series-single-page {
    background-color: var(--bg-color);
}

/* بنر تمام‌عرض */
.series-banner {
    position: relative;
    width: 100%;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-color: var(--primary-dark);
    margin-bottom: var(--spacing-xl);
    display: flex;
    align-items: center;
}

.series-banner .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.series-banner .banner-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.series-display-title {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    animation: fadeInUp 0.8s;
    color: white;
}

.series-description {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    animation: fadeInUp 0.8s 0.2s both;
}

.series-description p {
    margin-bottom: 0;
}

.series-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s 0.4s both;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
}

/* لیست فصل‌ها */
.chapters-section {
    padding: var(--spacing-xl) 0;
}

.chapters-list-enhanced {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: var(--spacing-lg);
}

.chapter-item-enhanced {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.5s both;
    animation-delay: calc(var(--animation-order, 0) * 0.05s);
}

.chapter-item-enhanced:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.chapter-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.chapter-thumbnail {
    position: relative;
    width: 120px;
    height: 160px;
    flex-shrink: 0;
    overflow: hidden;
}

.chapter-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.chapter-item-enhanced:hover .chapter-cover-image {
    transform: scale(1.1);
}

.chapter-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    font-size: 2rem;
    font-weight: bold;
    font-family: var(--font-primary);
}

.chapter-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s;
    text-align: center;
}

.chapter-item-enhanced:hover .chapter-overlay {
    opacity: 1;
}

.read-label {
    color: white;
    font-weight: bold;
    background: var(--primary-color);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
}

.chapter-info {
    flex: 1;
    padding: 20px 25px;
}

.chapter-display-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.chapter-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.chapter-number {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
}

/* ریسپانسیو */
@media (max-width: 767px) {
    .series-display-title {
        font-size: 2.5rem;
    }
    .series-description {
        font-size: 1rem;
    }
    .chapter-link {
        flex-direction: column;
    }
    .chapter-thumbnail {
        width: 100%;
        height: 200px;
    }
    .chapter-info {
        padding: 15px;
        text-align: center;
    }
    .chapter-meta {
        justify-content: center;
    }
}

/* عنوان اختصاصی مجموعه */
.series-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s;
}

.series-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    flex-shrink: 0;
}

.series-display-title {
    font-size: 3.5rem;
    margin: 0;
    color: white;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    display: inline-block;
    padding: 0.5rem 2rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    line-height: 1.3;
}

/* واکنش‌گرایی */
@media (max-width: 767px) {
    .series-title-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .series-icon {
        width: 50px;
        height: 50px;
    }
    .series-display-title {
        font-size: 2.2rem;
        padding: 0.4rem 1.5rem;
    }
}

/* ===== آرشیو ویدیوها (Masonry Grid) ===== */
.video-masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.video-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--bg-light);
    grid-row-end: span var(--row-span, 1);
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* اندازه‌های مختلف برای کارت‌ها */
.video-card:nth-child(5n+1) { --row-span: 1.2; }
.video-card:nth-child(5n+2) { --row-span: 1.5; }
.video-card:nth-child(5n+3) { --row-span: 1; }
.video-card:nth-child(5n+4) { --row-span: 1.3; }
.video-card:nth-child(5n+5) { --row-span: 1.1; }

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: calc(56.25% * var(--row-span, 1)); /* 16:9 با ضریب */
    overflow: hidden;
    background-color: var(--bg-dark);
}

.video-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.play-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.video-title {
    padding: 15px;
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* ===== صفحه پخش ویدیو ===== */
.video-single-page {
    background: var(--bg-color);
    padding: var(--spacing-xl) 0;
}

.video-player-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-header {
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.video-header .video-title {
    padding: 0;
    margin-bottom: 10px;
    font-size: 2rem;
}

.video-meta {
    display: flex;
    gap: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.video-category {
    background: var(--primary-color);
    color: white;
    padding: 2px 12px;
    border-radius: 30px;
}

.video-player-container {
    background: black;
    aspect-ratio: 16 / 9;
}

.video-player {
    width: 100%;
    height: 100%;
    display: block;
}

.video-embed {
    width: 100%;
    height: 100%;
}

.video-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-content {
    padding: var(--spacing-lg);
}

.video-comments {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
}

/* ===== صفحه سینمایی ویدیو ===== */
.video-cinema-page {
    background: #0a0a0a;
    min-height: 100vh;
    color: white;
    position: relative;
}

/* دکمه برگشت شناور */
.cinema-back-btn {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s;
}

.cinema-back-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateX(-5px);
    color: white;
}

/* بخش پخش‌کننده تمام‌صفحه */
.cinema-player-section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

.cinema-player-wrapper {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(108, 92, 231, 0.3);
    background: #000;
}

.cinema-player-wrapper video,
.cinema-player-wrapper iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
    border: none;
}

.no-video-message {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    font-size: 1.5rem;
}

/* Overlay اطلاعات */
.cinema-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 40px 30px 25px;
    pointer-events: none;
}

.cinema-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.cinema-meta {
    display: flex;
    gap: 20px;
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
}

.cinema-category {
    background: var(--primary-color);
    padding: 3px 15px;
    border-radius: 30px;
    color: white;
}

/* کشوی محتوا */
.cinema-drawer {
    background: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 50px 0;
    margin-top: -20px;
}

.drawer-content {
    max-width: 900px;
    margin: 0 auto;
}

.video-description {
    color: #ddd;
    line-height: 1.9;
    font-size: 1.1rem;
    margin-bottom: 50px;
    padding: 30px;
    background: rgba(255,255,255,0.03);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}

/* نظرات شیشه‌ای */
.video-comments-glass {
    background: rgba(255,255,255,0.03);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.05);
}

.video-comments-glass .comments-title {
    color: white;
    border-bottom-color: rgba(255,255,255,0.2);
}

.video-comments-glass .comment-body {
    background: rgba(0,0,0,0.2);
    color: #ddd;
}

.video-comments-glass .comment-form input,
.video-comments-glass .comment-form textarea {
    background: rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.2);
    color: white;
}

/* ریسپانسیو */
@media (max-width: 767px) {
    .cinema-back-btn {
        top: 15px;
        right: 15px;
        padding: 8px 15px;
    }
    .cinema-back-btn span {
        display: none;
    }
    .cinema-title {
        font-size: 1.5rem;
    }
    .cinema-info-overlay {
        padding: 30px 20px 20px;
    }
    .cinema-player-section {
        padding: 60px 10px;
    }
    .video-description {
        padding: 20px;
    }
}

/* ===== صفحه سینمایی ویدیو (اصلاح‌شده کامل) ===== */
.video-cinema-page {
    background: #0a0a0c;
    min-height: 100vh;
    color: #fff;
}

/* دکمه برگشت شناور */
.cinema-back-btn {
    position: fixed;
    top: 100px;
    left: 30px;
    right: auto;
    z-index: 1020;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(20, 20, 30, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 22px;
    border-radius: 40px;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}
.cinema-back-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateX(-6px);
    color: #fff;
}
[dir="rtl"] .cinema-back-btn {
    left: auto;
    right: 30px;
}
[dir="rtl"] .cinema-back-btn:hover {
    transform: translateX(6px);
}

/* بخش پخش‌کننده */
.cinema-player-section {
    width: 100%;
    padding: 40px 20px 20px;
    display: flex;
    justify-content: center;
}
.cinema-player-wrapper {
    position: relative;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(108, 92, 231, 0.2);
    background: #000;
}
.cinema-player-wrapper video,
.cinema-player-wrapper iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
    border: none;
}
.no-video-message {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #1a1a2e, #12121c);
    color: #ccc;
    font-size: 1.5rem;
}

/* Overlay اطلاعات ویدیو */
.cinema-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    padding: 50px 30px 25px;
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 1;
}
.cinema-title {
    font-size: 2.4rem;
    margin-bottom: 8px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
    font-family: var(--font-primary);
}
.cinema-meta {
    display: flex;
    gap: 20px;
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
}
.cinema-category {
    background: var(--primary-color);
    padding: 3px 16px;
    border-radius: 30px;
    color: #fff;
}

/* کشوی دو ستونه */
.cinema-drawer {
    background: rgba(18, 18, 24, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 50px 0;
    margin-top: 20px;
}
.drawer-two-columns {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 50px;
}
.drawer-col-right { order: 2; }
.drawer-col-left { order: 1; }

.drawer-heading {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: #fff;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}

/* توضیحات ویدیو */
.video-description {
    color: #ddd;
    line-height: 1.9;
    font-size: 1.05rem;
    background: rgba(255,255,255,0.02);
    padding: 25px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 40px;
}
.video-description p:last-child { margin-bottom: 0; }

/* نظرات */
.video-comments-glass {
    background: rgba(255,255,255,0.02);
    border-radius: 20px;
    padding: 25px 30px;
    border: 1px solid rgba(255,255,255,0.05);
}

/* لینک‌های مرتبط */
.related-links-box {
    background: rgba(255,255,255,0.02);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255,255,255,0.05);
    position: sticky;
    top: 100px;
}
.related-links-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}
.related-links-list li { margin-bottom: 10px; }
.related-links-list a {
    color: #ddd;
    text-decoration: none;
    display: block;
    padding: 12px 18px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.related-links-list a:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateX(-6px);
}
.related-videos-title {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 20px;
}
.related-videos-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.related-video-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
}
.related-video-item:hover { color: var(--primary-color); }
.related-thumb {
    width: 70px;
    height: 45px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

/* ریسپانسیو */
@media (max-width: 900px) {
    .drawer-two-columns { grid-template-columns: 1fr; gap: 30px; }
    .drawer-col-left { order: 0; }
    .related-links-box { position: static; }
}
@media (max-width: 767px) {
    .cinema-back-btn {
        top: 80px;
        left: 15px;
        padding: 8px 18px;
    }
    [dir="rtl"] .cinema-back-btn { right: 15px; }
    .cinema-back-btn span { display: none; }
    .cinema-title { font-size: 1.6rem; }
    .cinema-info-overlay { padding: 30px 20px 20px; }
    .cinema-player-section { padding: 20px 10px; }
    .video-description, .video-comments-glass, .related-links-box { padding: 20px; }
}
@media (max-width: 480px) {
    .cinema-meta { flex-wrap: wrap; gap: 10px; }
}

/* ===== استایل کامنت‌های صفحه ویدیو (YouTube Style) ===== */
.comments-youtube-style .comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comments-youtube-style .comment {
    margin-bottom: 25px;
}

.comments-youtube-style .comment-body {
    display: flex;
    gap: 15px;
    background: transparent;
    padding: 0;
    border: none;
}

.comments-youtube-style .comment-author {
    flex-shrink: 0;
}

.comments-youtube-style .comment-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.2);
}

.comments-youtube-style .comment-content-wrap {
    flex: 1;
}

.comments-youtube-style .comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
    color: #aaa;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.comments-youtube-style .comment-author .fn {
    font-style: normal;
    font-weight: 600;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* نشان‌های بهشتی/جهنمی */
.comments-youtube-style .realm-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
    vertical-align: middle;
}

.comments-youtube-style .realm-badge svg {
    display: block;
    width: 14px;
    height: 14px;
}

.comments-youtube-style .comment-metadata a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
}

.comments-youtube-style .comment-metadata a:hover {
    color: var(--primary-color);
}

.comments-youtube-style .comment-content {
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 10px;
}

.comments-youtube-style .comment-content p {
    margin-bottom: 0;
}

.comments-youtube-style .reply {
    margin-top: 8px;
}

.comments-youtube-style .comment-reply-link {
    background: transparent;
    color: #aaa;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    text-decoration: none;
}

.comments-youtube-style .comment-reply-link:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

/* فرم ارسال دیدگاه */
.comments-youtube-style .comment-respond {
    margin-top: 40px;
    padding: 25px;
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}

.comments-youtube-style .comment-reply-title {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.comments-youtube-style .comment-form-comment textarea {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 15px;
    color: white;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

.comments-youtube-style .comment-form-comment textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.comments-youtube-style .form-submit .submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.comments-youtube-style .form-submit .submit:hover {
    background: var(--primary-dark);
}

/* تنظیمات RTL */
[dir="rtl"] .comments-youtube-style .comment-body {
    flex-direction: row;
}

[dir="rtl"] .comments-youtube-style .comment-meta {
    flex-direction: row;
}

/* ریسپانسیو */
@media (max-width: 767px) {
    .comments-youtube-style .comment-body {
        flex-direction: column;
        gap: 10px;
    }
    .comments-youtube-style .comment-author img {
        width: 40px;
        height: 40px;
    }
}

/* ===== پنل رأی‌دهی ===== */
.rating-panel {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(20,20,30,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--primary-color);
    border-radius: 16px;
    padding: 20px;
    color: white;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.rating-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rating-panel h3 {
    margin: 0 0 15px;
    font-size: 1.2rem;
    color: white;
}

.star-rating {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.star {
    font-size: 2rem;
    cursor: pointer;
    color: #ffd700;
    transition: transform 0.2s;
}

.star:hover {
    transform: scale(1.2);
}

.rating-message {
    color: #4caf50;
    margin: 10px 0;
    font-size: 0.9rem;
}

.current-rating {
    color: #aaa;
    font-size: 0.9rem;
    margin: 0;
}

/* ===== پنل نظرات کشویی ===== */
.comments-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10,10,15,0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1);
    max-height: 70vh;
    display: flex;
    flex-direction: column;
}

.comments-drawer.active {
    transform: translateY(0);
}

.comments-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.comments-drawer-header h3 {
    margin: 0;
    color: white;
    font-size: 1.3rem;
}

.close-drawer {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.comments-drawer-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* تنظیمات RTL */
[dir="rtl"] .rating-panel {
    right: auto;
    left: 20px;
}

/* دکمه باز کردن پنل */
.series-comments-toggle {
    text-align: center;
    margin: 40px 0;
}

/* پنل کشویی */
.comments-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10,10,15,0.98);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.4s;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}
.comments-drawer.active {
    transform: translateY(0);
}
.comments-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.drawer-tabs {
    display: flex;
    gap: 20px;
}
.tab-btn {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.2rem;
    padding: 5px 0;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}
.tab-btn.active {
    color: white;
    border-bottom-color: var(--primary-color);
}
.close-drawer {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}
.comments-drawer-content {
    padding: 20px;
    overflow-y: auto;
}
.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
}

/* استایل نقدها */
.critique-item {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
}
.critique-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.critique-ratings {
    display: flex;
    gap: 15px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* ===== استایل نقدها ===== */
.critique-item {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.critique-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.critique-header strong {
    color: white;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.critique-header .realm-badge {
    display: inline-flex;
    margin-left: 5px;
}

.critique-content {
    color: #ddd;
    line-height: 1.7;
    margin-bottom: 15px;
}

.critique-ratings {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.rating-box {
    background: #1e3a8a; /* آبی */
    color: white;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* حالت تاریک */
body.dark-mode .rating-box {
    background: #2563eb;
}

/* ===== صفحه آرشیو ویدیوها (نتفلیکس + یوتیوب) ===== */
.video-archive-page {
    background: var(--bg-color);
}

.video-archive-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 60px 0;
    margin-bottom: 40px;
    color: white;
}

.archive-heading {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: white;
}

.archive-subheading {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
}

/* نوار ژانرها (نتفلیکس) */
.genre-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.genre-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.genre-btn:hover {
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary-color);
}

.genre-btn.active {
    background: var(--primary-color);
    color: white;
}

/* ردیف‌های ویدیو */
.video-row {
    margin-bottom: 50px;
}

.row-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.video-row-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 15px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.video-row-scroll::-webkit-scrollbar {
    height: 6px;
}

.video-row-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

/* کارت ویدیو (یوتیوب استایل) */
.video-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    transition: transform 0.2s;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    background: var(--bg-dark);
}

.thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.video-info {
    padding: 0 5px;
}

.video-title {
    font-size: 1rem;
    margin-bottom: 6px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.video-author::after {
    content: "•";
    margin-left: 8px;
    opacity: 0.6;
}

/* ریسپانسیو */
@media (max-width: 767px) {
    .video-card {
        flex: 0 0 260px;
    }
    .archive-heading {
        font-size: 2.5rem;
    }
    .row-title {
        font-size: 1.5rem;
    }
    .genre-strip {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 15px;
    }
}

/* ===== صفحه آرشیو ویدیوها (نتفلیکس + یوتیوب) ===== */
.video-archive-page {
    background: var(--bg-color);
}

.video-archive-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 60px 0;
    margin-bottom: 40px;
    color: white;
}

.archive-heading {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: white;
}

.archive-subheading {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
}

/* نوار ژانرها (نتفلیکس) */
.genre-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.genre-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.genre-btn:hover {
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary-color);
}

.genre-btn.active {
    background: var(--primary-color);
    color: white;
}

/* ردیف‌های ویدیو */
.video-row {
    margin-bottom: 50px;
}

.row-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.video-row-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 15px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.video-row-scroll::-webkit-scrollbar {
    height: 6px;
}

.video-row-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

/* کارت ویدیو (یوتیوب استایل) */
.video-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    transition: transform 0.2s;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    background: var(--bg-dark);
}

.thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.video-info {
    padding: 0 5px;
}

.video-title {
    font-size: 1rem;
    margin-bottom: 6px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.video-author::after {
    content: "•";
    margin-left: 8px;
    opacity: 0.6;
}

/* ریسپانسیو */
@media (max-width: 767px) {
    .video-card {
        flex: 0 0 260px;
    }
    .archive-heading {
        font-size: 2.5rem;
    }
    .row-title {
        font-size: 1.5rem;
    }
    .genre-strip {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 15px;
    }
}

/* ===== صفحه آرشیو ویدیوها - طراحی سینمایی ===== */
.video-archive-cinema {
    background: var(--bg-color);
}

/* هدر سینمایی */
.cinema-header {
    position: relative;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    overflow: hidden;
}

.cinema-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(108,92,231,0.4) 100%);
    z-index: 1;
}

.cinema-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    animation: floatParticle 8s infinite ease-in-out;
}

@keyframes floatParticle {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-100px) translateX(50px); opacity: 0; }
}

.cinema-header-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
}

.cinema-title {
    font-size: 4rem;
    margin-bottom: 15px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
    animation: fadeInUp 0.8s;
}

.cinema-subtitle {
    font-size: 1.4rem;
    opacity: 0.95;
    margin-bottom: 0;
    animation: fadeInUp 0.8s 0.2s both;
}

.cinema-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    animation: fadeInUp 0.8s 0.4s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-family: var(--font-primary);
    display: block;
    line-height: 1.2;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* عناوین بخش‌ها */
.section-heading {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* گرید دسته‌بندی‌ها */
.categories-section {
    margin-bottom: 60px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.category-card {
    background: var(--bg-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.5s both;
    animation-delay: calc(var(--i, 0) * 0.05s);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.category-card-image {
    aspect-ratio: 1/1;
    overflow: hidden;
    background: linear-gradient(145deg, var(--primary-color), var(--primary-dark));
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.category-card:hover .category-card-image img {
    transform: scale(1.1);
}

.category-card-content {
    padding: 15px;
    text-align: center;
}

.category-card-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.category-card-count {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ردیف‌های ویدیو */
.video-section {
    margin-bottom: 60px;
}

.video-row-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.video-row-scroll::-webkit-scrollbar {
    height: 6px;
}

.video-row-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.video-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    transition: transform 0.2s;
    animation: fadeInUp 0.5s both;
    animation-delay: calc(var(--i, 0) * 0.03s);
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
    background: var(--bg-dark);
}

.thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.video-info {
    padding: 0 8px;
}

.video-title {
    font-size: 1rem;
    margin-bottom: 6px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.video-author::after {
    content: "•";
    margin-left: 8px;
    opacity: 0.6;
}

/* انیمیشن‌ها */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ریسپانسیو */
@media (max-width: 767px) {
    .cinema-title { font-size: 3rem; }
    .cinema-subtitle { font-size: 1.1rem; }
    .cinema-stats { gap: 30px; }
    .stat-number { font-size: 2.5rem; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .video-card { flex: 0 0 280px; }
    .section-heading { font-size: 1.8rem; }
}

/* ===== صفحه آرشیو ویدیوها (نتفلیکس + یوتیوب) ===== */
.video-archive-page {
    background: var(--bg-color);
}

.video-archive-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 60px 0;
    margin-bottom: 40px;
    color: white;
}

.archive-heading {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: white;
}

.archive-subheading {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
}

/* نوار ژانرها (نتفلیکس) */
.genre-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.genre-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.genre-btn:hover {
    background: rgba(108, 92, 231, 0.1);
    color: var(--primary-color);
}

.genre-btn.active {
    background: var(--primary-color);
    color: white;
}

/* ردیف‌های ویدیو */
.video-row {
    margin-bottom: 50px;
}

.row-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.video-row-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 15px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.video-row-scroll::-webkit-scrollbar {
    height: 6px;
}

.video-row-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

/* کارت ویدیو (یوتیوب استایل) */
.video-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    transition: transform 0.2s;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    background: var(--bg-dark);
}

.thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.video-info {
    padding: 0 5px;
}

.video-title {
    font-size: 1rem;
    margin-bottom: 6px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--text-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.video-author::after {
    content: "•";
    margin-left: 8px;
    opacity: 0.6;
}

/* ریسپانسیو */
@media (max-width: 767px) {
    .video-card {
        flex: 0 0 260px;
    }
    .archive-heading {
        font-size: 2.5rem;
    }
    .row-title {
        font-size: 1.5rem;
    }
    .genre-strip {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 15px;
    }
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
}
.thumb-placeholder::after {
    content: "🎬";
    font-size: 2rem;
    opacity: 0.7;
}

/* ===== Post Navigation ===== */
.post-navigation {
    margin: var(--spacing-xl) 0;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.nav-link-prev,
.nav-link-next {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}

.nav-link-prev:hover,
.nav-link-next:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.nav-text {
    display: flex;
    flex-direction: column;
}

.nav-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 4px;
}

.post-title {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 250px;
}

/* تنظیم RTL */
[dir="rtl"] .nav-link-prev svg {
    transform: rotate(180deg);
}
[dir="rtl"] .nav-link-next svg {
    transform: rotate(180deg);
}

/* ریسپانسیو */
@media (max-width: 767px) {
    .post-navigation .nav-links {
        flex-direction: column;
    }
    .nav-link-prev,
    .nav-link-next {
        justify-content: space-between;
    }
    .post-title {
        max-width: 100%;
    }
}

/* ===== Featured Posts Section ===== */
.featured-posts {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.03) 0%, rgba(108, 92, 231, 0.01) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.featured-grid .featured-card {
    border: 1px solid var(--primary-light);
}

.featured-grid .featured-card:hover {
    border-color: var(--primary-color);
}

/* حالت تاریک */
body.dark-mode .featured-posts {
    background: linear-gradient(135deg, rgba(165, 92, 255, 0.05) 0%, rgba(165, 92, 255, 0.02) 100%);
}

/* ===== Linked Items Box ===== */
.linked-items-box {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg);
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.linked-section {
    margin-bottom: var(--spacing-md);
}

.linked-section:last-child {
    margin-bottom: 0;
}

.linked-title {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
}

.linked-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.linked-list li {
    margin: 0;
}

.linked-list a {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg-color);
    border-radius: 30px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}

.linked-list a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

@media (max-width: 767px) {
    html {
        font-size: 14px; /* کاهش پایه برای تناسب بهتر */
    }
    :root {
        --spacing-md: 1rem;
        --spacing-lg: 1.25rem;
        --spacing-xl: 2rem;
    }
    body {
        padding-top: 60px; /* فضای کافی برای هدر */
    }
}

@media (max-width: 767px) {
    .header-content {
        flex-wrap: nowrap; /* جلوگیری از شکستن */
    }
    .logo .drn-logo {
        max-height: 40px !important;
        width: auto;
    }
    .logo-text {
        font-size: 1.5rem;
    }
    .main-nav {
        display: flex;
        align-items: center;
        gap: 10px; /* فاصله بین همبرگری و دکمه پروفایل */
    }
    .menu-toggle {
        display: flex;
    }
    .nav-list {
        width: 260px;
        padding: 70px 15px 20px;
    }
    .dark-mode-toggle,
    .profile-toggle {
        padding: 5px;
        margin: 0 5px;
    }
    .profile-name {
        display: none; /* فقط آواتار */
    }
}

@media (max-width: 767px) {
    .hero-slider,
    .hero {
        height: 350px;
        min-height: auto;
    }
    .slide-title {
        font-size: 2rem;
        padding: 0.4rem 1.2rem;
        margin-bottom: 0.8rem;
    }
    .slide-description {
        font-size: 1rem;
        padding: 0.3rem 1rem;
        margin-bottom: 1rem;
    }
    .slide-btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.5rem;
    }
}

@media (max-width: 767px) {
    .media-hub-grid,
    .featured-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    .media-hub-item,
    .media-card {
        aspect-ratio: 16 / 5; /* نسبت بهتر برای موبایل */
    }
    .media-hub-title {
        font-size: 1.5rem;
    }
    .media-hub-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 767px) {
    .posts-grid,
    .series-grid,
    .chapters-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    .post-card {
        flex-direction: column;
    }
    .post-image {
        height: 180px;
    }
    .post-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 767px) {
    .series-grid,
    .chapters-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    .series-card .series-title,
    .chapter-card .chapter-title {
        font-size: 0.9rem;
    }
    .series-cover,
    .chapter-cover {
        aspect-ratio: 2/3;
    }
}

@media (max-width: 767px) {
    .video-row-scroll {
        gap: 12px;
        padding-bottom: 10px;
    }
    .video-card {
        flex: 0 0 260px;
    }
    .archive-heading {
        font-size: 2.5rem;
    }
    .row-title {
        font-size: 1.5rem;
    }
    .genre-strip {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 15px;
        gap: 8px;
    }
    .genre-btn {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 767px) {
    .reader-header-container {
        flex-wrap: wrap;
        padding: 5px 12px;
    }
    .back-button span {
        display: none; /* فقط آیکون */
    }
    .reader-controls-top {
        gap: 2px;
    }
    .reader-icon-btn {
        width: 36px;
        height: 36px;
    }
    .reader-footer {
        padding: 8px 0;
    }
    .nav-chapter-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    .page-indicator {
        font-size: 0.9rem;
    }
}

/* ===== رفع بیرون‌زدن پنل پروفایل در موبایل ===== */
@media (max-width: 767px) {
    .profile-panel {
        position: fixed;
        top: 70px;
        left: 10px;            /* به جای right: 10px از left استفاده می‌کنیم */
        right: auto;
        width: 280px;
        max-width: calc(100vw - 20px);
        z-index: 1050;
    }
}

/* ===== تضمین گرد بودن تمام تصاویر پروفایل ===== */
img.avatar,
.avatar img,
.profile-avatar,
.panel-avatar,
.comment-author img,
img[class*="avatar"] {
    border-radius: 50% !important;
    object-fit: cover;
}

/* ===== منوی موبایل (Glassmorphism + Animation) ===== */
@media (max-width: 767px) {
    .nav-list {
        /* حذف استایل‌های قبلی و جایگزینی با طراحی جدید */
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(30, 10, 50, 0.75);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 90px 25px 30px;
        flex-direction: column;
        transition: right 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
        z-index: 999;
        border-left: 1px solid rgba(255, 255, 255, 0.15);
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.3);
    }

    .nav-list.active {
        right: 0;
    }

    /* لینک‌های منو */
    .nav-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 18px;
        margin: 6px 0;
        border-radius: 12px;
        font-size: 1.15rem;
        font-weight: 500;
        color: white;
        background: rgba(255, 255, 255, 0.05);
        transition: background 0.3s, transform 0.2s;
        position: relative;
        overflow: hidden;
    }

    .nav-link::before {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        width: 3px;
        background: var(--primary-color);
        border-radius: 0 3px 3px 0;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .nav-link:hover,
    .nav-link.active {
        background: rgba(255, 255, 255, 0.15);
        transform: translateX(-5px);
    }

    .nav-link:hover::before,
    .nav-link.active::before {
        opacity: 1;
    }

    /* آیکون‌های زیبا برای آیتم‌های منو (اختیاری با CSS یا در HTML) */
    .nav-link[title]::after {
        /* اینجا می‌توانید با توجه به عنوان هر لینک، آیکون بگذارید */
    }

    /* دکمه بستن منو (اختیاری - با JS اضافه کنید) */
    .menu-close-btn {
        display: block;
        position: absolute;
        top: 20px;
        left: 20px;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: white;
        font-size: 28px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
        transition: background 0.2s;
    }
    .menu-close-btn:hover {
        background: var(--primary-color);
    }

    /* بهبود دکمه همبرگری */
    .menu-toggle {
        position: relative;
        z-index: 1001;
    }
    .menu-toggle span {
        background-color: white;
        transition: transform 0.3s, opacity 0.3s;
    }
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* ===== بهبود عرض صفحه نوشته در موبایل ===== */
@media (max-width: 767px) {
    /* کاهش padding کانتینر اصلی */
    .container {
        padding: 0 10px;
    }

    /* حذف گرید دوستونه و سایدبار */
    .single-post-header.two-columns {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-md);
    }

    /* تصویر شاخص عرض کامل بگیرد */
    .post-thumbnail-single {
        grid-column: 1 !important;
        max-width: 100%;
    }

    /* محتوای نوشته عریض‌تر */
    .single-post {
        padding: var(--spacing-md) 0 !important;
        margin: var(--spacing-md) 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .post-content-single {
        padding: 0 5px;
        font-size: 1rem;
        line-height: 1.8;
    }

    /* تصاویر داخل محتوا نمایش کامل داده شوند */
    .post-content-single img,
    .post-content-single figure {
        max-width: 100% !important;
        height: auto;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* اگر بلاک‌های گوتنبرگ استفاده می‌کنید، عرض کامل */
    .wp-block-image,
    .wp-block-embed,
    .wp-block-table {
        width: 100% !important;
    }
}

/* ===== رفع مشکل دارک مود صفحه پست در موبایل ===== */
@media (max-width: 767px) {
    /* پس‌زمینه کارت پست را در موبایل برگردانیم */
    .single-post {
        background: var(--bg-light) !important;
        padding: var(--spacing-md) !important;
        border-radius: var(--radius-lg);
        margin: var(--spacing-md) 0;
        box-shadow: var(--shadow);
    }

    /* اطمینان از تیره شدن در دارک مود */
    body.dark-mode .single-post {
        background: var(--bg-light) !important; /* در dark mode این متغیر تیره است */
        color: var(--text-color);
    }

    /* رنگ متن و تیترها */
    body.dark-mode .single-post h1,
    body.dark-mode .single-post h2,
    body.dark-mode .single-post h3,
    body.dark-mode .single-post h4,
    body.dark-mode .single-post h5,
    body.dark-mode .single-post h6,
    body.dark-mode .single-post p,
    body.dark-mode .single-post li,
    body.dark-mode .single-post .post-content-single {
        color: var(--text-color);
    }

    /* لینک‌های داخل محتوا */
    body.dark-mode .single-post a {
        color: var(--primary-color);
    }
}

/* ===== Comic Reader Pro ===== */
.comic-reader-pro {
    --reader-bg: #0a0a0a;
    --reader-text: #fff;
    background: var(--reader-bg);
    color: var(--reader-text);
    height: 100vh; display: flex; flex-direction: column;
    position: relative; overflow: hidden;
}
.comic-reader-pro.light-mode { --reader-bg: #f5f5f5; --reader-text: #111; }
.reader-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 20px; background: rgba(0,0,0,0.85); z-index: 10; gap: 15px;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.topbar-right { display: flex; gap: 5px; }
.ctrl-btn { background: none; border: none; color: var(--reader-text); cursor: pointer; padding: 8px; border-radius: 8px; transition: .2s; }
.ctrl-btn:hover, .ctrl-btn.active { background: rgba(255,255,255,0.15); }
.reader-bg-layer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; opacity: 0; z-index: 0; transition: opacity .5s;
}
.reader-content { flex: 1; overflow-y: auto; position: relative; z-index: 1; padding: 10px 0; }
.comic-page-item { display: flex; justify-content: center; margin-bottom: 2px; }
.comic-img { max-width: 100%; height: auto; cursor: zoom-in; }
.reader-footer { background: rgba(0,0,0,0.9); padding: 10px 20px; z-index: 10; }
.footer-progress { margin-bottom: 10px; }
.progress-bg { height: 4px; background: rgba(255,255,255,0.2); border-radius: 2px; }
.progress-fill { height: 100%; background: var(--primary-color); border-radius: 2px; transition: width .3s; }
.footer-controls { display: flex; align-items: center; justify-content: space-between; }
.nav-btn { background: rgba(255,255,255,0.1); border: none; color: var(--reader-text); padding: 10px 15px; border-radius: 8px; cursor: pointer; transition: .2s; }
.nav-btn:hover { background: var(--primary-color); }
.page-indicator-footer { font-weight: bold; }
.comments-drawer {
    position: fixed; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.95);
    transform: translateY(100%); transition: .4s; z-index: 200; max-height: 70vh;
    display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,0.1);
}
.comments-drawer.active { transform: translateY(0); }
.comments-drawer-header { display: flex; justify-content: space-between; padding: 15px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.comments-drawer-content { padding: 15px; overflow-y: auto; }
.comments-toggle-btn {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 150;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.2s, background 0.2s;
}
.comments-toggle-btn:hover {
    transform: scale(1.1);
    background: var(--primary-dark);
}


/* ===== Rating Panel (Final Clean) ===== */
.rating-panel {
    position: fixed !important;
    top: 80px;
    right: 20px;
    z-index: 99999 !important;
    background: var(--bg-light);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    color: var(--text-color);
    min-width: 260px;
    backdrop-filter: blur(10px);
    }

.star-rating {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 10px 0;
}

.star {
    font-size: 2rem;
    cursor: pointer;
    color: #ffc107;
    transition: transform 0.2s;
    user-select: none;
}

.star:hover {
    transform: scale(1.2);
}

.star[style*="not-allowed"] {
    cursor: not-allowed;
    opacity: 0.7;
}

.rating-message {
    text-align: center;
    color: var(--text-light);
    margin: 8px 0;
    font-size: 0.9rem;
}

.current-rating {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 8px;
}

.reset-rating-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 6px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
}

[dir="rtl"] .rating-panel {
    right: auto;
    left: 20px;
}


/* ===== استایل پاسخ‌های تو در تو (Threaded Comments) ===== */
.comment-list .children {
    margin-right: 30px;           /* تورفتگی نسبت به نظر والد */
    border-right: 2px solid var(--primary-color);  /* خط رنگی سمت راست */
    padding-right: 15px;
    position: relative;
}

/* اختیاری: یک دایره رنگی بالای خط */
.comment-list .children::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -6px;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* در حالت تاریک */
body.dark-mode .comment-list .children {
    border-right-color: var(--primary-light);
}
body.dark-mode .comment-list .children::before {
    background: var(--primary-light);
}

/* ===== استیکر کامنت ===== */
/* دکمهٔ استیکر */
.sticker-btn {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    color: var(--text-color);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s, color 0.2s;
}
.sticker-btn:hover {
    background: var(--primary-color);
    color: white;
}
.sticker-popup {
    position: absolute;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    z-index: 1000;
    width: 320px;
    margin-top: 5px;
}
.sticker-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    font-weight: bold;
}
.sticker-popup-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-color);
}
.sticker-popup-body {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
}
.sticker-option {
    width: 60px;
    height: 60px;
    object-fit: contain;
    cursor: pointer;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.sticker-option:hover {
    border-color: var(--primary-color);
}
.remove-sticker-btn {
    display: block;
    width: 100%;
    padding: 8px;
    border: none;
    background: #e74c3c;
    color: white;
    border-radius: 0 0 12px 12px;
    cursor: pointer;
}
#selected-sticker-preview img {
    max-height: 80px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.comment-sticker-wrapper {
    position: relative;
    display: inline-block;
}

.comment-sticker-only {
    text-align: center;
    padding: 10px 0;
}
.comment-sticker-only img {
    max-width: 150px;
}

/* ============================================
   صفحه پروفایل عمومی (New Professional Design)
============================================ */
.drn-profile-page {
    padding-top: 24px;
}

/* کاور گرادینت */
.drn-profile-cover {
    position: relative;
    background: linear-gradient(135deg, #2b2353 0%, #5e3c8a 100%);
    border-radius: var(--radius-xl);
    padding: 50px 40px 30px;
    margin-bottom: 30px;
    color: #fff;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
}

.cover-gradient {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.drn-profile-header {
    display: flex;
    align-items: center;
    gap: 28px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.drn-profile-avatar-wrapper {
    flex-shrink: 0;
    position: relative;
}

.drn-profile-avatar-img {
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.9);
    width: 140px;
    height: 140px;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.realm-badge.large-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: var(--bg-light);
    border-radius: 50%;
    padding: 3px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 3;
    line-height: 0;
}

.drn-profile-info {
    flex: 1;
    min-width: 200px;
}

.drn-profile-name {
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.drn-profile-bio {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 18px;
    max-width: 600px;
}

.drn-profile-stats {
    display: flex;
    gap: 24px;
    margin-bottom: 18px;
    font-size: 1.1rem;
}

.stat {
    background: rgba(255,255,255,0.15);
    padding: 6px 16px;
    border-radius: 40px;
    color: #fff;
    backdrop-filter: blur(4px);
}

/* دکمه ویرایش */
.drn-profile-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    padding: 10px 22px;
    border-radius: 40px;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
    margin-left: auto;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}

.drn-profile-edit-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* آیکن‌های اجتماعی */
.drn-profile-social {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.drn-profile-social .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    color: #fff;
    transition: background 0.2s;
}

.drn-profile-social .social-icon:hover {
    background: var(--primary-color);
}

/* تب‌ها */
.drn-profile-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 28px;
    overflow-x: auto;
    gap: 10px;
}

.drn-profile-tabs .tab-btn {
    background: none;
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    white-space: nowrap;
    border-radius: 8px 8px 0 0;
}

.drn-profile-tabs .tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: var(--bg-light);
}

/* محتوای تب */
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* کارت دیدگاه */
.drn-comment-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    border-right: 4px solid var(--primary-color);
}

.drn-comment-card .comment-text {
    font-style: italic;
    margin-bottom: 10px;
    color: var(--text-color);
}

.drn-comment-card .comment-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-light);
    flex-wrap: wrap;
    gap: 8px;
}

.comment-post-link {
    font-weight: bold;
    color: var(--primary-color);
}

.no-activity {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

/* واکنش‌گرایی */
@media (max-width: 768px) {
    .drn-profile-header {
        flex-direction: column;
        text-align: center;
    }
    .drn-profile-name {
        font-size: 2rem;
    }
    .drn-profile-avatar-img {
        width: 110px;
        height: 110px;
    }
    .drn-profile-stats {
        justify-content: center;
    }
    .drn-profile-edit-btn {
        margin: 20px auto 0;
    }
}

.comment-author-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}
.comment-author-link:hover {
    color: var(--primary-color);
}

/* ===== زنگوله اعلان‌ها ===== */
.notifications-bell { position: relative; margin-left: 10px; }
.bell-toggle {
    background: none; border: none; color: inherit; cursor: pointer;
    padding: 8px; position: relative;
}
.bell-badge {
    position: absolute; top: 2px; right: 2px;
    background: #ff4757; color: #fff; border-radius: 50%;
    width: 18px; height: 18px; font-size: 11px; line-height: 18px;
    text-align: center; font-weight: bold;
}
.notifications-panel {
    position: absolute;
    top: 100%;
    right: auto;          /* ← این مهم است */
    left: 0;             /* پنل از سمت چپ دکمه باز شود */
    transform: translateX(-20px); /* کمی فاصله از لبه */
    width: 340px;
    max-width: calc(100vw - 40px); /* در موبایل از صفحه بیرون نزند */
    background: var(--bg-light);
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border-color);
    display: none;
    z-index: 1000;
}

/* واکنش‌گرایی برای صفحه‌های خیلی کوچک */
@media (max-width: 480px) {
    .notifications-panel {
        width: 280px;
        left: 50%;
        transform: translateX(-50%);
    }
}
.notifications-panel .panel-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px; border-bottom: 1px solid var(--border-color);
    font-weight: bold;
}
.mark-all-read { background: none; border: none; color: var(--primary-color); cursor: pointer; }
.panel-body { max-height: 300px; overflow-y: auto; padding: 10px 0; }
.notification-item {
    padding: 10px 15px; border-bottom: 1px solid var(--border-color);
    cursor: pointer; transition: background 0.2s;
}
.notification-item:hover { background: var(--bg-color); }
.notification-item.unread { background: rgba(108, 92, 231, 0.05); }
.notification-item .notif-icon { margin-right: 5px; }
.notification-item .notif-time { font-size: 0.8rem; color: var(--text-light); }
.notification-item a { color: var(--text-dark); text-decoration: none; }


/* ===== بخش نقد و بررسی‌ها (صفحه اصلی) ===== */
.featured-reviews {
    padding: var(--spacing-xl) 0;
    background: var(--bg-color);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.review-card {
    background: var(--bg-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.review-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.review-card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.review-card-image .review-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-score-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-color);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: bold;
    font-family: var(--font-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.review-card-content {
    padding: var(--spacing-lg);
}

.review-card-title {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.review-card-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== صفحه تکی نقد (single-dnr_review.php) ===== */
.single-review-header {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.review-featured-image {
    flex: 0 0 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.review-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.review-header-info {
    flex: 1;
    min-width: 280px;
}

.review-score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    font-family: var(--font-primary);
    margin-bottom: 15px;
}

.review-details-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.review-details-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color);
}

.review-details-table td:first-child {
    font-weight: bold;
    color: var(--primary-color);
    width: 40%;
}

.review-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.pros-list, .cons-list {
    list-style: none;
    padding: 0;
}

.pros-list li, .cons-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.pros-list li::before {
    content: '✔';
    color: #27ae60;
    margin-left: 8px;
}

.cons-list li::before {
    content: '✘';
    color: #e74c3c;
    margin-left: 8px;
}

/* ============================================
   نقد و بررسی (Masterpiece Single)
============================================ */
.review-hero {
    position: relative;
    height: 500px;            /* ارتفاع دلخواه */
    overflow: hidden;
    background-color: #1a1a2e;
    margin-bottom: 30px;
}

.review-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.review-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;        /* پوشش کامل بدون تکرار */
    display: block;
}

.review-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent 80%);
    padding: 60px 0 30px;
    z-index: 2;
}

/* واکنش‌گرایی */
@media (max-width: 768px) {
    .review-hero { height: 350px; }
}

.review-title {
    font-size: 3rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.review-meta span {
    background: rgba(255,255,255,0.2);
    padding: 4px 14px;
    border-radius: 20px;
    color: #fff;
    margin-right: 10px;
}

.score-circle.large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-color) var(--score), #e0e0e0 0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px 0;
    position: relative;
}
.score-number {
    background: #fff;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.review-pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pros-card li, .cons-card li {
    padding: 5px 0;
    border-bottom: 1px dashed var(--border-color);
}
.pros-card li::before { content: '✔️ '; color: #27ae60; }
.cons-card li::before { content: '❌ '; color: #e74c3c; }

.review-helpful {
    text-align: center;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    margin: 30px 0;
}

.helpful-btn {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    margin: 0 5px;
    transition: 0.2s;
}
.helpful-btn:hover { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

/* واکنش‌گرایی */
@media (max-width: 768px) {
    .review-title { font-size: 2rem; }
    .review-pros-cons-grid { grid-template-columns: 1fr; }
}

.review-specs table {
    width: 100%;
    border-collapse: collapse;
}
.review-specs td {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
}
.review-specs td:first-child {
    font-weight: bold;
    color: var(--primary-color);
    width: 40%;
}

.helpful-btn svg {
    vertical-align: middle;
    margin-right: 5px;
}

.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}
.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.review-comments {
    margin-bottom: 60px; /* فاصله تا فوتر */
}
.footer {
    margin-top: 60px; /* فضای اضافی */
}

.review-content {
    font-size: 1.15rem;       /* کمی بزرگ‌تر از متن عادی */
    line-height: 2;           /* فاصله خطوط زیاد برای خوانایی */
    color: var(--text-color);
    max-width: 800px;         /* عرض محدود برای تمرکز */
    margin: 0 auto 40px;      /* وسط‌چین */
    padding: 0 15px;
}

.review-content p {
    margin-bottom: 1.5em;
}

.review-content h2,
.review-content h3,
.review-content h4 {
    color: var(--primary-color);
    margin-top: 2em;
    margin-bottom: 0.8em;
}

.review-content img {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin: 20px 0;
}

.review-content blockquote {
    border-right: 4px solid var(--primary-color);
    padding-right: 20px;
    color: var(--text-light);
    font-style: italic;
    margin: 20px 0;
}

/* ===== سرگرمی‌ها (Entertainment) ===== */
.entertainment-page {
    background: #0a0a0a;
    color: #fff;
    min-height: 100vh;
}

.mini-games-masonry {
    padding: 60px 20px;
}

.masonry-grid {
    columns: 3;
    column-gap: 20px;
}

.game-card {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s;
    cursor: pointer;
}

.game-card:hover {
    transform: scale(1.02);
}

.game-card-inner {
    display: block;
    text-decoration: none;
    color: #fff;
}

.game-card-inner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.game-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 20px;
}

.game-overlay h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.game-overlay span {
    background: var(--primary-color);
    padding: 4px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.no-games {
    text-align: center;
    padding: 100px 20px;
    color: #ccc;
    font-size: 1.2rem;
}

/* واکنش‌گرایی */
@media (max-width: 768px) {
    .masonry-grid {
        columns: 2;
    }
}

@media (max-width: 480px) {
    .masonry-grid {
        columns: 1;
    }
}

/* ============================================
   واکنش‌گرایی موبایل – صفحه اصلی
   (max-width: 767px)
============================================ */
@media (max-width: 767px) {

    /* ---------- ۱. کارت‌های پست (شبکه‌ای) ---------- */
    .posts-grid {
        grid-template-columns: repeat(2, 1fr) !important;  /* دو ستونه */
        gap: 12px;                                          /* فاصله کمتر */
    }

    /* هر کارت پست تقریباً مربعی شود */
    .post-card {
        display: flex;
        flex-direction: column;
        border-radius: var(--radius-md);
    }

    .post-image {
        height: auto;                    /* ارتفاع خودکار */
        aspect-ratio: 1 / 1;            /* مربع */
        overflow: hidden;
    }

    .post-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .post-content {
        padding: 10px;
        flex-grow: 1;
    }

    .post-title {
        font-size: 0.95rem;
        margin-bottom: 4px;
        line-height: 1.3;
    }

    .post-excerpt {
        font-size: 0.8rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;           /* حداکثر ۲ خط */
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 6px;
    }

    .post-meta {
        font-size: 0.7rem;
        margin-bottom: 4px;
    }

    .post-link {
        font-size: 0.85rem;
    }

    /* کارت‌های ویژه (featured) هم همین قوانین را داشته باشند */
    .featured-grid .post-card {
        /* از قوانین بالا ارث‌بری می‌کند */
    }

    /* شبکهٔ نقدها (reviews-grid) هم دو ستونه */
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .review-card {
        /* کارت نقد هم مربعی */
    }

    .review-card-image {
        aspect-ratio: 1 / 1;
    }

    .review-card-image .review-thumb {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .review-card-content {
        padding: 10px;
    }

    .review-card-title {
        font-size: 0.95rem;
    }

    .review-card-excerpt {
        font-size: 0.8rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .review-score-badge {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        top: 8px;
        left: 8px;
    }

    /* ---------- ۲. مدیا هاب (دو ستونه با کارت‌های کوچک) ---------- */
    .media-hub-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .media-hub-item {
        aspect-ratio: 16 / 9;           /* مستطیل کشیده‌تر */
        border-radius: var(--radius-lg);
    }

    .media-hub-title {
        font-size: 1.4rem;              /* کوچکتر از نسخه دسکتاپ */
    }

    .media-hub-subtitle {
        font-size: 0.85rem;
    }

    .media-hub-overlay {
        padding: 15px 10px 10px;
    }

    /* ---------- ۳. اسلایدر Hero ---------- */
    .hero-slider {
        height: 280px;                   /* ارتفاع کمتر */
    }

    .slide-title {
        font-size: 1.6rem;               /* کوچکتر */
        padding: 0.4rem 1.2rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
        word-wrap: break-word;           /* شکستن خط در صورت نیاز */
        overflow-wrap: break-word;
        white-space: normal;             /* اجازه شکستن */
    }

    .slide-description {
        font-size: 0.9rem;
        padding: 0.3rem 1rem;
        margin-bottom: 1rem;
        line-height: 1.4;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

    .slide-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    /* دکمه‌های ناوبری Swiper */
    .hero-slider .swiper-button-next,
    .hero-slider .swiper-button-prev {
        width: 36px;
        height: 36px;
    }

    .hero-slider .swiper-button-next:after,
    .hero-slider .swiper-button-prev:after {
        font-size: 18px;
    }

    /* Hero استاتیک (Fallback) */
    .hero {
        min-height: 280px;
        padding: 60px 0;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-description {
        font-size: 1rem;
    }
}

/* ============================================
   واکنش‌گرایی و اصلاح فاصله‌ها – صفحه ویدیو
============================================ */

/* فاصلهٔ مناسب بالای بخش دیدگاه‌ها */
.video-comments-section {
    margin-top: 60px;            /* فاصله از کشوی محتوا */
    padding-bottom: 40px;
}

/* کشوی محتوا – فاصله از پلیر */
.cinema-drawer {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* نمایش تک‌ستونه در موبایل */
@media (max-width: 900px) {
    .drawer-two-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .drawer-col-left {
        order: 0;
    }

    .related-links-box {
        position: static;
    }
}

/* موبایل‌های کوچک‌تر */
@media (max-width: 767px) {
    /* کاهش فاصله پلیر تا کشو */
    .cinema-player-section {
        padding-bottom: 10px;
    }

    .cinema-drawer {
        padding-top: 20px;
    }

    .video-comments-section {
        margin-top: 40px;
    }

    .drawer-two-columns {
        gap: 20px;
    }

    .drawer-heading {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    /* دکمه برگشت */
    .cinema-back-btn {
        top: 80px;
        left: 15px;
        padding: 8px 18px;
    }
    [dir="rtl"] .cinema-back-btn {
        right: 15px;
        left: auto;
    }
    .cinema-back-btn span {
        display: none;
    }
}

/* رفع چسبیدن عنوان دیدگاه‌ها به بالا (عنوان تولیدی توسط comments_template) */
.comments-youtube-style .comments-title {
    margin-top: 0;              /* فاصله داخلی اضافه نمی‌خواهد */
    margin-bottom: 30px;
    font-size: 1.5rem;
    color: #fff;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    padding-bottom: 10px;
}

/* اگر خواستید فاصلهٔ بیشتری در دسکتاپ هم داشته باشید */
@media (min-width: 768px) {
    .video-comments-section {
        margin-top: 80px;
    }
}

/* ============================================
   اصلاح نهایی لیست موبایل – نسخه با قدرت بالا
============================================ */
@media (max-width: 767px) {

    /* هدف‌گیری فقط صفحه آرشیو با شناسه parent */
    body .site-main .posts-grid.archive-grid.list-view {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    body .site-main .posts-grid.archive-grid.list-view .post-card {
        display: flex !important;
        flex-direction: row !important;
        gap: 12px !important;
        height: auto !important;
        padding: 0 !important;
        background: var(--bg-light);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow);
        overflow: hidden;
        /* حذف هر گونه گرید ستونی */
        grid-template-columns: none !important;
    }

    body .site-main .posts-grid.archive-grid.list-view .post-image {
        width: 100px !important;
        height: 100px !important;
        flex-shrink: 0;
        aspect-ratio: auto !important;
    }

    body .site-main .posts-grid.archive-grid.list-view .post-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    body .site-main .posts-grid.archive-grid.list-view .post-content {
        flex: 1;
        padding: 8px 10px 8px 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center;
    }

    body .site-main .posts-grid.archive-grid.list-view .post-title {
        font-size: 0.9rem !important;
        margin-bottom: 4px !important;
        line-height: 1.3 !important;
    }

    body .site-main .posts-grid.archive-grid.list-view .post-excerpt {
        display: none !important;
    }

    body .site-main .posts-grid.archive-grid.list-view .post-meta {
        font-size: 0.7rem !important;
        margin-bottom: 0 !important;
        flex-wrap: wrap;
        gap: 4px;
    }

    body .site-main .posts-grid.archive-grid.list-view .post-link {
        font-size: 0.8rem !important;
        margin-top: 4px !important;
    }
}

/* برای نمایش‌های خیلی کوچک */
@media (max-width: 480px) {
    body .site-main .posts-grid.archive-grid.list-view .post-image {
        width: 80px !important;
        height: 80px !important;
    }
    body .site-main .posts-grid.archive-grid.list-view .post-title {
        font-size: 0.85rem !important;
    }
}

/* ===== صفحه آرشیو ما (کارت‌های تمام‌تصویر) ===== */
.archive-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.archive-card-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--bg-dark);
    aspect-ratio: 16 / 9; /* نسبت ۱۶:۹ برای تصاویر – می‌توانید به ۱/۱ (مربع) هم تغییر دهید */
}

.archive-card-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.archive-card-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
}

.archive-card-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.archive-card-item:hover .card-thumb {
    transform: scale(1.08);
}

.placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    font-size: 1rem;
    height: 100%;
    width: 100%;
}

.archive-card-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 20px 15px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    color: white;
    font-size: 1.3rem;
    font-family: var(--font-primary);
    text-align: center;
    transition: all 0.3s ease;
    pointer-events: none; /* جلوگیری از تداخل با کلیک روی لینک */
}

.archive-card-item:hover .archive-card-title-overlay {
    padding-bottom: 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 100%);
}

.no-cards-message {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    margin: 40px 0;
}

/* واکنش‌گرایی موبایل */
@media (max-width: 767px) {
    .archive-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .archive-card-title-overlay {
        font-size: 1rem;
        padding: 12px 10px 10px;
    }
}

/* استایل اختصاصی عنوان صفحه آرشیو ما */
.page-template-page-archive-us .page-header {
    margin-top: 40px; /* فاصله از هدر در موبایل */
    padding: 20px 0;
    text-align: center;
}

.page-template-page-archive-us .page-title {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

/* خط زیرین خاص با افکت درخشش */
.page-template-page-archive-us .page-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--accent-color), transparent);
    border-radius: 4px;
}

/* ریسپانسیو موبایل */
@media (max-width: 768px) {
    .page-template-page-archive-us .page-header {
        margin-top: 30px; /* فاصله بیشتر از هدر */
        padding: 30px 15px;
    }
    
    .page-template-page-archive-us .page-title {
        font-size: 2.2rem;
    }
    
    .page-template-page-archive-us .page-title::after {
        width: 60px;
        bottom: -8px;
    }
}

.page-template-page-archive-us .page-header {
    background: transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    margin: 30px 20px;
    padding: 30px 20px;
    border: 1px solid rgba(108, 92, 231, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.page-template-page-archive-us .page-title {
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(120deg, #ffffff, #a29bfe);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 10px rgba(108, 92, 231, 0.3);
}