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

:root {
  --bg:     #0d0d0d;
  --bg2:    #141414;
  --bg3:    #1c1c1c;
  --bg4:    #252525;
  --border: #272727;
  --txt:    #f0f0f0;
  --txt2:   #d8d8d8;
  --muted:  #909090;
  --red:    #E50914;
  --red2:   #b2070f;
  --blue:   #3ea6ff;
  --gold:   #f5c518;
  --green:  #2ecc71;
  --danger: #e74c3c;
  --r:      8px;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--txt);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow: hidden;
}

/* ── LOBBY ──────────────────────────────── */
#lobby {
  display: flex; height: 100dvh; overflow: hidden;
}

/* Sol hero paneli */
.lobby-hero {
  flex: 1; position: relative; overflow: hidden;
  display: none; /* mobilde gizli, masaüstünde gösterilir */
}
.lobby-hero-bg {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: brightness(.65) saturate(1.15);
  transform: scale(1.04);
}
.lobby-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(13,13,13,.1) 0%, rgba(13,13,13,.7) 70%, rgba(13,13,13,1) 100%);
  display: flex; align-items: flex-end; padding: 52px 48px;
}
.lobby-hero-content { max-width: 480px; }
.lobby-hero-logo {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 40px rgba(229,9,20,.5), 0 0 0 2px rgba(229,9,20,.3);
  margin-bottom: 20px; display: block;
}
.lobby-hero-title {
  font-size: 38px; font-weight: 900; letter-spacing: -1px; margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0,0,0,.6);
}
.lobby-hero-sub {
  font-size: 17px; color: var(--txt2); line-height: 1.55; margin-bottom: 28px;
  text-shadow: 0 1px 8px rgba(0,0,0,.7);
}
.lobby-hero-feats { display: flex; flex-direction: column; gap: 10px; }
.lobby-hero-feat {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: rgba(255,255,255,.85);
}
.lobby-hero-feat svg { color: var(--red); flex-shrink: 0; }

/* Sağ form paneli */
.lobby-form-side {
  width: 400px; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 32px; gap: 22px;
  background: var(--bg2); border-left: 1px solid var(--border);
  overflow-y: auto;
}

/* Mobil brand (masaüstünde gizli) */
.lobby-brand-mobile { text-align: center; display: none; }
.lobby-brand-mobile h1 { font-size: 28px; font-weight: 800; letter-spacing: -.5px; margin: 12px 0 6px; }
.lobby-brand-mobile p { font-size: 13px; color: var(--txt2); line-height: 1.5; }
.brand-logo {
  display: inline-flex; border-radius: 50%; overflow: hidden; margin-bottom: 0;
  box-shadow: 0 0 40px rgba(229,9,20,.35), 0 0 0 2px rgba(229,9,20,.2);
}

.lobby-card {
  width: 100%;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 14px; padding: 26px 22px;
  display: flex; flex-direction: column; gap: 13px;
}
.lobby-footer {
  font-size: 11px; color: var(--muted); text-align: center; margin-top: 4px;
}

/* Masaüstünde hero göster */
@media (min-width: 760px) {
  .lobby-hero { display: flex; }
  .lobby-brand-mobile { display: none !important; }
}
.form-group label {
  display: block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .7px; color: var(--txt2); margin-bottom: 6px;
}
.or-divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; }
.code-input { text-transform: uppercase; letter-spacing: 4px; font-weight: 700; text-align: center; }

/* ── INPUTS ─────────────────────────────── */
input[type="text"] {
  width: 100%; padding: 10px 13px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r); color: var(--txt); font-size: 14px;
  outline: none; transition: border-color .15s; min-height: 42px;
}
input[type="text"]:focus { border-color: var(--red); }
input[type="text"]::placeholder { color: var(--muted); }

