 /* General Styles */
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin: 0;
            background-color: #000000;
            color: #e0e0e0;
            line-height: 1.6;
            position: relative;
            overflow-x: hidden;
        }

        a {
            color: #00ffd5;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        a:hover {
            color: #00ccaa;
        }

        /* Header Styles */
        header {
            background-color: #00000000;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        }

        body, html {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            font-optical-sizing: auto;
            font-weight: 700;
            font-style: normal;
            font-variation-settings: "ROND" 0;
            width: 100%;
            overflow-x: hidden;
        }

        .main-nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 30px;
            border-bottom: 1px solid #00000000;
        }

        .logo {
            font-size: 1.8em;
            font-weight: bold;
            background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
            background-size: 400% 400%;
            animation: gradient 15s ease infinite;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            line-height: 1.2;
            font-family: "Doto", sans-serif;
            font-optical-sizing: auto;
            font-weight: 700;
            font-style: normal;
            font-variation-settings: "ROND" 0;
        }

        /* Main Content Styles */
        main {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            padding: 25px;
            max-width: 1200px;
            margin: 0 auto;
            gap: 20px;
        }

        .input-container {
            width: 100%;
            max-width: 800px;
        }

        .form-group {
            display: flex;
            gap: 1rem;
            align-items: stretch;
            flex-wrap: wrap;
        }

        .url-input {
            flex: 1;
            min-width: 250px;
            background: rgba(40, 40, 40, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 14px;
            padding: 1.3rem 1.5rem;
            color: #ffffff;
            font-size: 1rem;
            font-family: inherit;
            transition: all 0.3s ease;
            outline: none;
            position: relative;
        }

        .url-input::placeholder {
            color: #888;
            font-weight: 300;
        }

        .url-input:focus {
            border-color: rgba(0, 191, 255, 0.6);
            background: rgba(40, 40, 40, 0.9);
            box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.2);
            transform: translateY(-1px);
        }

        .button-group {
            display: flex;
            gap: 0.75rem;
            flex-wrap: wrap;
        }

        .fetch-btn {
            background: rgba(128, 128, 128, 0.2);
            backdrop-filter: blur(10px);
            border: none;
            border-radius: 14px;
            padding: 1rem 2rem;
            color: #ffffff;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            min-width: 120px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .fetch-btn::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.5s ease;
        }

        .fetch-btn:hover {
            background: rgba(128, 128, 128, 0.4);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0);
        }

        .fetch-btn:hover::before {
            left: 100%;
        }

        .fetch-btn:active {
            transform: translateY(0);
        }

        .video-preview-container {
            width: 100%;
            max-width: 800px;
        }

        .video-preview {
            animation: slideUp 0.6s ease-out;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .video-preview.error {
            border: 1px solid rgba(255, 82, 82, 0.4);
        }

        .video-thumbnail {
            max-width: 100%;
            max-height: 450px;
            width: auto;
            height: auto;
            border-radius: 12px;
            margin-bottom: 1rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        .video-title {
            font-size: 1.4em;
            margin-bottom: 1.5rem;
            color: #ffffff;
            font-weight: 600;
            line-height: 1.3;
        }

        .video-meta {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 1rem;
            margin: 1.5rem 0;
            width: 100%;
        }

        .meta-item {
            background: rgba(255, 255, 255, 0.05);
            padding: 1rem;
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            text-align: center;
            transition: all 0.3s ease;
        }

        .meta-item:hover {
            background: rgba(255, 255, 255, 0.08);
            transform: translateY(-2px);
        }

        .meta-label {
            font-weight: 600;
            color: #00bfff;
            margin-bottom: 0.5rem;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .meta-value {
            color: #ffffff;
            font-size: 1rem;
            font-weight: 500;
        }

        .download-btn {
            background: linear-gradient(135deg, #000000 0%, #777777 100%);
            border: none;
            border-radius: 14px;
            padding: 1.2rem 2.5rem;
            color: #ffffff;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-top: 1.5rem;
            min-width: 200px;
        }

        .download-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 35px rgba(0, 0, 0, 0);
            background: linear-gradient(135deg, #000000 0%, #00000000 100%);
        }

        .download-btn:active {
            transform: translateY(-1px);
        }

        .error-message {
            font-size: 1.2em;
            color: #ff5252;
            font-weight: 600;
            margin-bottom: 1rem;
        }

        /* Loading state */
        .fetch-btn:disabled, .download-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none !important;
        }

        .loading {
            position: relative;
        }

        .loading::after {
            content: '';
            position: absolute;
            width: 16px;
            height: 16px;
            margin: auto;
            border: 2px solid transparent;
            border-top-color: #ffffff;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
        }

        @keyframes spin {
            0% { transform: translate(-50%, -50%) rotate(0deg); }
            100% { transform: translate(-50%, -50%) rotate(360deg); }
        }

        @keyframes slideUp {
            from { 
                opacity: 0; 
                transform: translateY(30px); 
            }
            to { 
                opacity: 1; 
                transform: translateY(0); 
            }
        }

        @keyframes gradient {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }

        /* Responsive Adjustments */
        @media (max-width: 768px) {
            .main-nav {
                padding: 10px 15px;
            }
            
            .input-container {
                padding: 0;
            }
            
            .video-meta {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 600px) {
            .form-group {
                flex-direction: column;
            }
            
            .button-group {
                justify-content: flex-end;
            }
            
            .download-btn {
                width: 100%;
            }
        }

        .hidden {
            display: none;
        }
