* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
}

body {
  background: #050608;
  font-family: 'Courier New', 'Fira Code', monospace;
  padding: 2rem;
  display: flex;
  justify-content: center;
  min-height: 100vh;
}

.camera-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1400px;
  width: 100%;
}

.camera {
  position: relative;
  aspect-ratio: 5 / 4;
  background: #000000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 60, 60, 0.2);
  transition: box-shadow 0.1s ease;
}

.camera-blur-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
  filter: blur(5px) contrast(1.15) brightness(0.9) saturate(0.85);
  backdrop-filter: none;
  transform: translateZ(0);
  will-change: filter;
}

.camera .feed {
  position: absolute;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  min-width: 100%;
  min-height: 100%;
  will-change: transform;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.scan {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0px,
    rgba(0, 0, 0, 0.35) 2px,
    transparent 2px,
    transparent 8px
  );
  pointer-events: none;
  z-index: 5;
  animation: scanMove 6s linear infinite;
  opacity: 0.5;
  mix-blend-mode: multiply;
}

@keyframes scanMove {
  0% { background-position: 0 0; }
  100% { background-position: 0 100%; }
}

.camera .noise {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 7;
  opacity: 0.48;
  mix-blend-mode: overlay;
}

.static-dust {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-radial-gradient(circle at 20% 30%, rgba(20,20,20,0.2) 0px, rgba(0,0,0,0.2) 2px, transparent 3px);
  pointer-events: none;
  z-index: 8;
  mix-blend-mode: overlay;
  opacity: 0.3;
}

.chroma-aberration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(255,0,80,0.05) 0%, rgba(0,255,200,0.03) 100%);
  pointer-events: none;
  z-index: 6;
  mix-blend-mode: screen;
}

.black-flicker-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  pointer-events: none;
  z-index: 20;
  opacity: 0;
  transition: opacity 0.01s linear;
}

.black-flicker-active {
  opacity: 0.9 !important;
}

.camera-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(2px);
  color: #e0ffb0;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 5px;
  z-index: 25;
  border-left: 3px solid #ff3a3a;
  text-shadow: 0 0 3px #0f0;
  letter-spacing: 1px;
  font-family: monospace;
}

.timestamp {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
  color: #c0ffc0;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 25;
  font-family: monospace;
  letter-spacing: 1px;
}

.rec-dot {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 10px;
  height: 10px;
  background: #ff0000;
  border-radius: 50%;
  box-shadow: 0 0 8px #ff0000;
  animation: pulse 1.1s infinite;
  z-index: 25;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes subtleGrain {
  0% { opacity: 0.4; }
  100% { opacity: 0.65; }
}

@media (max-width: 900px) {
  .camera-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  body {
    padding: 1rem;
  }
}

.camera:hover {
  box-shadow: 0 0 0 2px rgba(255, 60, 60, 0.5), 0 20px 35px black;
}