:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
  background: #0b0c0c;
  color: #e7e8e3;
  font-size: 13px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  width: min(calc(100% - 40px), calc((100dvh - 104px) * 1.6));
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
header {
  height: 52px;
}
h1 {
  font-size: 13px;
  letter-spacing: 0.12em;
  font-weight: 600;
  margin: 0;
}
#status {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #91958f;
}
#status[data-state="live"] {
  color: #c2dc9a;
}
#status::before {
  content: "•";
  margin-right: 7px;
}
#viewport {
  aspect-ratio: 8/5;
  background: #101211;
  border: 1px solid #282b27;
  overflow: hidden;
  width: 100%;
}
#stream {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
footer {
  min-height: 52px;
  color: #a0a39b;
  font-size: 12px;
}
footer p {
  margin: 0;
  line-height: 1.5;
}
#age {
  white-space: nowrap;
  color: #73786f;
}
button {
  border: 0;
  background: transparent;
  color: #a0a39b;
  padding: 12px 0 12px 12px;
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
}
button:hover {
  color: #e7e8e3;
}
button:focus-visible {
  outline: 2px solid #c2dc9a;
  outline-offset: 4px;
}
#viewport:fullscreen {
  height: 100%;
  border: 0;
  background: #0b0c0c;
  display: grid;
  place-items: center;
}
#viewport:fullscreen img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
@media (max-width: 600px) {
  main {
    width: calc(100% - 24px);
    justify-content: flex-start;
  }
  header {
    height: 56px;
  }
  footer {
    align-items: flex-start;
    padding-top: 12px;
    gap: 12px;
  }
  footer button {
    padding-top: 0;
  }
  footer p {
    max-width: 74%;
  }
  #age {
    display: block;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}