/* ── BUTTONS ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border: none; border-radius: var(--r);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .12s, transform .1s; min-height: 42px;
  white-space: nowrap; flex-shrink: 0;
}
.btn:active { transform: scale(.97); }
.btn-primary  { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red2); }
.btn-secondary{ background: var(--bg3); color: var(--txt); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg4); }
.btn-danger   { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #c0392b; }
.btn-send     { background: var(--red); color: #fff; padding: 10px 13px; }
.btn-send:hover { background: var(--red2); }
.btn-full { width: 100%; }
.btn-sm   { padding: 7px 13px; font-size: 13px; min-height: 34px; }

/* ── TOPBAR ──────────────────────────────── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px; height: 48px; background: var(--bg2);
  border-bottom: 1px solid var(--border); flex-shrink: 0; gap: 6px;
}
.topbar-left  { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar-right { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.topbar-logo  { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.topbar-title { font-size: 14px; font-weight: 800; white-space: nowrap; }

.room-pill {
  display: flex; align-items: center; gap: 5px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 20px; padding: 3px 9px 3px 8px;
  max-width: 320px; min-width: 0;
}
.pill-label { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; flex-shrink: 0; }
.pill-code  {
  font-family: monospace; font-size: 12px; font-weight: 700; color: var(--blue);
  letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}
.pill-copy  {
  background: none; border: none; cursor: pointer; color: var(--muted);
  padding: 2px; display: inline-flex; align-items: center; flex-shrink: 0;
  transition: color .12s;
}
.pill-copy:hover { color: var(--txt); }
.viewers-count { display: flex; align-items: center; gap: 4px; color: var(--txt2); font-size: 13px; }

.status-pill {
  display: flex; align-items: center; gap: 5px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 20px; padding: 4px 10px;
  font-size: 11px; color: var(--txt2); white-space: nowrap;
}

/* ── BADGES ──────────────────────────────── */
.badge { font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 20px; text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }
.badge-admin  { background: rgba(245,197,24,.1); color: var(--gold); border: 1px solid rgba(245,197,24,.25); animation: adminPulse 2.5s ease-in-out infinite; }
.badge-viewer { background: rgba(62,166,255,.08); color: var(--blue); border: 1px solid rgba(62,166,255,.2); }
@keyframes adminPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,197,24,.4); }
  50%       { box-shadow: 0 0 0 5px rgba(245,197,24,0); }
}

/* ── CONN DOT ────────────────────────────── */
.conn-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.conn-dot.on { background: var(--green); animation: connPulse 2s ease-in-out infinite; }
@keyframes connPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46,204,113,.5); }
  50%       { box-shadow: 0 0 0 4px rgba(46,204,113,0); }
}

/* ── MOBILE TABS ─────────────────────────── */
.mobile-tabs { display: none; flex-shrink: 0; background: var(--bg2); border-bottom: 1px solid var(--border); }
.mtab { flex: 1; padding: 10px; background: none; border: none; border-bottom: 2px solid transparent; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; }
.mtab.active { color: var(--txt); border-bottom-color: var(--red); }

/* ── ROOM LAYOUT ─────────────────────────── */
#room { display: none; flex-direction: column; height: 100dvh; }
.room-body { display: flex; flex: 1; overflow: hidden; min-height: 0; }

/* ── VIDEO COLUMN ────────────────────────── */
.video-col {
  flex: 1; display: flex; flex-direction: column;
  background: #000; min-width: 0;
  /* overflow: visible so the search dropdown can escape */
}

/* ── ADMIN PANEL ─────────────────────────── */
.admin-panel {
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 7px 10px; flex-shrink: 0; display: flex; flex-direction: column; gap: 6px;
}
.search-wrap { display: flex; flex-direction: column; gap: 0; }
.search-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r); padding: 0 10px; transition: border-color .15s;
}
.search-box:focus-within { border-color: var(--red); }
.search-ico { color: var(--muted); flex-shrink: 0; }
.search-box input {
  flex: 1; border: none; background: transparent; color: var(--txt);
  font-size: 13px; outline: none; padding: 9px 0; min-height: 36px;
}
.search-box input::placeholder { color: var(--muted); }
.clear-ico { background: none; border: none; cursor: pointer; color: var(--muted); font-size: 14px; padding: 4px; flex-shrink: 0; }
.clear-ico:hover { color: var(--txt); }

/* ── SUGGEST DROPDOWN (fixed, body'den) ──────── */
.suggest-dropdown {
  position: fixed; z-index: 9990;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,.8);
  max-height: 420px; overflow-y: auto;
}
.suggest-dropdown::-webkit-scrollbar { width: 3px; }
.suggest-dropdown::-webkit-scrollbar-thumb { background: var(--border); }

