/* Broadcast view: fixed 16:9 stage, built to be recorded or streamed —
   big type, high contrast, a single unmissable "who's talking" cue. */

.broadcast-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #060809;
  padding: 1rem;
}

.bcstage {
  position: relative;
  width: min(100%, 177.78vh); /* locks the whole stage to a true 16:9 frame */
  aspect-ratio: 16 / 9;
  background: radial-gradient(120% 140% at 50% -10%, #161d24 0%, #0b0f13 60%, #060809 100%);
  border: 1px solid #1b232b;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 2.2vw, 2.2rem);
  gap: clamp(0.6rem, 1.4vw, 1.4rem);
  overflow: hidden;
}

/* Viewfinder register marks — reads this frame as a camera monitor, not a
   webpage. Pure CSS: four L-shaped corners built from eight gradient strips,
   inset from the true edge like a monitor's safe-area guide. */
.bcstage::before {
  content: "";
  position: absolute;
  inset: 16px;
  pointer-events: none;
  z-index: 2;
  --bl: 20px;
  --bw: 2px;
  --bc: color-mix(in srgb, var(--lamp) 55%, transparent);
  background:
    linear-gradient(var(--bc), var(--bc)) top left / var(--bl) var(--bw) no-repeat,
    linear-gradient(var(--bc), var(--bc)) top left / var(--bw) var(--bl) no-repeat,
    linear-gradient(var(--bc), var(--bc)) top right / var(--bl) var(--bw) no-repeat,
    linear-gradient(var(--bc), var(--bc)) top right / var(--bw) var(--bl) no-repeat,
    linear-gradient(var(--bc), var(--bc)) bottom left / var(--bl) var(--bw) no-repeat,
    linear-gradient(var(--bc), var(--bc)) bottom left / var(--bw) var(--bl) no-repeat,
    linear-gradient(var(--bc), var(--bc)) bottom right / var(--bl) var(--bw) no-repeat,
    linear-gradient(var(--bc), var(--bc)) bottom right / var(--bw) var(--bl) no-repeat;
}
/* Vignette — quiet filmic depth, keeps the edges from feeling flat. */
.bcstage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  box-shadow: inset 0 0 min(14vw, 140px) min(4vw, 40px) rgba(0, 0, 0, 0.4);
}

.bctop { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 3; }
.bcwordmark {
  font-family: "Archivo Black", "Archivo", sans-serif;
  font-size: clamp(1rem, 2vw, 1.4rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.bcwordmark span { color: var(--lamp); }
.bcwordmark::before {
  content: "";
  width: 0.4em;
  height: 0.4em;
  border-radius: 50%;
  background: var(--lamp);
  box-shadow: 0 0 8px color-mix(in srgb, var(--lamp) 70%, transparent);
}

.bctop-right { display: flex; align-items: center; gap: clamp(0.6rem, 1.4vw, 1rem); }
.bcclock {
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(0.6rem, 1vw, 0.8rem);
  letter-spacing: 0.14em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.bcmotion {
  position: relative;
  z-index: 3;
  text-align: center;
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: clamp(1.1rem, 2.6vw, 2rem);
  line-height: 1.2;
  color: var(--text);
  padding: 0 4vw;
}

.bcpanels {
  position: relative;
  z-index: 3;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.8rem, 1.6vw, 1.6rem);
  min-height: 0;
}

.bcspeaker {
  border: 2px solid var(--dc, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--dc, #333) 6%, #0d1216);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5vw;
  opacity: 0.5;
  transform: scale(0.97);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}
.bcspeaker.speaking {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 0 60px -10px color-mix(in srgb, var(--dc) 60%, transparent);
}
.bcspeaker .avatar-badge {
  width: clamp(2.6rem, 6.5vw, 5rem);
  height: clamp(2.6rem, 6.5vw, 5rem);
  padding: clamp(0.3rem, 0.7vw, 0.5rem);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--dc);
  transition: background 0.4s ease;
}
.bcspeaker.speaking .avatar-badge { background: color-mix(in srgb, var(--dc) 20%, transparent); }
.bcspeaker .avatar-badge svg { width: 100%; height: 100%; display: block; }

.bcmeter {
  height: clamp(1rem, 2.2vw, 1.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dc);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.bcspeaker.speaking .bcmeter { opacity: 1; }
.bcmeter .meter { height: clamp(0.8rem, 1.8vw, 1.2rem); gap: clamp(2px, 0.5vw, 4px); }
.bcmeter .meter i { width: clamp(3px, 0.7vw, 5px); }

.bcname {
  font-family: "Archivo", sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 5vw, 4rem);
  color: var(--dc);
}
.bccompany {
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(0.7rem, 1.2vw, 1rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.bcstance {
  margin-top: 0.6vw;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(0.6rem, 1vw, 0.85rem);
  letter-spacing: 0.2em;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--dc);
  color: var(--dc);
  border-radius: 4px;
  visibility: hidden;
}
.bcstance.show { visibility: visible; }

.bccaption-wrap {
  position: relative;
  z-index: 3;
  min-height: clamp(4rem, 12vh, 7rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 0.3rem;
}
.bccaption-who {
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(0.65rem, 1vw, 0.85rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dc, var(--muted));
  min-height: 1em;
}
.bccaption {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: clamp(1.1rem, 2.6vw, 1.9rem);
  line-height: 1.35;
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  .bcspeaker { transition: none; }
}
