



/* ==========================================
   SERIES DOWNLOADS STYLES
========================================== */

/* کانتینر اصلی دانلود سریال */
.series-downloads {
    margin-top: 20px;
}

/* هر فصل */
.row_season_n_dl {
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

/* عنوان فصل */
.title_series_row_n {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.title_series_row_n:hover {
    background: rgba(255, 255, 255, 0.08);
}

.title_series_row_n .right_side {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.season_name {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.label_status {
    font-size: 12px;
    padding: 4px 12px;
    background: rgba(34, 197, 94, 0.15);
    border-radius: 20px;
    color: #22c55e;
}

.arrow_holder {
    transition: transform 0.3s ease;
}

.title_series_row_n.active .arrow_holder {
    transform: rotate(180deg);
}

/* بدنه فصل */
.body_row_season_n_dl {
    padding: 0;
    transition: all 0.3s ease;
}

.inner_body_row_season_n_dl {
    padding: 5px 0;
}

/* هر کیفیت */
.item_quality_n_row {
    margin: 10px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    overflow: hidden;
}

/* عنوان کیفیت */
.quality_title_item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quality_title_item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.quality_title_item .right_side {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.item_meta_qu_r_n {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon_row_q_n svg {
    width: 18px;
    height: 18px;
}

.label_meta_qu {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.value_meta_qu {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
}

.qua_val_text {
    color: var(--primary-color);
}

.label_row_q_n {
    font-size: 13px;
    padding: 2px 8px;
    background: rgba(96, 165, 250, 0.15);
    border-radius: 20px;
    color: #60a5fa;
}

.sep_line {
    width: 1px;
    height: 25px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 15px;
}

/* قسمت‌ها */
.parts_holder {
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.inner_parts_holder {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.item_part {
    flex: 0 0 auto;
}

.item_part a {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.item_part a:hover {
    background: var(--primary-color);
    color: #000;
    transform: translateY(-2px);
}

/* کپی لینک‌ها */
.item_part.copylinksseason {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.item_part.copylinksseason:hover {
    background: rgba(251, 191, 36, 0.15);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .quality_title_item .right_side {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .sep_line {
        display: none;
    }
    
    .title_series_row_n .right_side {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .inner_parts_holder {
        justify-content: center;
    }
    
    .item_part a,
    .item_part.copylinksseason {
        padding: 6px 14px;
        font-size: 12px;
    }
}

/* موبایل خیلی کوچک */
@media (max-width: 480px) {
    .season_name {
        font-size: 16px;
    }
    
    .label_meta_qu {
        font-size: 11px;
    }
    
    .value_meta_qu {
        font-size: 11px;
    }
}



/* ========== فیلم‌های مشابه - ریسپانسیو ========== */

/* گرید اصلی */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    width: 100%;
    overflow-x: hidden;
}

/* اطمینان از عدم خروج از کادر */
.similar-movies-section {
    width: 100%;
    overflow-x: hidden;
    padding: 60px 40px;
    box-sizing: border-box;
}

.section-header {
    width: 100%;
    margin-bottom: 30px;
}

/* کارت فیلم */
.movie-card {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.movie-poster-wrap {
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
}

/* ========== ریسپانسیو ========== */

/* تبلت */
@media (max-width: 1024px) {
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .similar-movies-section {
        padding: 40px 30px;
    }
}

/* موبایل */
@media (max-width: 768px) {
    .movies-grid {
        grid-template-columns: repeat(3, 1fr);  /* 3 ستون در موبایل */
        gap: 12px;
    }
    
    .similar-movies-section {
        padding: 40px 15px;
    }
    
    .section-title {
        font-size: 20px;
    }
}

/* مخفی کردن پوستر موبایل در دسکتاپ */
.movie-poster-mobile {
    display: none;
}

/* ==========================================
   MOVIES SIMILAR - HORIZONTAL SCROLL MOBILE
========================================== */

@media (max-width: 768px) {
    .similar-movies-section {
        position: relative;
        width: 100%;
        padding: 0 15px !important;
        overflow: visible !important;
    }
    
    /* عنوان ثابت - اسکرول نمی‌شود */
    .similar-movies-section .section-header {
        position: relative;
        width: 100%;
        margin-bottom: 15px !important;
        padding-right: 0 !important;
        background: var(--background-dark);
        z-index: 2;
    }
    
    .similar-movies-section .section-title {
        font-size: 18px;
        display: inline-block;
    }
    
    /* کانتینر فیلم‌ها - اسکرول افقی */
    .similar-movies-section .movies-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: thin !important;
        padding-bottom: 10px !important;
        margin: 0 !important;
    }
    
    /* هر کارت فیلم */
    .similar-movies-section .movie-card {
        flex: 0 0 120px !important;
        width: 120px !important;
        display: block !important;
    }
    
    .similar-movies-section .movie-poster-wrap {
        width: 100% !important;
        aspect-ratio: 2/3 !important;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .similar-movies-section .movie-title {
        font-size: 11px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center;
    }
    
    .similar-movies-section .movie-meta {
        display: none; /* مخفی کردن سال و مدت در موبایل برای فشردگی */
    }
    
    /* استایل اسکرولبار (اختیاری) */
    .similar-movies-section .movies-grid::-webkit-scrollbar {
        height: 3px;
    }
    
    .similar-movies-section .movies-grid::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
    }
    
    .similar-movies-section .movies-grid::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 10px;
    }
}

/* موبایل خیلی کوچک */
@media (max-width: 480px) {
    .similar-movies-section .movie-card {
        flex: 0 0 100px !important;
        width: 100px !important;
    }
    
    .similar-movies-section .movie-title {
        font-size: 10px !important;
    }
}

/* ==========================================
   MOBILE FIX - MOVIE PAGE
========================================== */

@media (max-width: 768px) {
    
    /* بازآرایی hero-content */
    .single-hero-content {
        display: flex !important;
        flex-direction: column !important;
        padding: 100px 20px 30px !important;
    }
    
    /* چیدمان hero-left */
    .hero-left {
        order: 1;
        width: 100%;
        max-width: 100%;
    }
    
    /* مخفی کردن hero-right (پوستر دسکتاپ + اشتراک + دوبله) */
    .hero-right {
        display: none !important;
    }
    
    /* نمایش پوستر در موبایل داخل hero-left */
    .movie-poster-mobile {
        display: block !important;
        margin: 15px auto !important;
        text-align: center !important;
    }
    
    .movie-poster-mobile .movie-poster-large {
        max-width: 200px !important;
        margin: 0 auto !important;
    }
    
    /* عنوان اصلی */
    .single-movie-title {
        text-align: center !important;
        font-size: 28px !important;
    }
    
    .original-title {
        text-align: center !important;
        font-size: 14px !important;
    }
    
    /* امتیاز و سال و مدت - وسط چین */
    .movie-rating-year {
        justify-content: center !important;
    }
    
    /* حذف بخش اشتراک‌گذاری و دوبله/زیرنویس */
    .share-section-sidebar,
    .poster-audio-badges-single,
    .audio-badge-single {
        display: none !important;
    }
    
    /* Badge ها */
    .movie-badges {
        justify-content: center !important;
    }
    
    /* لایک/دیسلایک */
    .single_like_or_dislike {
        justify-content: center !important;
    }
    
    /* دکمه‌ها */
    .movie-action-buttons {
        justify-content: center !important;
    }
    
    /* خلاصه داستان */
    .synopsis-text {
        font-size: 14px !important;
        text-align: justify !important;
    }
}


/* موبایل کوچک (480px) */
@media (max-width: 480px) {
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);  /* 2 ستون در موبایل کوچک */
        gap: 10px;
    }
    
    .similar-movies-section {
        padding: 30px 12px;
    }
    
    .similar-movies-section .movie-card {
        flex: 0 0 110px !important;
        width: 110px !important;
    }
    
    .movie-title {
        font-size: 12px;
    }
    
    .movie-meta {
        font-size: 10px;
    }
}

/* موبایل خیلی کوچک (380px) */
@media (max-width: 380px) {
    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}
.download-section {
    margin: 2rem 0;
    font-family: Yekan, Tahoma, Arial, sans-serif;
}

.section-header-download {
    margin-bottom: 1.5rem;
}

.download-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    font-family: Yekan, Tahoma, Arial, sans-serif;
}

.download-title svg {
    color: #FBBF24;
}

/* دسته‌بندی */
.download-category {
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.category-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: Yekan, Tahoma, Arial, sans-serif;
}

.category-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

.category-toggle.active .toggle-icon {
    transform: rotate(180deg);
}

.category-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    font-family: Yekan, Tahoma, Arial, sans-serif;
}

.download-count {
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: Yekan, Tahoma, Arial, sans-serif;
}
.download-item.locked {
    opacity: 0.7;
    position: relative;
}

.download-item.locked::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.03) 0%, transparent 100%);
    pointer-events: none;
    border-radius: 10px;
}

/* دکمه خرید اشتراک */
.btn-get-membership-single {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.75rem;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: Yekan, Tahoma, Arial, sans-serif;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-get-membership-single::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-get-membership-single:hover::before {
    width: 300%;
    height: 300%;
}

.btn-get-membership-single:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.5);
}

.btn-get-membership-single svg {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.3));
}

.btn-get-membership-single span,
.btn-get-membership-single > svg ~ * {
    position: relative;
    z-index: 1;
}

/* Badge اشتراک ویژه */
.premium-badge-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.15) 100%);
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 50px;
    color: #fbbf24;
    font-size: 13px;
    font-weight: 700;
    margin-right: 12px;
    font-family: Yekan, Tahoma, Arial, sans-serif;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0%, 100% { box-shadow: 0 0 10px rgba(251, 191, 36, 0.2); }
    50% { box-shadow: 0 0 20px rgba(251, 191, 36, 0.4); }
}

