* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: #000; }
body { font: 15px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #fff; }

.stage {
  display: grid;
  gap: 6px;
  padding: 6px;
  width: 100vw;
  height: 100vh;
}
.stage.empty { display: block; }

.tile {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: #111;
  border-radius: 6px;
  overflow: hidden;
}
/* The whole picture, letterboxed: never cropped. */
.tile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.tile .name {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: calc(100% - 16px);
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.6);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.placeholder { display: grid; place-items: center; }
.placeholder .initial {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2a3140;
  font-size: 40px;
  font-weight: 600;
}
