
        /* ===== همه استایل‌های قبلی را همینجا کپی کن ===== */
        :root {
            --bg: #0a0a0f;
            --surface: #141420;
            --surface2: #1a1a2e;
            --surface3: #1e1e32;
            --gold: #f5c518;
            --gold-dark: #c49a0c;
            --text: #e8e8e8;
            --text2: #b0b0b0;
            --text3: #888;
            --accent: #e63946;
            --accent2: #457b9d;
            --success: #2ecc71;
            --border: #2a2a3a;
            --shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
            --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.7);
            --radius: 16px;
            --radius-sm: 10px;
            --radius-xs: 8px;
            --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --font: 'Segoe UI', 'Tahoma', 'Vazirmatn', sans-serif;
        }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: var(--font);
            background: var(--bg);
            color: var(--text);
            min-height: 100vh;
            overflow-x: hidden;
            line-height: 1.6;
            -webkit-tap-highlight-color: transparent;
            background-image:
                radial-gradient(ellipse at 20% 20%, rgba(245, 197, 24, 0.03) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 60%, rgba(230, 57, 70, 0.04) 0%, transparent 60%),
                radial-gradient(ellipse at 50% 80%, rgba(69, 123, 157, 0.03) 0%, transparent 50%);
        }
        ::-webkit-scrollbar { width: 6px; }
        ::-webkit-scrollbar-track { background: var(--surface); }
        ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
        ::-webkit-scrollbar-thumb:hover { background: #444; }

        .header {
            position: sticky;
            top: 0;
            z-index: 100;
            background: rgba(10, 10, 15, 0.85);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border);
            padding: 0 24px;
            display: flex;
            align-items: center;
            justify-content: space-around;
            height: 64px;
            gap: 16px;
            transition: var(--transition);
        }
        .header.scrolled { box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5); }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 1.6rem;
            font-weight: 900;
            color: var(--gold);
            letter-spacing: -0.5px;
            cursor: pointer;
            white-space: nowrap;
            user-select: none;
        }
        .logo .icon { font-size: 2rem; animation: pulse-gold 2s infinite; }
        @keyframes pulse-gold {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.15); }
        }

        .nav-links {
            display: flex;
            gap: 6px;
            list-style: none;
            flex-wrap: wrap;
            justify-content: center;
        }
        .nav-links a {
            color: var(--text);
            text-decoration: none;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 500;
            transition: var(--transition);
            white-space: nowrap;
        }
        .nav-links a:hover,
        .nav-links a.active {
            color: #fff;
            background: var(--surface3);
        }
        .nav-links h4 {
            color: var(--text3);
            font-weight: 400;
            font-size: 0.8rem;
            padding: 0 8px;
            margin: auto 0;
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .search-box {
            display: flex;
            align-items: center;
            background: var(--surface2);
            border-radius: 24px;
            padding: 8px 16px;
            gap: 8px;
            border: 2px solid transparent;
            transition: var(--transition);
        }
        .search-box:focus-within {
            border-color: var(--gold);
            box-shadow: 0 0 0 4px rgba(245, 197, 24, 0.08);
        }
        .search-box input {
            background: none;
            border: none;
            color: var(--text);
            font-size: 0.9rem;
            outline: none;
            width: 140px;
            font-family: var(--font);
        }
        .search-box input::placeholder { color: var(--text3); }
        .search-box .search-icon { color: var(--text3); font-size: 1.1rem; }

        .btn {
            padding: 10px 20px;
            border-radius: 24px;
            border: none;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.9rem;
            font-family: var(--font);
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 8px;
            white-space: nowrap;
            text-decoration: none;
        }
        .btn-login {
            background: var(--gold);
            color: #000;
        }
        .btn-login:hover {
            background: #e0b010;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(245, 197, 24, 0.3);
        }
        .btn-user {
            background: var(--surface3);
            color: var(--text);
            border: 2px solid var(--border);
            position: relative;
        }
        .btn-user:hover { border-color: var(--gold); }
        .btn-logout-header {
            background: var(--accent);
            color: #fff;
            padding: 8px 16px;
            border-radius: 20px;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.85rem;
            transition: var(--transition);
        }
        .btn-logout-header:hover {
            background: #c0392b;
            transform: translateY(-2px);
        }
        .user-avatar-mini {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--gold);
        }
        .badge-dot {
            position: absolute;
            top: 6px;
            right: 10px;
            width: 9px;
            height: 9px;
            background: var(--success);
            border-radius: 50%;
            border: 2px solid var(--surface3);
        }

        .menu-toggle {
            display: none;
            background: none;
            border: none;
            color: var(--text);
            font-size: 1.8rem;
            cursor: pointer;
            padding: 4px;
        }

        .main-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px 24px 40px;
        }
        .section-title {
            font-size: 1.8rem;
            font-weight: 800;
            margin-bottom: 8px;
            color: #fff;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .section-title .icon { color: var(--gold); }
        .section-subtitle {
            color: var(--text3);
            margin-bottom: 24px;
            font-size: 0.95rem;
        }

        .filter-tabs {
            display: flex;
            gap: 8px;
            /* flex-wrap: wrap; */
            margin-bottom: 28px;
        }
        .filter-tab {
            padding: 8px 18px;
            border-radius: 20px;
            border: 1px solid var(--border);
            background: var(--surface);
            color: var(--text2);
            cursor: pointer;
            font-size: 0.85rem;
            font-weight: 500;
            transition: var(--transition);
            font-family: var(--font);
            white-space: nowrap;
        }
        .filter-tab:hover {
            border-color: #555;
            color: #fff;
        }
        .filter-tab.active {
            background: var(--gold);
            color: #000;
            border-color: var(--gold);
            font-weight: 700;
        }

        .movie-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
        }
        .movie-card {
            background: var(--surface);
            border-radius: var(--radius);
            overflow: hidden;
            cursor: pointer;
            transition: var(--transition);
            border: 1px solid var(--border);
            position: relative;
        }
        .movie-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-lg);
            border-color: #444;
        }
        .movie-card:active { transform: scale(0.97); }

        .card-poster-wrap {
            position: relative;
            aspect-ratio: 2 / 3;
            overflow: hidden;
            background: var(--surface2);
        }
        .card-poster {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        .movie-card:hover .card-poster { transform: scale(1.08); }

        .card-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to top,
                    rgba(0, 0, 0, 0.9) 0%,
                    rgba(0, 0, 0, 0.4) 35%,
                    transparent 60%);
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            padding: 16px;
            opacity: 0;
            transition: var(--transition);
        }
        .movie-card:hover .card-overlay { opacity: 1; }
        .card-overlay .movie-year {
            font-size: 0.8rem;
            color: var(--gold);
            font-weight: 600;
        }
        .card-overlay .movie-genre {
            font-size: 0.75rem;
            color: #ccc;
            margin-top: 2px;
        }

        .card-rating {
            position: absolute;
            top: 12px;
            left: 12px;
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(8px);
            color: var(--gold);
            padding: 6px 10px;
            border-radius: 16px;
            font-size: 0.8rem;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 4px;
            z-index: 2;
        }
        .card-rating .star { font-size: 0.9rem; }

        .card-icon-btn {
            position: absolute;
            top: 12px;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(8px);
            border: none;
            color: #fff;
            cursor: pointer;
            font-size: 1.1rem;
            transition: var(--transition);
            z-index: 2;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
        }
        .card-icon-btn:hover { transform: scale(1.1); }

        .card-watchlist-btn {
            right: 12px;
        }
        .card-watchlist-btn:hover {
            background: var(--accent);
        }
        .card-watchlist-btn.saved {
            background: var(--accent);
            animation: heart-pop 0.4s ease;
        }
        @keyframes heart-pop {
            0%, 100% { transform: scale(1); }
            30% { transform: scale(1.35); }
        }

        .card-play-btn {
            right: 56px;
            font-size: 0.9rem;
        }
        .card-play-btn:hover {
            background: var(--accent2);
        }

        .card-info {
            padding: 14px 16px;
        }
        .card-title {
            font-weight: 700;
            font-size: 1rem;
            color: #fff;
            margin-bottom: 10px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .card-actors {
            display: flex;
            align-items: center;
        }
        .actor-thumb {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--surface);
            margin-left: -8px;
            transition: var(--transition);
            background: var(--surface3);
            flex-shrink: 0;
        }
        .actor-thumb:first-child { margin-left: 0; }
        .actor-thumb:hover {
            transform: translateY(-4px) scale(1.15);
            border-color: var(--gold);
            z-index: 5;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
        }
        .actor-more {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            background: var(--surface3);
            border: 2px solid var(--surface);
            margin-left: -8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            font-weight: 700;
            color: var(--text2);
            flex-shrink: 0;
        }

        /* ===== سایدبار و مودال‌ها ===== */
        .sidebar-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.6);
            z-index: 200;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.35s ease;
        }
        .sidebar-overlay.active {
            opacity: 1;
            pointer-events: all;
        }

        .sidebar-panel {
            position: fixed;
            top: 0;
            right: -420px;
            width: 400px;
            max-width: 90vw;
            height: 100vh;
            background: var(--surface);
            z-index: 201;
            transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            flex-direction: column;
            border-left: 1px solid var(--border);
            box-shadow: -8px 0 40px rgba(0, 0, 0, 0.6);
            overflow-y: auto;
        }
        .sidebar-panel.open { right: 0; }

        .sidebar-header {
            padding: 24px;
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: sticky;
            top: 0;
            background: var(--surface);
            z-index: 2;
        }
        .sidebar-header h3 {
            font-size: 1.3rem;
            color: #fff;
        }
        .btn-close-sidebar {
            background: var(--surface3);
            border: none;
            color: #fff;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1.2rem;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .btn-close-sidebar:hover { background: var(--accent); }

        .sidebar-body {
            padding: 24px;
            flex: 1;
        }
        .sidebar-user-info {
            text-align: center;
            margin-bottom: 28px;
        }
        .sidebar-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid var(--gold);
            margin-bottom: 12px;
        }
        .sidebar-username {
            font-size: 1.2rem;
            font-weight: 700;
            color: #fff;
        }
        .sidebar-email {
            font-size: 0.85rem;
            color: var(--text3);
        }

        .sidebar-stats {
            display: flex;
            gap: 12px;
            margin-bottom: 24px;
        }
        .stat-box {
            flex: 1;
            background: var(--surface2);
            border-radius: var(--radius-sm);
            padding: 16px;
            text-align: center;
            border: 1px solid var(--border);
        }
        .stat-box .stat-num {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--gold);
        }
        .stat-box .stat-label {
            font-size: 0.75rem;
            color: var(--text3);
            margin-top: 2px;
        }

        .sidebar-section-title {
            font-size: 0.85rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--text3);
            margin-bottom: 12px;
            font-weight: 600;
        }
        .watchlist-mini {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 8px;
            max-height: 200px;
            overflow-y: auto;
        }
        .watchlist-mini li {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 10px;
            background: var(--surface2);
            border-radius: var(--radius-xs);
            font-size: 0.85rem;
            transition: var(--transition);
            cursor: pointer;
        }
        .watchlist-mini li:hover { background: var(--surface3); }
        .watchlist-mini img {
            width: 40px;
            height: 56px;
            object-fit: cover;
            border-radius: 6px;
            flex-shrink: 0;
        }
        .empty-watchlist {
            color: var(--text3);
            font-size: 0.85rem;
            text-align: center;
            padding: 20px;
        }

        .btn-logout {
            width: 100%;
            padding: 12px;
            background: var(--accent);
            color: #fff;
            border: none;
            border-radius: 24px;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.9rem;
            font-family: var(--font);
            transition: var(--transition);
            margin-top: 16px;
        }
        .btn-logout:hover {
            background: #c0392b;
            box-shadow: 0 6px 20px rgba(230, 57, 70, 0.3);
        }

        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.75);
            z-index: 350;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
            padding: 20px;
            background-color: rgba(50, 50, 50, 0.50);
        }
        .modal-overlay.active {
            opacity: 1;
            pointer-events: all;
        }
        .modal {
            background: var(--surface);
            border-radius: var(--radius);
            padding: 32px 28px;
            width: 440px;
            max-width: 100%;
            border: 1px solid var(--border);
            box-shadow: var(--shadow-lg);
            position: relative;
            animation: modal-in 0.35s ease;
        }
        @keyframes modal-in {
            from { transform: translateY(30px) scale(0.95); opacity: 0; }
            to { transform: translateY(0) scale(1); opacity: 1; }
        }
        .modal-close {
            position: absolute;
            top: 14px;
            right: 14px;
            background: var(--surface3);
            border: none;
            color: #fff;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1.2rem;
            transition: var(--transition);
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .modal-close:hover { background: var(--accent); }
        .modal h2 {
            text-align: center;
            margin-bottom: 6px;
            color: #fff;
            font-size: 1.6rem;
        }
        .modal .modal-sub {
            text-align: center;
            color: var(--text3);
            font-size: 0.85rem;
            margin-bottom: 24px;
        }
        .form-group {
            margin-bottom: 16px;
        }
        .form-group label {
            display: block;
            margin-bottom: 6px;
            font-weight: 600;
            color: var(--text2);
            font-size: 0.85rem;
        }
        .form-group input {
            width: 100%;
            padding: 12px 16px;
            border-radius: var(--radius-xs);
            border: 2px solid var(--border);
            background: var(--surface2);
            color: #fff;
            font-size: 0.95rem;
            font-family: var(--font);
            transition: var(--transition);
            outline: none;
        }
        .form-group input:focus {
            border-color: var(--gold);
            box-shadow: 0 0 0 4px rgba(245, 197, 24, 0.06);
        }
        .btn-submit {
            width: 100%;
            padding: 14px;
            background: var(--gold);
            color: #000;
            border: none;
            border-radius: 24px;
            cursor: pointer;
            font-weight: 700;
            font-size: 1rem;
            font-family: var(--font);
            transition: var(--transition);
            margin-top: 8px;
        }
        .btn-submit:hover {
            background: #e0b010;
            box-shadow: 0 8px 24px rgba(245, 197, 24, 0.3);
            transform: translateY(-2px);
        }
        .modal-toggle-text {
            text-align: center;
            margin-top: 16px;
            color: var(--text3);
            font-size: 0.85rem;
        }
        .modal-toggle-text span {
            color: var(--gold);
            cursor: pointer;
            font-weight: 600;
            text-decoration: underline;
        }

        .detail-modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.8);
            z-index: 300;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
            padding: 20px;
        }
        .detail-modal-overlay.active {
            opacity: 1;
            pointer-events: all;
        }
        .detail-modal {
            background: var(--surface);
            border-radius: var(--radius);
            width: 700px;
            max-width: 100%;
            max-height: 85vh;
            overflow-y: auto;
            border: 1px solid var(--border);
            box-shadow: var(--shadow-lg);
            position: relative;
            animation: modal-in 0.35s ease;
        }
        .detail-modal .modal-close { z-index: 5; }
        .detail-header {
            display: flex;
            gap: 20px;
            padding: 24px;
            flex-wrap: wrap;
        }
        .detail-poster {
            width: 180px;
            height: 270px;
            object-fit: cover;
            border-radius: var(--radius-sm);
            flex-shrink: 0;
            box-shadow: var(--shadow);
        }
        .detail-info {
            flex: 1;
            min-width: 200px;
        }
        .detail-info h2 {
            font-size: 1.5rem;
            color: #fff;
            margin-bottom: 6px;
        }
        .detail-meta {
            color: var(--text3);
            font-size: 0.85rem;
            margin-bottom: 8px;
        }
        .detail-rating-big {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(245, 197, 24, 0.15);
            color: var(--gold);
            padding: 6px 14px;
            border-radius: 16px;
            font-weight: 700;
            font-size: 1rem;
            margin-bottom: 10px;
        }
        .detail-genre-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 10px;
        }
        .genre-tag {
            padding: 4px 12px;
            background: var(--surface3);
            border-radius: 14px;
            font-size: 0.75rem;
            color: var(--text2);
        }
        .detail-desc {
            color: var(--text2);
            font-size: 0.9rem;
            line-height: 1.7;
        }

        .detail-actors-section {
            padding: 0 24px 24px;
        }
        .detail-actors-section h3 {
            font-size: 1.1rem;
            color: #fff;
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .detail-actors-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
        }
        .detail-actor-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            background: var(--surface2);
            padding: 14px 16px;
            border-radius: var(--radius-sm);
            min-width: 80px;
            border: 1px solid var(--border);
            transition: var(--transition);
            cursor: default;
        }
        .detail-actor-card:hover {
            border-color: var(--gold);
            transform: translateY(-3px);
        }
        .detail-actor-card img {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--border);
        }
        .detail-actor-card span {
            font-size: 0.8rem;
            color: var(--text2);
            text-align: center;
            font-weight: 500;
        }

        .toast-container {
            position: fixed;
            bottom: 24px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 500;
            display: flex;
            flex-direction: column;
            gap: 8px;
            pointer-events: none;
        }
        .toast {
            background: var(--surface3);
            color: #fff;
            padding: 12px 20px;
            border-radius: 24px;
            font-size: 0.85rem;
            font-weight: 600;
            border: 1px solid var(--border);
            box-shadow: var(--shadow);
            animation: toast-in 0.4s ease, toast-out 0.3s ease 2.2s forwards;
            pointer-events: all;
            text-align: center;
            white-space: nowrap;
        }
        @keyframes toast-in {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes toast-out {
            from { opacity: 1; transform: translateY(0); }
            to { opacity: 0; transform: translateY(-10px); }
        }

        .footer {
            text-align: center;
            padding: 20px;
            color: var(--text3);
            font-size: 0.8rem;
            border-top: 1px solid var(--border);
            margin-top: 20px;
        }

        /* ===== Responsive ===== */
        @media (max-width: 1200px) {
            .movie-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
            .nav-links a { padding: 6px 12px; font-size: 0.8rem; }
        }
        @media (max-width: 900px) {
            .movie-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
            .nav-links { display: none; }
            .menu-toggle { display: block; }
            .search-box input { width: 100px; }
            .header { padding: 0 14px; height: 56px; }
            .logo { font-size: 1.3rem; }
            .logo .icon { font-size: 1.5rem; }
            .detail-header { flex-direction: column; align-items: center; text-align: center; }
            .detail-poster { width: 140px; height: 210px; }
        }
        @media (max-width: 600px) {
            .movie-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
            .card-title { font-size: 0.85rem; }
            .card-icon-btn { width: 28px; height: 28px; font-size: 0.8rem; top: 8px; }
            .card-watchlist-btn { right: 8px; }
            .card-play-btn { right: 44px; }
            .actor-thumb { width: 26px; height: 26px; margin-left: -6px; }
            .actor-more { width: 26px; height: 26px; margin-left: -6px; font-size: 0.6rem; }
            .card-info { padding: 10px 10px; }
            .card-rating { top: 8px; left: 8px; font-size: 0.7rem; padding: 4px 8px; }
            .section-title { font-size: 1.3rem; }
            .search-box { display: none; }
            .header { gap: 8px; }
            .btn { padding: 8px 14px; font-size: 0.8rem; }
            .sidebar-panel { width: 100%; max-width: 100vw; right: -100%; }
            .detail-modal { max-height: 90vh; }
            .detail-header { padding: 16px; gap: 12px; }
            .detail-poster { width: 110px; height: 165px; }
            .detail-actors-section { padding: 0 16px 16px; }
            .detail-actor-card img { width: 44px; height: 44px; }
            .detail-actor-card { padding: 10px 12px; min-width: 60px; gap: 4px; }
            .filter-tabs { gap: 4px; }
            .filter-tab { padding: 6px 12px; font-size: 0.75rem; }
        }
        @media (max-width: 380px) {
            .movie-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
            .card-title { font-size: 0.78rem; }
            .card-icon-btn { width: 24px; height: 24px; font-size: 0.7rem; top: 6px; }
            .card-watchlist-btn { right: 6px; }
            .card-play-btn { right: 36px; }
            .actor-thumb { width: 22px; height: 22px; margin-left: -5px; }
            .actor-more { width: 22px; height: 22px; margin-left: -5px; font-size: 0.55rem; }
        }
        .scroll {
            overflow-x: scroll;
            white-space: nowrap;
            -ms-overflow-style: none;  /* IE and Edge */
            scrollbar-width: none;  /* Firefox */
        }
        .scroll::-webkit-scrollbar {
            display: none;
        }
        /* ===== SERIES SCROLLER (اسلایدر سریال‌ها) ===== */
.series-scroller {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.series-scroller-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.series-scroller-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.series-scroller-header h2 .icon {
    color: var(--gold);
}

.series-scroller-header .view-all {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--gold);
}

.series-scroller-header .view-all:hover {
    background: var(--gold);
    color: #000;
}

.series-scroll-wrapper {
    position: relative;
    overflow: hidden;
    padding: 8px 0;
}

.series-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 4px 16px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.series-scroll::-webkit-scrollbar {
    height: 6px;
}

.series-scroll::-webkit-scrollbar-track {
    background: var(--surface);
    border-radius: 10px;
}

.series-scroll::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

.series-scroll::-webkit-scrollbar-thumb:hover {
    background: #444;
}

.series-scroll-item {
    flex: 0 0 200px;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
}

.series-scroll-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.series-scroll-item .poster-wrap {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--surface2);
}

