/* Live Studio Regie — light desk, dark monitor bezels (broadcast control-room language). */

:root {
  --studio-ink: #1c1917;
  --studio-muted: #78716c;
  --studio-paper: #f5f0e8;
  --studio-panel: #fffdf8;
  --studio-line: #e7e0d4;
  --studio-preview: #0f766e;
  --studio-program: #c2410c;
  --studio-live: #b91c1c;
  --studio-ok: #15803d;
  --studio-mono: "IBM Plex Mono", ui-monospace, monospace;
  --studio-sans: "DM Sans", "Segoe UI", sans-serif;
}

.studio-shell {
  max-width: 1200px;
  margin: 0 auto;
}

.studio-regie {
  font-family: var(--studio-sans);
  color: var(--studio-ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(15, 118, 110, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(194, 65, 12, 0.07), transparent 50%),
    linear-gradient(180deg, var(--studio-paper), #efe8dc 120%);
  border-radius: 18px;
  padding: 1.25rem 1.25rem 1.5rem;
  border: 1px solid var(--studio-line);
}

.studio-regie__hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.25rem;
}

.studio-regie__brand {
  font-family: var(--studio-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--studio-muted);
  margin: 0 0 0.35rem;
}

.studio-regie__title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.05;
}

.studio-regie__lede {
  margin: 0.45rem 0 0;
  max-width: 36rem;
  color: var(--studio-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.studio-regie__hotkeys {
  margin: 0.55rem 0 0;
  font-family: var(--studio-mono);
  font-size: 0.72rem;
  color: var(--studio-muted);
  letter-spacing: 0.02em;
}

.studio-regie__hotkeys kbd {
  display: inline-block;
  padding: 0.1rem 0.35rem;
  border: 1px solid var(--studio-line);
  border-radius: 4px;
  background: #fff;
  font-size: 0.68rem;
}

.studio-transition {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--studio-muted);
}

.studio-transition select {
  border: 1px solid var(--studio-line);
  border-radius: 8px;
  background: #fff;
  padding: 0.4rem 0.5rem;
  font: 600 0.8rem/1 var(--studio-sans);
  color: var(--studio-ink);
}

.studio-regie__hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.studio-pill {
  font-family: var(--studio-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--studio-line);
  background: #fff;
  color: var(--studio-muted);
}

.studio-pill--live {
  border-color: color-mix(in srgb, var(--studio-live) 40%, white);
  color: var(--studio-live);
  background: color-mix(in srgb, var(--studio-live) 8%, white);
}

.studio-regie__recbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--studio-line);
  border-radius: 12px;
  background: color-mix(in srgb, #fff 70%, #f5f0e8);
}

.studio-tc {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  font-family: var(--studio-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--studio-ink);
}

.studio-tc__label {
  color: var(--studio-muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.studio-tc__wall {
  color: var(--studio-muted);
  font-weight: 500;
  font-size: 0.68rem;
}

.studio-fader__delay {
  display: flex;
  justify-content: space-between;
  font-family: var(--studio-mono);
  font-size: 0.68rem;
  color: var(--studio-muted);
  margin-top: 0.35rem;
}

.studio-limiter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--studio-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--studio-muted);
}

.studio-master-meter {
  margin-bottom: 0.75rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--studio-line);
  border-radius: 10px;
  background: color-mix(in srgb, #fff 78%, #f5f0e8);
}

.studio-master-meter__labels {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
  font-family: var(--studio-mono);
  font-size: 0.72rem;
  color: var(--studio-muted);
}

.studio-vu__peak {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #f97316;
  pointer-events: none;
  left: 0;
  z-index: 1;
}

.studio-vu__bar.is-clip {
  background: var(--studio-live);
}

