/* Grabadora de videos del perfil (grabadora-video.js): pantalla completa,
   cámara en vertical, 15, 35 o 60 s con cuenta regresiva. */
.vid-acciones { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.vid-acciones .btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.vid-acciones .trazo { width: 18px; height: 18px; }

body.grab-abierta { overflow: hidden; }
.grab {
  position: fixed; inset: 0; z-index: 3000; background: #000; color: #fff;
  display: flex; flex-direction: column; justify-content: space-between;
  font-family: inherit;
}
.grab-vista, .grab-revision {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000;
}
.grab-vista.espejo { transform: scaleX(-1); }
.grab-vista[hidden], .grab-revision[hidden] { display: none; }

.grab-arriba {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) 16px 10px;
  background: linear-gradient(rgba(0,0,0,.45), transparent);
}
.grab-redondo {
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0,0,0,.4); color: #fff; display: inline-flex; align-items: center; justify-content: center;
}
.grab-redondo:disabled { opacity: .35; cursor: default; }
.grab-redondo .trazo { width: 22px; height: 22px; }
.grab-tiempo {
  font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums;
  padding: 4px 14px; border-radius: 999px; background: rgba(0,0,0,.4);
}
.grab[data-estado="grabando"] .grab-tiempo { background: var(--acc); color: var(--acc-ink); }

.grab-barra { position: absolute; left: 0; right: 0; top: 0; height: 4px; background: rgba(255,255,255,.2); }
.grab-progreso { height: 100%; width: 0; background: var(--acc); transition: width .1s linear; }

.grab-abajo {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 24px 16px max(24px, env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(0,0,0,.55));
}
.grab-duraciones { display: flex; gap: 8px; }
.grab-duraciones[hidden], .grab-revisar[hidden], .grab-boton[hidden] { display: none; }
.grab-chip {
  min-height: 40px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.35); color: #fff;
  font: inherit; font-size: 14px; font-weight: 500;
}
.grab-chip.on { background: #fff; color: #000; border-color: #fff; }
.grab-ayuda { margin: 0; font-size: 13px; text-align: center; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.grab-boton {
  width: 76px; height: 76px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 4px solid #fff; background: transparent; display: flex; align-items: center; justify-content: center;
}
.grab-boton span {
  width: 58px; height: 58px; border-radius: 50%; background: var(--acc); transition: all .15s ease;
}
.grab[data-estado="grabando"] .grab-boton span { width: 28px; height: 28px; border-radius: 6px; }
.grab-revisar { display: flex; gap: 10px; width: 100%; max-width: 360px; }
.grab-revisar .btn { flex: 1; min-height: 48px; }
