* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, sans-serif; background: #313338; color: #dbdee1; height: 100vh; overflow: hidden; }

/* Auth Screens */
.auth-container { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; background: #1e1f22; }
.auth-box { background: #2b2d31; padding: 32px; border-radius: 8px; width: 420px; max-width: 90%; }
.auth-box h1 { font-size: 24px; margin-bottom: 8px; color: #fff; text-align: center; }
.auth-box p { color: #949ba4; text-align: center; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: #b5bac1; margin-bottom: 8px; text-transform: uppercase; }
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"] { width: 100%; padding: 12px; border: none; border-radius: 4px; background: #1e1f22; color: #fff; font-size: 16px; }
.form-group input:focus { outline: 2px solid #5865f2; }
.avatar-upload { display: flex; align-items: center; gap: 16px; }
.avatar-preview { width: 64px; height: 64px; border-radius: 50%; background: #5865f2; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 24px; overflow: hidden; flex-shrink: 0; }
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.avatar-upload button { padding: 8px 16px; background: #4e5058; border: none; border-radius: 4px; color: #fff; cursor: pointer; font-size: 14px; }
.avatar-upload button:hover { background: #6d6f78; }
.btn-primary { width: 100%; padding: 14px; background: #5865f2; border: none; border-radius: 4px; color: #fff; font-size: 16px; cursor: pointer; margin-top: 8px; }
.btn-primary:hover { background: #4752c4; }
.btn-secondary { padding: 10px 20px; background: #4e5058; border: none; border-radius: 4px; color: #fff; cursor: pointer; font-size: 14px; }
.btn-secondary:hover { background: #6d6f78; }
.btn-danger { background: #ed4245; }
.btn-danger:hover { background: #c93b3e; }
.auth-switch { text-align: center; margin-top: 16px; color: #949ba4; font-size: 14px; }
.auth-switch a { color: #00a8fc; text-decoration: none; cursor: pointer; }
.auth-switch a:hover { text-decoration: underline; }
.error-msg { background: #f23f43; color: #fff; padding: 10px; border-radius: 4px; margin-bottom: 16px; font-size: 14px; display: none; }

/* Main App */
#app { height: 100vh; }
.app-container { display: flex; height: 100%; }

/* Sidebar */
#sidebar { width: 240px; background: #2b2d31; display: flex; flex-direction: column; flex-shrink: 0; transition: transform 0.3s ease; }
#server-header { padding: 16px; font-weight: 600; font-size: 15px; border-bottom: 1px solid #1f2023; color: #fff; display: flex; justify-content: space-between; align-items: center; }
#server-header button { background: none; border: none; cursor: pointer; font-size: 16px; padding: 4px; border-radius: 4px; }
#server-header button:hover { background: #35373c; }
#channels { flex: 1; overflow-y: auto; padding: 8px 0; }

/* Collapsible Channel Categories */
.channel-category { 
  padding: 16px 8px 4px 16px; 
  font-size: 12px; 
  font-weight: 600; 
  color: #949ba4; 
  text-transform: uppercase; 
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  user-select: none;
}
.channel-category:hover { color: #dbdee1; }
.category-arrow { 
  font-size: 10px; 
  transition: transform 0.2s ease;
  display: inline-block;
}
.category-arrow.collapsed { transform: rotate(-90deg); }

.channel-add-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: #949ba4;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
}
.channel-add-btn:hover { background: #35373c; color: #fff; }

.channel { display: flex; align-items: center; padding: 8px 16px; margin: 1px 8px; border-radius: 4px; cursor: pointer; color: #949ba4; font-size: 15px; position: relative; }
.channel:hover { background: #35373c; color: #dbdee1; }
.channel.active { background: #404249; color: #fff; }
.channel-icon { margin-right: 8px; font-size: 18px; }

.channel-delete-btn {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: #949ba4;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}
.channel:hover .channel-delete-btn { opacity: 1; }
.channel-delete-btn:hover { background: #ed4245; color: #fff; }

.voice-channel { color: #949ba4; }
.voice-channel.connected { color: #23a559; }
.voice-user { display: flex; align-items: center; padding: 4px 16px 4px 40px; font-size: 13px; color: #949ba4; cursor: pointer; gap: 4px; }
.voice-user:hover { background: #35373c; }
.voice-user-avatar { width: 24px; height: 24px; border-radius: 50%; margin-right: 8px; background: #5865f2; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #fff; flex-shrink: 0; border: 2px solid transparent; transition: border-color 0.15s; }
.voice-user.speaking .voice-user-avatar { border-color: #23a559; box-shadow: 0 0 8px rgba(35, 165, 89, 0.5); }
.voice-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.voice-user-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.voice-user.speaking .voice-user-name { color: #23a559; }
.voice-user.screen-sharing .voice-user-name { color: #23a559; }
.voice-user-icons { display: flex; gap: 2px; align-items: center; margin-left: auto; }
.voice-user-icon { width: 14px; height: 14px; filter: invert(0.6); }
.voice-user-icon.muted-icon { filter: invert(0.35) sepia(1) saturate(5) hue-rotate(330deg); }
.voice-user-icon.deafened-icon { filter: invert(0.35) sepia(1) saturate(5) hue-rotate(330deg); }
.voice-user-icon.screen-icon { filter: invert(0.5) sepia(1) saturate(3) hue-rotate(90deg); }

/* Voice Panel (in sidebar, above user panel) */
#voice-panel {
  background: #232428;
  border-top: 1px solid #1f2023;
}
.voice-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(35, 165, 89, 0.15);
  border-bottom: 1px solid #1f2023;
}
.voice-panel-status {
  font-size: 12px;
  font-weight: 600;
  color: #23a559;
}
.voice-panel-header button {
  background: none;
  border: none;
  color: #949ba4;
  cursor: pointer;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
}
.voice-panel-header button:hover {
  background: #ed4245;
  color: #fff;
}
.voice-panel-controls {
  padding: 8px;
}
.voice-control-row {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}
.voice-control-row button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  background: #404249;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
}
.voice-control-row button:hover {
  background: #4e5058;
}
.voice-control-row button.muted,
.voice-control-row button.deafened,
.voice-control-row button.active {
  background: #ed4245;
}
.voice-btn-icon {
  width: 20px;
  height: 20px;
  filter: invert(1);
}
.voice-control-row button.muted .voice-btn-icon,
.voice-control-row button.deafened .voice-btn-icon,
.voice-control-row button.active .voice-btn-icon {
  filter: invert(1);
}
.voice-btn-label {
  font-size: 10px;
  color: #dbdee1;
}
.voice-slider-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.voice-slider-row label {
  font-size: 11px;
  color: #949ba4;
  min-width: 55px;
}
.voice-slider-row input[type="range"] {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: #4e5058;
  border-radius: 2px;
  outline: none;
}
.voice-slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
}
.voice-slider-row span {
  font-size: 10px;
  color: #949ba4;
  min-width: 35px;
  text-align: right;
}

/* User Panel */
#user-panel { 
  padding: 8px; 
  background: #232428; 
  display: flex; 
  align-items: center; 
  gap: 8px; 
}
#user-panel .user-avatar { 
  width: 32px; 
  height: 32px; 
  border-radius: 50%; 
  background: #5865f2; 
  overflow: hidden; 
  cursor: pointer; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  color: #fff; 
  font-size: 14px;
  flex-shrink: 0;
}
#user-panel .user-avatar:hover {
  opacity: 0.8;
}
#user-panel .user-avatar img { width: 100%; height: 100%; object-fit: cover; }
#user-panel .user-info { flex: 1; min-width: 0; }
#user-panel .username { font-size: 14px; font-weight: 500; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#user-panel .status { font-size: 12px; color: #949ba4; }
#settings-btn {
  background: none;
  border: none;
  color: #949ba4;
  cursor: pointer;
  font-size: 16px;
  padding: 6px;
  border-radius: 4px;
}
#settings-btn:hover {
  background: #404249;
  color: #dbdee1;
}

/* Watch Screen Button (floating notification) */
#watch-screen-btn { 
  display: none; 
  position: fixed;
  bottom: 80px;
  left: 250px;
  padding: 12px 16px; 
  background: #5865f2; 
  color: #fff; 
  font-size: 13px; 
  cursor: pointer; 
  text-align: center; 
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 100;
  animation: pulse 2s infinite;
}
#watch-screen-btn:hover { background: #4752c4; }
#watch-screen-btn.visible { display: block; }

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* Chat Area */
#chat-area { flex: 1; display: flex; flex-direction: column; background: #313338; min-width: 0; }
#chat-header { padding: 12px 16px; border-bottom: 1px solid #1f2023; display: flex; align-items: center; flex-shrink: 0; }
#chat-header .hash { color: #949ba4; margin-right: 8px; font-size: 24px; }
#chat-header .channel-name { font-weight: 600; color: #fff; }
#messages { flex: 1; overflow-y: auto; padding: 16px; }
.message { display: flex; padding: 4px 0; margin-bottom: 4px; position: relative; }
.message:hover { background: #2e3035; margin: 0 -16px; padding: 4px 16px; margin-bottom: 4px; }
.message-avatar { width: 40px; height: 40px; border-radius: 50%; background: #5865f2; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; margin-right: 16px; flex-shrink: 0; overflow: hidden; }
.message-avatar img { width: 100%; height: 100%; object-fit: cover; }
.message-content { flex: 1; min-width: 0; }
.message-header { display: flex; align-items: center; margin-bottom: 4px; flex-wrap: wrap; gap: 8px; }
.message-author { font-weight: 500; color: #f2f3f5; }
.message-time { font-size: 12px; color: #949ba4; }
.message-delete {
  background: none;
  border: none;
  color: #949ba4;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.2s;
  margin-left: auto;
}
.message:hover .message-delete { opacity: 1; }
.message-delete:hover { background: #ed4245; color: #fff; }
.message-text { color: #dbdee1; line-height: 1.4; word-wrap: break-word; }
.message-text a { color: #00a8fc; text-decoration: none; }
.message-text a:hover { text-decoration: underline; }
.message-image { max-width: 400px; max-height: 300px; border-radius: 8px; margin-top: 8px; cursor: pointer; }
.message-gif { max-width: 300px; border-radius: 8px; margin-top: 8px; }
.message-video { max-width: 400px; border-radius: 8px; margin-top: 8px; }
.message-audio { max-width: 400px; margin-top: 8px; }
.message-media-wrapper { margin-top: 8px; display: inline-block; }
.message-file-label { font-size: 11px; color: #949ba4; margin-top: 4px; word-break: break-all; max-width: 400px; }
.message-file { 
  display: inline-flex; 
  align-items: center; 
  gap: 12px; 
  padding: 12px 16px; 
  background: #2b2d31; 
  border-radius: 8px; 
  margin-top: 8px; 
  max-width: 400px;
  text-decoration: none;
  color: inherit;
  border: 1px solid #404249;
}
.message-file:hover { background: #35373c; }
.message-file-icon { font-size: 32px; }
.message-file-info { flex: 1; min-width: 0; }
.message-file-name { color: #00a8fc; font-size: 14px; word-break: break-word; }
.message-file-size { color: #949ba4; font-size: 12px; margin-top: 2px; }
.message-file-download { 
  padding: 6px 12px; 
  background: #5865f2; 
  border-radius: 4px; 
  color: #fff; 
  font-size: 12px;
  white-space: nowrap;
}
.system-message { color: #949ba4; font-style: italic; padding: 8px 0; font-size: 14px; }

/* Input Area */
#input-area { padding: 0 16px 24px 16px; flex-shrink: 0; }
#input-wrapper { display: flex; align-items: center; background: #383a40; border-radius: 8px; padding: 4px; gap: 4px; }
#input-wrapper button { padding: 8px 12px; background: none; border: none; cursor: pointer; font-size: 14px; border-radius: 4px; color: #b5bac1; }
#input-wrapper button:hover { background: #404249; }
#gif-btn { font-weight: bold; font-size: 12px !important; background: #404249 !important; }
#input-wrapper input { flex: 1; padding: 12px; border: none; background: transparent; font-size: 15px; color: #dbdee1; outline: none; min-width: 0; }
#input-wrapper input::placeholder { color: #6d6f78; }
.send-btn { background: #5865f2 !important; color: white !important; }
.send-btn:hover { background: #4752c4 !important; }

/* Members Sidebar */
#members { width: 240px; background: #2b2d31; padding: 16px; overflow-y: auto; flex-shrink: 0; transition: transform 0.3s ease; }
#members h3 { font-size: 12px; font-weight: 600; color: #949ba4; text-transform: uppercase; margin-bottom: 12px; }
.member { display: flex; align-items: center; padding: 6px 8px; border-radius: 4px; margin-bottom: 2px; }
.member:hover { background: #35373c; }
.member-avatar { width: 32px; height: 32px; border-radius: 50%; background: #5865f2; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 600; margin-right: 12px; overflow: hidden; flex-shrink: 0; }
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-name { font-size: 14px; color: #dbdee1; }
.member-admin::after { content: " 👑"; font-size: 12px; }

/* Modals */
.modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); align-items: center; justify-content: center; z-index: 1000; }
.modal.show { display: flex; }
.modal-content { background: #2b2d31; padding: 24px; border-radius: 8px; max-width: 90%; max-height: 90%; overflow-y: auto; }
.modal-content h3 { margin-bottom: 16px; color: #fff; }
.modal-large { width: 500px; }
.btn-row { display: flex; gap: 12px; justify-content: flex-end; margin-top: 16px; }
.avatar-preview-large { width: 100px; height: 100px; border-radius: 50%; background: #5865f2; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 36px; overflow: hidden; }
.avatar-preview-large img { width: 100%; height: 100%; object-fit: cover; }

/* Keybinds Modal */
.keybinds-modal-content { width: 400px; }
.keybinds-hint { font-size: 12px; color: #949ba4; margin-bottom: 16px; }
.keybind-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #3f4147; }
.keybind-row:last-of-type { border-bottom: none; }
.keybind-label { font-size: 14px; color: #dbdee1; }
.keybind-controls { display: flex; gap: 8px; align-items: center; }
.keybind-btn { min-width: 80px; padding: 8px 12px; background: #404249; border: 1px solid #4e5058; border-radius: 4px; color: #fff; font-size: 12px; cursor: pointer; text-align: center; }
.keybind-btn:hover { background: #4e5058; }
.keybind-clear { width: 28px; height: 28px; background: none; border: none; color: #949ba4; cursor: pointer; font-size: 14px; border-radius: 4px; }
.keybind-clear:hover { background: #ed4245; color: #fff; }

/* Context Menu */
#context-menu {
  display: none;
  position: fixed;
  background: #111214;
  border-radius: 8px;
  padding: 8px;
  min-width: 200px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 2000;
}
#context-menu.show { display: block; }
.context-menu-header {
  padding: 8px 12px;
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid #2b2d31;
  margin-bottom: 8px;
}
.context-menu-item {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
}
.context-menu-item:hover { background: #35373c; }
.context-menu-item label { color: #949ba4; font-size: 13px; }
.context-menu-item input[type="range"] { flex: 1; }
.context-menu-item span { color: #fff; font-size: 12px; min-width: 40px; text-align: right; }

/* Channel Modal */
#channel-modal .modal-content { width: 400px; }

/* GIF Picker */
#gif-modal { display: none; position: fixed; bottom: 80px; left: 260px; width: 480px; height: 520px; background: #2b2d31; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.4); flex-direction: column; z-index: 999; }
#gif-modal.show { display: flex; }

/* GIF Tabs */
#gif-tabs { display: flex; border-bottom: 1px solid #1f2023; }
.gif-tab { flex: 1; padding: 12px; background: none; border: none; color: #949ba4; font-size: 13px; cursor: pointer; transition: all 0.2s; }
.gif-tab:hover { background: #35373c; color: #dbdee1; }
.gif-tab.active { color: #fff; border-bottom: 2px solid #5865f2; }

/* GIF Sections */
.gif-section { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

/* GIF Favorites */
#gif-folders { display: flex; gap: 8px; padding: 12px; border-bottom: 1px solid #1f2023; }
#gif-folder-select { flex: 1; padding: 8px; background: #1e1f22; border: none; border-radius: 4px; color: #fff; font-size: 13px; }
#gif-folder-select:focus { outline: 2px solid #5865f2; }
#add-folder-btn { padding: 8px 12px; background: #404249; border: none; border-radius: 4px; color: #fff; cursor: pointer; font-size: 14px; }
#add-folder-btn:hover { background: #5865f2; }
#gif-favorites-grid { flex: 1; overflow-y: auto; padding: 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gif-fav-empty { grid-column: 1 / -1; padding: 40px 20px; text-align: center; color: #949ba4; }

#gif-search { padding: 12px; border-bottom: 1px solid #1f2023; }
#gif-search input { width: 100%; padding: 10px; border: none; border-radius: 4px; background: #1e1f22; color: #fff; font-size: 14px; }
#gif-search input:focus { outline: none; }
#gif-results { flex: 1; overflow-y: auto; padding: 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

/* GIF Items - more square */
.gif-item { cursor: pointer; border-radius: 4px; overflow: hidden; background: #1e1f22; aspect-ratio: 1; position: relative; }
.gif-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gif-item:hover { opacity: 0.9; }
.gif-item:hover .gif-star { opacity: 1; }

/* GIF Star (favorite button) */
.gif-star { 
  position: absolute; 
  top: 4px; 
  right: 4px; 
  width: 24px; 
  height: 24px; 
  background: rgba(0,0,0,0.6); 
  border: none; 
  border-radius: 50%; 
  cursor: pointer; 
  font-size: 14px; 
  display: flex; 
  align-items: center; 
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.gif-star:hover { background: rgba(0,0,0,0.8); }
.gif-star.favorited { opacity: 1; color: #ffd700; }
.gif-star:not(.favorited) { color: #fff; }

/* GIF Remove button for favorites view */
.gif-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  background: rgba(237, 66, 69, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.gif-item:hover .gif-remove { opacity: 1; }

/* Admin Panel */
.admin-section { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid #404249; }
.admin-section:last-of-type { border-bottom: none; }
.admin-section h4 { color: #fff; margin-bottom: 12px; }
.invite-form { display: flex; gap: 12px; align-items: flex-end; }
.invite-form .form-group { margin-bottom: 0; flex: 1; }
.invite-form .btn-primary { width: auto; margin-top: 0; }
.invite-link { background: #1e1f22; padding: 12px; border-radius: 4px; margin-top: 12px; word-break: break-all; font-family: monospace; color: #00a8fc; }
.invite-item { display: flex; justify-content: space-between; align-items: center; padding: 12px; background: #1e1f22; border-radius: 4px; margin-bottom: 8px; }
.invite-item-info { flex: 1; }
.invite-item-code { font-family: monospace; color: #00a8fc; margin-bottom: 4px; }
.invite-item-meta { font-size: 12px; color: #949ba4; }
.invite-item button { padding: 6px 12px; }

/* Volume Control (for other users - context menu) */
.volume-control { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 4px; }
.volume-control:hover { background: #35373c; }
.volume-control-avatar { width: 24px; height: 24px; border-radius: 50%; background: #5865f2; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 10px; }
.volume-control-avatar img { width: 100%; height: 100%; object-fit: cover; }
.volume-control-name { flex: 1; font-size: 13px; color: #dbdee1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.volume-control input[type="range"] { width: 60px; }
.volume-percent { font-size: 11px; color: #949ba4; min-width: 35px; text-align: right; }

/* Screen Share Modal */
#screen-share-modal .screen-share-content { background: #1e1f22; border-radius: 8px; overflow: hidden; max-width: 90vw; max-height: 90vh; display: flex; flex-direction: column; }
.screen-share-header { padding: 12px 16px; background: #2b2d31; display: flex; justify-content: space-between; align-items: center; color: #fff; }
.screen-share-controls { display: flex; gap: 8px; }
.screen-share-header button { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; padding: 4px 8px; border-radius: 4px; }
.screen-share-header button:hover { background: #404249; }
#screen-share-video { display: block; max-width: 100%; max-height: calc(90vh - 100px); background: #000; }
.screen-share-footer { padding: 10px 16px; background: #2b2d31; display: flex; align-items: center; gap: 12px; }
.screen-share-footer button { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; padding: 4px; }
.screen-share-footer button.muted { color: #ed4245; }
.screen-share-footer input[type="range"] { flex: 1; }
.screen-share-footer span { font-size: 12px; color: #949ba4; min-width: 40px; }

/* Voice user watch button */
.voice-user-watch { 
  font-size: 10px; 
  padding: 2px 6px; 
  background: #5865f2; 
  border: none; 
  border-radius: 3px; 
  color: #fff; 
  cursor: pointer; 
  margin-left: auto;
}
.voice-user-watch:hover { background: #4752c4; }

/* Mobile Overlay */
#mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}
#mobile-overlay.show { display: block; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #1e1f22; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #35373c; }

/* Responsive */
@media (max-width: 900px) {
  #members { display: none; }
  #members.mobile-open {
    display: block;
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    transform: translateX(0);
  }
}

@media (max-width: 600px) {
  #sidebar { 
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    transform: translateX(-100%);
    width: 280px;
  }
  #sidebar.mobile-open { transform: translateX(0); }
  
  #members {
    display: none;
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 100;
    width: 280px;
    transform: translateX(100%);
  }
  #members.mobile-open { 
    display: block;
    transform: translateX(0); 
  }
  
  #chat-area { width: 100%; }
  
  #gif-modal { left: 8px; right: 8px; width: auto; max-width: 480px; }
  
  #voice-controls { left: 16px; right: 16px; width: auto; }
  
  /* Add swipe hint */
  #chat-header::before {
    content: '☰';
    margin-right: 12px;
    font-size: 20px;
    cursor: pointer;
  }
}

/* Desktop only - hide swipe hint */
@media (min-width: 601px) {
  #sidebar { transform: none !important; }
}