.studio-clip-badge {
  font-family: var(--studio-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff7ed;
  background: var(--studio-live);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
}

.studio-scratch-tag,
.studio-program-tag {
  font-family: var(--studio-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
}

.studio-scratch-tag {
  color: #78716c;
  background: #e7e5e4;
}

.studio-program-tag {
  color: #0f766e;
  background: color-mix(in srgb, #0f766e 12%, white);
}

.studio-fader--scratch {
  opacity: 0.82;
}

.studio-fader--program {
  border-color: color-mix(in srgb, #0f766e 28%, var(--studio-line));
}

.studio-station--scratch {
  opacity: 0.88;
}

.studio-webhook {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.studio-webhook input[type="url"],
.studio-webhook input[type="text"] {
  min-width: 11rem;
  border: 1px solid var(--studio-line);
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  font: 500 0.78rem/1.2 var(--studio-mono);
  background: #fff;
}

.studio-webhook__enable {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.studio-webhook__status {
  font-family: var(--studio-mono);
  font-size: 0.68rem;
  color: var(--studio-muted);
}

.studio-rec-telemetry {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--studio-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--studio-live);
  min-width: 9rem;
}

.studio-rec-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--studio-live);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--studio-live) 55%, transparent);
  animation: studio-rec-pulse 1.2s ease-out infinite;
}

@keyframes studio-rec-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--studio-live) 55%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.studio-btn {
  appearance: none;
  border: 1px solid var(--studio-line);
  background: #fff;
  color: var(--studio-ink);
  font: 600 0.85rem/1 var(--studio-sans);
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.studio-btn:hover {
  border-color: #c4b8a5;
}

.studio-btn--primary {
  background: var(--studio-ink);
  border-color: var(--studio-ink);
  color: #faf7f2;
}

.studio-btn--primary:hover {
  filter: brightness(1.08);
}

.studio-btn--danger {
  background: var(--studio-live);
  border-color: var(--studio-live);
  color: #fff7ed;
}

.studio-btn--small {
  font-size: 0.78rem;
  padding: 0.4rem 0.65rem;
}

.studio-regie__monitors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

@media (max-width: 860px) {
  .studio-regie__monitors {
    grid-template-columns: 1fr;
  }
}

.studio-monitor {
  background: #1a1816;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #2c2824;
  box-shadow: 0 12px 30px rgba(28, 25, 23, 0.18);
}

.studio-monitor__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.7rem;
  background: #11100e;
  font-family: var(--studio-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.studio-monitor__label {
  color: #5eead4;
}

.studio-monitor__label--program {
  color: #fdba74;
}

.studio-monitor__scene {
  color: #a8a29e;
}

.studio-monitor__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, #292524 0%, #1c1917 55%, #0c0a09 100%);
  overflow: hidden;
}

.studio-monitor__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.studio-slot {
  position: absolute;
  overflow: hidden;
  background: #0c0a09;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.studio-slot--editable {
  cursor: pointer;
}

.studio-slot__assign {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  z-index: 3;
  appearance: none;
  border: 0;
  border-radius: 6px;
  background: rgba(15, 118, 110, 0.92);
  color: #ecfdf5;
  font: 600 0.65rem/1 var(--studio-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.45rem;
  cursor: pointer;
}

.studio-slot video,
.studio-slot .studio-slot__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.studio-slot__poster {
  display: grid;
  place-items: center;
  color: #a8a29e;
  font-family: var(--studio-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  background:
    repeating-linear-gradient(
      -12deg,
      #1c1917,
      #1c1917 8px,
      #221f1c 8px,
      #221f1c 16px
    );
}

.studio-overlays {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.studio-lt {
  position: absolute;
  left: 4%;
  bottom: 8%;
  max-width: 70%;
  padding: 0.65rem 0.9rem 0.7rem;
  background: linear-gradient(90deg, rgba(28, 25, 23, 0.92), rgba(28, 25, 23, 0.55));
  border-left: 3px solid #f97316;
  color: #fff7ed;
}

.studio-lt__title {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
}

.studio-lt__sub {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  opacity: 0.85;
}

.studio-title-card {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(12, 10, 9, 0.55);
  color: #fff7ed;
  text-align: center;
  padding: 1rem;
}

.studio-title-card h3 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
}

.studio-title-card p {
  margin: 0.4rem 0 0;
  opacity: 0.8;
}

.studio-regie__scenes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.studio-multiview {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--studio-line);
  border-radius: 14px;
  background: color-mix(in srgb, #fff 72%, #f5f0e8);
}

.studio-multiview__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
}

@media (max-width: 1100px) {
  .studio-multiview__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .studio-multiview__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.studio-mv-tile {
  position: relative;
  display: grid;
  gap: 0.3rem;
  padding: 0.4rem;
  border: 2px solid var(--studio-line);
  border-radius: 10px;
  background: #0c0a09;
  min-height: 7.5rem;
}

.studio-mv-tile.is-pgm {
  border-color: var(--studio-live);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--studio-live) 35%, transparent);
}

.studio-mv-tile.is-pvw {
  border-color: #15803d;
}

.studio-mv-tile.is-pgm.is-pvw {
  border-color: var(--studio-live);
  outline: 2px solid #15803d;
  outline-offset: 1px;
}

.studio-mv-tile--empty {
  opacity: 0.45;
}

.studio-mv-tile__video {
  aspect-ratio: 16 / 9;
  background: #1c1917;
  border-radius: 6px;
  overflow: hidden;
}

.studio-mv-tile__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.studio-mv-tile__poster,
.studio-mv-tile__empty {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 4rem;
  color: #a8a29e;
  font-family: var(--studio-mono);
  font-size: 0.72rem;
  text-align: center;
  padding: 0.4rem;
}

.studio-mv-tile__tally {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  display: flex;
  gap: 0.25rem;
  z-index: 2;
}

.studio-mv-badge {
  font-family: var(--studio-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.12rem 0.3rem;
  border-radius: 4px;
  background: rgba(28, 25, 23, 0.82);
  color: #fff7ed;
}

.studio-mv-badge--pgm {
  background: var(--studio-live);
}

.studio-mv-badge--pvw {
  background: #15803d;
}

.studio-mv-tile__meta {
  display: grid;
  gap: 0.15rem;
}

.studio-mv-tile__role {
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff7ed;
  font: 700 0.78rem/1.2 var(--studio-sans);
  padding: 0;
}

.studio-mv-tile__tech {
  font-family: var(--studio-mono);
  font-size: 0.58rem;
  color: #a8a29e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-vu--mini {
  height: 4px;
}

.studio-mv-tile__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.studio-mv-tile__actions .studio-btn {
  padding: 0.28rem 0.45rem;
  font-size: 0.68rem;
}

.studio-iso-status {
  font-family: var(--studio-mono);
  font-size: 0.58rem;
  color: #f97316;
  width: 100%;
}

.studio-scene-btn {
  appearance: none;
  border: 1px solid var(--studio-line);
  background: var(--studio-panel);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  min-width: 7.5rem;
  text-align: left;
  cursor: pointer;
  font-family: var(--studio-sans);
}

.studio-scene-btn strong {
  display: block;
  font-size: 0.92rem;
}

.studio-scene-btn span {
  font-family: var(--studio-mono);
  font-size: 0.68rem;
  color: var(--studio-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.studio-scene-btn.is-preview {
  border-color: color-mix(in srgb, var(--studio-preview) 55%, white);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--studio-preview) 35%, white);
}

.studio-scene-btn.is-program {
  border-color: color-mix(in srgb, var(--studio-program) 55%, white);
  background: color-mix(in srgb, var(--studio-program) 8%, white);
}

.studio-regie__desk {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr;
  gap: 0.75rem;
}

@media (max-width: 980px) {
  .studio-regie__desk {
    grid-template-columns: 1fr;
  }
}

.studio-panel {
  background: var(--studio-panel);
  border: 1px solid var(--studio-line);
  border-radius: 14px;
  padding: 0.85rem;
}

.studio-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.studio-panel__head h2 {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--studio-muted);
}

.studio-stations {
  display: grid;
  gap: 0.45rem;
}

.studio-station {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
  border: 1px solid var(--studio-line);
  background: #fff;
}

.studio-station__lamp {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: #a8a29e;
}

.studio-station__lamp.is-live {
  background: var(--studio-ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--studio-ok) 20%, transparent);
}

