/* workspace.css — ecranul bisericii în studio, blocuri mărite și redimensionabile. */

/* --- Ecranul bisericii --------------------------------------------------- */

.screen-panel { margin-top: 14px; }

.screen-panel .panel-title small {
  font-size: .62rem;
  color: var(--muted, #8c96a6);
}

/* Aceleași proporții ca videoproiectorul, ca operatorul să judece corect
 * încadrarea textului înainte să apese „Afișează pe ambele". */
.screen-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: 6% 8%;
  background: #05070b;
  border: 1px solid var(--line, #252c37);
  border-radius: .4rem;
  overflow: hidden;
  text-align: center;
}

.screen-stage.empty .screen-ref,
.screen-stage.empty .screen-text { display: none; }

.screen-stage.empty::after {
  content: "Ecran gol";
  font-size: .72rem;
  color: #3d4757;
  letter-spacing: .1em;
}

.screen-ref {
  font-size: clamp(.55rem, 1.4vw, .9rem);
  letter-spacing: .1em;
  color: var(--amber, #f2b84b);
}

.screen-text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(.7rem, 1.9vw, 1.35rem);
  line-height: 1.35;
  color: #f2f5fa;
  max-height: 72%;
  overflow: hidden;
}

/* --- Blocuri ------------------------------------------------------------- */

.block {
  position: relative;
  resize: vertical;
  overflow: auto;
  min-height: 6rem;
}

/* Colțul de redimensionare al browserului e discret; îl facem vizibil. */
.block::-webkit-resizer { background: transparent; }

.block-expand {
  margin-left: auto;
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  font-size: .8rem;
  line-height: 1;
  border: 1px solid var(--line, #252c37);
  border-radius: .3rem;
  background: transparent;
  color: var(--muted, #8c96a6);
  cursor: pointer;
}

.block-expand:hover {
  color: var(--amber, #f2b84b);
  border-color: var(--amber, #f2b84b);
}

.block-expand[aria-pressed="true"] {
  color: var(--amber, #f2b84b);
  border-color: var(--amber, #f2b84b);
}

/* Monitoarele nu au un antet flexibil; poziționăm butonul peste colț. */
.monitor > .block-expand,
.stream-card > .block-expand {
  position: absolute;
  right: .5rem;
  top: .5rem;
  z-index: 5;
  background: rgba(8, 11, 16, .8);
}

.block-expanded {
  position: fixed;
  inset: 4vh 4vw;
  z-index: 90;
  height: auto !important;
  margin: 0;
  overflow: auto;
  resize: none;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, .8);
}

/* Blocul mărit umple spațiul: altfel s-ar întinde cadrul dar nu și conținutul. */
.block-expanded .screen-stage,
.block-expanded .video-frame {
  max-height: 82vh;
  height: auto;
}

.block-backdrop {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(4, 6, 10, .78);
  display: none;
}

.block-backdrop.on { display: block; }

@media (max-width: 760px) {
  .block-expanded { inset: 2vh 2vw; }
}

/* Mixerul și reglajul de imagine, pe același rând. Ocupă toată lățimea
 * containerului, sub blocul cu scene. */
.panel-pair {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

@media (max-width: 1050px) {
  .panel-pair { grid-template-columns: 1fr; }
}
