        /* CSS Styles */
        :root {
            --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --secondary-gradient: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
            --surface-color: #ffffff;
            --text-primary: #1a202c;
            --text-secondary: #4a5568;
            --border-color: #e2e8f0;
            --success-color: #48bb78;
            --error-color: #e53e3e;
            --border-radius: 16px;
            --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }

        
        @keyframes gradientBG {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .container2 {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            padding: 1.5rem;
            border-radius: var(--border-radius);
            box-shadow: var(--card-shadow);
            max-width: 93%;
            width: 100%;
            position: relative;
            user-select: none;
            animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
            transform: scale(0);
            overflow: hidden;
            border: 2px solid var(--border-color);
            margin:0 auto;
        }

        @keyframes popIn {
            0% { transform: scale(0); opacity: 0; }
            100% { transform: scale(1); opacity: 1; }
        }

        .notification-container {
            position: fixed;
            top: 20px;
            right: 20px;
            display: flex;
            flex-direction: column;
            gap: 10px;
            z-index: 1000;
        }

        .notification {
            padding: 1rem 1.5rem;
            border-radius: 8px;
            background: var(--surface-color);
            color: var(--text-primary);
            font-size: 0.875rem;
            opacity: 0;
            transform: translateX(100%);
            transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
            position: relative;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            border-left: 4px solid var(--success-color);
        }

        .notification.error {
            border-left-color: var(--error-color);
        }

        .notification.show {
            opacity: 1;
            transform: translateX(0);
        }

        .notification.hide {
            opacity: 0;
            transform: translateY(-20px);
        }

        .app-header {
            text-align: center;
            margin-bottom: 1rem;
            position: relative;
        }

        .app-title {
            font-size: 2rem;
            font-weight: 700;
            color: var(--text-primary);
			margin-top: 0rem;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            animation: slideIn 0.5s ease-in-out;
        }

        .app-description {
            color: var(--text-secondary);
            font-size: 1.3rem;
			font-weight: 700;
            animation: slideIn 0.5s ease-in-out 0.2s;
            animation-fill-mode: both;
            position: relative;
            padding-bottom: 0.5rem;
        }

        .app-description::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 50%;
            height: 1px;
            background: var(--border-color);
        }

        @keyframes slideIn {
            from { opacity: 0; transform: translateX(-20px); }
            to { opacity: 1; transform: translateX(0); }
        }

        .input-group {
            position: relative;
            margin-bottom: 1.5rem;
            animation: slideIn 0.5s ease-in-out 0.4s;
            animation-fill-mode: both;
        }

        .url-input {
            width: 100%;
            padding: 1.1rem 100px 1.1rem 1rem;
            border: 5px solid var(--border-color);
            border-radius: calc(var(--border-radius) - 4px);
            font-size: 1rem;
            transition: all 0.3s ease;
            background: #f8fafc;
        }

        .url-input:focus {
            border-color: #667eea;
            outline: none;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .paste-button {
            position: absolute;
            right: 8.5px;
            top: 50%;
            transform: translateY(-50%);
            background: #667eea;
            color: white;
            border: none;
            padding: 0.7rem 0.25rem;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1.1rem;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: background 0.3s ease, transform 0.2s ease;
        }

        .paste-button:hover {
            transform: translateY(-50%) scale(1.05);
        }

        .paste-button[data-state="clear"] {
            background: #e53e3e;
        }

        .icon-cross {
            width: 16px;
            height: 16px;
            color: white;
        }

        .main-button {
            width: 96%;
            padding: 1rem;
            border: none;
            border-radius: calc(var(--border-radius) - 4px);
            background: var(--primary-gradient);
            color: white;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 0.75rem;
			margin: auto 2%;
            animation: slideIn 0.5s ease-in-out 0.6s;
            animation-fill-mode: both;
            position: relative;
            overflow: hidden;
        }

        .main-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        #search-button {
            background: linear-gradient(45deg, #667eea, #764ba2, #00c6ff, #0072ff);
            background-size: 200% 200%;
            animation: gradientBackground 5s ease infinite;
        }

        @keyframes gradientBackground {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        .loader {
            width: 40px;
            height: 40px;
            border: 4px solid #f3f3f3;
            border-top: 4px solid #667eea;
            border-radius: 50%;
            margin: 1rem auto;
            display: none;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .preview-container {
            display: none;
            opacity: 0;
            transition: all 0.5s ease;
            margin-top: 1.5rem;
            animation: fadeIn 0.5s ease-in-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .video-card {
            background: var(--surface-color);
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--card-shadow);
            transition: all 0.3s ease;
        }

        .video-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
        }

        .video-preview {
            width: 50%;
			margin-left: 25%;
            height: auto;
            border-radius: calc(var(--border-radius) - 4px);
            margin-bottom: 0rem;
            background: #000;
            transition: transform 0.3s ease;
        }

        .video-preview:hover {
            transform: scale(1.02);
        }

        .video-info {
            padding: 1.5rem;
            background: #f8fafc;
            border-radius: calc(var(--border-radius) - 4px);
            margin-bottom: -1rem;
        }

        .info-row {
            display: flex;
            align-items: center;
            margin-bottom: 0.25rem;
            gap: 0.5rem;
        }

        .info-label {
            font-weight: 600;
            min-width: 100px;
            color: var(--text-primary);
        }

        .info-value {
            color: var(--text-secondary);
            flex: 1;
        }

        .caption-container {
            margin-bottom: 1rem;
            position: relative;
        }

        .caption-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 0.5rem;
        }

        .caption-textarea {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid var(--border-color);
            border-radius: 8px;
            resize: none;
            min-height: 120px;
            margin-bottom: 0rem;
            font-size: 0.875rem;
        }

        .copy-icon {
            cursor: pointer;
            width: 20px;
            height: 20px;
            color: var(--text-secondary);
            transition: color 0.3s ease, transform 0.2s ease;
        }

        .copy-icon:hover {
            color: var(--text-primary);
            transform: scale(1.1);
        }

        .quality-badge {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            transition: transform 0.2s ease;
        }

        .quality-badge:hover {
            transform: scale(1.05);
        }

        .quality-hd {
            background: #9ae6b4;
            color: #22543d;
        }

        .quality-sd {
            background: #fbd38d;
            color: #744210;
        }

        .footer {
            margin-top: 1.5rem;
            font-size: 0.9rem;
            color: #666;
            text-align: center;
            position: relative;
            padding-top: 1rem;
        }

        .footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 50%;
            height: 1px;
            background: var(--border-color);
        }

        /* Animasi Download Button */
        .download {
            --btn-color: #0033ff;
            --progress-color: #2d334c;
            --complete-color: #C8E6C9; /* Warna hijau muda */
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            width: 96%;
            max-width: 300px;
            height: 50px;
            margin: 0 auto 1rem;
            background: white;
            border-radius: 25px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }

        .download__button {
            position: absolute;
            width: 100%;
            height: 100%;
            background: var(--btn-color);
            border: none;
            border-radius: inherit;
            color: white;
			font-size: 1.1rem;
            font-weight: bold;
            cursor: pointer;
            transition: transform 0.3s ease, background-color 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .download__progress {
            position: absolute;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            background: var(--progress-color);
            color: white;
            font-weight: bold;
            transform: translateY(100%);
            transition: transform 0.3s ease, background-color 0.3s ease;
            z-index: 1;
        }

        .download__progress .check {
            stroke-dasharray: 16px;
            stroke-dashoffset: 16px;
            margin-right: 6px;
            transition: stroke-dashoffset 0.3s ease 0.3s;
        }

        .download.downloading .download__button {
            transform: translateY(-100%);
            background-color: var(--progress-color);
            pointer-events: none; /* Tombol tidak bisa diklik saat proses */
        }

        .download.downloading .download__progress {
            transform: translateY(0);
        }

        .download.complete .download__progress {
            background-color: var(--complete-color) !important; /* Warna hijau muda */
        }

        .download.complete .download__progress .check {
            stroke-dashoffset: 0;
            opacity: 1;
        }

        .download__progress-text {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* Responsive Styles */
        @media (max-width: 640px) {
            .container2 {
                padding: 1rem;
            }

            .app-title {
                font-size: 1.5rem;
            }

            .app-description {
                font-size: 1rem;
            }

            .url-input {
                padding: 0.975rem 90px 0.975rem 0.875rem;
                font-size: 0.875rem;
            }

            .paste-button {
                padding: 0.6rem 0.65rem;
                font-size: 1rem;
            }

            .video-info {
                padding: 1rem;
            }

            .info-label {
                min-width: 80px;
                font-size: 0.875rem;
            }

            .info-value {
                font-size: 0.875rem;
            }

            .caption-textarea {
                min-height: 100px;
                font-size: 0.8rem;
            }

            .footer {
                font-size: 0.8rem;
            }

            .download {
                margin-bottom: 0.5rem;
            }

            .download__button {
                padding: 12px;
                font-size: 1rem;
            }

            .download__progress,
            .download__hint {
                font-size: 0.875rem;
            }

            /* Ukuran teks lebih kecil di mobile */
            .info-label, .info-value {
                font-size: 0.75rem;
            }

            .caption-textarea {
                font-size: 0.75rem;
            }
        }