.series-scroll-item .poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.series-scroll-item:hover .poster-wrap img {
    transform: scale(1.06);
}

.series-scroll-item .episode-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    color: var(--gold);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 2;
}

.series-scroll-item .play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 3;
}

.series-scroll-item:hover .play-overlay {
    opacity: 1;
}

.series-scroll-item .play-overlay .play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(245, 197, 24, 0.9);
    border: none;
    color: #000;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 0 30px rgba(245, 197, 24, 0.3);
}

.series-scroll-item .play-overlay .play-btn:hover {
    transform: scale(1.1);
    background: var(--gold);
}

.series-scroll-item .info {
    padding: 10px 12px;
}

.series-scroll-item .info .title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.series-scroll-item .info .genre {
    font-size: 0.75rem;
    color: var(--text3);
}

.series-scroll-item .info .episodes-info {
    font-size: 0.7rem;
    color: var(--text3);
    margin-top: 4px;
}

/* دکمه‌های اسکرول (اختیاری) */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface2);
    border: 1px solid var(--border);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
}

.series-scroll-wrapper:hover .scroll-btn {
    opacity: 1;
    pointer-events: all;
}

.scroll-btn:hover {
    background: var(--gold);
    color: #000;
}

.scroll-btn-left {
    left: 4px;
}

.scroll-btn-right {
    right: 4px;
}

@media (max-width: 600px) {
    .series-scroll-item {
        flex: 0 0 150px;
    }
    .series-scroll-item .info .title {
        font-size: 0.8rem;
    }
    .scroll-btn {
        display: none;
    }
}
