
        @import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;700&display=swap');

        :root { 
            --bg-color: #0b0b0c;
            --card-bg: rgba(28, 28, 30, 0.7);
            --text-color: #ffffff; 
            --text-muted: #a1a1aa; 
            --accent-color: #f5c518; 
            --accent-hover: #d4a900;
            --bottom-nav-bg: rgba(15, 15, 15, 0.85);
            --border-color: rgba(255, 255, 255, 0.08);
            --success-color: #10b981;
            --danger-color: #ef4444;
            --warning-color: #f59e0b;
        }
        
        /* ============================================
           ðŸ“Œ 2. GLOBAL STYLES
           ============================================ */
        * {
            box-sizing: border-box;
        }
        
        body { 
            background-color: var(--bg-color); 
            color: var(--text-color); 
            font-family: 'Vazirmatn', sans-serif;
            margin: 0; 
            padding: 0; 
            padding-bottom: 75px; 
            overflow-x: hidden; 
            -webkit-tap-highlight-color: transparent;
        }

        /* ============================================
           ðŸ“Œ 3. BOTTOM NAVIGATION
           ============================================ */
        .bottom-nav { 
            position: fixed; 
            bottom: 0; 
            left: 0; 
            right: 0; 
            height: 65px; 
            background-color: var(--bottom-nav-bg); 
            backdrop-filter: blur(10px); 
            display: flex; 
            justify-content: space-around; 
            align-items: center; 
            border-top: 1px solid #333; 
            z-index: 1000; 
        }
        
        .nav-item { 
            color: var(--text-muted); 
            text-align: center; 
            font-size: 11px; 
            cursor: pointer; 
            transition: color 0.3s; 
            display: flex; 
            flex-direction: column; 
            gap: 4px; 
        }
        
        .nav-item i { 
            font-size: 20px; 
        }
        
        .nav-item.active { 
            color: var(--accent-color); 
        }

        /* ============================================
           ðŸ“Œ 4. PAGES & LAYOUT
           ============================================ */
        .page { 
            display: none; 
            padding: 15px; 
            animation: fadeIn 0.3s; 
        }
        
        .page.active { 
            display: block; 
        }

        .section-title { 
            font-size: 16px; 
            margin: 20px 0 10px 0; 
            font-weight: bold; 
            color: #fff; 
        }

        /* ============================================
           ðŸ“Œ 5. SHOW CARDS (HOME PAGE)
           ============================================ */
        .row-scroll { 
            display: flex; 
            overflow-x: auto; 
            gap: 12px; 
            padding-bottom: 10px; 
            scroll-behavior: smooth; 
            align-items: center; 
        }
        
        .row-scroll::-webkit-scrollbar { 
            display: none; 
        }
        
        .show-card { 
            min-width: 115px; 
            max-width: 115px; 
            background-color: var(--card-bg); 
            border-radius: 14px;
            position: relative; 
            cursor: pointer; 
            flex-shrink: 0; 
            height: 175px; 
            overflow: hidden;
            border: 1px solid var(--border-color);
            box-shadow: 0 4px 10px rgba(0,0,0,0.3);
            transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .show-card:active {
            transform: scale(0.96);
        }
        
        .show-card img { 
            width: 100%; 
            height: 100%;
            object-fit: cover; 
        }
        
        .show-info { 
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 25px 8px 8px 8px; 
            background: linear-gradient(to top, rgba(0,0,0,0.9) 30%, rgba(0,0,0,0.4) 70%, transparent);
        }
        
        .show-title { 
            font-size: 11px; 
            font-weight: 500;
            color: #fff;
            white-space: nowrap; 
            overflow: hidden; 
            text-overflow: ellipsis; 
            direction: ltr; 
            text-align: left; 
        }

        .rating-badge { 
            position: absolute; 
            top: 4px; 
            right: 4px; 
            background: rgba(0,0,0,0.7); 
            padding: 2px 5px; 
            border-radius: 5px; 
            font-size: 10px; 
        }
        
        .rating-badge i { 
            color: var(--accent-color); 
            font-size: 9px; 
        }
        
        .countdown-badge { 
            position: absolute; 
            bottom: 40px; 
            left: 4px; 
            right: 4px; 
            background: rgba(245, 197, 24, 0.9); 
            color: #000; 
            padding: 2px; 
            border-radius: 4px; 
            font-size: 9px; 
            text-align: center; 
            font-weight: bold; 
        }
        
        .countdown-badge.none { 
            background: rgba(0,0,0,0.7); 
            color: #fff; 
        }

        .load-more-card { 
            min-width: 90px; 
            height: 150px; 
            background: #222; 
            border: 2px dashed #444; 
            border-radius: 10px; 
            display: flex; 
            flex-direction: column; 
            justify-content: center; 
            align-items: center; 
            cursor: pointer; 
            color: var(--text-muted); 
            font-size: 11px; 
            gap: 8px; 
            flex-shrink: 0; 
        }
        
        .load-more-card:hover { 
            border-color: var(--accent-color); 
            color: var(--accent-color); 
        }

        /* ============================================
           ðŸ“Œ 6. SEARCH BOX
           ============================================ */
        .search-box { 
            position: relative; 
            margin-bottom: 15px; 
        }
        
        .search-box input { 
            width: 100%; 
            background: #222; 
            border: 1px solid #444; 
            padding: 12px 40px 12px 12px; 
            border-radius: 8px; 
            color: white; 
            box-sizing: border-box; 
            font-family: 'Vazirmatn', sans-serif;
        }
        
        .search-box i { 
            position: absolute; 
            top: 14px; 
            right: 15px; 
            color: var(--text-muted); 
        }

        /* ============================================
           ðŸ“Œ 7. DETAILS PAGE
           ============================================ */
        #details-page { 
            position: fixed; 
            top: 0; 
            left: 0; 
            width: 100%; 
            height: 100%; 
            background-color: var(--bg-color); 
            z-index: 2000; 
            overflow-y: auto; 
            display: none; 
            padding-bottom: 20px; 
        }
        
        .backdrop-img { 
            width: 100%; 
            height: 250px; 
            object-fit: cover; 
            mask-image: linear-gradient(to bottom, black 50%, transparent 100%); 
            -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%); 
        }
        
        .details-header { 
            padding: 0 15px; 
            margin-top: -50px; 
            position: relative; 
        }
        
        .details-title { 
            font-size: 22px; 
            margin: 0 0 5px 0; 
            direction: ltr; 
            text-align: left;
        }
        
        .details-meta { 
            color: var(--text-muted); 
            font-size: 12px; 
            margin-bottom: 15px; 
        }
        
        .back-btn { 
            position: absolute; 
            top: 15px; 
            right: 15px; 
            background: rgba(0,0,0,0.6); 
            color: white; 
            border: none; 
            border-radius: 50%; 
            width: 35px; 
            height: 35px; 
            display: flex; 
            justify-content: center; 
            align-items: center; 
            backdrop-filter: blur(5px); 
            cursor: pointer; 
            z-index: 2001; 
        }

        /* ============================================
           ðŸ“Œ 8. SEASONS & EPISODES
           ============================================ */
        .season-container { 
            background: var(--card-bg); 
            margin: 10px 15px; 
            border-radius: 10px; 
            overflow: hidden;
        }
        
        .season-header { 
            padding: 15px; 
            background: #242426; 
            font-weight: bold; 
            display: flex; 
            justify-content: space-between; 
            align-items: center; 
            cursor: pointer; 
        }
        
        .episodes-list { 
            display: none; 
            padding: 10px; 
            animation: fadeIn 0.25s ease-out;
        }
        
        .episode-item { 
            display: flex; 
            gap: 10px; 
            margin-bottom: 15px; 
            border-bottom: 1px solid #333; 
            padding-bottom: 10px; 
        }
        
        .episode-img { 
            width: 100px; 
            height: 60px; 
            border-radius: 6px; 
            object-fit: cover; 
        }
        
        .episode-info { 
            flex: 1; 
            display: flex; 
            flex-direction: column; 
            justify-content: center; 
        }
        
        .episode-title { 
            font-size: 12px; 
            font-weight: bold; 
            direction: ltr; 
            text-align: left; 
            margin-bottom: 4px;
        }
        
        .episode-date { 
            font-size: 10px; 
            color: var(--text-muted); 
        }
        
        .watch-checkbox { 
            width: 28px; 
            height: 28px; 
            border: 2px solid #3a3a3c; 
            background: #2c2c2e;
            border-radius: 50%; 
            display: flex; 
            justify-content: center; 
            align-items: center; 
            cursor: pointer; 
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
        }
        
        .watch-checkbox.watched { 
            background: var(--accent-color); 
            border-color: var(--accent-color); 
            color: #000; 
            box-sizing: border-box;
            box-shadow: 0 0 12px rgba(245, 197, 24, 0.35);
        }

        .season-actions { 
            display: flex; 
            align-items: center; 
            gap: 10px; 
        }
        
        .btn-season-watch { 
            background: #333; 
            color: var(--accent-color); 
            border: 1px solid #444; 
            padding: 4px 8px; 
            border-radius: 4px; 
            font-size: 11px; 
            cursor: pointer; 
        }
        
        .btn-season-watch:hover { 
            background: #444; 
        }
        
        .action-buttons-container { 
            display: flex; 
            flex-direction: column; 
            gap: 8px; 
            align-items: center; 
            justify-content: center; 
        }
        
        .watch-up-to-btn { 
            color: var(--text-muted); 
            font-size: 12px; 
            cursor: pointer; 
            padding: 4px; 
            transition: color 0.2s; 
        }
        
        .watch-up-to-btn:hover { 
            color: var(--accent-color); 
        }

        /* ============================================
           ðŸ“Œ 9. CUTFA DOWNLOAD BUTTON
           ============================================ */
        .cutfa-download-btn {
            display: block;
            background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
            color: #000 !important;
            padding: 14px 20px;
            border-radius: 12px;
            text-align: center;
            text-decoration: none;
            font-weight: bold;
            margin: 15px;
            box-shadow: 0 4px 15px rgba(245, 197, 24, 0.4);
            font-size: 14px;
            transition: transform 0.2s;
            animation: fadeIn 0.4s ease-out;
        }
        
        .cutfa-download-btn:active {
            transform: scale(0.98);
        }
        
        .cutfa-download-btn i {
            margin-left: 6px;
        }

        /* ============================================
           📌 10. CALENDAR - نسخه ارتقاء یافته (پوستر-محور)
           ============================================ */
        .cal-tabs { 
            display: flex; 
            gap: 10px; 
            margin-bottom: 20px; 
            background: #222; 
            padding: 5px; 
            border-radius: 10px; 
        }
        .cal-tab-btn { 
            flex: 1; 
            padding: 10px; 
            background: transparent; 
            border: none; 
            color: var(--text-muted); 
            border-radius: 8px; 
            cursor: pointer; 
            transition: 0.3s; 
            font-family: 'Vazirmatn', sans-serif;
        }
        .cal-tab-btn.active { 
            background: var(--card-bg); 
            color: var(--accent-color); 
            font-weight: bold; 
        }
        
        /* گرید کارت‌های تقویم */
        .cal-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 14px 10px;
            padding: 0 0 20px;
        }
        
        @media (max-width: 360px) {
            .cal-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        /* کارت تقویم - عمودی پوستر-محور */
        .cal-card {
            position: relative;
            display: flex;
            flex-direction: column;
            cursor: pointer;
            animation: slideIn 0.4s ease;
            -webkit-tap-highlight-color: transparent;
        }
        
        .cal-card:active {
            transform: scale(0.96);
        }
        
        /* تصویر کارت تقویم */
        .cal-card-image {
            position: relative;
            width: 100%;
            padding-top: 150%;
            border-radius: 12px;
            overflow: hidden;
            background: #0a0a0a;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        }
        
        .cal-card-image img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s ease;
        }
        
        .cal-card:hover .cal-card-image img {
            transform: scale(1.05);
        }
        
        /* بج تاریخ - تقویم تق تقویم تقویم (امروز/فردا/N روز دیگر)
        .cal-badge {
            position: absolute;
            top: 8px;
            left: 0;
            right: 0;
            padding: 4px 8px;
            border-radius: 0 8px 8px 0;
            font-size: 10px;
            font-weight: bold;
            text-align: center;
            z-index: 3;
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            white-space: nowrap;
        }
        
        /* رنگ‌های مختلف بج */
        .cal-badge.today {
            background: linear-gradient(135deg, #f5c518 0%, #ffd700 100%);
            color: #000;
            box-shadow: 0 2px 8px rgba(245, 197, 24, 0.5);
        }
        
        .cal-badge.tomorrow {
            background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
            color: #fff;
            box-shadow: 0 2px 8px rgba(255, 152, 0, 0.5);
        }
        
        .cal-badge.soon {
            background: rgba(100, 100, 100, 0.85);
            color: #fff;
        }
        
        .cal-badge.past {
            background: rgba(244, 67, 54, 0.85);
            color: #fff;
        }
        
        /* اطلاعات زیر کارت */
        .cal-card-info {
            padding: 8px 4px 4px;
            text-align: center;
            position: relative;
            z-index: 1;
            width: 100%;
            box-sizing: border-box;
            margin-top: 6px;
        }
        
        .cal-card-info h3 {
            font-size: 12px;
            font-weight: 600;
            color: #fff;
            margin: 0 0 4px;
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            word-wrap: break-word;
            min-height: 32px;
            direction: ltr;
            text-align: center;
        }
        
        .cal-card-info p {
            font-size: 10px;
            color: var(--text-muted);
            margin: 0;
            line-height: 1.2;
        }
        
        /* استایل تقویم عمومی (هفتگی) */
        .week-days-container {
            display: flex;
            overflow-x: auto;
            gap: 10px;
            padding-bottom: 10px;
            margin-bottom: 15px;
        }
        
        .week-days-container::-webkit-scrollbar {
            display: none;
        }
        
        .day-bubble { 
            min-width: 60px; 
            height: 70px; 
            background: var(--card-bg); 
            border-radius: 12px; 
            display: flex; 
            flex-direction: column; 
            justify-content: center; 
            align-items: center; 
            cursor: pointer; 
            border: 1px solid #333; 
            flex-shrink: 0; 
            transition: all 0.2s;
        }
        
        .day-bubble.active { 
            border-color: var(--accent-color); 
            background: #2a2a2c; 
            box-shadow: 0 0 12px rgba(245, 197, 24, 0.2);
        }
        
        .day-name { 
            font-size: 11px; 
            color: var(--text-muted); 
            margin-bottom: 5px; 
        }
        
        .day-date { 
            font-size: 16px; 
            font-weight: bold; 
            color: white; 
        }
        
        .day-bubble.active .day-name,
        .day-bubble.active .day-date {
            color: var(--accent-color);
        }
        
        /* Empty State تقویم */
        .cal-empty-state {
            grid-column: 1 / -1;
            text-align: center;
            padding: 50px 20px;
            color: var(--text-muted);
            font-size: 14px;
        }
        
        .cal-empty-state i {
            font-size: 48px;
            margin-bottom: 15px;
            display: block;
            color: #444;
        }
        
        .cal-empty-state p { 
            margin: 0; 
        }
        
        /* ریسپانسیو برای کارت‌های تقویم عمومی */
        #general-day-shows {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 14px 10px;
        }
        
        @media (max-width: 360px) {
            #general-day-shows {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        /* کارت‌های عمومی هم از کارت‌های هاب استفاده می‌کنند */
        #general-day-shows .show-card {
            position: relative;
            display: flex;
            flex-direction: column;
            background: transparent;
            border-radius: 12px;
            overflow: visible !important;
            cursor: pointer;
            animation: slideIn 0.4s ease;
            -webkit-tap-highlight-color: transparent;
            min-width: auto !important;
            max-width: none !important;
            height: auto !important;
            border: none !important;
            box-shadow: none !important;
            flex-shrink: 1;
        }
        
        #general-day-shows .card-image-wrapper {
            position: relative;
            width: 100%;
            padding-top: 150%;
            border-radius: 12px;
            overflow: hidden;
            background: #0a0a0a;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        }
        
        #general-day-shows .card-image-wrapper img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        #general-day-shows .rating-badge { 
            position: absolute; 
            top: 4px; 
            right: 4px; 
            background: rgba(0,0,0,0.7); 
            padding: 2px 5px; 
            border-radius: 5px; 
            font-size: 10px; 
            z-index: 2;
        }
        
        #general-day-shows .rating-badge i { 
            color: var(--accent-color); 
            font-size: 9px; 
        }
        
        #general-day-shows .card-info {
            padding: 8px 4px 4px;
            text-align: center;
            position: relative;
            z-index: 1;
            width: 100%;
            box-sizing: border-box;
            margin-top: 6px;
        }
        
        #general-day-shows .card-info .show-title {
            font-size: 12px;
            font-weight: 600;
            color: #fff;
            margin: 0;
            line-height: 1.3;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            direction: ltr;
            text-align: center;
            min-height: 32px;
        }
        
        /* حذف کارت‌های قدیمی */
        .cal-item, .cal-item-info, .cal-item-title, .cal-item-ep, .cal-item-date {
            display: none !important;
        }

        /* ============================================
           ðŸ“Œ 11. EPISODE REVIEWS & RATINGS
           ============================================ */
        .episode-review-container {
            background: rgba(255, 255, 255, 0.03);
            border-radius: 12px;
            margin: 8px 12px;
            padding: 12px;
            border: 1px solid var(--border-color);
            display: none;
        }
        
        .rating-stars-wrapper {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
        }
        
        .rating-stars {
            display: flex;
            flex-direction: row-reverse;
            gap: 4px;
        }
        
        .rating-stars i {
            font-size: 1.2rem;
            color: #4a4a4a;
            cursor: pointer;
            transition: color 0.2s, transform 0.1s;
        }
        
        .rating-stars i:hover,
        .rating-stars i:hover ~ i {
            color: #ffc107;
        }
        
        .rating-stars i.active,
        .rating-stars i.active ~ i {
            color: var(--accent-color);
        }
        
        .comment-form-box {
            display: none;
            margin-top: 10px;
            animation: fadeIn 0.3s ease;
        }
        
        .comment-form-box textarea {
            width: 100%;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            color: #fff;
            padding: 8px;
            font-family: 'Vazirmatn', sans-serif;
            font-size: 0.85rem;
            resize: none;
        }
        
        .comment-form-box button {
            background: var(--accent-color);
            color: #000;
            border: none;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 0.8rem;
            font-weight: bold;
            margin-top: 6px;
            cursor: pointer;
        }
        
        .other-comments-list {
            margin-top: 12px;
            border-top: 1px solid var(--border-color);
            padding-top: 10px;
            max-height: 150px;
            overflow-y: auto;
        }
        
        .comment-item {
            background: rgba(255, 255, 255, 0.02);
            padding: 8px;
            border-radius: 6px;
            margin-bottom: 6px;
            font-size: 0.8rem;
        }
        
        .comment-item-header {
            display: flex;
            justify-content: space-between;
            color: var(--text-muted);
            font-size: 0.75rem;
            margin-bottom: 4px;
        }
        
        .comment-badge {
            background: rgba(245, 197, 24, 0.15);
            color: var(--accent-color);
            padding: 1px 5px;
            border-radius: 4px;
            font-size: 0.7rem;
        }
        
        .episode-avg-rating {
            font-size: 0.75rem;
            color: var(--accent-color);
            margin-right: 6px;
            display: inline-flex;
            align-items: center;
            gap: 3px;
        }
        
        .review-toggle-btn {
            background: none;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            padding: 4px 8px;
            font-size: 0.9rem;
            transition: color 0.2s;
        }
        
        .review-toggle-btn:hover {
            color: var(--accent-color);
        }

        /* ============================================
           ðŸ“Œ 12. EPISODE MODAL (GLASSMORPHISM)
           ============================================ */
        #episode-modal {
            position: fixed; 
            top: 0; 
            left: 0; 
            width: 100%; 
            height: 100%;
            background-color: var(--bg-color); 
            z-index: 3000;
            overflow-y: auto; 
            display: none; 
            padding-bottom: 80px;
            animation: slideUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
        }
        
        .ep-modal-backdrop { 
            width: 100%; 
            height: 240px; 
            object-fit: cover; 
            mask-image: linear-gradient(to bottom, black 50%, transparent 100%); 
            -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%); 
        }
        
        .ep-modal-header { 
            padding: 0 15px; 
            margin-top: -40px; 
            position: relative; 
        }
        
        .ep-modal-meta { 
            font-size: 12px; 
            color: var(--accent-color); 
            margin-bottom: 6px; 
            font-weight: bold; 
        }
        
        .ep-modal-title { 
            font-size: 20px; 
            font-weight: bold; 
            margin-bottom: 12px; 
            direction: ltr; 
            text-align: left; 
            color: #fff;
        }
        
        .ep-modal-overview { 
            font-size: 12px; 
            line-height: 1.8; 
            color: #a1a1aa; 
            text-align: justify; 
            margin-bottom: 25px; 
        }
        
        .glass-review-box {
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            padding: 20px;
            margin: 0 15px 25px 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        }
        
        .modal-stars { 
            display: flex; 
            flex-direction: row-reverse; 
            justify-content: center; 
            gap: 10px; 
            margin-bottom: 20px; 
            font-size: 28px;
        }
        
        .modal-stars i { 
            color: #333; 
            cursor: pointer; 
            transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
        }
        
        .modal-stars i.active, 
        .modal-stars i.active ~ i { 
            color: var(--accent-color); 
            text-shadow: 0 0 15px rgba(245, 197, 24, 0.4); 
        }
        
        #modal-comment-text { 
            width: 100%; 
            background: rgba(0,0,0,0.5); 
            border: 1px solid var(--border-color); 
            border-radius: 12px; 
            color: white; 
            padding: 12px; 
            font-family: 'Vazirmatn'; 
            font-size: 13px; 
            resize: none; 
            margin-bottom: 15px; 
            box-sizing: border-box;
            transition: border-color 0.3s;
        }
        
        #modal-comment-text:focus { 
            outline: none; 
            border-color: var(--accent-color); 
        }
        
        .btn-submit-modal { 
            width: 100%; 
            background: var(--accent-color); 
            color: #000; 
            font-weight: bold; 
            border: none; 
            padding: 12px; 
            border-radius: 12px; 
            font-size: 14px; 
            cursor: pointer; 
            font-family: 'Vazirmatn'; 
            transition: transform 0.1s;
        }
        
        .btn-submit-modal:active { 
            transform: scale(0.97); 
        }
        
        .modal-comments-section { 
            padding: 0 15px; 
        }
        
        .modal-comment-card {
            background: rgba(255,255,255,0.02); 
            padding: 15px; 
            border-radius: 16px; 
            border: 1px solid var(--border-color); 
            margin-bottom: 12px;
        }
        
        /* ============================================
   📌 13. HUB SECTION - نسخه نهایی و کاملاً تست‌شده
   ============================================ */

