@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600&display=swap");

:root {
  --bg: #0b0f14;
  --card: #151a21;
  --muted: #9aa4b2;
  --text: #f5f7fb;
  --accent: #f5b041;
  --accent-2: #ffd58a;
  --danger: #f97316;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background: #0b0f14;
}

.landing {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background-image: url("assets/hero.svg");
  background-size: cover;
  background-position: center;
  position: relative;
}

.landing-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5, 7, 11, 0.85), rgba(12, 15, 20, 0.6));
}

.login-card {
  position: relative;
  z-index: 2;
  width: min(480px, 90vw);
  padding: 32px;
  background: rgba(16, 20, 26, 0.9);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-2);
  margin: 0 0 8px;
  font-size: 12px;
}

h1 {
  font-size: 32px;
  margin: 0 0 12px;
}

.subtitle {
  color: var(--muted);
  margin-bottom: 20px;
}

.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  margin-bottom: 12px;
}

.btn {
  border: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0f14;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.status {
  color: var(--muted);
  margin-top: 8px;
}

.hidden {
  display: none;
}

.app {
  min-height: 100vh;
  background: radial-gradient(circle at top left, #1a2028, #0b0f14);
  padding-bottom: 40px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.session {
  display: flex;
  gap: 12px;
  align-items: center;
}

.time-pill {
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
}

.layout {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  padding: 24px;
}

.player-card,
.control-card {
  background: var(--card);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px;
}

video {
  width: 100%;
  border-radius: 12px;
  background: #000;
}

.video-caption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.control-card h2 {
  margin-top: 0;
}

.queue {
  margin: 12px 0;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.ptz {
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  background: #0f141b;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ptz-grid {
  display: grid;
  place-items: center;
  gap: 8px;
}

.ptz-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ptz-zoom {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 12px;
}

.ptz-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}

.ptz-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 13, 0.8);
  display: grid;
  place-items: center;
  border-radius: 14px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.ptz.locked .ptz-overlay {
  opacity: 1;
}

.overlay-text {
  color: var(--accent-2);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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