.video-generator-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.form-column {
    margin-bottom: 30px;
}

.credits-display {
    background: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: bold;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

textarea[name="negative_prompt"] {
    min-height: 80px;
    margin-top: 10px;
    border: 1px solid #ff4444;
    background-color: #fff5f5;
}

textarea[name="negative_prompt"]::placeholder {
    color: #ff4444;
}

.form-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.generate-btn {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.generate-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#progress-container {
    margin: 20px 0;
    text-align: center;
    display: none;
}

.upload-area {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area.dragover {
    border-color: #007bff;
    background: #f8f9fa;
}

.upload-prompt {
    color: #666;
}

#image-preview img {
    max-width: 30%;
    height: auto;
    margin-top: 10px;
    border-radius: 4px;
}

#changeImageBtn {
    margin-top: 10px;
    padding: 8px 15px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.video-history-section {
    margin-top: 30px;
}

.video-history-section h3 {
    margin-bottom: 20px;
    color: #333;
}

#video-history {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.video-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e9ecef;
    flex-direction: column;
}

.video-details {
    margin-bottom: 10px;
}

.video-prompt {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    word-break: break-word;
}

.video-timestamp {
    display: block;
    color: #6c757d;
    font-size: 0.8em;
    margin-bottom: 10px;
}

.video-progress {
    margin-top: auto;
}

.progress-bar {
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 5px;
    display: none;
}

.progress-fill {
    height: 100%;
    background: #007bff;
    transition: width 0.3s ease;
}

.progress-text {
    display: block;
    color: #6c757d;
    font-size: 0.8em;
}

.video-player {
    margin-top: auto
}

.video-player video {
    width: 100%;
    border-radius: 4px;
    background: #000;
 aspect-ratio: 16/9;
}