.premium-badge-title svg {
    width: 14px;
    height: 14px;
    animation: rotate-star 3s linear infinite;
}

@keyframes rotate-star {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* پیام فوتر */
.membership-notice-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 12px;
    margin-top: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-family: Yekan, Tahoma, Arial, sans-serif;
}

.membership-notice-footer svg {
    flex-shrink: 0;
    color: #fbbf24;
}

.membership-notice-footer a {
    color: #fbbf24;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(251, 191, 36, 0.3);
    transition: all 0.3s ease;
}

.membership-notice-footer a:hover {
    border-bottom-color: #fbbf24;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .btn-get-membership-single {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }
    
    .membership-notice-footer {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .premium-badge-title {
        font-size: 11px;
        padding: 4px 10px;
        margin-right: 8px;
    }
}

@media (max-width: 600px) {
    .download-item.locked {
        padding: 1rem;
    }
    
    .btn-get-membership-single {
        font-size: 14px;
        padding: 0.85rem 1.5rem;
    }
}

/* رنگ‌بندی برای تعداد لینک */
.download-count.color-yellow {
    background: rgba(251, 191, 36, 0.15);
    color: #FBBF24;
}

.download-count.color-green {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.download-count.color-white {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.toggle-icon {
    transition: transform 0.3s ease;
    color: #9ca3af;
}


/* لیست دانلودها */
.download-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.download-list.active {
    padding: 1rem;
}

/* آیتم دانلود */
.download-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.download-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(-3px);
}

/* رنگ‌بندی برای آیتم‌ها */
.download-item.color-yellow:hover {
    border-color: rgba(251, 191, 36, 0.3);
}

.download-item.color-green:hover {
    border-color: rgba(34, 197, 94, 0.3);
}

.download-item.color-white:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.download-item:last-child {
    margin-bottom: 0;
}

/* جزئیات دانلود */
.download-details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    flex: 1;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-family: Yekan, Tahoma, Arial, sans-serif;
}

.detail-icon {
    flex-shrink: 0;
}

/* رنگ ایکون‌ها بر اساس نوع */
.download-item.color-yellow .detail-icon {
    color: #FBBF24;
}

.download-item.color-green .detail-icon {
    color: #22c55e;
}

.download-item.color-white .detail-icon {
    color: #ffffff;
}

.detail-label {
    color: #9ca3af;
    font-weight: 500;
    white-space: nowrap;
    font-family: Yekan, Tahoma, Arial, sans-serif;
}

.detail-value {
    font-weight: 600;
    white-space: nowrap;
    font-family: Yekan, Tahoma, Arial, sans-serif;
}

/* رنگ متن بر اساس نوع */
.download-item.color-yellow .detail-value {
    color: #FBBF24;
}
.download-actions {
    display: flex;
    align-items: center;
    gap: 12px;          /* فاصله بین دکمه‌ها */
    flex-wrap: nowrap; /* نذاره بره خط بعد */
}
@media (max-width: 600px) {
    .download-actions {
        flex-wrap: wrap;
        gap: 10px;
    }

    .download-actions a {
        flex: 1;
        justify-content: center;
    }
}
.download-item.color-green .detail-value {
    color: #22c55e;
}

.download-item.color-white .detail-value {
    color: #ffffff;
}

.detail-notes {
    flex-basis: 100%;
}

.detail-notes .detail-value {
    color: #d1d5db;
}

/* دکمه دانلود */
.btn-download {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.75rem;
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: Yekan, Tahoma, Arial, sans-serif;
}

/* رنگ دکمه بر اساس نوع */
.download-item.color-yellow .btn-download {
    background: #FBBF24;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
}

.download-item.color-yellow .btn-download:hover {
    background: #f59e0b;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.5);
}

.download-item.color-green .btn-download {
    background: #22c55e;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.download-item.color-green .btn-download:hover {
    background: #16a34a;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.5);
}

.download-item.color-white .btn-download {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

.download-item.color-white .btn-download:hover {
    background: #e5e5e5;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.5);
}

.btn-download:hover {
    transform: translateY(-2px);
}

.btn-download svg {
    flex-shrink: 0;
}

/* دکمه پخش آنلاین */
.btn-online-play {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.75rem;
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: Yekan, Tahoma, Arial, sans-serif;
}

/* رنگ دکمه پخش آنلاین بر اساس نوع */
.download-item.color-yellow .btn-online-play {
    background: rgba(251, 191, 36, 0.15);
    color: #FBBF24;
    border: 2px solid #FBBF24;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.2);
}

.download-item.color-yellow .btn-online-play:hover {
    background: #FBBF24;
    color: #000;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.5);
}

.download-item.color-green .btn-online-play {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 2px solid #22c55e;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
}

.download-item.color-green .btn-online-play:hover {
    background: #22c55e;
    color: #000;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.5);
}

.download-item.color-white .btn-online-play {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.download-item.color-white .btn-online-play:hover {
    background: #ffffff;
    color: #000;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.5);
}

.btn-online-play:hover {
    transform: translateY(-2px);
}

.btn-online-play svg {
    flex-shrink: 0;
}

/* ریسپانسیو */
@media (max-width: 968px) {
    .download-details {
        gap: 1rem;
    }
    
    .detail-item {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .download-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
    }
    
    .download-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .detail-item {
        width: 100%;
    }
    
    .btn-download {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }
    
    .category-toggle {
        padding: 0.875rem 1rem;
    }
    
    .category-label {
        font-size: 1rem;
    }
    
    .download-list.active {
        padding: 0.75rem;
    }
}


/* ==========================================
   فشرده‌سازی کلی - فاصله‌ها کمتر
========================================== */

.single-hero-content {
    padding: 40px;
    gap: 30px;
}

.hero-left {
    max-width: 65%;
}

.hero-right {
    max-width: 300px;
}

/* ==========================================
   عنوان و امتیاز - کوچک‌تر و فشرده‌تر
========================================== */

.single-movie-title {
    font-size: 36px;
    margin-bottom: 8px;
    line-height: 1.2;
}

.original-title {
    font-size: 18px;
    margin-bottom: 12px;
    opacity: 0.7;
}

/* ========== باکس‌های شیشه‌ای با نقطه جداکننده ========== */
.movie-rating-year {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    margin: 20px 0;
}

/* نقطه جداکننده */
.separator-dot {
    color: #fff;
    font-size: 14px;
    text-shadow: 0 0 5px rgba(251, 191, 36, 0.5);
    margin: 0 -5px;
}

/* Responsive - حذف نقطه در موبایل */
@media (max-width: 768px) {
    .separator-dot {
        display: none;
    }
}

/* ========== باکس‌های شیشه‌ای ========== */
.movie-rating-year {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

/* استایل پایه باکس‌ها */
.glass-dark {
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 50px !important;
    padding: 12px 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    transition: all 0.3s ease !important;
}

/* هاور افکت */
.glass-dark:hover {
    background: rgba(0, 0, 0, 0.7) !important;
    border-color: rgba(251, 191, 36, 0.5) !important;
    transform: translateY(-2px);
}

/* آیکون IMDB */
.imdb-icon-large {
    width: 48px !important;
    height: 24px !important;
}

.rating-score {
    font-size: 24px !important;
    font-weight: 700;
    color: #fbbf24;
}

.rating-votes {
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.5);
}

.duration-box svg,
.year-box svg {
    width: 18px !important;
    height: 18px !important;
}

.duration-box span,
.year-box span {
    font-size: 16px !important;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .glass-dark {
        padding: 8px 16px !important;
    }
    
    .rating-score {
        font-size: 18px !important;
    }
}


.rating-details {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.rating-score {
    font-size: 26px;   /* ← بزرگتر */
    font-weight: 700;
    color: #fbbf24;
    line-height: 1;
}

.rating-max {
    font-size: 15px;   /* ← بزرگتر */
    color: rgba(255, 255, 255, 0.5);
}

.rating-votes {
    font-size: 12px;   /* ← بزرگتر */
    color: rgba(255, 255, 255, 0.4);
    margin-right: 8px;
}

.year-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;  /* ← بزرگتر */
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    color: #fff;
    font-size: 16px;   /* ← بزرگتر */
    font-weight: 600;
}

.year-box svg {
    width: 18px;
    height: 18px;
}

/* ==========================================
   Badges - فشرده‌تر
========================================== */

/* ========== Badge ها با استایل جدید ========== */
.movie-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 15px 0;
}

.movie-badges span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
}

.movie-badges span svg {
    width: 16px;
    height: 16px;
}

/* Badge کیفیت */
.badge-quality {
    background: rgba(251, 191, 36, 0.15) !important;
    border-color: rgba(251, 191, 36, 0.3) !important;
    color: #fbbf24 !important;
}


/* هاور افکت */
.movie-badges span:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.15) !important;
}

