/* v286: transmisja prywatna - panel nadawcy (/priv/) i strona widza (/priv/KOD).
   Uzupełnia info-pages.css; kolory z tej samej palety. */
.pv-app { min-height: 12rem; }
/* Atrybut hidden musi wygrać z display ustawionym w klasach przycisków i boksów. */
.pv-app [hidden], .pv-view [hidden] { display: none !important; }
.pv-app > .pv-loading { color: #40516b; }
.pv-label { margin: 0 0 .35rem; color: #086e8c; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pv-url {
  margin: 0;
  padding: .75rem 1rem;
  border: 1px solid #dbe3ef;
  border-radius: .65rem;
  background: #f1f6fb;
  color: #152b4f;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(.85rem, 3.9vw, 1.35rem);
  font-weight: 600;
  overflow-wrap: anywhere;
  user-select: all;
}
.pv-hint { margin: .5rem 0 0; color: #5a6a82; font-size: .9rem; }
.pv-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; align-items: center; }
.pv-address { margin-bottom: 1.25rem; }

.pv-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: .6rem 1rem;
  border: 1px solid transparent;
  border-radius: .65rem;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.pv-btn:disabled { opacity: .5; cursor: not-allowed; }
.pv-btn:focus-visible { outline: 3px solid #f2b84b; outline-offset: 2px; }
.pv-primary { background: #086e8c; color: #fff; }
.pv-primary:hover:not(:disabled) { background: #075a72; }
.pv-danger { background: #b42318; color: #fff; }
.pv-danger:hover:not(:disabled) { background: #912018; }
.pv-secondary { background: #fff; color: #152b4f; border-color: #c5d2e3; }
.pv-secondary:hover:not(:disabled) { border-color: #086e8c; }
.pv-ghost { background: transparent; color: #35537d; border-color: transparent; text-decoration: underline; text-underline-offset: .2rem; }

.pv-stage {
  position: relative;
  margin-top: .5rem;
  aspect-ratio: 16 / 9;
  max-height: 70vh;
  border-radius: .9rem;
  overflow: hidden;
  background: #0b1424;
}
.pv-video { display: block; width: 100%; height: 100%; object-fit: contain; background: #0b1424; }
.pv-mirror { transform: scaleX(-1); }
.pv-placeholder, .pv-overlay {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  color: #dbe7f8;
  font-weight: 600;
  text-align: center;
}
.pv-overlay { background: rgba(11, 20, 36, .72); }
.pv-placeholder[hidden], .pv-overlay[hidden] { display: none; }
.pv-badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
  padding: .2rem .6rem;
  border-radius: .4rem;
  background: #d92d20;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.pv-badge[hidden] { display: none; }
.pv-controls { margin-top: .75rem; }
.pv-app > .pv-primary, .pv-app > .pv-danger { width: 100%; margin-top: .9rem; font-size: 1.05rem; min-height: 52px; }

.pv-msg { margin: .75rem 0; padding: .65rem .9rem; border-radius: .6rem; background: #eef4fa; color: #172033; }
.pv-msg[hidden] { display: none; }
.pv-ok { background: #e7f6ee; color: #10512f; }
.pv-warn { background: #fff5e0; color: #6b4703; }
.pv-error { background: #fdecea; color: #8a1c13; }
.pv-elsewhere { margin: .75rem 0; padding: .75rem .9rem; border-radius: .6rem; background: #fff5e0; color: #6b4703; }
.pv-elsewhere[hidden] { display: none; }
.pv-elsewhere p { margin: 0 0 .5rem; color: inherit; }

.pv-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin: 1rem 0 0; }
.pv-stats[hidden] { display: none; }
.pv-stat { padding: .6rem .75rem; border: 1px solid #dbe3ef; border-radius: .6rem; background: #f8fafc; }
.pv-stat dt { color: #5a6a82; font-size: .78rem; font-weight: 700; }
.pv-stat dd { margin: .1rem 0 0; color: #152b4f; font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.pv-limits { margin: .9rem 0 0; color: #5a6a82; font-size: .9rem; }
.pv-guest h2 { margin-bottom: .5rem; }

/* Strona widza */
.pv-view-page { background: #0b1424; color: #dbe7f8; }
.pv-view-page .site-header { background: #0f1b30; border-bottom-color: #22324d; }
.pv-view { max-width: 72rem; margin: 0 auto; padding: 1rem 1rem 2rem; }
.pv-screen { position: relative; aspect-ratio: 16 / 9; max-height: calc(100vh - 11rem); margin: 0 auto; border-radius: .9rem; overflow: hidden; background: #000; }
.pv-screen:fullscreen { max-height: none; border-radius: 0; }
.pv-screen .pv-video { background: #000; }
.pv-vcontrols { justify-content: center; }
.pv-vcontrols .pv-hint { color: #9fb0c8; }
.pv-view-page .pv-secondary { background: #15233b; color: #dbe7f8; border-color: #2c3f5f; }
.pv-view-note { max-width: 46rem; margin: 1.25rem auto 0; color: #9fb0c8; font-size: .88rem; text-align: center; }
.pv-view-note a { color: #9fd8ea; }

@media (max-width: 46rem) {
  .pv-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pv-stat dd { font-size: 1.05rem; }
  .pv-url { padding: .65rem .75rem; }
  .pv-view { padding: .5rem .5rem 1.5rem; }
  .pv-screen { border-radius: .5rem; }
}
