:root {
    color-scheme: dark;
    color: #f2f3ed;
    background: #171b18;
    font: 100% / 1.5 system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

main {
    width: min(72rem, 100%);
    margin-inline: auto;
    padding: clamp(1rem, 5vw, 4rem);
}

h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 6vw, 3.75rem);
    font-weight: 600;
    line-height: 1.1;
}

.screen {
    display: grid;
    place-items: center;
    min-height: 9rem;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #080a09;
    border: 1px solid #434b43;
    border-radius: 0.5rem;
}

video {
    width: 100%;
    height: 100%;
    max-height: 75vh;
}

#status {
    margin: 1rem;
    color: #c7cec5;
    text-align: center;
}

#quality-control:not([hidden]) {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

select {
    appearance: none;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid #7c897b;
    border-radius: 0.25rem;
    color: inherit;
    background: #202720;
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
        linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: right 0.95rem center, right 0.65rem center;
    background-size: 0.3rem 0.3rem;
    background-repeat: no-repeat;
    font: inherit;
}

:focus-visible {
    outline: 2px solid #c2e6a9;
    outline-offset: 3px;
}
