/* Minimal "Apple-ish" light theme */
:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #0b1220;
  --muted: #5b6472;
  --brand: #2f80ed;
  --brand-soft: #e9f1ff;
  --line: #e6e8ef;
  --success: #34c759;
  --danger: #ff3b30;
}

* { box-sizing: border-box; }
html, body { margin:0; padding:0; background:var(--bg); color:var(--text); font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; }

.container { max-width: 720px; margin: 48px auto; padding: 0 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.06); padding: 28px; }
.card-center { margin-top: 12vh; }
.brand { font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.brand.small { font-size: 18px; }
.subtitle { color: var(--muted); margin-top: 4px; }
.fineprint { color: var(--muted); font-size: 13px; margin-top: 16px; }

.form label { display:block; margin: 14px 0; font-weight:600; }
.form input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border:1px solid var(--line);
  background: #fff; outline: none;
}
.form input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }

.btn-primary, .btn-secondary, .btn-danger {
  border: none; padding: 10px 14px; border-radius: 14px; font-weight: 600; cursor: pointer;
  transition: transform .04s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-secondary { background: #eef3ff; color: #0b1220; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-primary:active, .btn-secondary:active, .btn-danger:active { transform: translateY(1px); }

.alert { padding: 12px 14px; border-radius: 12px; margin-top: 10px; }
.alert-error { background: #fde8ea; color: #7a0b14; }

.topbar {
  position: sticky; top:0; display:flex; align-items:center; justify-content:space-between;
  padding: 10px 14px; border-bottom:1px solid var(--line); z-index:10; background:var(--card);
}
.topbar.glass { backdrop-filter: saturate(180%) blur(12px); background: rgba(255,255,255,.75); }

.roomtag { margin-left: 12px; color: var(--muted); }
.grid { padding: 16px; }
.video-grid {
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.video-tile {
  position: relative; background: #fff; border:1px solid var(--line);
  border-radius: 18px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,.05);
}
.video-tile video, .video-tile audio {
  display:block; width:100%; height: 180px; object-fit: cover; background: #eaf0ff;
}
.video-tile .label {
  position:absolute; left:10px; bottom:10px; background: rgba(255,255,255,.9); padding: 6px 10px; border-radius: 999px; font-size: 13px; font-weight:700;
  border: 1px solid var(--line);
}
.video-tile .me { background: rgba(47,128,237,.12); border-color: rgba(47,128,237,.25); }

/* Utility */
.hidden { display:none !important; }
