* {
  margin: 0; padding: 0; box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #121212;
  color: #eee;
}

html, body, #video, #container {
  width: 100%;
  height: 100%;
}

#container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #121212;
  position: relative;
}

video {
  width: 100vw;
  height: 100vh;
  background: black;
  object-fit: contain;
  cursor: pointer;
}

#info {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  color: #888;
  user-select: none;
}

button, select {
  background: #1f1f1f;
  border: none;
  color: #eee;
  padding: 8px 12px;
  margin: 6px;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}

button:hover, select:hover {
  background: #333;
}

#admin-controls {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  padding: 3px 20px;
  border-radius: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.7);
  justify-content: flex-start;
}

#admin-controls select {
  min-width: 200px;
}

#viewer-count {
  position: fixed;
  right: 20px;
  top: 10px;
  font-size: 0.95em;
  color: #aaa;
  text-align: center;
  padding: 3px 10px;
  background: #222;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.7);
}

#connection-error-overlay {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
}

#connection-error-message {
  color: #fff;
  background: rgba(0, 0, 0, 0.74);
  font-size: 2rem;
  padding: 40px 60px;
  text-align: center;
}

#fullscreen-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0 10px;
  border-radius: 5px;
  transition: background 0.2s;
}

#fullscreen-btn:hover {
  background: #333;
}