 /* General styling for a premium, dark-themed look */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: #0a0a0a;
            color: #fff;
            overflow-x: hidden;
        }

        /* Loading screen for initial page load */
        .loading-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: linear-gradient(135deg, #e50914, #8b0000);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            animation: fadeOut 2.5s ease-out 1.5s forwards;
        }

        .logo-animation {
            font-size: 4rem;
            font-weight: bold;
            background: linear-gradient(45deg, #fff, #f0f0f0);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: pulse 1.5s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); opacity: 0.8; }
            50% { transform: scale(1.1); opacity: 1; }
        }

        @keyframes fadeOut { to { opacity: 0; visibility: hidden; } }

        /* Container fades in after loading */
        .app-container {
            opacity: 0;
            animation: fadeIn 1s ease-out 2.5s forwards;
        }

        @keyframes fadeIn { to { opacity: 1; } }

        /* Sticky header with blur effect */
        .header {
            padding: 20px 40px;
            background: rgba(10, 10, 10, 0.8);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-size: 2rem;
            font-weight: bold;
            color: #e50914;
            text-shadow: 0 0 20px rgba(229, 9, 20, 0.5);
        }

        .nav-buttons button {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: #fff;
            padding: 8px 15px;
            border-radius: 20px;
            cursor: pointer;
            margin-left: 10px;
            font-weight: 600;
            transition: background 0.3s;
        }
        .nav-buttons button:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        /* Hero section with gradient and glow animation */
        .hero {
            padding: 60px 40px;
            text-align: center;
            background: linear-gradient(135deg, rgba(229, 9, 20, 0.1), rgba(0, 0, 0, 0.8));
            min-height: 70vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .hero h1 {
            font-size: 4rem;
            margin-bottom: 20px;
            background: linear-gradient(45deg, #e50914, #ff6b6b);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: glow 2s ease-in-out infinite alternate;
        }

        @keyframes glow {
            from { text-shadow: 0 0 20px rgba(229, 9, 20, 0.5); }
            to { text-shadow: 0 0 30px rgba(229, 9, 20, 0.8); }
        }

        .hero p {
            font-size: 1.5rem;
            margin-bottom: 40px;
            opacity: 0.9;
        }

        /* Main prompt container styling */
        .prompt-container {
            max-width: 800px;
            margin: 0 auto;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 20px;
            padding: 40px;
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        /* Input field styling */
        .input-group {
            margin-bottom: 20px;
            text-align: left;
        }

        .input-group label {
            display: block;
            margin-bottom: 10px;
            font-weight: 600;
            color: #e50914;
        }

        .input-group input,
        .input-group select,
        .input-group textarea {
            width: 100%;
            padding: 15px;
            border: none;
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
            font-size: 1rem;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
        }

        .input-group input:focus,
        .input-group select:focus,
        .input-group textarea:focus {
            outline: none;
            border-color: #e50914;
            background: rgba(255, 255, 255, 0.15);
            transform: scale(1.02);
        }

        .seed-info { font-size: 0.8rem; color: #aaa; margin-top: 5px; }
        .button-group { display: flex; gap: 15px; justify-content: center; margin-top: 30px; }

        /* Action button styling */
        .create-btn {
            background: linear-gradient(45deg, #e50914, #ff3333);
            border: none;
            padding: 15px 30px;
            border-radius: 50px;
            color: #fff;
            font-size: 1.1rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 10px 30px rgba(229, 9, 20, 0.3);
            white-space: nowrap;
        }

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

        .create-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(229, 9, 20, 0.5);
        }

        .create-btn:disabled {
            background: #666;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        /* Progress and results containers */
        .results-container {
            max-width: 800px;
            margin: 40px auto;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 20px;
            padding: 40px;
            backdrop-filter: blur(20px);
            display: none;
        }
        
        .results-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .progress-bar {
            width: 100%;
            height: 20px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            overflow: hidden;
            margin: 20px 0;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(45deg, #e50914, #ff3333);
            width: 0%;
            transition: width 0.5s ease;
            border-radius: 10px;
        }

        .status-text {
            margin: 20px 0;
            padding: 15px;
            background: rgba(0,0,0, 0.2);
            border-radius: 10px;
            border-left: 4px solid #e50914;
            min-height: 50px;
        }

        .video-preview {
            margin: 20px auto;
            background: rgba(0, 0, 0, 0.1);
            border-radius: 20px;
            padding: 20px;
            text-align: center;
        }

        .video-player { width: 100%; border-radius: 10px; max-height: 400px; }
        .clip-gallery { margin-top: 30px; }
        .clip-gallery h3 { margin-bottom: 15px; }
        .clip-thumbnails { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; }
        .clip-thumbnail { position: relative; cursor: pointer; border-radius: 10px; overflow: hidden; border: 2px solid transparent; transition: border-color 0.3s; }
        .clip-thumbnail:hover, .clip-thumbnail.active { border-color: #e50914; }
        .clip-thumbnail video { width: 100%; height: 100%; object-fit: cover; display: block; }

        /* Custom alert/modal for messages */
        .message-modal {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.7);
            backdrop-filter: blur(5px);
            display: none;
            align-items: center; justify-content: center;
            z-index: 1001;
        }

        .message-content {
            background: #1a1a1a;
            padding: 30px;
            border-radius: 15px;
            border: 1px solid rgba(255,255,255,0.1);
            text-align: center;
            max-width: 400px;
            width: 90%;
        }

        .message-content h2 { margin-bottom: 15px; color: #e50914; }
        .message-content p { margin-bottom: 25px; }
        .message-content .modal-button-group { display: flex; justify-content: center; gap: 15px; }
        .message-content button { background: #e50914; border: none; padding: 10px 25px; border-radius: 25px; color: #fff; font-weight: bold; cursor: pointer; }
        .message-content button.cancel-btn { background: rgba(255, 255, 255, 0.2); }

        /* Responsive design adjustments */
        @media (max-width: 768px) {
            .hero h1 { font-size: 2.5rem; }
            .hero p { font-size: 1.2rem; }
            .prompt-container { margin: 0 20px; padding: 20px; }
            .results-header { flex-direction: column; align-items: flex-start; gap: 15px; }
        }