.hub-header {
    padding: 20px 15px 10px;
    text-align: right;
}

.hub-header h1 {
    margin: 0 0 6px 0;
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hub-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* آمار */
.stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 15px;
    margin-top: 10px;
}

.stats-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--accent-color), #ffd700);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.stats-card:active::before { opacity: 0.15; }

.stats-card.active-filter {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(245, 197, 24, 0.3);
}

.stats-card > * { position: relative; z-index: 1; }

.stats-card.watching {
    background: linear-gradient(135deg, rgba(245, 197, 24, 0.15) 0%, rgba(245, 197, 24, 0.05) 100%);
}

.stats-card.completed {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15) 0%, rgba(76, 175, 80, 0.05) 100%);
}

.stats-card.watched {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.15) 0%, rgba(33, 150, 243, 0.05) 100%);
}

.stats-icon {
    font-size: 28px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    flex-shrink: 0;
}

.stats-info { flex: 1; }

.stats-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 4px;
}

.stats-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* نمودار پیشرفت */
.progress-chart-container {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    padding: 20px;
    margin: 0 15px 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chart-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    text-align: right;
}

.chart-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    direction: rtl;
}

.circular-chart {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.circular-chart-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 3;
}

.circle-progress {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 0.8s ease;
}

.chart-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: 800;
    color: var(--accent-color);
}

