:root {
            --purple-50: #faf5ff;
            --purple-100: #f3e8ff;
            --purple-200: #e9d5ff;
            --purple-300: #d8b4fe;
            --purple-400: #c084fc;
            --purple-500: #a855f7;
            --purple-600: #9333ea;
            --purple-700: #7e22ce;
            --purple-800: #6b21a8;
            --purple-900: #581c87;
            --gray-50: #18181b;
            --gray-100: #27272a;
            --gray-200: #3f3f46;
            --gray-300: #52525b;
            --gray-400: #71717a;
            --gray-500: #a1a1aa;
            --gray-600: #d4d4d8;
            --gray-700: #e4e4e7;
            --gray-800: #f4f4f5;
            --gray-900: #fafafa;
            --white: #09090b;
            --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
            --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
            --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
            --shadow-xl: 0 20px 40px -8px rgba(0, 0, 0, 0.1);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--gray-50);
            color: var(--gray-800);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* ─── Header ─── */
        header {
            background: var(--white);
            border-bottom: 1px solid var(--gray-200);
            padding: 0 2rem;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: var(--shadow-sm);
        }

        .header-inner {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 64px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            color: var(--gray-900);
        }

        .logo-img {
            height: 40px;
            width: auto;
            object-fit: contain;
            display: block;
        }

        .footer-logo-img {
            height: 32px;
            width: auto;
            object-fit: contain;
            display: block;
        }

        /* Keep old classes as fallback (hidden if image loads) */
        .logo-icon {
            width: 36px;
            height: 36px;
            background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 18px;
            font-weight: 700;
            box-shadow: 0 2px 8px rgba(147, 51, 234, 0.3);
        }

        .logo-text {
            font-weight: 700;
            font-size: 1.25rem;
            letter-spacing: -0.02em;
        }

        .logo-text span {
            color: var(--purple-600);
        }

        .nav-links {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .nav-links a {
            text-decoration: none;
            color: var(--gray-500);
            font-size: 0.9rem;
            font-weight: 500;
            transition: color 0.2s;
        }

        .nav-links a:hover {
            color: var(--purple-600);
        }

        .nav-badge {
            background: var(--purple-100);
            color: var(--purple-700);
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
        }

        /* ─── Hero Section ─── */
        .hero {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 4rem 1.5rem 3rem;
            text-align: center;
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: var(--purple-50);
            border: 1px solid var(--purple-200);
            color: var(--purple-700);
            padding: 6px 16px;
            border-radius: 100px;
            font-size: 0.8rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            animation: fadeInDown 0.5s ease;
        }

        .hero-badge .dot {
            width: 6px;
            height: 6px;
            background: var(--purple-500);
            border-radius: 50%;
            animation: pulse 2s ease infinite;
        }

        @keyframes pulse {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.4;
            }
        }

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

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

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

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

        .hero h1 {
            font-size: 3rem;
            font-weight: 800;
            color: var(--gray-900);
            line-height: 1.15;
            margin-bottom: 1rem;
            letter-spacing: -0.03em;
            animation: fadeInUp 0.6s ease;
        }

        .hero h1 .gradient {
            background: linear-gradient(135deg, var(--purple-600), var(--purple-400));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .hero p {
            font-size: 1.1rem;
            color: var(--gray-500);
            max-width: 500px;
            line-height: 1.6;
            margin-bottom: 2.5rem;
            animation: fadeInUp 0.7s ease;
        }

        /* ─── Download Card ─── */
        .download-card {
            background: var(--white);
            border: 1px solid var(--gray-200);
            border-radius: 16px;
            padding: 2rem;
            width: 100%;
            max-width: 560px;
            box-shadow: var(--shadow-lg);
            animation: fadeInUp 0.8s ease;
        }

        .input-wrapper {
            position: relative;
            margin-bottom: 1rem;
        }

        .input-wrapper .icon {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--gray-400);
            font-size: 1.1rem;
        }

        .url-input {
            width: 100%;
            padding: 16px 16px 16px 44px;
            border: 2px solid var(--gray-200);
            border-radius: 12px;
            font-size: 15px;
            font-family: inherit;
            color: var(--gray-800);
            background: var(--white);
            outline: none;
            transition: border-color 0.3s, box-shadow 0.3s;
        }

        .url-input::placeholder {
            color: var(--gray-400);
        }

        .url-input:focus {
            border-color: var(--purple-400);
            box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.1);
        }

        .btn-row {
            display: flex;
            gap: 10px;
        }

        .btn {
            flex: 1;
            border: none;
            padding: 14px 20px;
            border-radius: 12px;
            font-size: 0.93rem;
            font-weight: 600;
            font-family: inherit;
            cursor: pointer;
            transition: all 0.25s ease;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
            color: white;
            box-shadow: 0 4px 14px rgba(147, 51, 234, 0.35);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(147, 51, 234, 0.45);
        }

        .btn-primary:active {
            transform: translateY(0);
        }

        .btn-secondary {
            background: var(--purple-50);
            color: var(--purple-700);
            border: 1px solid var(--purple-200);
        }

        .btn-secondary:hover {
            background: var(--purple-100);
            transform: translateY(-2px);
        }

        .btn-secondary:active {
            transform: translateY(0);
        }

        /* ─── Status Messages ─── */
        .status-bar {
            display: none;
            margin-top: 1rem;
            padding: 12px 16px;
            border-radius: 10px;
            font-size: 0.85rem;
            font-weight: 500;
            align-items: center;
            gap: 10px;
        }

        .status-bar.loading {
            background: var(--purple-50);
            border: 1px solid var(--purple-200);
            color: var(--purple-700);
        }

        .status-bar.error {
            background: #fef2f2;
            border: 1px solid #fecaca;
            color: #dc2626;
        }

        .spinner {
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid var(--purple-200);
            border-top: 2px solid var(--purple-600);
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
            flex-shrink: 0;
        }

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

        /* ─── Platforms Strip ─── */
        .platforms {
            margin-top: 2rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        .platforms span {
            font-size: 0.75rem;
            color: var(--gray-400);
            font-weight: 500;
        }

        .platform-tag {
            background: var(--gray-100);
            color: var(--gray-600);
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 0.72rem;
            font-weight: 500;
        }

        /* ─── Features ─── */
        .features {
            max-width: 700px;
            width: 100%;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
            margin-top: 3rem;
            animation: fadeInUp 0.9s ease;
        }

        .feature {
            text-align: center;
            padding: 1.2rem 0.8rem;
        }

        .feature-icon {
            font-size: 1.6rem;
            margin-bottom: 0.5rem;
        }

        .feature h4 {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--gray-800);
            margin-bottom: 0.3rem;
        }

        .feature p {
            font-size: 0.78rem;
            color: var(--gray-400);
            line-height: 1.5;
        }

        /* ─── Footer ─── */
        footer {
            background: var(--white);
            border-top: 1px solid var(--gray-200);
            padding: 4rem 2rem 2rem;
            margin-top: auto;
        }

        .footer-container {
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 2rem;
            margin-bottom: 3rem;
        }

        .footer-col h4 {
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--gray-900);
            margin-bottom: 1.2rem;
        }

        .footer-col p {
            color: var(--gray-500);
            font-size: 0.9rem;
            line-height: 1.6;
            margin-bottom: 1.5rem;
        }

        .footer-logo {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
            margin-bottom: 1.2rem;
        }

        .footer-logo-icon {
            width: 32px;
            height: 32px;
            background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 16px;
            font-weight: 700;
        }

        .footer-logo-text {
            font-weight: 700;
            font-size: 1.2rem;
            color: var(--gray-900);
        }

        .footer-socials {
            display: flex;
            gap: 12px;
        }

        .footer-socials a {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--gray-100);
            color: var(--gray-500);
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            transition: all 0.2s ease;
        }

        .footer-socials a:hover {
            background: var(--purple-500);
            color: white;
            transform: translateY(-2px);
        }

        .footer-links {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 0.8rem;
        }

        .footer-links a {
            color: var(--gray-500);
            text-decoration: none;
            font-size: 0.9rem;
            transition: color 0.2s;
        }

        .footer-links a:hover {
            color: var(--purple-500);
        }

        .footer-bottom {
            max-width: 1100px;
            margin: 0 auto;
            padding-top: 2rem;
            border-top: 1px solid var(--gray-200);
            text-align: center;
            color: var(--gray-400);
            font-size: 0.85rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        @media (max-width: 860px) {
            .footer-container {
                grid-template-columns: 1fr 1fr;
            }
        }

        @media (max-width: 500px) {
            .footer-container {
                grid-template-columns: 1fr;
            }

            .footer-bottom {
                flex-direction: column;
                gap: 1rem;
            }
        }

        /* ─── Supported Platforms Grid ─── */
        .platforms-grid-section {
            padding: 5rem 2rem;
            background: var(--white);
            border-top: 1px solid var(--gray-200);
        }

        .pg-container {
            max-width: 1100px;
            margin: 0 auto;
        }

        .pg-header {
            text-align: center;
            margin-bottom: 3.5rem;
        }

        .pg-header h2 {
            font-size: 2.2rem;
            font-weight: 800;
            color: var(--gray-900);
            margin-bottom: 0.5rem;
        }

        .pg-header p {
            color: var(--gray-500);
            font-size: 1rem;
        }

        .pg-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 1.5rem;
        }

        .pg-card {
            background: var(--gray-50);
            border: 1px solid var(--gray-200);
            border-radius: 16px;
            padding: 1.5rem;
            display: flex;
            align-items: flex-start;
            gap: 1rem;
            text-decoration: none;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            opacity: 0;
            transform: translateY(20px);
            cursor: pointer;
        }

        .pg-card.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .pg-card:hover {
            background: var(--white);
            border-color: var(--purple-300);
            box-shadow: 0 12px 24px -8px rgba(147, 51, 234, 0.15);
            transform: translateY(-4px);
        }

        .pg-icon {
            width: 52px;
            height: 52px;
            border-radius: 14px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1.6rem;
            flex-shrink: 0;
            background: var(--white);
            box-shadow: var(--shadow-sm);
        }

        .pg-content {
            flex: 1;
        }

        .pg-content h3 {
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--gray-900);
            margin-bottom: 0.3rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .pg-content p {
            font-size: 0.85rem;
            color: var(--gray-500);
            line-height: 1.5;
        }

        .pg-arrow {
            color: var(--purple-500);
            font-weight: bold;
            opacity: 0;
            transform: translateX(-10px);
            transition: all 0.3s ease;
        }

        .pg-card:hover .pg-arrow {
            opacity: 1;
            transform: translateX(0);
        }

        /* ─── How to Use Section ─── */
        .how-to-section {
            padding: 5rem 2rem;
            background: var(--gray-50);
            border-top: 1px solid var(--gray-200);
        }

        .ht-container {
            max-width: 1100px;
            margin: 0 auto;
        }

        .ht-header {
            text-align: center;
            margin-bottom: 4rem;
        }

        .ht-header h2 {
            font-size: 2.2rem;
            font-weight: 800;
            color: var(--gray-900);
            margin-bottom: 0.5rem;
        }

        .ht-header p {
            color: var(--gray-500);
            font-size: 1rem;
        }

        .ht-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 2rem;
        }

        .ht-step {
            background: var(--white);
            padding: 2rem 1.5rem;
            border-radius: 20px;
            text-align: center;
            box-shadow: var(--shadow-sm);
            position: relative;
            border: 1px solid var(--gray-200);
            transition: transform 0.3s ease;
        }

        .ht-step:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-md);
        }

        .ht-number {
            position: absolute;
            top: -16px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
            color: white;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-weight: bold;
            font-size: 1rem;
            box-shadow: 0 4px 10px rgba(147, 51, 234, 0.3);
        }

        .ht-icon {
            font-size: 2.2rem;
            color: var(--purple-500);
            margin: 1rem 0 1.2rem;
        }

        .ht-step h3 {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--gray-900);
            margin-bottom: 0.8rem;
        }

        .ht-step p {
            font-size: 0.9rem;
            color: var(--gray-500);
            line-height: 1.5;
        }

        /* ─── What You Can Download Section ─── */
        .what-section {
            padding: 5rem 2rem;
            background: var(--gray-100);
            border-top: 1px solid var(--gray-200);
        }

        .what-container {
            max-width: 1000px;
            margin: 0 auto;
        }

        .what-header {
            text-align: center;
            margin-bottom: 4rem;
        }

        .what-header h2 {
            font-size: 2.2rem;
            font-weight: 800;
            color: var(--gray-900);
            margin-bottom: 0.5rem;
        }

        .what-header p {
            color: var(--gray-500);
            font-size: 1rem;
        }

        .what-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 1.5rem;
        }

        .what-card {
            background: var(--white);
            border: 1px solid var(--gray-200);
            border-radius: 16px;
            padding: 1.8rem;
            display: flex;
            gap: 1.2rem;
            align-items: flex-start;
            transition: all 0.3s ease;
        }

        .what-card:hover {
            border-color: var(--purple-400);
            transform: translateY(-3px);
            box-shadow: var(--shadow-md);
        }

        .what-icon {
            width: 48px;
            height: 48px;
            background: var(--gray-50);
            border-radius: 12px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1.4rem;
            color: var(--purple-500);
            flex-shrink: 0;
        }

        .what-content h3 {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--gray-900);
            margin-bottom: 0.4rem;
        }

        .what-content p {
            font-size: 0.9rem;
            color: var(--gray-500);
            line-height: 1.5;
        }

        /* ─── FAQ Section ─── */
        .faq-section {
            padding: 5rem 2rem;
            background: var(--white);
        }

        .faq-container {
            max-width: 800px;
            margin: 0 auto;
        }

        .faq-header {
            text-align: center;
            margin-bottom: 3.5rem;
        }

        .faq-header h2 {
            font-size: 2.2rem;
            font-weight: 800;
            color: var(--gray-900);
            margin-bottom: 0.5rem;
        }

        .faq-list {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .faq-item {
            background: var(--gray-50);
            border: 1px solid var(--gray-200);
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .faq-item[open] {
            background: var(--white);
            border-color: var(--purple-300);
            box-shadow: var(--shadow-md);
        }

        .faq-item summary {
            padding: 1.2rem 1.5rem;
            font-size: 1.05rem;
            font-weight: 600;
            color: var(--gray-900);
            cursor: pointer;
            list-style: none;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .faq-item summary::-webkit-details-marker {
            display: none;
        }

        .faq-item summary::after {
            content: '+';
            font-size: 1.5rem;
            color: var(--purple-500);
            transition: transform 0.3s ease;
            font-weight: 400;
        }

        .faq-item[open] summary::after {
            content: '−';
            transform: rotate(180deg);
        }

        .faq-item p {
            padding: 0 1.5rem 1.5rem;
            font-size: 0.95rem;
            color: var(--gray-600);
            line-height: 1.6;
            margin: 0;
        }

        .faq-item[open] p {
            animation: fadeInDownFAQ 0.3s ease;
        }

        @keyframes fadeInDownFAQ {
            from {
                opacity: 0;
                transform: translateY(-5px);
            }

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

        /* ─── Responsive ─── */
        @media (max-width: 640px) {
            .hero h1 {
                font-size: 2rem;
            }

            .hero p {
                font-size: 0.95rem;
            }

            .download-card {
                padding: 1.5rem;
            }

            .btn-row {
                flex-direction: column;
            }

            .features {
                grid-template-columns: 1fr;
                gap: 0;
            }

            
        }

        /* ─── Video Info Card ─── */
        .video-card {
            display: flex;
            gap: 1.2rem;
            background: var(--white);
            border: 1px solid var(--gray-200);
            border-radius: 16px;
            padding: 1.2rem;
            margin-bottom: 2rem;
            box-shadow: var(--shadow-md);
            align-items: center;
            animation: fadeIn 0.5s ease;
        }

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

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

        .video-card img {
            width: 180px;
            height: 100px;
            object-fit: cover;
            border-radius: 10px;
            flex-shrink: 0;
        }

        .video-info {
            flex: 1;
            min-width: 0;
        }

        .video-info h2 {
            font-size: 1rem;
            font-weight: 600;
            line-height: 1.5;
            color: var(--gray-900);
            margin-bottom: 0.4rem;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        .video-meta {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .video-meta span {
            font-size: 0.78rem;
            color: var(--gray-400);
            display: flex;
            align-items: center;
            gap: 4px;
        }

        /* ─── Section ─── */
        .section {
            margin-bottom: 1.8rem;
            animation: fadeIn 0.6s ease;
        }

        .section-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 0.8rem;
            padding-left: 2px;
        }

        .section-icon {
            font-size: 1.1rem;
        }

        .section-title {
            font-size: 0.82rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            color: var(--gray-500);
        }

        .section-count {
            background: var(--gray-100);
            color: var(--gray-500);
            font-size: 0.7rem;
            font-weight: 600;
            padding: 2px 8px;
            border-radius: 10px;
        }

        /* ─── Format List ─── */
        .format-list {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .format-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: var(--white);
            border: 1px solid var(--gray-200);
            border-radius: 12px;
            padding: 14px 18px;
            transition: all 0.2s ease;
        }

        .format-item:hover {
            border-color: var(--purple-300);
            box-shadow: var(--shadow-sm);
        }

        .format-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .format-label {
            font-size: 0.9rem;
            font-weight: 500;
            color: var(--gray-800);
        }

        .badge {
            font-size: 0.65rem;
            font-weight: 700;
            padding: 2px 8px;
            border-radius: 6px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .badge-best {
            background: var(--purple-100);
            color: var(--purple-700);
        }

        .badge-hd {
            background: var(--green-50);
            color: var(--green-700);
        }

        .dl-btn {
            background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 8px;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.25s ease;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .dl-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(147, 51, 234, 0.35);
        }

        .dl-btn:active {
            transform: translateY(0);
        }

        .dl-btn.downloading {
            background: var(--gray-300);
            cursor: wait;
            pointer-events: none;
        }

        .empty-state {
            text-align: center;
            padding: 3rem 1rem;
            color: var(--gray-400);
        }

        .empty-state .icon {
            font-size: 2.5rem;
            margin-bottom: 0.8rem;
        }

        /* ─── Modal Styles ─── */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(17, 24, 39, 0.6);
            backdrop-filter: blur(4px);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 99999;
            opacity: 0;
            transition: opacity 0.3s ease;
            padding: 1rem;
        }

        .modal-overlay.show {
            display: flex;
            opacity: 1;
        }

        .modal-container {
            background: var(--gray-50);
            border-radius: 20px;
            width: 100%;
            max-width: 800px;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: var(--shadow-xl);
            transform: translateY(20px);
            transition: transform 0.3s ease;
            position: relative;
        }

        .modal-overlay.show .modal-container {
            transform: translateY(0);
        }

        .modal-header {
            position: sticky;
            top: 0;
            background: var(--white);
            padding: 1.2rem 1.5rem;
            border-bottom: 1px solid var(--gray-200);
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 10;
            border-radius: 20px 20px 0 0;
        }

        .modal-header h3 {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--gray-900);
        }

        .close-modal {
            background: var(--gray-100);
            border: none;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            color: var(--gray-600);
            transition: all 0.2s;
        }

        .close-modal:hover {
            background: var(--gray-200);
            color: var(--gray-900);
        }

        .modal-content-area {
            padding: 1.5rem;
        }

        /* ─── Modal Mobile Responsive ─── */
        @media (max-width: 600px) {
            .video-card {
                flex-direction: column;
                text-align: center;
            }

            .video-card img {
                width: 100%;
                height: auto;
                max-height: 200px;
            }

            .video-meta {
                justify-content: center;
            }

            .format-item {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }

            .format-item form {
                width: 100%;
            }

            .dl-btn {
                width: 100%;
                justify-content: center;
            }

            .modal-content-area {
                padding: 1rem;
            }
        }

        
        /* ─── Mobile Menu ─── */
        .mobile-menu-btn {
            display: none;
            background: none;
            border: none;
            color: #ffffff;
            font-size: 1.5rem;
            cursor: pointer;
            z-index: 100000;
        }

        @media (max-width: 768px) {
            .mobile-menu-btn {
                display: block;
            }
            .nav-links {
                display: flex !important;
                position: fixed;
                top: 64px;
                left: 0;
                width: 100%;
                background: #18181b;
                flex-direction: column;
                align-items: center;
                padding: 2rem 0;
                gap: 2rem;
                left: -100%;
                transform: none;
                transition: left 0.3s ease-in-out;
                z-index: 99999;
                border-bottom: 1px solid #27272a;
                box-shadow: 0 10px 30px rgba(0,0,0,0.5);
            }
            .nav-links.active {
                left: 0;
            }
            .nav-links a {
                font-size: 1.2rem;
                color: #e4e4e7 !important;
            }
            .nav-links a:hover {
                color: #ffffff !important;
            }
        }
        /* Language Selector Styles */
        .lang-selector {
            display: inline-block;
            margin-left: 10px;
        }
        #lang-select {
            background-color: rgba(255, 255, 255, 0.05);
            color: #e4e4e7;
            border: 1px solid rgba(255,255,255,0.1);
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 0.95rem;
            font-weight: 500;
            cursor: pointer;
            outline: none;
            transition: all 0.2s ease;
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 10px center;
            background-size: 1em;
            padding-right: 32px;
        }
        #lang-select:hover, #lang-select:focus {
            background-color: rgba(255, 255, 255, 0.1);
            border-color: rgba(255,255,255,0.2);
        }
        #lang-select option {
            background-color: #18181b;
            color: #ffffff;
        }
        
        /* Hide Google Translate Top Bar and original element */
        .VIpgJd-ZVi9od-ORHb-OEVmcd { display: none !important; }
        .goog-te-banner-frame { display: none !important; }
        body { top: 0 !important; }
        #google_translate_element { display: none !important; }
        
        @media (max-width: 768px) {
            .lang-selector {
                margin: 10px 0;
                width: 100%;
            }
            #lang-select {
                width: 100%;
            }
        }
