:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #10212d;
  --muted: #51616f;
  --primary: #0f6e8a;
  --danger: #c43d3d;
  --border: #d4dce3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #e8f4ff, var(--bg) 60%);
}

.app {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
}

.topbar h1 {
  margin: 0;
  font-size: 1.5rem;
}

.topbar p {
  margin: 0.35rem 0 1rem;
  color: var(--muted);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.controls {
  margin-bottom: 1rem;
}

.row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

input {
  flex: 1;
  min-width: 220px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
}

button {
  border: 0;
  border-radius: 8px;
  padding: 0.62rem 0.9rem;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

button[disabled] {
  cursor: not-allowed;
  opacity: 0.65;
}

#hangupBtn {
  background: var(--danger);
}

.toggles {
  margin-top: 0.7rem;
}

.status {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

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

.video-card h2 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}

video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: #07131a;
  object-fit: cover;
}

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