* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #1a1a1a;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 95%;
  max-width: 500px;
  text-align: center;
  padding: 20px;
}

h1 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #fff;
}

/* Login page */
.pin-input {
  width: 200px;
  padding: 16px;
  font-size: 24px;
  text-align: center;
  letter-spacing: 8px;
  border: 2px solid #333;
  border-radius: 8px;
  background: #222;
  color: #fff;
  outline: none;
}

.pin-input:focus {
  border-color: #4a9eff;
}

.error {
  color: #ff4444;
  margin-top: 12px;
  min-height: 20px;
}

/* Main page */
.stream-container {
  width: 100%;
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stream-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.stream-container .loading {
  color: #666;
}

.btn {
  padding: 14px 28px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  max-width: 300px;
  margin-top: 12px;
}

.btn-open {
  background: #cc2222;
}

.btn-open:active {
  background: #aa1111;
}

.btn-open:disabled {
  background: #444;
  cursor: not-allowed;
}

.status {
  margin: 12px 0;
  font-size: 14px;
}

.status.online { color: #44cc44; }
.status.offline { color: #cc4444; }
.status.busy { color: #cccc44; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.topbar a {
  color: #888;
  text-decoration: none;
  font-size: 14px;
}