.badge-quality:hover {
    background: #fbbf24 !important;
    color: #000 !important;
}

.badge-metascore:hover {
    background: #10b981 !important;
    color: #fff !important;
}

.badge-rated:hover {
    background: #8b5cf6 !important;
    color: #fff !important;
}

/* ========== تعاملات کاربر - بزرگ و رنگی ========== */
.movie-interactions {
    margin: 25px 0;
}

.interaction-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

/* استایل پایه دکمه‌ها */
.interaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.interaction-btn svg {
    flex-shrink: 0;
}

/* دکمه لایک - سبز */
.like-btn {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.like-btn:hover {
    background: #22c55e;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.3);
}

.like-btn:hover svg {
    stroke: #fff;
}

/* دکمه دیسلایک - قرمز */
.dislike-btn {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.dislike-btn:hover {
    background: #ef4444;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.dislike-btn:hover svg {
    stroke: #fff;
}

/* دکمه نظرات */
.comment-btn {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

.comment-btn:hover {
    background: #3b82f6;
    color: #fff;
    transform: translateY(-2px);
}

/* دکمه علاقه‌مندی */
.bookmark-btn {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #8b5cf6;
}

.bookmark-btn:hover {
    background: #8b5cf6;
    color: #fff;
    transform: translateY(-2px);
}

/* ========== استایل لایک/دیسلایک مانند نمونه ========== */
.single_like_or_dislike {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 15px 0;
    margin: 10px 0;
    gap: 15px;
    align-items: center;
}

.btn_rate_single {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f2f2f2;
}

/* آیکون شست لایک - سبز ثابت (حتی در حالت عادی) */
.btn_rate_action_like .icon_like {
    fill: #22c55e !important;
    stroke: #22c55e !important;
}

/* آیکون شست دیسلایک - قرمز ثابت (حتی در حالت عادی) */
.btn_rate_action_dislike .icon_dislike {
    fill: #ef4444 !important;
    stroke: #ef4444 !important;
}

.btn_rate_single .icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}
/* متن دکمه در حالت عادی */
.btn_rate_single span {
    color: #f2f2f2;
}
.btn_rate_action_like:hover {
    background: rgba(34, 197, 94, 0.15);
    border-color: #22c55e;
}

.btn_rate_action_dislike:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
}

/* وقتی رای داده شده */
.btn_rate_action_like.voted {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

.btn_rate_action_dislike.voted {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
}

.btn_rate_single span {
    font-size: 14px;
}

.like-count, .dislike-count {
    font-weight: 600;
    margin-right: 4px;
}

.result_text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 40px;
    font-size: 13px;
    color: #fbbf24;
}

.result_text .icon_info {
    width: 18px;
    height: 18px;
    fill: #fbbf24;
}

@media (max-width: 768px) {
    .single_like_or_dislike {
        gap: 10px;
    }
    
    .btn_rate_single {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .result_text {
        font-size: 11px;
        padding: 6px 12px;
    }
}

/* ==========================================
   خلاصه داستان - فشرده
========================================== */

.synopsis-section {
    margin: 15px 0;
}

.section-heading {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.synopsis-text {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================
   بخش Crew - فشرده
========================================== */

.crew-section {
    margin-top: 15px;
}

.crew-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px; /* از 10px به 8px کاهش یافت */
}

.crew-item svg {
    width: 10px;
    height: 10px;
    opacity: 0.5;
}

.crew-label {
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    opacity: 0.8;
}

.crew-tag {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    padding: 4px 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;          /* ← مهم */
    align-items: center;
    white-space: nowrap;           /* ← نشکنه */
}


a.crew-tag:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.crew-tag.view-more-cast {
    background: rgba(251, 191, 36, 0.15);
    border-color: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

@media (max-width: 600px) {

    .crew-item {
        gap: 6px;
        margin-bottom: 6px;
    }

    .crew-item svg {
        width: 12px;
        height: 12px;
    }

    .crew-label {
        width: auto;        /* ❌ نه 100% */
        margin-left: 6px;
        font-size: 12px;
        white-space: nowrap;
    }

    .crew-tag {
        white-space: nowrap; /* نذاره بشکنه */
    }
}

@media (max-width: 400px) {
    .crew-tag {
        font-size: 10.5px;
        padding: 5px 10px;
    }
}

/* ==========================================
   دکمه‌های اصلی - فشرده
========================================== */

/* ========== دکمه‌های اصلی - بزرگتر ========== */
.movie-action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 25px 0 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;  /* بزرگتر */
    border-radius: 50px;  /* دایره‌ای‌تر */
    font-size: 16px;      /* بزرگتر */
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

/* دکمه دانلود فیلم */
.btn-watch {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.btn-watch:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.5);
}

/* دکمه تماشای تریلر */
.btn-secondary {
    background: linear-gradient(135deg, #2D5395 0%, #2D5395 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #2D5395 0%, #2D5395 100%);
    border-color: #fbbf24;
    transform: translateY(-3px);
}

/* ==========================================
   WATCHLIST BUTTON - رفع مشکل بیضی در موبایل
========================================== */

/* دکمه watchlist در دسکتاپ */
.btn-watchlist {
    width: 52px !important;
    height: 52px !important;
    padding: 0 !important;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50% !important;
    color: #fff;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* در موبایل */
@media (max-width: 768px) {
    .btn-watchlist {
        width: 44px !important;
        height: 44px !important;
        border-radius: 50% !important;
    }
    
    .btn-watchlist svg {
        width: 20px !important;
        height: 20px !important;
    }
}

/* در موبایل خیلی کوچک */
@media (max-width: 480px) {
    .btn-watchlist {
        width: 40px !important;
        height: 40px !important;
    }
    
    .btn-watchlist svg {
        width: 18px !important;
        height: 18px !important;
    }
}

/* اطمینان از گرد ماندن در همه حالت‌ها */
.btn-watchlist,
.btn-watchlist *,
.btn-watchlist:focus,
.btn-watchlist:active,
.btn-watchlist:hover {
    border-radius: 50% !important;
    outline: none !important;
}

/* Responsive برای موبایل */
@media (max-width: 768px) {
    .btn {
        padding: 10px 22px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .movie-action-buttons {
        gap: 10px;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .btn svg {
        width: 18px;
        height: 18px;
    }
}

/* ==========================================
   پوستر - کوچک‌تر
========================================== */

.movie-poster-large {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.movie-poster-large img {
    width: 100%;
    display: block;
}

/* ==========================================
   Badge های دوبله/زیرنویس - فشرده
========================================== */

.poster-audio-badges-single {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.audio-badge-single {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.audio-badge-single:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(-3px);
}

.dubbing-badge {
    border-right: 3px solid #34d399;
}

.dubbing-badge svg {
    color: #34d399;
    width: 16px;
    height: 16px;
}

.subtitle-badge {
    border-right: 3px solid #60a5fa;
}

.subtitle-badge svg {
    color: #60a5fa;
    width: 16px;
    height: 16px;
}

/* ==========================================
   اشتراک‌گذاری - افقی و فشرده
========================================== */

.share-section-sidebar {
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.share-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 17px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.share-title svg {
    width: 14px;
    height: 14px;
}

.share-buttons-horizontal {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.share-btn-horizontal {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-btn-horizontal:hover {
    transform: translateY(-2px);
}

.share-btn-horizontal svg {
    width: 18px;
    height: 18px;
}

.share-btn-horizontal.twitter-btn:hover {
    background: #1DA1F2;
    border-color: #1DA1F2;
}

.share-btn-horizontal.telegram-btn:hover {
    background: #0088cc;
    border-color: #0088cc;
}

.share-btn-horizontal.whatsapp-btn:hover {
    background: #25D366;
    border-color: #25D366;
}

.share-btn-horizontal.copy-link-btn:hover {
    background: #6366f1;
    border-color: #6366f1;
}

/* ==========================================
   بخش اطلاعات اضافی - فشرده
========================================== */

.cast-toggle-button {
    font-family: 'Vazir', sans-serif !important;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 15px 0;
}

.cast-toggle-button svg {
    width: 16px;
    height: 16px;
}

.additional-info {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
}

.additional-info-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.additional-info-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.info-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
}

.info-value {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    margin: 0;
}

/* ==========================================
   Download Section - فشرده
========================================== */

.download-section {
    padding: 30px 40px;
}

.section-header-download {
    margin-bottom: 20px;
}

.download-title {
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.download-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
}

/* ==========================================
   Responsive - فشرده‌تر
========================================== */

@media (max-width: 1024px) {
    .single-hero-content {
        flex-direction: column;
        padding: 30px;
    }
    
    .hero-left {
        max-width: 100%;
    }
    
    .hero-right {
        max-width: 100%;
        display: flex;
        gap: 15px;
    }
    
    .movie-poster-large {
        max-width: 250px;
    }
}

@media (max-width: 768px) {
    .single-hero-content {
        padding: 20px;
    }
    
    .single-movie-title {
        font-size: 24px;
    }
    
    .movie-rating-year {
        flex-wrap: wrap;
    }
    
    .interaction-buttons {
        flex-wrap: wrap;
    }
    
    .interaction-btn {
        flex: 1;
        min-width: 70px;
        font-size: 12px;
        padding: 5px 8px;
    }
    
    .movie-action-buttons {
        flex-wrap: wrap;
    }
    
    .btn {
        flex: 1;
        min-width: 120px;
        font-size: 13px;
        padding: 8px 14px;
    }
    
    .hero-right {
        flex-direction: column;
    }
    
    .share-buttons-horizontal {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .single-movie-title {
        font-size: 20px;
    }
    
    .imdb-rating-box {
        padding: 6px 10px;
    }
    
    .rating-score {
        font-size: 16px;
    }
}