:root {
    --bg: #0f1115;
    --card: #171a21;
    --accent: #6f5cff;
    --text: #eaeaf0;
    --muted: #9a9ba8;
    --error: #ff6b6b;
    --radius: 14px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 48px 20px 80px;
}

header { text-align: center; margin-bottom: 32px; }
header h1 { font-size: 2rem; margin-bottom: 4px; letter-spacing: -0.02em; }
.subtitle { color: var(--muted); margin: 0; }

form {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

input[type="file"] {
    width: 100%;
    color: var(--muted);
}

.preview {
    margin-top: 12px;
    max-width: 100%;
    border-radius: 10px;
    max-height: 260px;
    object-fit: cover;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    font-weight: 400;
    color: var(--muted);
}

.radio-group label { display: flex; align-items: center; gap: 6px; }

textarea {
    width: 100%;
    background: #0f1115;
    border: 1px solid #2a2d38;
    border-radius: 10px;
    padding: 12px;
    color: var(--text);
    font-family: inherit;
    resize: vertical;
}

button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

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

.status-box {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #1c2333;
    color: #a7b8ff;
    font-size: 0.9rem;
}

.status-box.error { background: #2b1618; color: var(--error); }

#resultBox {
    margin-top: 24px;
    background: var(--card);
    border-radius: var(--radius);
    padding: 20px;
}

.used-prompt { color: var(--muted); font-size: 0.85rem; margin-bottom: 12px; }

video { width: 100%; border-radius: 10px; }
