.protected-home-camera,
#live-viewer .live-feed.protected-home-camera {
  display: block;
  scroll-margin-top: 1.5rem;
  margin-bottom: clamp(1.25rem, 3vw, 2.5rem);
}

.protected-home-camera .live-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.protected-live-frame {
  width: 100%;
  height: 100%;
  min-height: 24rem;
  object-fit: cover;
  background: #070a09;
}

.protected-live-gate {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.75rem;
  padding: clamp(1rem, 4vw, 2.5rem);
  color: #f2eee4;
  text-align: center;
  background: linear-gradient(180deg, rgba(7, 10, 9, 0.84), rgba(7, 10, 9, 0.94));
}

.protected-live-gate > span {
  max-width: 40rem;
  color: rgba(242, 238, 228, 0.72);
}

.protected-live-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  width: min(100%, 42rem);
}

.protected-live-controls input {
  flex: 1 1 16rem;
  min-width: 0;
  color: #f2eee4;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(221, 171, 82, 0.45);
  border-radius: 0.35rem;
  padding: 0.72rem 0.85rem;
}

.protected-live-controls button,
.protected-live-controls a {
  border: 1px solid rgba(221, 171, 82, 0.55);
  border-radius: 0.35rem;
  padding: 0.72rem 0.9rem;
  color: #f7e2b8;
  background: rgba(70, 46, 18, 0.72);
  cursor: pointer;
  text-decoration: none;
  font: inherit;
}

.protected-live-gate--compact {
  inset: auto 0 0;
  display: block;
  padding: 0.45rem 0.65rem;
  text-align: right;
  background: linear-gradient(0deg, rgba(7, 10, 9, 0.8), transparent);
}

.protected-live-gate--compact > strong,
.protected-live-gate--compact > span,
.protected-live-gate--compact input,
.protected-live-gate--compact button {
  display: none;
}

@media (max-width: 640px) {
  .protected-live-frame { min-height: 15rem; }
  .protected-live-controls { flex-direction: column; }
}