.studio-station__lamp.is-pairing {
  background: #ca8a04;
}

.studio-station__lamp.is-program {
  background: var(--studio-live);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--studio-live) 22%, transparent);
}

.studio-station__meta strong {
  display: block;
  font-size: 0.9rem;
}

.studio-station__meta span {
  font-family: var(--studio-mono);
  font-size: 0.68rem;
  color: var(--studio-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.studio-station__actions {
  display: flex;
  gap: 0.3rem;
}

.studio-audio {
  display: grid;
  gap: 0.55rem;
}

.studio-fader {
  display: grid;
  gap: 0.35rem;
}

.studio-fader__head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  justify-content: space-between;
}

.studio-fader__head label {
  font-size: 0.82rem;
  flex: 1;
}

.studio-fader__head span {
  font-family: var(--studio-mono);
  font-size: 0.68rem;
  color: var(--studio-muted);
}

.studio-fader input[type="range"] {
  width: 100%;
}

.studio-vu {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: #e7e0d4;
  overflow: visible;
}

.studio-vu__bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #15803d, #ca8a04 70%, #b91c1c);
  transition: width 60ms linear;
}

.studio-vu__bar.is-hot {
  filter: saturate(1.2);
}

.studio-overlay-list {
  display: grid;
  gap: 0.45rem;
}

