/* © WatchJunk */
/* coded by nya & suzunay */

:root {
            --bg-primary: #0a0e1a;
            --bg-secondary: #141824;
            --bg-card: #1a1f2e;
            --bg-card-hover: #222736;
            --accent-primary: #0084d1;
            --accent-secondary: #00a3ff;
            --accent-gradient: linear-gradient(135deg, #0084d1 0%, #00a3ff 100%);
            --text-primary: #ffffff;
            --text-secondary: #94a3b8;
            --text-muted: #64748b;
            --border-color: rgba(255, 255, 255, 0.08);
            --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
            --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
            --shadow-lg: 0 8px 10px rgba(0, 0, 0, 0.4);
            --shadow-xl: 0 12px 16px rgba(0, 0, 0, 0.5);
            --transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .main-container *,
        .main-container *::before,
        .main-container *::after {
            box-sizing: border-box;
        }

        .main-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 40px 20px;
            width: 100%;
        }

        .movie-card {
            background: var(--bg-card);
            border-radius: 24px;
            padding: 0;
            overflow: hidden;
            box-shadow: 0 20px 20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(37, 99, 235, 0.1);
            margin-bottom: 40px;
            position: relative;
            width: 100%;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .movie-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 24px 24px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(37, 99, 235, 0.2);
        }

        .movie-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 300px;
            background: linear-gradient(to bottom, rgba(37, 99, 235, 0.15), transparent);
            pointer-events: none;
            z-index: 1;
        }

        .movie-header {
            position: relative;
            height: 500px;
            overflow: hidden;
        }

        .movie-backdrop {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: brightness(0.4) blur(5px);
            transform: scale(1.1);
        }

        .movie-content {
            position: relative;
            z-index: 2;
            display: flex;
            gap: 40px;
            padding: 40px;
            margin-top: -200px;
        }

        .movie-poster-wrapper {
            flex-shrink: 0;
            position: relative;
            width: 300px;
            height: 450px;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 16px 16px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(37, 99, 235, 0.2);
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            border: 2px solid transparent;
        }

        .movie-poster-wrapper::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, transparent 100%);
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 1;
            pointer-events: none;
        }

        .movie-poster-wrapper:hover {
            transform: scale(1.03) translateY(-8px);
            box-shadow: 0 24px 20px rgba(37, 99, 235, 0.5), 0 0 0 2px rgba(37, 99, 235, 0.4);
            border-color: rgba(37, 99, 235, 0.3);
        }

        .movie-poster-wrapper:hover::before {
            opacity: 1;
        }

        .movie-poster {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .movie-details {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 20px;
            min-height: 450px;
        }

        .movie-title-section {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 20px;
            min-height: 80px;
            max-height: 120px;
            position: relative;
        }

        .movie-title-wrapper {
            flex: 1;
            max-width: calc(100% - 140px);
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        .movie-title {
            font-weight: 900;
            line-height: 1.1;
            margin-bottom: 8px;
            background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 50%, #ffffff 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            word-wrap: break-word;
            text-shadow: 0 0 10px rgba(37, 99, 235, 0.3);
            position: relative;
        }

        .movie-tagline {
            font-size: 1.1rem;
            color: var(--text-secondary);
            font-style: italic;
        }

        .movie-actions {
            margin-right: -30px;
            margin-top: -330px;
            display: flex;
            gap: 12px;
            flex-shrink: 0;
        }

        .btn-icon {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.08);
            border: 2px solid rgba(37, 99, 235, 0.2);
            color: var(--text-primary);
            cursor: pointer;
            transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .btn-icon:hover {
            background: rgba(37, 99, 235, 0.3);
            border-color: var(--accent-primary);
            color: var(--accent-primary);
            transform: scale(1.15) rotate(5deg);
            box-shadow: 0 8px 10px rgba(37, 99, 235, 0.4);
        }

        .movie-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 24px;
            padding: 20px 0;
            border-top: 1px solid var(--border-color);
            margin-top: -20px;
            position: relative;
            top: -20px;
            align-self: flex-start;
        }

        .meta-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.95rem;
        }

        .meta-item i {
            color: var(--accent-primary);
            font-size: 1.1rem;
        }

        .rating-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: var(--accent-gradient);
            color: white;
            padding: 10px 24px;
            border-radius: 50px;
            font-weight: 700;
            box-shadow: none;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .rating-badge::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.6s ease;
        }

        .rating-badge:hover::before {
            left: 100%;
        }

        .rating-badge:hover {
            transform: scale(1.05);
            box-shadow: none;
        }

        .movie-overview {
            font-size: 1.05rem;
            line-height: 1.8;
            color: var(--text-secondary);
            flex: 1;
        }

        .action-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
            margin-top: auto;
        }

        .btn-modern {
            padding: 14px 32px;
            border: none;
            border-radius: 50px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            position: relative;
            overflow: hidden;
        }

        .btn-primary-modern {
            background: var(--accent-gradient);
            color: white;
            position: relative;
            overflow: hidden;
        }

        .btn-primary-modern::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.5s ease;
        }

        .btn-primary-modern:hover::before {
            left: 100%;
        }

        .btn-primary-modern:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 12px rgba(37, 99, 235, 0.6);
        }

        .btn-secondary-modern {
            background: rgba(255, 255, 255, 0.1);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .btn-secondary-modern:hover {
            background: rgba(255, 255, 255, 0.15);
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        .tabs-container {
            padding: 0 40px 40px;
            width: 100%;
        }

        .tab-list {
            display: flex;
            gap: 8px;
            margin-bottom: 32px;
            border-bottom: 1px solid var(--border-color);
            padding-bottom: 0;
            overflow-x: auto;
            scrollbar-width: none;
        }

        .tab-list::-webkit-scrollbar {
            display: none;
        }

        .tab-button {
            padding: 16px 32px;
            background: transparent;
            border: none;
            color: var(--text-secondary);
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            position: relative;
            border-radius: 12px 12px 0 0;
            flex-shrink: 0;
        }

        .tab-button:hover {
            color: var(--text-primary);
            background: rgba(255, 255, 255, 0.05);
        }

        .tab-button.active {
            color: var(--accent-primary);
            background: rgba(37, 99, 235, 0.15);
            font-weight: 600;
        }

        .tab-button.active::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--accent-gradient);
            box-shadow: 0 0 12px rgba(37, 99, 235, 0.6);
        }

        .tab-content {
            display: none;
            animation: fadeIn 0.3s ease;
        }

        .tab-content.active {
            display: block;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .cast-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 24px;
        }

        .cast-member {
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
            background: var(--bg-secondary);
            border-radius: 16px;
            padding: 16px;
        }

        .cast-member:hover {
            transform: translateY(-6px) scale(1.02);
            background: var(--bg-card-hover);
            box-shadow: 0 12px 12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(37, 99, 235, 0.2);
            border: 1px solid rgba(37, 99, 235, 0.3);
        }

        .cast-avatar {
            width: 120px;
            height: 120px;
            margin: 0 auto 12px;
            border-radius: 50%;
            overflow: hidden;
            box-shadow: var(--shadow-md);
        }

        .cast-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .cast-name {
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 4px;
        }

        .image-gallery {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 24px;
        }

        .image-item {
            position: relative;
            border-radius: 16px;
            overflow: hidden;
            cursor: pointer;
            aspect-ratio: 16/9;
            background: var(--bg-secondary);
            transition: var(--transition);
        }

        .image-item:hover {
            transform: scale(1.05) rotate(1deg);
            box-shadow: 0 16px 16px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(37, 99, 235, 0.3);
            z-index: 10;
        }

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

        /* ── Shimmer Lazy Loading ── */
        .cast-avatar img.lazy,
        .image-item img.lazy {
            background: linear-gradient(90deg, #12192b 0%, #1a2542 20%, #243156 40%, #1a2542 60%, #12192b 80%) !important;
            background-size: 200% 100% !important;
            animation: imgShimmer 1.6s ease-in-out infinite !important;
        }
        .cast-avatar img.lazy-loading,
        .image-item img.lazy-loading {
            background: linear-gradient(90deg, #12192b 0%, #1a2542 20%, #243156 40%, #1a2542 60%, #12192b 80%) !important;
            background-size: 200% 100% !important;
            animation: imgShimmer 1.6s ease-in-out infinite !important;
        }

        .video-container {
            position: relative;
            width: 100%;
            padding-bottom: 56.25%;
            height: 0;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: var(--shadow-xl);
            background: var(--bg-secondary);
        }

        .video-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
        }

        .streaming-category {
            margin-bottom: 28px;
        }

        .streaming-category:last-child {
            margin-bottom: 0;
        }

        .streaming-category-title {
            font-size: 1rem;
            font-weight: 700;
            color: rgba(255, 255, 255, 0.9);
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 10px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .streaming-category-title i {
            color: var(--accent-blue);
            font-size: 1.1rem;
        }

        .streaming-hint {
            margin-top: 20px;
            font-size: 0.8rem;
            color: rgba(255, 255, 255, 0.4);
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .streaming-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
        }

        .platform-item {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100px;
            height: 100px;
            background: var(--bg-secondary);
            border-radius: 20px;
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }

        .platform-item:hover {
            transform: translateY(-6px) scale(1.05);
            box-shadow: 0 12px 12px rgba(37, 99, 235, 0.5), 0 0 0 2px rgba(37, 99, 235, 0.3);
        }

        .platform-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--accent-gradient);
            opacity: 0;
            transition: var(--transition);
        }

        .platform-item:hover::before {
            opacity: 0.1;
        }

        .platform-item img {
            width: 60px;
            height: 60px;
            object-fit: contain;
            position: relative;
            z-index: 1;
        }

        .watchlist-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 24px;
        }

        .watchlist-item {
            background: var(--bg-secondary);
            border-radius: 16px;
            padding: 20px;
            text-align: center;
            transition: var(--transition);
        }

        .watchlist-item:hover {
            background: var(--bg-card-hover);
            transform: translateY(-6px) scale(1.02);
            box-shadow: 0 12px 12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(37, 99, 235, 0.2);
            border: 1px solid rgba(37, 99, 235, 0.3);
        }

        .watchlist-thumbnail {
            width: 100%;
            height: 120px;
            object-fit: cover;
            border-radius: 12px;
            margin-bottom: 16px;
        }

        .watchlist-title {
            font-size: 0.95rem;
            font-weight: 600;
            margin-bottom: 12px;
            color: var(--text-primary);
        }

        .watchlist-btn {
            width: 100%;
        }

        .comments-section {
            background: var(--bg-card);
            border-radius: 20px;
            padding: 40px;
            margin-top: 40px;
        }

        .comment-form {
            background: var(--bg-secondary);
            border-radius: 16px;
            padding: 24px;
            margin-bottom: 32px;
        }

        .comment-textarea {
            width: 100%;
            min-height: 120px;
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 16px;
            color: var(--text-primary);
            font-size: 1rem;
            resize: vertical;
            transition: var(--transition);
        }

        .comment-textarea:focus {
            outline: none;
            border-color: var(--accent-primary);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
        }

        .comment-list {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .comment-item {
            background: var(--bg-secondary);
            border-radius: 16px;
            padding: 24px;
            transition: var(--transition);
        }

        .comment-item:hover {
            background: var(--bg-card-hover);
            transform: translateX(6px);
            box-shadow: 0 8px 10px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(37, 99, 235, 0.1);
            border-left: 3px solid var(--accent-primary);
        }

        .comment-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 16px;
        }

        .comment-author {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .comment-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            overflow: hidden;
            box-shadow: var(--shadow-sm);
        }

        .comment-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .comment-meta {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .comment-username {
            font-weight: 600;
            color: var(--text-primary);
        }

        .comment-role {
            font-size: 0.85rem;
            color: var(--accent-primary);
        }

        .comment-date {
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        .comment-content {
            color: var(--text-secondary);
            line-height: 1.7;
            margin-bottom: 16px;
        }

        .comment-actions {
            display: flex;
            gap: 12px;
        }

        .comment-action-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--border-color);
            border-radius: 50px;
            color: var(--text-secondary);
            font-size: 0.875rem;
            cursor: pointer;
            transition: var(--transition);
        }

        .comment-action-btn:hover {
            background: rgba(37, 99, 235, 0.15);
            color: var(--accent-primary);
            border-color: rgba(37, 99, 235, 0.3);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
        }


        .rating-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
            gap: 10px;
            margin-bottom: 24px;
        }

        .rating-option {
            padding: 14px;
            background: rgba(255, 255, 255, 0.05);
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            text-align: center;
            cursor: pointer;
            transition: var(--transition);
            font-weight: 600;
            font-size: 1rem;
            color: var(--text-secondary);
            position: relative;
            overflow: hidden;
        }

        .rating-option::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--accent-gradient);
            opacity: 0;
            transition: var(--transition);
        }

        .rating-option:hover {
            transform: translateY(-3px) scale(1.05);
            border-color: var(--accent-primary);
            color: var(--text-primary);
            box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
            background: rgba(37, 99, 235, 0.1);
        }

        .rating-option:hover::before {
            opacity: 0.1;
        }

        .rating-option.selected {
            background: rgba(37, 99, 235, 0.25);
            color: var(--accent-primary);
            border-color: var(--accent-primary);
            transform: scale(1.08);
            box-shadow: 0 8px 10px rgba(37, 99, 235, 0.5), 0 0 0 2px rgba(37, 99, 235, 0.3);
            font-weight: 700;
        }

        .rating-option.selected::before {
            opacity: 0;
        }


        #ratingDisplay {
            font-size: 1.1rem;
            padding: 16px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        #ratingDisplay strong {
            color: var(--accent-primary);
            font-size: 1.3rem;
        }

        @media (max-width: 1024px) {
            .movie-content {
                flex-direction: column;
                align-items: center;
                text-align: center;
                padding: 20px;
            }

            .movie-title-section {
                flex-direction: column;
                align-items: center;
                min-height: 60px;
                max-height: 100px;
            }

            .movie-title-wrapper {
                max-width: 100%;
                text-align: center;
            }

            .movie-actions {
                margin-top: 20px;
            }

            .movie-poster-wrapper {
                width: 250px;
                height: 375px;
            }

            .movie-title {
                font-size: 2.5rem;
            }

            .movie-meta {
                justify-content: center;
                top: 0;
                margin-top: 10px;
            }

            .rating-badge {
                order: -1;
                margin-bottom: 12px;
                width: 100%;
                justify-content: center;
            }
        }

        @media (max-width: 768px) {
            .main-container {
                padding: 16px 10px;
                margin: 0;
            }

            .movie-header {
                height: 280px;
            }

            .movie-content {
                flex-direction: column;
                align-items: center;
                gap: 20px;
                padding: 0 16px 16px;
                margin-top: -120px;
            }

            .movie-poster-wrapper {
                width: 180px;
                height: 270px;
                flex-shrink: 0;
            }

            .movie-details {
                min-height: auto;
                width: 100%;
                text-align: center;
            }

            .movie-title-section {
                flex-direction: column;
                align-items: center;
                min-height: auto;
                max-height: none;
                gap: 12px;
            }

            .movie-title-wrapper {
                max-width: 100%;
            }

            .movie-title {
                font-size: 1.6rem;
            }

            .movie-actions {
                margin-top: 0;
                margin-right: 0;
                margin-bottom: 0;
                justify-content: center;
                flex-wrap: wrap;
            }

            .movie-meta {
                justify-content: center;
                top: 0;
                margin-top: 0;
                gap: 14px;
            }

            .tabs-container {
                padding: 0 12px 20px;
            }

            .cast-grid {
                grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            }

            .image-gallery {
                grid-template-columns: 1fr;
            }

            .comments-section {
                padding: 20px;
            }

            .action-buttons {
                width: 100%;
                justify-content: center;
            }
        }

        @media (max-width: 480px) {
            .main-container {
                padding: 12px 8px;
            }

            .movie-card {
                margin: 0;
            }

            .movie-header {
                height: 240px;
            }

            .movie-content {
                margin-top: -100px;
                padding: 0 12px 12px;
                gap: 16px;
            }

            .movie-poster-wrapper {
                width: 160px;
                height: 240px;
            }

            .movie-title {
                font-size: 1.4rem;
            }

            .tab-button {
                padding: 10px 14px;
                font-size: 0.85rem;
            }

            .action-buttons {
                flex-direction: column;
            }

            .btn-modern {
                width: 100%;
                justify-content: center;
                padding: 12px;
            }

            .rating-badge {
                width: auto;
                margin-bottom: 8px;
                justify-content: center;
            }

            .rating-grid {
                grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
                gap: 8px;
            }

            .rating-option {
                padding: 12px 8px;
                font-size: 0.9rem;
            }
        }

        .loading {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top-color: var(--accent-primary);
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: var(--bg-secondary);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--accent-primary);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--accent-secondary);
        }

        html {
            scroll-behavior: smooth;
        }

        .not-available {
            width: 100%;
            max-width: 300px;
            margin: 0 auto;
            display: block;
            opacity: 0.5;
            filter: grayscale(100%);
        }

        .info-box {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 16px;
            background: rgba(37, 99, 235, 0.1);
            border-radius: 12px;
            border: 1px solid rgba(37, 99, 235, 0.2);
            transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
            cursor: default;
        }

        .info-box:hover {
            background: rgba(37, 99, 235, 0.15);
            border-color: rgba(37, 99, 235, 0.4);
            transform: translateY(-2px);
            box-shadow: 0 8px 10px rgba(37, 99, 235, 0.2);
        }

        .info-box i {
            font-size: 1.5rem;
            color: var(--accent-primary);
            opacity: 0.8;
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        .info-box:hover i {
            opacity: 1;
            transform: scale(1.1);
        }


        @keyframes slideIn {
            from {
                transform: translateY(-50px) scale(.95);
                opacity: 0;
            }

            to {
                transform: translateY(0) scale(1);
                opacity: 1;
            }
        }

        .modal-header {
            border-bottom: none;
            background: linear-gradient(135deg, rgba(59, 130, 246, .3), transparent);
            border-top-left-radius: 12px;
            border-top-right-radius: 12px;
        }

        .modal-title {
            font-size: 24px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .btn-close {
            position: relative;
            width: 32px;
            height: 32px;
            opacity: .7;
            background: rgba(255, 255, 255, .1);
            border-radius: 50%;
            padding: 8px;
            transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
            background-image: none;
        }

        .btn-close::before,
        .btn-close::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 16px;
            height: 2px;
            background-color: #fff;
            transform-origin: center;
        }

        .btn-close::before {
            transform: translate(-50%, -50%) rotate(45deg);
        }

        .btn-close::after {
            transform: translate(-50%, -50%) rotate(-45deg);
        }

        .btn-close:hover {
            opacity: 1;
            transform: rotate(90deg);
            background: rgba(255, 255, 255, .2);
        }

        .modal-body {
            padding: 20px;
        }

        .modal-body p {
            margin: 10px 0;
            font-size: 13px;
        }

        .modal-body .hj-btn {
            width: 100%;
            margin-top: 10px;
            font-size: 16px;
            padding: 10px;
            border-radius: 8px;
        }

        .modal-body select {
            width: 100%;
            padding: 10px;
            margin-top: 10px;
            margin-bottom: 10px;
            font-size: 16px;
            border-radius: 8px;
            background-color: #1f2937;
            color: #ffffff;
            border: 1px solid #27344A;
        }

        .modal-footer {
            border-top: 1px solid var(--border-color);
        }


/* cd-btn styles removed – now handled globally by hj-buttons.css */

/* ──────────────────────────────────────────────────────────────
   CAST LIST (WIKI STYLE)
   ────────────────────────────────────────────────────────────── */

.cast-wiki-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

.cast-wiki-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

.cast-wiki-card.cast-has-wiki:hover {
    background: rgba(0, 132, 209, 0.08);
    border-color: rgba(0, 132, 209, 0.2);
    transform: translateX(4px);
}

.cast-wiki-avatar {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-primary);
}