/* Video arama kartı */
.suggest-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 10px; cursor: pointer; transition: background .1s;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.suggest-item:last-child { border-bottom: none; }
.suggest-item:hover { background: var(--bg4); }
.suggest-item.text-item { align-items: center; padding: 9px 12px; }
.suggest-item.text-item svg { color: var(--muted); flex-shrink: 0; }
.suggest-item.text-item span { font-size: 13px; color: var(--txt); }

/* Video kartı içi */
.si-thumb {
  width: 90px; height: 51px; object-fit: cover; border-radius: 4px;
  flex-shrink: 0; background: var(--bg4);
}
.si-info { flex: 1; min-width: 0; }
.si-title { font-size: 12px; font-weight: 600; color: var(--txt); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.si-meta { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.si-channel { font-size: 11px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1; }
.si-dur { font-size: 11px; color: var(--blue); font-weight: 600; white-space: nowrap; background: rgba(62,166,255,.1); border-radius: 4px; padding: 1px 5px; }

/* Önizleme: URL yapıştırınca */
.video-preview {
  display: flex; align-items: center; gap: 10px;
  background: rgba(62,166,255,.05); border: 1px solid rgba(62,166,255,.18);
  border-radius: var(--r); padding: 7px 10px;
}
.video-preview img { width: 80px; height: 45px; object-fit: cover; border-radius: 4px; flex-shrink: 0; background: var(--bg3); }
.preview-info { flex: 1; min-width: 0; }
.preview-title { font-size: 12px; font-weight: 700; color: var(--txt); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.preview-meta { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.preview-author { font-size: 11px; color: var(--muted); flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.preview-duration { font-size: 11px; color: var(--blue); font-weight: 600; white-space: nowrap; background: rgba(62,166,255,.1); border-radius: 4px; padding: 1px 5px; flex-shrink: 0; }
.preview-warn {
  font-size: 11px; color: var(--gold); font-weight: 600;
  background: rgba(245,197,24,.08); border: 1px solid rgba(245,197,24,.2);
  border-radius: 5px; padding: 4px 8px; margin-top: 5px; line-height: 1.4;
}
.load-btn { flex-shrink: 0; }

/* ── SES KONTROLÜ ─────────────────────────── */
.volume-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 2px 0;
}

/* Volume slider */
.vol-slider {
  flex: 1; height: 4px; cursor: pointer; accent-color: var(--red);
  border-radius: 2px; background: var(--border); outline: none;
  -webkit-appearance: none; appearance: none; min-width: 60px; max-width: 160px;
}
.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--red); cursor: pointer;
  box-shadow: 0 0 4px rgba(229,9,20,.5);
}
.vol-slider::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--red); cursor: pointer; border: none;
}

.vol-mute-btn {
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  border-radius: 6px; cursor: pointer; color: var(--txt2);
  padding: 4px 7px; display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .12s, color .12s;
}
.vol-mute-btn:hover { background: rgba(255,255,255,.12); color: var(--txt); }
.vol-mute-btn.muted { color: var(--danger); background: rgba(231,76,60,.12); border-color: rgba(231,76,60,.3); }

.vol-val {
  font-size: 11px; color: var(--muted); min-width: 24px; text-align: right; font-variant-numeric: tabular-nums;
}