.studio-overlay-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: flex-start;
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--studio-line);
  border-radius: 10px;
  background: #fff;
}

.studio-overlay-row--edit {
  flex-direction: column;
}

.studio-overlay-edit {
  display: grid;
  gap: 0.35rem;
  width: 100%;
}

.studio-overlay-edit__kind {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--studio-muted);
  font-family: var(--studio-mono);
}

.studio-overlay-edit input {
  width: 100%;
  border: 1px solid var(--studio-line);
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  font: 500 0.85rem/1.2 var(--studio-sans);
}

.studio-overlay-edit__actions {
  display: flex;
  gap: 0.35rem;
  justify-content: flex-end;
  width: 100%;
}

.studio-overlay-row p {
  margin: 0;
  font-size: 0.85rem;
}

.studio-overlay-row span {
  display: block;
  font-size: 0.72rem;
  color: var(--studio-muted);
}

.studio-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.45);
  z-index: 40;
}

.studio-pair {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px dashed #c4b8a5;
  background: #fff;
  text-align: center;
}

.studio-pair--modal {
  position: fixed;
  z-index: 50;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  min-width: min(20rem, 92vw);
  padding: 1.1rem;
  border-style: solid;
  box-shadow: 0 24px 60px rgba(28, 25, 23, 0.28);
}

.studio-pair__hint {
  font-size: 0.78rem;
  color: var(--studio-muted);
  margin: 0 0 0.65rem;
}

.studio-slot-picker {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  background: rgba(28, 25, 23, 0.4);
}

.studio-slot-picker__card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--studio-line);
  padding: 1rem;
  width: min(22rem, 92vw);
  box-shadow: 0 20px 50px rgba(28, 25, 23, 0.22);
}

.studio-slot-picker__list {
  display: grid;
  gap: 0.4rem;
  margin: 0.65rem 0 0.85rem;
}

.studio-pair__title {
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.studio-pair__qr {
  border-radius: 8px;
  background: #fff;
}

.studio-pair__url {
  font-family: var(--studio-mono);
  font-size: 0.68rem;
  word-break: break-all;
  color: var(--studio-muted);
  margin: 0.5rem 0;
}

.studio-panel__hint {
  font-family: var(--studio-mono);
  font-size: 0.72rem;
  color: var(--studio-muted);
}

.studio-trim {
  display: grid;
  gap: 0.65rem;
}

.studio-trim label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: var(--studio-muted);
}

.studio-trim input[type="range"] {
  width: 100%;
}

.studio-trim__mirror {
  display: flex !important;
  align-items: center;
  gap: 0.45rem;
  grid-template-columns: none;
}

.studio-regie__foot {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.studio-regie__note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--studio-muted);
}

/* Join page */
.studio-join-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top, rgba(15, 118, 110, 0.12), transparent 50%),
    linear-gradient(180deg, #f5f0e8, #e7e0d4);
  font-family: var(--studio-sans);
  color: var(--studio-ink);
}

.studio-join {
  max-width: 28rem;
  margin: 0 auto;
  padding: 1.5rem 1.1rem 2rem;
}

.studio-join__brand {
  font-family: var(--studio-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--studio-muted);
  margin: 0 0 0.4rem;
}

.studio-join__title {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.studio-join__lede {
  color: var(--studio-muted);
  line-height: 1.45;
}

.studio-join__error {
  color: var(--studio-live);
  font-weight: 600;
}

.studio-join__secure {
  margin: 0.75rem 0;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid #fcd34d;
  background: #fffbeb;
  color: #92400e;
  font-size: 0.85rem;
  line-height: 1.4;
}

.studio-join__secure code {
  font-family: var(--studio-mono);
  font-size: 0.78rem;
}

.studio-join__meta {
  margin: 0;
  font-family: var(--studio-mono);
  font-size: 0.65rem;
  color: var(--studio-muted);
  word-break: break-all;
}

.studio-join__stage {
  position: relative;
  margin: 1rem 0;
  border-radius: 16px;
  overflow: hidden;
  background: #1c1917;
  aspect-ratio: 3 / 4;
  box-shadow: inset 0 0 0 0 transparent;
  transition: box-shadow 160ms ease;
}

.studio-join__stage.is-on-air {
  box-shadow: inset 0 0 0 5px #b91c1c;
}

.studio-join__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.studio-join__tally {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--studio-live);
  color: #fff;
  font-family: var(--studio-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
}

.studio-join__actions {
  display: grid;
  gap: 0.55rem;
}

.studio-join__status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.85rem;
  color: var(--studio-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
