/* /recordings/New — Meet lobby composition + recording HUD */

.recordings-new-gate {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
}

.recordings-new-gate[hidden] {
  display: none !important;
}

.recordings-new-gate__text {
  margin: 0;
  color: rgba(227, 219, 204, 0.65);
  font-family: clother, sans-serif;
}

.recordings-new-gate a {
  color: var(--accent-color, #f2133c);
}

.rec-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
  transform: none;
}

.rec-preview--playback {
  object-fit: contain;
}

.rec-preview[hidden] {
  display: none;
}

.rec-cam-bubble {
  position: absolute !important;
  right: 18px;
  bottom: 18px;
  left: auto;
  top: auto;
  z-index: 2;
  width: min(28%, 180px) !important;
  height: auto !important;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(227, 219, 204, 0.45);
  background: #111;
  transform: scaleX(-1);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.rec-cam-bubble[hidden] {
  display: none !important;
}

.rec-preview {
  transform: none !important;
}

.rec-title-field {
  display: block;
  margin: 0 0 18px;
  overflow: visible;
}

.rec-title-input {
  width: 100%;
  margin: 0;
  padding: 0.12em 0 0.2em;
  border: 0;
  border-radius: 0;
  background: transparent;
  outline: none;
  box-shadow: none;
  font: inherit;
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--secondary-color, #e3dbcc);
  caret-color: var(--accent-color, #f2133c);
  overflow: visible;
}

.rec-title-input::placeholder {
  color: rgba(227, 219, 204, 0.35);
}

.rec-title-input:focus {
  outline: none;
}

.rec-title-input:disabled {
  opacity: 0.72;
  cursor: default;
}

.rec-size-label {
  font-size: 0.82rem;
  color: rgba(227, 219, 204, 0.78);
  white-space: nowrap;
}

.meet-lobby.is-ready .meet-lobby__cam-wait {
  display: none;
}

.rec-lobby-hud {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  pointer-events: none;
  padding: 24px;
  text-align: center;
}

.rec-lobby-hud[hidden] {
  display: none !important;
}

.rec-lobby-hud__rec {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(242, 19, 60, 0.45);
  background: rgba(242, 19, 60, 0.12);
  color: var(--accent-color, #f2133c);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.rec-lobby-hud__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-color, #f2133c);
  box-shadow: 0 0 0 0 rgba(242, 19, 60, 0.55);
  animation: recLobbyPulse 1.4s ease-out infinite;
}

.meet-lobby.is-paused .rec-lobby-hud__dot {
  animation: none;
  opacity: 0.45;
}

.meet-lobby.is-paused .rec-lobby-hud__rec {
  color: rgba(227, 219, 204, 0.75);
  border-color: rgba(227, 219, 204, 0.28);
  background: rgba(227, 219, 204, 0.08);
}

@keyframes recLobbyPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(242, 19, 60, 0.55);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(242, 19, 60, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(242, 19, 60, 0);
  }
}

.rec-lobby-hud__timer {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--secondary-color, #e3dbcc);
  line-height: 1;
}

.meet-lobby.is-recording .rec-lobby-hud__timer {
  color: var(--accent-color, #f2133c);
}

.rec-lobby-status {
  margin: 0 0 14px;
  min-height: 1.2em;
  font-size: 0.85rem;
  color: var(--meet-muted, rgba(227, 219, 204, 0.55));
}

.rec-lobby-status.is-error {
  color: var(--accent-color, #f2133c);
}

.rec-lobby-status:empty {
  display: none;
}

.rec-share-block {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.rec-share-block[hidden] {
  display: none !important;
}

.rec-share-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: end;
}

.rec-share-url {
  min-width: 0;
}

.rec-share-icon-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: none;
  border-bottom: 1px solid var(--meet-line, rgba(227, 219, 204, 0.22));
  border-radius: 0;
  background: transparent;
  color: var(--accent-color, #f2133c);
  cursor: pointer;
  flex-shrink: 0;
}

.rec-share-icon-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.rec-share-icon-btn:hover {
  color: var(--secondary-color, #e3dbcc);
  border-bottom-color: rgba(242, 19, 60, 0.55);
}

.rec-share-icon-btn[hidden] {
  display: none !important;
}

.rec-secondary {
  margin-top: 12px;
  width: 100%;
  justify-content: center;
}

.rec-secondary[hidden] {
  display: none !important;
}

.rec-back-link {
  color: inherit;
  text-decoration: none;
}

.rec-back-link:hover {
  color: var(--accent-color, #f2133c);
}

.meet-lobby.is-ready .rec-preview {
  object-fit: contain;
}