.chart-legend {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    flex-shrink: 0;
}

.watching-color { background: var(--accent-color); }
.completed-color { background: #4caf50; }
.dropped-color { background: #f44336; }
.caught-up-color { background: #9c27b0; }
.planned-color { background: #9e9e9e; }

/* فیلترها */
.filter-container {
    display: flex;
    gap: 8px;
    padding: 0 15px 15px;
    overflow-x: auto;
    scrollbar-width: none;
}

.filter-container::-webkit-scrollbar { display: none; }

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 16px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: 'Vazirmatn', sans-serif;
}

.filter-btn i { font-size: 14px; }

.filter-btn.active {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffd700 100%);
    color: #000;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(245, 197, 24, 0.3);
    font-weight: 700;
}

.filter-btn:active { transform: scale(0.95); }

/* ==================== گرید و کارت‌های هاب ==================== */
#hub-shows-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 10px;
    padding: 0 15px 30px;
}

/* کارت هاب - override کامل استایل‌های صفحه خانه */
#hub-shows-list .show-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: transparent;
    border-radius: 12px;
    overflow: visible !important;
    cursor: pointer;
    animation: slideIn 0.4s ease;
    -webkit-tap-highlight-color: transparent;
    min-width: auto !important;
    max-width: none !important;
    height: auto !important;
    border: none !important;
    box-shadow: none !important;
    flex-shrink: 1;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

#hub-shows-list .show-card:active {
    transform: scale(0.96);
}