.cast-wiki-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cast-wiki-avatar img.lazy {
    background: linear-gradient(90deg, #12192b 0%, #1a2542 20%, #243156 40%, #1a2542 60%, #12192b 80%);
    background-size: 200% 100%;
    animation: imgShimmer 1.6s ease-in-out infinite;
}

.cast-wiki-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.cast-wiki-name {
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cast-wiki-profession {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.cast-wiki-known {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cast-wiki-arrow {
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 0.7rem;
    transition: all 0.2s ease;
    opacity: 0;
}

.cast-wiki-card.cast-has-wiki:hover .cast-wiki-arrow {
    opacity: 1;
    transform: translateX(3px);
    color: var(--accent-primary);
}

@media (max-width: 768px) {
    .cast-wiki-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .cast-wiki-avatar {
        width: 44px;
        height: 44px;
    }

    .cast-wiki-name {
        font-size: 0.85rem;
    }
}

/* ──────────────────────────────────────────────────────────────
   WIKI TAB + TRIVIA + PRODUCTION + FRANCHISE
   ────────────────────────────────────────────────────────────── */

.movie-franchise-section {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 32px 40px;
    margin-top: 24px;
}

.movie-franchise-section .section-header {
    margin-bottom: 24px;
}

/* ── Wiki Grid ── */

.movie-wiki-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.movie-wiki-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

.movie-wiki-card:hover {
    background: rgba(0, 132, 209, 0.08);
    border-color: rgba(0, 132, 209, 0.2);
    transform: translateX(4px);
}

.movie-wiki-avatar {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-primary);
}

.movie-wiki-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.movie-wiki-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.movie-wiki-name {
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-wiki-relation {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.movie-wiki-role {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.movie-wiki-known {
    font-size: 0.72rem;
    color: var(--text-muted);
    opacity: 0.7;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-wiki-arrow {
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.movie-wiki-card:hover .movie-wiki-arrow {
    transform: translateX(3px);
    color: var(--accent-primary);
}

/* ── Trivia & Production Content ── */

.movie-trivia-content,
.movie-production-content {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
}

.movie-trivia-content ul,
.movie-production-content ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.movie-trivia-content li,
.movie-production-content li {
    padding: 14px 18px;
    background: var(--bg-secondary);
    border-radius: 10px;
    border-left: 3px solid var(--accent-primary);
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.movie-trivia-content li::before {
    content: none;
}

.movie-trivia-content p,
.movie-production-content p {
    margin-bottom: 12px;
}

.movie-trivia-content strong,
.movie-production-content strong {
    color: var(--text-primary);
}

/* ── Franchise Scroll ── */

.movie-franchise-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: #1c2938 transparent;
}

.movie-franchise-scroll::-webkit-scrollbar {
    height: 6px;
}

.movie-franchise-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.movie-franchise-scroll::-webkit-scrollbar-thumb {
    background: #1c2938;
    border-radius: 3px;
}

.movie-franchise-card {
    flex: 0 0 130px;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.3s ease;
}

.movie-franchise-card:hover {
    transform: translateY(-4px);
}

.movie-franchise-card.franchise-current {
    opacity: 1;
}

.movie-franchise-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: var(--bg-secondary);
    border: 2px solid transparent;
    transition: border-color 0.25s ease;
}

.franchise-current .movie-franchise-poster {
    border-color: var(--accent-primary);
    box-shadow: 0 0 12px rgba(0, 132, 209, 0.25);
}

.movie-franchise-card:hover .movie-franchise-poster {
    border-color: rgba(0, 132, 209, 0.4);
}

.movie-franchise-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.franchise-current-badge {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 10px;
    background: var(--accent-primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.movie-franchise-title {
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.movie-franchise-year {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
}

/* ── Responsive ── */

@media (max-width: 768px) {
    .movie-wiki-section,
    .movie-trivia-section,
    .movie-production-section,
    .movie-franchise-section {
        padding: 20px;
        border-radius: 16px;
        margin-top: 16px;
    }

    .movie-wiki-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .movie-wiki-avatar {
        width: 44px;
        height: 44px;
    }

    .movie-franchise-card {
        flex: 0 0 100px;
    }

    .movie-franchise-title {
        font-size: 0.72rem;
    }

    .movie-trivia-content li,
    .movie-production-content li {
        padding: 12px 14px;
        font-size: 0.85rem;
    }
}
