:root {
  --bg-1: #0a1022;
  --bg-2: #1f2440;
  --bg-3: #0c2a3f;
  --text: #f0f3ff;
  --muted: #b7c1dc;
  --accent: #f8b34a;
  --accent-2: #5de4c7;
  --card: #121a33;
  --card-border: rgba(255, 255, 255, 0.08);
  --danger: #e04d5f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, #24305a, transparent),
    radial-gradient(900px 700px at 110% 10%, #132b3f, transparent),
    linear-gradient(160deg, var(--bg-1), var(--bg-2), var(--bg-3));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px 48px;
}

.app {
  width: min(980px, 100%);
  display: grid;
  gap: 24px;
  animation: fade-in 0.6s ease both;
}

.hero {
  display: grid;
  gap: 12px;
}

.brand {
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--accent-2);
}

h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
}

p {
  margin: 0;
  color: var(--muted);
  max-width: 560px;
}

.status {
  display: grid;
  gap: 12px;
}

.status-text {
  font-size: 16px;
  color: var(--accent);
}

.call-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(18, 26, 51, 0.7);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 12px 16px;
  backdrop-filter: blur(12px);
}

.call-id {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}

.call-id code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  color: var(--text);
}

.videos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.video-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 12px;
  min-height: 240px;
  display: grid;
  overflow: hidden;
  animation: float-up 0.7s ease both;
}

.label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

video {
  width: 100%;
  height: 100%;
  min-height: 200px;
  border-radius: 12px;
  background: #0b0f1d;
  object-fit: cover;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

button {
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease,
    background 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.2);
}

button:active {
  transform: translateY(0);
}

button.primary {
  background: linear-gradient(135deg, #f8b34a, #ff7b4f);
  color: #111420;
  font-weight: 600;
}

button.danger {
  background: rgba(224, 77, 95, 0.2);
  border-color: rgba(224, 77, 95, 0.6);
  color: #ffd8dd;
}

button.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
}

.footer {
  font-size: 12px;
  color: var(--muted);
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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