/* تصویر کارت */
#hub-shows-list .card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 150%;
    border-radius: 12px;
    overflow: hidden;
    background: #0a0a0a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

#hub-shows-list .card-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* نشانگر وضعیت - دایره کوچک */
#hub-shows-list .status-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.7);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
}

#hub-shows-list .status-watching { background: #f5c518; }
#hub-shows-list .status-completed { background: #4caf50; }
#hub-shows-list .status-dropped { background: #f44336; }
#hub-shows-list .status-plan_to_watch { background: #9e9e9e; }
#hub-shows-list .status-caught_up { background: #9c27b0; }  /* 🆕 بنفش */

/* نوار پیشرفت */
#hub-shows-list .progress-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2;
}

#hub-shows-list .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #ffd700);
    transition: width 0.5s ease;
}

/* دکمه منوی سه‌نقطه‌ای */
#hub-shows-list .card-menu-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    opacity: 1;
    transition: opacity 0.25s ease, transform 0.2s ease;
    padding: 0;
    margin: 0;
}

#hub-shows-list .card-menu-btn:active {
    background: rgba(245, 197, 24, 0.9);
    color: #000;
    transform: scale(0.9);
}

/* اطلاعات کارت - کاملاً مجزا و زیر تصویر */
#hub-shows-list .card-info {
    padding: 10px 4px 4px;
    text-align: center;
    position: relative;
    z-index: 1;
    background: transparent;
    width: 100%;
    box-sizing: border-box;
    margin-top: 8px;
}

