* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; height: 100%;
  background: #0d1117; color: #c9d1d9;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  user-select: none; -webkit-user-select: none;
  display: flex; flex-direction: column;
}

#topbar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(13, 17, 23, 0.9);
  border-bottom: 1px solid #30363d;
}
#topbar #home-link {
  color: inherit; text-decoration: none; font-size: 1.5rem;
}
#topbar #title { font-weight: 600; }
#topbar #rec-indicator { color: #f87171; margin-left: auto; }
#topbar #status { color: #8b949e; font-size: 0.85rem; }

#video-container {
  flex: 1; position: relative; background: #000;
  display: flex; align-items: center; justify-content: center;
}
#remote-video { width: 100%; height: 100%; object-fit: contain; }

#overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.5);
}
#overlay.hidden { display: none; }
#connect-btn {
  background: #238636; color: #fff;
  padding: 1rem 2rem; font-size: 1.2rem;
  border: none; border-radius: 8px;
  cursor: pointer; touch-action: manipulation;
}
#error-msg {
  position: absolute; bottom: 1rem; left: 1rem; right: 1rem;
  background: rgba(248,113,113,0.2); border: 1px solid #f87171;
  padding: 0.8rem; border-radius: 6px;
  color: #f87171;
}
#error-msg.hidden { display: none; }

#ptt-container {
  background: #161b22; padding: 1rem;
  border-top: 1px solid #30363d;
}
#ptt-btn {
  width: 100%; padding: 1.2rem;
  background: #21262d; color: #c9d1d9;
  border: 2px solid #30363d; border-radius: 12px;
  font-size: 1.1rem; font-weight: 600;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
#ptt-btn:disabled { opacity: 0.4; }
#ptt-btn.active {
  background: #db6d28; border-color: #f0883e; color: #fff;
}
.hidden { display: none !important; }