/* Viewer overlay: ses sol alt, tam ekran sağ alt */
.viewer-overlay {
  position: absolute; inset: 0; z-index: 15;
}
.viewer-controls {
  position: absolute; bottom: 14px; left: 14px;
  display: flex; align-items: center; gap: 7px;
  background: rgba(0,0,0,.65); border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px; padding: 6px 10px;
  backdrop-filter: blur(6px); z-index: 16;
}
.vol-slider-viewer { max-width: 90px; }
.vol-val-viewer { color: rgba(255,255,255,.9); }
.vol-mute-viewer { background: transparent; border-color: transparent; color: rgba(255,255,255,.9); }
.vol-mute-viewer:hover { background: rgba(255,255,255,.1); color: #fff; }

.fs-btn {
  position: absolute; bottom: 14px; right: 14px;
  background: rgba(0,0,0,.65); border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px; color: #fff; cursor: pointer;
  padding: 7px 9px; display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .15s; z-index: 16;
  backdrop-filter: blur(4px);
}
.fs-btn:hover { background: rgba(229,9,20,.75); transform: scale(1.08); }

/* ── PLAYER ──────────────────────────────── */
.player-wrap {
  flex: 1; position: relative; background: #000;
  display: flex; align-items: stretch; min-height: 0; overflow: hidden;
}
#ytPlayer { width: 100%; height: 100%; flex: 1; display: block; }
#ytPlayer iframe { width: 100% !important; height: 100% !important; display: block !important; }

.player-placeholder {
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center; background: #000;
}
.ph-inner { text-align: center; color: var(--muted); }
.ph-inner p { font-size: 14px; margin-top: 14px; }

.sync-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.88);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; z-index: 20; font-size: 14px; font-weight: 600; color: var(--txt);
}
.spinner {
  width: 36px; height: 36px; border: 3px solid rgba(255,255,255,.1);
  border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── CHAT COLUMN ─────────────────────────── */
.chat-col {
  width: 290px; flex-shrink: 0; display: flex; flex-direction: column;
  background: var(--bg2); border-left: 1px solid var(--border); overflow: hidden;
}
.chat-head {
  padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.chat-head h3 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--txt2); margin: 0; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 5px; }
.chat-msgs::-webkit-scrollbar { width: 3px; }
.chat-msgs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
.sys-msg { text-align: center; font-size: 11px; color: var(--muted); font-style: italic; padding: 4px 0; }
.chat-msg {
  padding: 7px 9px; background: var(--bg3); border-radius: var(--r);
  border-left: 2px solid transparent; animation: msgIn .15s ease;
}
@keyframes msgIn { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:none; } }
.chat-msg.is-admin { border-left-color: var(--gold); }
.chat-msg-row { display: flex; align-items: center; gap: 5px; margin-bottom: 3px; }
.chat-name { font-size: 12px; font-weight: 700; color: var(--blue); }
.chat-name.admin { color: var(--gold); }
.admin-tag { font-size: 9px; background: rgba(245,197,24,.12); color: var(--gold); padding: 1px 4px; border-radius: 3px; font-weight: 700; }
.chat-time { font-size: 10px; color: var(--muted); margin-left: auto; }
.chat-text { font-size: 13px; color: var(--txt); line-height: 1.45; word-break: break-word; }
.chat-foot { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--border); flex-shrink: 0; }
.chat-foot input { flex: 1; font-size: 13px; padding: 8px 10px; min-height: 38px; }

/* ── NOTIFICATION ────────────────────────── */
#notification {
  position: fixed; bottom: 20px; left: 50%;
  transform: translateX(-50%) translateY(14px);
  background: var(--bg3); border: 1px solid var(--border); color: var(--txt);
  padding: 9px 22px; border-radius: 20px; font-size: 13px; font-weight: 600;
  opacity: 0; transition: opacity .2s, transform .2s;
  z-index: 9999; pointer-events: none; white-space: nowrap; max-width: 90vw; text-align: center;
}
#notification.show { opacity: 1; transform: translateX(-50%) translateY(0); animation: notifBlink .4s ease; }
@keyframes notifBlink {
  0%   { background: var(--bg3); }
  30%  { background: #2a2a2a; }
  100% { background: var(--bg3); }
}

/* ── AKTİF KULLANICILAR POPUP ───────────── */
.users-popup-wrap { position: relative; flex-shrink: 0; }

.users-popup-btn {
  display: flex; align-items: center; gap: 5px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r); color: var(--txt2); cursor: pointer;
  padding: 4px 9px; font-size: 11px; font-weight: 700; line-height: 1;
  transition: background .12s, color .12s, border-color .12s;
  white-space: nowrap;
}
.users-popup-btn:hover,
.users-popup-btn.open { background: var(--bg4); color: var(--txt); border-color: var(--red); }
.users-popup-count { font-variant-numeric: tabular-nums; }