#hub-shows-list .card-info h3 {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    min-height: 32px;
    direction: ltr;
    text-align: center;
}

#hub-shows-list .card-info p {
    font-size: 10px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.2;
}

#hub-shows-list .card-info p span {
    color: var(--accent-color);
    font-weight: 700;
}

/* ==================== منوی تغییر وضعیت ==================== */
.status-menu-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999; /* بالاترین z-index */
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.status-menu {
    background: #1a1a1a;
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 500px;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid var(--accent-color);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
    max-height: 80vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.status-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    background: #1a1a1a;
    z-index: 2;
}

.status-menu-header span {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}

.close-menu-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Vazirmatn', sans-serif;
}

.close-menu-btn:active {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(0.9);
}

.status-menu-items {
    padding: 12px 16px 20px;
}

.status-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
}

.status-menu-item:last-child { margin-bottom: 0; }

.status-menu-item:active {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(0.98);
}

.status-menu-item.active {
    background: rgba(245, 197, 24, 0.12);
    border-color: rgba(245, 197, 24, 0.4);
}

.status-icon {
    font-size: 22px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    flex-shrink: 0;
}

.status-label {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-align: right;
}

.status-menu-item.active .status-label {
    color: var(--accent-color);
}

/* Toast */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #1a1a1a;
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-family: 'Vazirmatn', sans-serif;
    z-index: 10000;
    transition: transform 0.3s ease;
    pointer-events: none;
    max-width: 90%;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast-success {
    border-color: rgba(76, 175, 80, 0.5);
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.25), rgba(76, 175, 80, 0.15));
}

