:root {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: #10121a;
    color: #f8fafc;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: radial-gradient(circle at top, #1e1f2e, #0d0f16 60%);
}

.card {
    width: min(720px, 100%);
    background: rgba(13, 15, 22, 0.95);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.eyebrow {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 2rem;
    margin: 0;
}

.meta {
    color: #cbd5f5;
    margin: 0.25rem 0;
}

.preview {
    margin: 2rem 0;
    border-radius: 16px;
    overflow: hidden;
    background: #111319;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.preview img,
.preview video {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    background: #0b0c11;
}

.preview-placeholder {
    margin: 2rem 0;
    padding: 2rem;
    border: 1px dashed rgba(148, 163, 184, 0.3);
    border-radius: 16px;
    text-align: center;
    color: #94a3b8;
}

.actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.primary-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    background: linear-gradient(120deg, #6366f1, #8b5cf6);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

h2 {
    margin-top: 0;
}

.code-block {
    background: #0b0c11;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
    font-family: "JetBrains Mono", Consolas, monospace;
    color: #e2e8f0;
}

form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 600;
}

.form-help {
    margin: 0;
    color: #94a3b8;
    font-size: 0.9rem;
}

.input-field {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: rgba(15, 17, 26, 0.9);
    color: #f1f5f9;
    padding: 0.85rem 1rem;
}

.input-field[type="file"] {
    padding: 0.75rem;
}

button.primary-button {
    border: none;
    cursor: pointer;
}

button.primary-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.status-message {
    min-height: 1.5rem;
    margin-top: 1rem;
    color: #cbd5f5;
}

.status-message[data-state="error"] {
    color: #f87171;
}

.result-card {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 16px;
    background: rgba(15, 17, 26, 0.9);
    border: 1px solid rgba(99, 102, 241, 0.35);
}

.result-link a {
    color: #a5b4fc;
    word-break: break-all;
}

.progress-card {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: rgba(15, 17, 26, 0.9);
    border: 1px solid rgba(79, 70, 229, 0.4);
}

.progress-bar {
    position: relative;
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    overflow: hidden;
    margin: 0.75rem 0;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(120deg, #22d3ee, #6366f1);
    width: 0%;
    transition: width 0.2s ease;
}
