/* Line1 Podcast guest app — studio-dark, gallery-first. */
* { box-sizing: border-box; margin: 0; }
/* Author display rules (.stage, #join-form) would silently defeat the
   `hidden` attribute's UA styling — this keeps `hidden` meaning hidden. */
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #0e1116; color: #e8eaef;
}
.stage { height: 100%; display: flex; flex-direction: column; }
.muted { color: #8a93a5; }

/* Lobby */
#lobby { align-items: center; justify-content: center; }
.lobby-card {
  width: min(440px, 92vw); text-align: center;
  background: #161b24; border: 1px solid #232b3a; border-radius: 14px;
  padding: 28px 26px;
}
.lobby-card h1 { font-size: 1.25rem; margin-bottom: 6px; }
#self-preview {
  width: 100%; aspect-ratio: 16/9; margin: 16px 0 14px;
  background: #0a0d12; border-radius: 10px; object-fit: cover;
  transform: scaleX(-1); /* mirror own preview, like every studio does */
}
#join-form { display: flex; gap: 8px; }
#name-input {
  flex: 1; padding: 10px 12px; border-radius: 8px;
  border: 1px solid #2c3648; background: #0e1116; color: inherit;
}
button {
  padding: 10px 16px; border: 0; border-radius: 8px; cursor: pointer;
  background: #3b82f6; color: #fff; font-weight: 600;
}
button.danger { background: #3a1d22; color: #f0888f; }

/* Room */
#room-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 16px; background: #11151d; border-bottom: 1px solid #232b3a;
}
#room-title { font-weight: 600; flex: 1; }
#gallery {
  flex: 1; display: grid; gap: 10px; padding: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  align-content: center;
}
.tile { position: relative; background: #0a0d12; border-radius: 10px; overflow: hidden; aspect-ratio: 16/9; }
.tile video { width: 100%; height: 100%; object-fit: cover; }
.tile.self video { transform: scaleX(-1); }
.tile .label {
  position: absolute; left: 8px; bottom: 8px;
  background: rgba(10,13,18,.72); padding: 3px 9px; border-radius: 6px;
  font-size: .82rem;
}
.tile .label .role { color: #8a93a5; margin-left: 6px; font-size: .75rem; }