.toast-error {
    border-color: rgba(244, 67, 54, 0.5);
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.25), rgba(244, 67, 54, 0.15));
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    color: #444;
}

.empty-state p { margin: 0; }

        /* ============================================
           ðŸ“Œ 14. ANIMATIONS
           ============================================ */
        @keyframes fadeIn { 
            from { 
                opacity: 0; 
                transform: translateY(-5px); 
            }
            to { 
                opacity: 1; 
                transform: translateY(0); 
            } 
        }
        
        @keyframes slideUp { 
            from { 
                transform: translateY(100%); 
            } 
            to { 
                transform: translateY(0); 
            } 
        }

        /* ============================================
           ðŸ“Œ 15. UTILITIES
           ============================================ */
        .text-center {
            text-align: center;
        }
        
        .mt-20 {
            margin-top: 20px;
        }
        
        .mb-20 {
            margin-bottom: 20px;
        }
        
        .hidden {
            display: none !important;
        }
        
        /* ============================================
    📌 16. STATUS MENU (MODAL)
    ============================================ */
.status-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 5000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.2s;
}

.status-menu {
    background: #1a1a1a;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    border: 1px solid var(--accent-color);
    box-shadow: 0 10px 40px rgba(245, 197, 24, 0.3);
    animation: slideUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.status-menu-header {
    padding: 15px 20px;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: var(--accent-color);
}

.close-menu-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
}

.close-menu-btn:hover {
    color: var(--accent-color);
}

.status-menu-items {
    padding: 10px;
}

.status-menu-item {
    padding: 15px;
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
}

.status-menu-item:hover {
    background: rgba(245, 197, 24, 0.1);
    transform: translateX(-5px);
}

.status-menu-item.active {
    background: rgba(245, 197, 24, 0.15);
    border: 1px solid var(--accent-color);
}

.status-icon {
    font-size: 20px;
}

.status-label {
    flex: 1;
    font-size: 14px;
    color: #fff;
}

/* Toast Notification - نسخه اصلاح شده */
#toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: 90%;
    max-width: 350px;
}

.toast {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Vazirmatn', sans-serif;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 250px;
    max-width: 100%;
    animation: toastSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 1;
    transform: translateY(0);
}

.toast.toast-hiding {
    animation: toastSlideOut 0.3s ease forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
}

.toast-success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.95) 0%, rgba(56, 142, 60, 0.95) 100%);
    border: 1px solid rgba(76, 175, 80, 0.4);
}

.toast-error {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.95) 0%, rgba(229, 57, 53, 0.95) 100%);
    border: 1px solid rgba(244, 67, 54, 0.4);
}

.toast-info {
    background: linear-gradient(135deg, rgba(245, 197, 24, 0.95) 0%, rgba(251, 191, 36, 0.95) 100%);
    color: #000;
    border: 1px solid rgba(245, 197, 24, 0.4);
}

.toast-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    text-align: right;
}

/* ============================================
    📌 18. IMPROVED CARD ACTIONS
    ============================================ */
.card-actions .btn-action i {
    margin-left: 5px;
    font-size: 12px;
}

.card-actions .btn-action.danger {
    color: var(--danger-color);
}

.card-actions .btn-action.danger:hover {
    background: rgba(244, 67, 54, 0.15);
}


/* ==================== منوی اکشن هاب ==================== */
.action-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.action-menu {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 500px;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid var(--accent-color);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
    max-height: 80vh;
    overflow-y: auto;
}

.action-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    background: #1a1a1a;
    z-index: 2;
}

.action-menu-header span {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}

.action-menu-items {
    padding: 12px 16px 20px;
}

.action-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
}

.action-menu-item:last-child {
    margin-bottom: 0;
}

.action-menu-item:active {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(0.98);
}

.action-menu-item.active {
    background: rgba(245, 197, 24, 0.12);
    border-color: rgba(245, 197, 24, 0.4);
}

.action-menu-item.danger {
    background: rgba(244, 67, 54, 0.08);
    border: 1px solid rgba(244, 67, 54, 0.2);
}

.action-menu-item.danger:active {
    background: rgba(244, 67, 54, 0.15);
}

.action-menu-item .icon {
    font-size: 22px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    flex-shrink: 0;
}

.action-menu-item .label {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-align: right;
}

.action-menu-item .sublabel {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    text-align: right;
}

.action-menu-item.danger .label {
    color: #f44336;
}

