* {
    box-sizing: border-box;
}

:root {
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: #f5f5f5;
    background: #090909;
}

body {
    margin: 0;
    background:
        radial-gradient(
            circle at top,
            #181818,
            #090909 45%
        );
    min-height: 100vh;
}

a {
    color: inherit;
}

.topbar {
    max-width: 1180px;
    margin: auto;
    padding: 28px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .18em;
}

.small {
    font-size: 12px;
    margin-top: 5px;
}

.muted {
    color: #929292;
}

.account {
    display: flex;
    gap: 16px;
    align-items: center;
}

.ghost {
    text-decoration: none;
    border: 1px solid #333;
    padding: 8px 12px;
    border-radius: 10px;
}

.page {
    width: min(
        1180px,
        calc(100% - 32px)
    );
    margin: 0 auto 80px;
}

.hero,
.job-card,
.login-card {
    background:
        rgba(
            18,
            18,
            18,
            .95
        );

    border:
        1px solid #252525;

    border-radius: 22px;
}

.hero {
    padding: 36px;
}

.eyebrow {
    color: #8d8d8d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    margin-bottom: 10px;
}

h1 {
    font-size: clamp(
        30px,
        5vw,
        52px
    );
    line-height: 1.02;
    margin: 0 0 14px;
    max-width: 800px;
}

h2 {
    margin: 4px 0 0;
    font-size: 26px;
}

.job-form {
    display: flex;
    gap: 12px;
    align-items: end;
    margin-top: 32px;
}

.grow {
    flex: 1;
}

label {
    display: block;
    font-size: 12px;
    color: #aaa;
    margin-bottom: 8px;
}

input,
select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    color: #fff;
    background: #0c0c0c;
    border: 1px solid #303030;
    border-radius: 12px;
    outline: none;
}

input:focus,
select:focus {
    border-color: #777;
}

button,
.download {
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    padding: 0 20px;
    background: #f4f4f4;
    color: #111;
    font-weight: 800;
    cursor: pointer;
}

.download {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    min-height: 40px;
}

.cleanup-note {
    color: #767676;
    font-size: 12px;
    margin-top: 18px;
}

.section {
    margin-top: 40px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 18px;
}

.processing-pill {
    border: 1px solid #343434;
    background: #151515;
    border-radius: 100px;
    padding: 8px 14px;
    font-size: 12px;
}

.job-card {
    padding: 22px;
    margin-bottom: 14px;
}

.job-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.job-id {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}

.source {
    margin-top: 6px;
    color: #8e8e8e;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.status {
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: .08em;
    border: 1px solid #343434;
    border-radius: 100px;
    padding: 7px 10px;
    height: fit-content;
}

.status-ready {
    border-color: #45684a;
}

.status-failed {
    border-color: #6b3a3a;
}

.error {
    margin-top: 16px;
    padding: 13px;
    background: #211111;
    border: 1px solid #4d2525;
    border-radius: 12px;
    color: #efb5b5;
    font-size: 13px;
}

.clips {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(230px, 1fr)
        );
    gap: 18px;
    margin-top: 20px;
}

.clip-card {
    background: #080808;
    border: 1px solid #252525;
    border-radius: 16px;
    overflow: hidden;
}

.clip-card video {
    width: 100%;
    aspect-ratio: 9 / 16;
    background: #000;
    display: block;
    max-height: 520px;
}

.clip-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 14px;
}

.deleted {
    padding: 20px;
    color: #777;
}

.flash {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid #363636;
    background: #141414;
    border-radius: 12px;
}

.empty {
    color: #777;
    border: 1px dashed #333;
    border-radius: 16px;
    padding: 28px;
}

.login-body {
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: min(
        430px,
        100%
    );
    padding: 34px;
}

.login-card h1 {
    font-size: 36px;
    margin-top: 30px;
}

.form {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

.form button {
    margin-top: 8px;
}

@media (
    max-width: 720px
) {
    .hero {
        padding: 24px;
    }

    .job-form {
        display: grid;
    }

    .job-head,
    .section-head {
        align-items: flex-start;
    }

    .clip-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
