* {
    box-sizing: border-box;
}

:root {
    --bg: #061226;
    --panel: #10223f;
    --panel-alt: #0d1a31;
    --text: #e5efff;
    --muted: #9cb4da;
    --accent: #5cd8ff;
    --accent-strong: #38bdf8;
    --error: #ff8a80;
    --border: #1f355f;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Barlow', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.25), transparent 30%),
        radial-gradient(circle at 85% 15%, rgba(147, 197, 253, 0.2), transparent 28%),
        linear-gradient(180deg, #040b18 0%, #061226 100%);
}

.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 18px 60px;
}

.hero {
    margin-bottom: 26px;
}

.badge {
    margin: 0 0 8px;
    color: var(--accent);
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
}

.hero h1 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.subtitle {
    margin: 10px 0 0;
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.card {
    background: linear-gradient(180deg, var(--panel) 0%, var(--panel-alt) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.card h2 {
    margin: 0 0 14px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
}

.form-row {
    margin-bottom: 12px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.95rem;
    color: var(--muted);
}

select,
textarea,
button {
    width: 100%;
    font: inherit;
}

select,
textarea {
    border: 1px solid #33548c;
    background: #0a1528;
    color: var(--text);
    border-radius: 10px;
    padding: 10px 12px;
}

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

.btn {
    border: none;
    border-radius: 10px;
    padding: 11px 14px;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(90deg, var(--accent-strong), var(--accent));
    color: #032339;
}

.btn:hover {
    filter: brightness(1.05);
}

.btn-alt {
    width: auto;
    color: var(--text);
    background: #153869;
}

.status {
    margin: 10px 0 0;
    min-height: 1.2em;
    color: var(--muted);
}

.status.error {
    color: var(--error);
}

.hint {
    margin: -2px 0 10px;
    color: var(--muted);
}

.files-card {
    grid-column: 1 / -1;
}

.files-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.files-list {
    margin-top: 10px;
    display: grid;
    gap: 10px;
}

.file-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    display: grid;
    gap: 8px;
    background: #0a162c;
}

.file-item a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.file-item a:hover {
    text-decoration: underline;
}

.file-item small {
    display: block;
    color: var(--muted);
    margin-top: 3px;
}

.file-item audio {
    width: 100%;
}

.empty {
    margin: 0;
    color: var(--muted);
}

code {
    background: #0a1529;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2px 5px;
}