.action-menu-item.active .label {
    color: var(--accent-color);
}
/* ==================== مودال حذف شیک ==================== */
.delete-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.delete-modal {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 24px;
    padding: 30px 24px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: 1px solid rgba(244, 67, 54, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(244, 67, 54, 0.15);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.delete-modal-icon {
    width: 70px;
    height: 70px;
    background: rgba(244, 67, 54, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 2px solid rgba(244, 67, 54, 0.4);
}

.delete-modal-icon i {
    font-size: 32px;
    color: #f44336;
}

.delete-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}

.delete-modal-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0 0 25px;
    direction: rtl;
}

.delete-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-cancel,
.btn-delete {
    flex: 1;
    padding: 14px 20px;
    border-radius: 12px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-cancel:active {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0.97);
}

.btn-delete {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.btn-delete:active {
    transform: scale(0.97);
    box-shadow: 0 2px 10px rgba(244, 67, 54, 0.4);
}

/* ==================== مودال حذف شیک - مرکز صفحه ==================== */
.delete-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.delete-modal {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 24px;
    padding: 30px 24px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: 1px solid rgba(244, 67, 54, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(244, 67, 54, 0.15);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.delete-modal-icon {
    width: 70px;
    height: 70px;
    background: rgba(244, 67, 54, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 2px solid rgba(244, 67, 54, 0.4);
}

.delete-modal-icon i {
    font-size: 32px;
    color: #f44336;
}

.delete-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 12px;
}

.delete-modal-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
    margin: 0 0 25px;
    direction: rtl;
}

.delete-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-cancel,
.btn-delete {
    flex: 1;
    padding: 14px 20px;
    border-radius: 12px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-cancel:active {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0.97);
}

.btn-delete {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.3);
}

.btn-delete:active {
    transform: scale(0.97);
    box-shadow: 0 2px 10px rgba(244, 67, 54, 0.4);
}

/* ============================================
   📌 10. CALENDAR - استایل ردیف‌های افقی
   ============================================ */

/* بج شماره قسمت (جایگزین بج امتیاز در تقویم) */
.cal-ep-badge {
    display: block;
    font-size: 10px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 3px;
    direction: rtl;
    text-align: center;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.show-info {
    padding: 20px 8px 8px 8px;
}

#cal-personal-view .show-info,
#general-day-shows .show-info {
    padding: 18px 6px 6px 6px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 20%, rgba(0,0,0,0.6) 60%, transparent);
}

/* تایتل سریال در تقویم - برای تطبیق با بج */
#cal-personal-view .show-title,
#general-day-shows .show-title {
    font-size: 11px;
    direction: ltr;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    margin-top: 1px;
}
/* حذف استایل‌های قدیمی لیستی */
.cal-item, .cal-item-info, .cal-item-title, .cal-item-ep, .cal-item-date {
    display: none !important;
}

/* تنظیمات کانتینر تقویم شخصی */
#cal-personal-view {
    padding-bottom: 20px;
}

/* استایل عنوان‌های ردیف در تقویم */
#cal-personal-view .section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 5px;
}

/* تقویم عمومی - گرید سه ستونه */
#general-day-shows {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 10px;
    padding: 0 0 20px;
}

@media (max-width: 360px) {
    #general-day-shows {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* کارت‌های عمومی هم از کارت‌های هاب استفاده می‌کنند */
#general-day-shows .show-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: transparent;
    border-radius: 12px;
    overflow: visible !important;
    cursor: pointer;
    animation: slideIn 0.4s ease;
    -webkit-tap-highlight-color: transparent;
    min-width: auto !important;
    max-width: none !important;
    height: auto !important;
    border: none !important;
    box-shadow: none !important;
    flex-shrink: 1;
}

#general-day-shows .card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 150%;
    border-radius: 12px;
    overflow: hidden;
    background: #0a0a0a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

#general-day-shows .card-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#general-day-shows .rating-badge { 
    position: absolute; 
    top: 4px; 
    right: 4px; 
    background: rgba(0,0,0,0.7); 
    padding: 2px 5px; 
    border-radius: 5px; 
    font-size: 10px; 
    z-index: 2;
}

#general-day-shows .rating-badge i { 
    color: var(--accent-color); 
    font-size: 9px; 
}

#general-day-shows .card-info {
    padding: 8px 4px 4px;
    text-align: center;
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
    margin-top: 6px;
}

#general-day-shows .card-info .show-title {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: ltr;
    text-align: center;
    min-height: 32px;
}
/* 🆕 Styles for Emotion & Cast Selection */
.emotions-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.emotion-btn {
    font-size: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(100%);
    opacity: 0.6;
}

.emotion-btn.active {
    filter: grayscale(0%);
    opacity: 1;
    background: rgba(245, 197, 24, 0.15);
    border-color: var(--accent-color);
    transform: scale(1.15);
    box-shadow: 0 0 15px rgba(245, 197, 24, 0.3);
}

.cast-scroll-container {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    scrollbar-width: none;
}

.cast-scroll-container::-webkit-scrollbar {
    display: none;
}

.cast-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    min-width: 65px;
    transition: all 0.2s;
    opacity: 0.6;
}

.cast-item.active {
    opacity: 1;
    transform: translateY(-5px);
}

.cast-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    transition: all 0.2s;
    background: #222;
}

.cast-item.active .cast-avatar {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(245, 197, 24, 0.4);
}

.cast-name {
    font-size: 10px;
    color: #fff;
    margin-top: 6px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 65px;
    direction: ltr;
}
/* ============================================
   📌 SEARCH RESULTS GRID & DEFAULT CONTENT
   ============================================ */
#search-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 10px;
    padding: 0 0 20px;
}
@media (max-width: 360px) {
    #search-results {
        grid-template-columns: repeat(2, 1fr);
    }
}
#search-results .show-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: transparent;
    border-radius: 12px;
    overflow: visible !important;
    cursor: pointer;
    min-width: auto !important;
    max-width: none !important;
    height: auto !important;
    border: none !important;
    box-shadow: none !important;
    flex-shrink: 1;
}
#search-results .card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 150%;
    border-radius: 12px;
    overflow: hidden;
    background: #0a0a0a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
