/* ============================================================
   AyRPC 2026
   El layout principal hereda directamente de Clases AyRPC 2025.
   Este archivo solamente estiliza asistencia y placeholders.
   ============================================================ */

.ayrpc2026-live-attendance {
  margin: 14px 0;
  padding: 16px;
  border: 1px solid rgba(122, 64, 180, .58);
  border-radius: 14px;
  background: rgba(63, 26, 105, .10);
}

.ayrpc2026-live-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.ayrpc2026-live-head h4 {
  margin: 2px 0 0;
}

.ayrpc2026-live-message {
  margin: 10px 0 0;
  opacity: .82;
  line-height: 1.45;
}

.ayrpc2026-live-form {
  margin-top: 14px;
}

.ayrpc2026-live-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.ayrpc2026-live-code-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ayrpc2026-live-code {
  min-width: 0;
  flex: 1;
  padding: 12px 14px;
  border: 1px solid rgba(0, 225, 255, .45);
  border-radius: 10px;
  background: rgba(0, 0, 0, .18);
  color: inherit;
  font-family: "Orbitron", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .4rem;
  text-align: center;
  text-transform: uppercase;
}

.ayrpc2026-live-feedback {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 9px;
}

.ayrpc2026-live-feedback.ok {
  border: 1px solid rgba(50, 220, 140, .38);
  background: rgba(50, 220, 140, .08);
}

.ayrpc2026-live-feedback.bad {
  border: 1px solid rgba(255, 80, 110, .38);
  background: rgba(255, 80, 110, .08);
}

.ayrpc2026-live-feedback.warn {
  border: 1px solid rgba(255, 190, 70, .38);
  background: rgba(255, 190, 70, .08);
}

.ayrpc2026-staff-attendance {
  margin-top: 14px;
  border-top: 1px solid rgba(130, 80, 190, .3);
  padding-top: 12px;
}

.ayrpc2026-staff-attendance summary {
  cursor: pointer;
  font-weight: 700;
  user-select: none;
}

.ayrpc2026-staff-body {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.ayrpc2026-staff-state {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  background: rgba(255,255,255,.035);
}

.ayrpc2026-staff-code {
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(170, 90, 255, .4);
}

.ayrpc2026-staff-code strong {
  font-family: "Orbitron", sans-serif;
  font-size: 1.7rem;
  letter-spacing: .3rem;
}

.ayrpc2026-staff-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ayrpc2026-thumb-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(0,225,255,.16), transparent 60%),
    rgba(10,5,20,.92);
}

.ayrpc2026-thumb-placeholder i {
  font-size: 1.8rem;
  opacity: .55;
}

.ayrpc2026-video-placeholder {
  width: 100%;
  height: 100%;
  min-height: 300px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  background: #000;
}

.ayrpc2026-video-placeholder > div {
  display: grid;
  gap: 8px;
}

.ayrpc2026-video-placeholder i {
  font-size: 2.2rem;
  opacity: .35;
}

.ayrpc2026-video-placeholder strong {
  font-family: "Orbitron", sans-serif;
}

.ayrpc2026-video-placeholder span {
  opacity: .65;
}

/* El YT.Player controlado reemplaza el mount por un iframe propio.
   Forzamos el iframe a ocupar todo el contenedor 16:9 para evitar
   la franja negra que dejaba la altura por defecto de YouTube. */
#youtubePlayer iframe {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

@media (max-width: 700px) {
  .ayrpc2026-live-head {
    flex-direction: column;
  }

  .ayrpc2026-live-code-row {
    flex-direction: column;
    align-items: stretch;
  }

  .ayrpc2026-live-code {
    width: 100%;
  }

  .ayrpc2026-staff-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ayrpc2026-staff-actions .btn {
    width: 100%;
  }
}
/* Al abrir una clase, deja espacio para la barra superior */
#liveAttendancePanel,
#videoPlayerBox {
  scroll-margin-top: 90px;
}