:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #171310;
  color: #f4eadf;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 28px 20px;
}
main {
  max-width: 1120px;
  margin: auto;
}
header,
.heading,
.field {
  display: flex;
  align-items: center;
  gap: 12px;
}
header {
  justify-content: space-between;
  margin-bottom: 38px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
}
.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
a {
  color: #dfb48c;
  text-underline-offset: 4px;
}
h1 {
  margin: 0;
  font-size: clamp(22px, 4vw, 30px);
  overflow-wrap: anywhere;
}
.heading {
  justify-content: space-between;
  margin-bottom: 18px;
}
#status {
  color: #b9a594;
  white-space: nowrap;
}
#status.live {
  color: #a3c7a2;
}
.screen {
  position: relative;
  background: #080706;
  border-radius: 10px;
  overflow: hidden;
}
video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
}
#offline {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  pointer-events: none;
  color: #b9a594;
}
[hidden] {
  display: none !important;
}
.quality {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: #cdb7a2;
}
button,
select {
  padding: 9px 14px;
  border: 1px solid #665344;
  border-radius: 7px;
  background: #30251d;
  color: #f4eadf;
  font: inherit;
  cursor: pointer;
}
button:hover {
  background: #493326;
}
input {
  min-width: 0;
  width: 100%;
  padding: 10px;
  background: #201a15;
  color: inherit;
  border: 1px solid #665344;
  border-radius: 7px;
  font: inherit;
}
input[readonly] {
  font:
    13px ui-monospace,
    monospace;
}
input:focus-visible,
button:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid #dfb48c;
  outline-offset: 3px;
}
#broadcast {
  max-width: 720px;
}
#broadcast h1 {
  margin-bottom: 28px;
}
#broadcast label {
  display: block;
  margin: 22px 0 8px;
  color: #d4b594;
}
#obs-help {
  margin: 24px 0;
  color: #b9a594;
  line-height: 1.7;
  font-size: 14px;
}
.secondary {
  background: transparent;
  color: #cdb7a2;
}
#error {
  color: #ffaaaa;
  line-height: 1.6;
}
@media (max-width: 520px) {
  body {
    padding: 20px 14px;
  }
  header {
    margin-bottom: 28px;
  }
  .brand {
    font-size: 20px;
  }
  .field {
    gap: 7px;
  }
  button {
    padding-inline: 10px;
  }
}