#search-results .card-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#search-results .card-info {
    padding: 8px 4px 4px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    margin-top: 6px;
}
#search-results .card-info h3 {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: ltr;
    text-align: center;
    min-height: 32px;
}
.day-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    /* سایر استایل‌های موجود شما حفظ شود */
}

.day-month {
    font-size: 9px;
    color: var(--text-muted);
    font-weight: 400;
    opacity: 0.8;
    margin-top: -2px;
}

.day-bubble.active .day-month {
    color: #fff;
    opacity: 1;
    font-weight: 500;
}

/* ============================================
   👤 TELEGRAM PROFILE & HUB INTEGRATION STYLES
   ============================================ */


.profile-avatar-wrapper {
    position: relative;
    width: 65px;
    height: 65px;
}

.profile-avatar-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
}

.profile-rank-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #1c1c1e;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.profile-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-info h2 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
}

.profile-info p {
    font-size: 12px;
    margin: 0;
    color: var(--text-muted);
    direction: ltr;
    text-align: right;
}

.profile-status-badge {
    align-self: flex-start;
    background: rgba(245, 197, 24, 0.1);
    border: 1px solid rgba(245, 197, 24, 0.3);
    padding: 2px 8px;
    border-radius: 20px;
    margin-top: 2px;
}

.profile-status-badge span {
    font-size: 11px;
    color: var(--accent-color);
    font-weight: 500;
}

.profile-settings-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-settings-btn:hover {
    color: var(--accent-color);
    background: rgba(245, 197, 24, 0.1);
}

/* 🔔 استایل دراپ‌داون تنظیمات اعلان */
.profile-settings-dropdown {
    background: rgba(20, 20, 22, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    margin: -5px 15px 15px 15px;
    animation: fadeIn 0.3s ease;
}

.profile-settings-dropdown h3 {
    font-size: 13px;
    margin: 0 0 10px 0;
    color: var(--text-muted);
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

/* اختصاصی برای سوئیچ چرخشی چِک‌باکس */
.setting-item input[type="checkbox"] {
    appearance: none;
    width: 40px;
    height: 20px;
    background: #3a3a3c;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: background 0.3s;
}

.setting-item input[type="checkbox"]:checked {
    background: var(--success-color);
}

.setting-item input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    background: #fff;
    transition: transform 0.3s;
}

.setting-item input[type="checkbox"]:checked::before {
    transform: translateX(20px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* ============================================
   🔥 HOME HEADER & HERO SLIDER STYLES
   ============================================ */
.home-custom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5px 10px;
    margin-bottom: 10px;
}

.home-custom-header .welcome-text .sub {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 2px;
}

.home-custom-header .welcome-text h1 {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    color: #fff;
}

.home-custom-header .brand-badge {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ffd700 100%);
    color: #000;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(245, 197, 24, 0.2);
}

/* کانتینر اصلی اسلایدر */
.hero-slider-container {
    position: relative;
    margin: 0 5px 20px 5px;
    border-radius: 16px;
    overflow: hidden;
    height: 180px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
}

.hero-slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.hero-slider-wrapper::-webkit-scrollbar {
    display: none;
}

.slide-item {
    min-width: 100%;
    width: 100%;
    height: 100%;
    position: relative;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* سایه گادینت روی عکس برای خوانایی متن */
.slide-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 40px 15px 15px 15px;
    background: linear-gradient(to top, rgba(11, 11, 12, 1) 10%, rgba(0,0,0,0.5) 60%, transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 4px;
}

.slide-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    direction: ltr;
    text-align: right;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.slide-meta {
    font-size: 10px;
    color: var(--accent-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* نقاط ناوبری زیر اسلایدر */
.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 15px;
    display: flex;
    gap: 5px;
    z-index: 10;
}

.dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent-color);
    width: 14px;
    border-radius: 4px;
}
/* کدهای زیر را به انتهای استایل‌های خودت بچسبان */

.exact-time-box div {
    background: rgba(0, 0, 0, 0.25);
    padding: 6px 0;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.exact-time-box .val {
    font-size: 15px;
    color: var(--accent-color);
}
.watchlist-custom-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
}
.watchlist-custom-card h4 {
    margin: 0 0 4px 0;
    color: var(--accent-color);
    font-size: 13px;
}
.watchlist-custom-card p {
    margin: 0 0 8px 0;
    font-size: 11px;
    color: var(--text-muted);
}
.details-action-pills-row {
    display: flex;
    gap: 6px;
    margin: 10px 0;
    overflow-x: auto;
}
.details-action-pills-row button {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-family: inherit;
    white-space: nowrap;
    cursor: pointer;
}

/* ۱. افکت شیشه‌ای مدرن برای منوی ناوبری زیرین */
.bottom-nav {
    background: rgba(15, 15, 15, 0.75) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* ۲. افکت شیشه‌ای برای هدر خانه */
.home-custom-header {
    background: rgba(15, 15, 15, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* ۳. انیمیشن ریز و پریمیوم هنگام کلیک روی دکمه‌ها و کارت‌ها */
.show-card, .nav-item, .filter-btn, .action-menu-item, button {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s, opacity 0.2s !important;
}
.show-card:active, .filter-btn:active, .action-menu-item:active, button:active {
    transform: scale(0.96) !important;
}

/* ۴. استایل پریمیوم آیتم‌های منوی مدیریت سریال */
.action-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    cursor: pointer;
}
.action-menu-item:hover, .action-menu-item.active {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(245, 197, 24, 0.3);
}
.action-menu-item.danger {
    border-color: rgba(244, 67, 54, 0.2);
}
.action-menu-item .icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* ۵. کلاس‌های فعال‌سازی انیمیشن Bottom Sheet */
.action-menu-bottom-sheet.show {
    transform: translateY(0) !important;
}