.users-popup {
  position: absolute; top: calc(100% + 6px); right: 0;
  width: 230px; max-height: 280px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r); box-shadow: 0 8px 28px rgba(0,0,0,.75);
  z-index: 300; overflow: hidden;
  display: flex; flex-direction: column;
}
.users-popup-head {
  padding: 7px 12px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; color: var(--muted);
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.users-list {
  overflow-y: auto; padding: 3px 0; flex: 1;
}
.users-list::-webkit-scrollbar { width: 3px; }
.users-list::-webkit-scrollbar-thumb { background: var(--border); }

.user-row {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 10px;
  transition: background .1s;
}
.user-row:hover { background: var(--bg3); }
.user-row-me { background: rgba(62,166,255,.04); }

.user-avatar {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg4); color: var(--txt2);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
}
.user-row-me .user-avatar { background: rgba(62,166,255,.18); color: var(--blue); }

.user-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
.user-name {
  font-size: 12px; color: var(--txt); overflow: hidden;
  white-space: nowrap; text-overflow: ellipsis; flex: 1; min-width: 0;
}
.user-role-badge {
  font-size: 9px; font-weight: 700; border-radius: 3px;
  padding: 1px 5px; flex-shrink: 0; white-space: nowrap;
}
.urb-admin {
  background: rgba(245,197,24,.14); color: var(--gold); border: 1px solid rgba(245,197,24,.25);
}
.urb-viewer {
  background: rgba(62,166,255,.1); color: var(--blue); border: 1px solid rgba(62,166,255,.2);
}

.user-actions { display: flex; align-items: center; gap: 3px; flex-shrink: 0; }
.ua-btn {
  background: none; border: 1px solid transparent; border-radius: 5px;
  cursor: pointer; font-size: 13px; padding: 2px 4px;
  line-height: 1; transition: background .12s, border-color .12s; opacity: .75;
}
.ua-btn:hover { opacity: 1; }
.ua-transfer:hover { background: rgba(245,197,24,.15); border-color: rgba(245,197,24,.3); }
.ua-kick:hover    { background: rgba(62,166,255,.15);  border-color: rgba(62,166,255,.3); }
.ua-ban:hover     { background: rgba(231,76,60,.15);   border-color: rgba(231,76,60,.3); }

/* ── MOBİL ───────────────────────────────── */
@media (max-width: 760px) {
  html, body { height: 100dvh; }

  /* Lobi mobilde tek sütun */
  #lobby { flex-direction: column; overflow-y: auto; height: auto; min-height: 100dvh; }
  .lobby-hero { display: none !important; }
  .lobby-form-side {
    width: 100%; border-left: none; justify-content: flex-start;
    padding: 36px 20px 32px;
    background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(229,9,20,.16) 0%, transparent 60%), var(--bg);
  }
  .lobby-brand-mobile { display: block; }
  .lobby-brand-mobile h1 { font-size: 26px; }
  .topbar { padding: 0 10px; gap: 5px; }
  .topbar-title { display: none; }
  .status-pill { display: none; }
  .mobile-tabs { display: flex; }
  .room-body { position: relative; }
  .chat-col { display: none; position: absolute; inset: 0; width: 100%; border-left: none; z-index: 5; }
  .chat-col.tab-active { display: flex; }
  .btn { min-height: 44px; font-size: 15px; }
  input[type="text"] { min-height: 44px; font-size: 16px; }
  .chat-foot input { font-size: 16px; }
  #notification { bottom: auto; top: 56px; }
  .vol-slider-viewer { max-width: 70px; }

  /* Kullanıcı satırları dar ekranda sarmalansın */
  .user-row { flex-wrap: wrap; gap: 4px; padding: 5px 10px; }
  .user-info { min-width: 0; flex: 1 1 120px; }
  .user-actions { flex: 0 0 auto; gap: 6px; }

  /* Popup mobilde tam genişlik, yukarıya açılır */
  .users-popup { width: calc(100vw - 24px); right: auto; left: 50%; transform: translateX(-50%); }
  .ua-btn { font-size: 15px; padding: 3px 6px; }
}
@media (max-width: 380px) {
  .viewers-count { display: none; }
  .room-pill { display: none; }
  .btn-sm { padding: 5px 9px; font-size: 12px; min-height: 32px; }
}
