* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0f0f12;
  color: #fff;
  height: 100vh;
  overflow: hidden;
}

.screen {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.hidden { display: none !important; }

h1 {
  font-size: 22px;
  margin-bottom: 8px;
}

.subtitle {
  color: #9a9aa5;
  font-size: 14px;
  margin-bottom: 28px;
}

#roomInput {
  width: 100%;
  max-width: 280px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #2a2a30;
  background: #1a1a1f;
  color: #fff;
  font-size: 16px;
  margin-bottom: 14px;
  text-align: center;
}

#roomInput:focus {
  outline: none;
  border-color: #4f7cff;
}

#joinBtn {
  width: 100%;
  max-width: 280px;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: #4f7cff;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

#joinBtn:active { opacity: 0.8; }

.status {
  margin-top: 18px;
  color: #9a9aa5;
  font-size: 13px;
  min-height: 18px;
}

/* --- Call screen --- */

.video-wrap {
  position: relative;
  width: 100%;
  height: 100vh;
}

#remoteVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #1a1a1f;
}

#localVideo {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 110px;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid #2a2a30;
  background: #1a1a1f;
}

.controls {
  position: absolute;
  bottom: 40px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.control-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.control-btn.off {
  background: #fff;
  color: #0f0f12;
}

.control-btn.hangup {
  background: #ff4747;
}

#callScreen .status {
  position: absolute;
  top: 20px;
  left: 20px;
  color: #fff;
  background: rgba(0,0,0,0.4);
  padding: 6px 12px;
  border-radius: 8px;
}
