/* Live stream stats (fps, size, bitrate, round trip, path): top-right, fixed-width digits; the
   details card sits under it. */
.sv-stats {
  position: absolute;
  z-index: 1;
  top: 10px;
  right: max(12px, env(safe-area-inset-right));
  max-width: calc(100% - 24px);
  margin: 0;
  overflow: hidden;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--sv-surface, #fff);
  color: var(--sv-muted, #555);
  font: 12px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

/* Phones: under the pill; stats.js leaves out the size and path here so it fits. */
@media (max-width: 760px), (max-width: 1023px) and (max-height: 520px) and (min-aspect-ratio: 301/200) {
  .sv-stats {
    top: calc(max(10px, env(safe-area-inset-top)) + 46px);
    right: max(8px, env(safe-area-inset-right));
    max-width: calc(100% - 16px);
    font-size: 11px;
  }
}
