* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background: #0b1120;
  color: #f8fafc;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 32px;
  background: #111827;
  border-bottom: 1px solid #273449;
}

.header h1 {
  margin: 0 0 6px;
  font-size: 28px;
}

.header p {
  margin: 0;
  color: #94a3b8;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d1fae5;
  font-size: 14px;
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 12px #22c55e;
}

.camera-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 32px;
}

.camera-card {
  overflow: hidden;
  background: #111827;
  border: 1px solid #273449;
  border-radius: 14px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25);
}

.camera-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
}

.camera-header h2 {
  margin: 0 0 4px;
  font-size: 20px;
}

.camera-header p {
  margin: 0;
  color: #94a3b8;
  font-size: 14px;
}

.live-badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: #dc2626;
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: black;
}

.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.camera-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
}

.camera-footer button,
.camera-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #1e293b;
  color: #f8fafc;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.camera-footer button:hover,
.camera-footer a:hover {
  background: #334155;
}

footer {
  padding: 0 32px 28px;
  color: #64748b;
  text-align: center;
}

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

  .header {
    align-items: flex-start;
    flex-direction: column;
  }

  .camera-footer {
    flex-direction: column;
  }

  .camera-footer button,
  .camera-footer a {
    width: 100%;
  }
}
