* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  background: #1b1f24;
  color: #eee;
}

/* Landing page */
.landing {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(135deg, #1b1f24, #23293a);
}
.landing-card {
  background: #262c36;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  width: 360px;
  max-width: 90vw;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.landing-card h1 { margin-top: 0; color: #4da3ff; }
.landing-card p { color: #aab2bd; font-size: 14px; }
.divider { margin: 18px 0; color: #66707d; font-size: 12px; text-transform: uppercase; }
.join-row { display: flex; gap: 8px; }
.join-row input {
  flex: 1;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #3a4250;
  background: #1b1f24;
  color: #eee;
}

.btn {
  padding: 10px 18px;
  border-radius: 6px;
  border: none;
  background: #3a4250;
  color: #eee;
  cursor: pointer;
  font-size: 14px;
}
.btn:hover { background: #46505f; }
.btn.primary { background: #4da3ff; color: #08131f; font-weight: bold; width: 100%; padding: 12px; }
.btn.primary:hover { background: #6bb4ff; }
.btn.small { font-size: 12px; padding: 6px 12px; }

/* Call page */
.call-wrap { display: flex; flex-direction: column; height: 100vh; }
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  background: #14181d;
}
.room-label { font-size: 13px; color: #9aa5b1; }
.status { margin-left: auto; font-size: 13px; color: #4da3ff; }

.video-grid {
  flex: 1;
  display: flex;
  padding: 8px;
  position: relative;
}
.video-tile {
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.video-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-tile.local {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 220px;
  height: 140px;
  border: 2px solid #3a4250;
  z-index: 2;
}
.tile-label {
  position: absolute;
  bottom: 6px;
  left: 8px;
  font-size: 12px;
  background: rgba(0,0,0,0.5);
  padding: 2px 8px;
  border-radius: 4px;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 16px;
  background: #14181d;
}
.ctrl-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: #3a4250;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}
.ctrl-btn:hover { background: #46505f; }
.ctrl-btn.off { background: #6b7280; }
.ctrl-btn.danger { background: #e5484d; }
.ctrl-btn.danger:hover { background: #ff5c60; }

@media (max-width: 600px) {
  .video-tile.local { width: 130px; height: 90px; bottom: 12px; right: 12px; }
}
