* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #0f0f1a;
  color: #e0e0e0;
  height: 100vh;
  overflow: hidden;
}

.hidden {
  display: none !important;
}

/* ── Join screen ── */

#join-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.card {
  background: #16213e;
  border-radius: 14px;
  padding: 40px 36px;
  width: 360px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.card h1 {
  font-size: 1.9rem;
  font-weight: 700;
  text-align: center;
  color: #4cc9f0;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

input {
  padding: 11px 15px;
  border-radius: 8px;
  border: 1px solid #2a2a4a;
  background: #0d1b3e;
  color: #e0e0e0;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

input:focus {
  border-color: #4cc9f0;
}

input::placeholder {
  color: #5a5a7a;
}

button {
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  background: #4cc9f0;
  color: #0a0a1a;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  margin-top: 4px;
}

button:hover:not(:disabled) {
  background: #72d9f8;
}

button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

button.sharing {
  background: #f72585;
  color: #fff;
}

button.sharing:hover:not(:disabled) {
  background: #ff5aaa;
}

/* ── Session screen ── */

#session-screen {
  display: flex;
  height: 100vh;
}

#sidebar {
  width: 220px;
  min-width: 220px;
  background: #16213e;
  border-right: 1px solid #1e2a4a;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.room-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-bottom: 14px;
  border-bottom: 1px solid #1e2a4a;
}

.room-info .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4cc9f0;
  font-weight: 600;
}

#room-label {
  font-size: 1rem;
  font-weight: 700;
  color: #e0e0e0;
  word-break: break-all;
}

#user-list {
  list-style: none;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#user-list li {
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 0.88rem;
  color: #b0b0c8;
  background: #1a2550;
}

#user-list li.sharing {
  color: #4cc9f0;
  background: #0d2060;
}

#share-btn {
  margin-top: auto;
}

/* ── Main video area ── */

#main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #0a0a14;
}

#video-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  background: #12122a;
  border: 1px solid #1e2a4a;
}

#remote-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

#no-share-msg {
  color: #3a3a5a;
  font-size: 1rem;
}
