html, body {
  width: 100%;
}
body {
  margin: 0;
  padding-top: 48px; /* space for fixed nav */
  background: #000;
  color: #fff;
  font-family: system-ui, sans-serif;
}

/* Top navigation */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 48px;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  padding: 0 12px;
  box-sizing: border-box;
  z-index: 1000;
}


.logo {
  font-weight: bold;
}

#nav-toggle {
  display: none;
}

.hamburger {
  margin-left: auto;
  font-size: 22px;
  cursor: pointer;
  display: none;
}

.nav-links {
  margin-left: auto;
}

.nav-links a {
  margin-left: 12px;
  color: #7aa2f7;
  text-decoration: none;
}

/* Viewer count overlay */
#viewer-count {
  position: fixed;
  top: 56px;
  left: 10px;
  font-size: 13px;
  background: rgba(0,0,0,0.5);
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 999;
}

/* Mobile */
@media (max-width: 600px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 48px;
    right: 0;
    background: #111;
    display: none;
    flex-direction: column;
    padding: 10px;
  }

  #nav-toggle:checked + .hamburger + .nav-links {
    display: flex;
  }
}
.live-stream {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: calc(100vh - 48px);

  /* flip camera 180° */
  transform: rotate(180deg);

  /* smoother scaling */
  image-rendering: auto;
}
