* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: #0a0a0a;
  color: #e0e0e0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.3;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.1rem 0.3rem; /* Reduced top/bottom padding to tighten space */
}
.site-header { margin: 0; padding: 0; border-bottom: none; }
.title-area { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  flex-wrap: nowrap;
  gap: 0.2rem; 
  overflow: hidden; 
}
.title-left { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.title-right { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.site-title { font-size: 1.0rem; }
.site-title a { color: #3498db; text-decoration: none; }
.header-avatar { 
  height: 26px; /* Reduced from 32px to tighten the space */
  width: 26px; 
  object-fit: cover; 
  border-radius: 50%; 
}
.header-btn {
  background: #555; color: #fff; border: none; padding: 0.3rem 0.6rem;
  border-radius: 40px; font-weight: bold; cursor: pointer; font-size: 0.7rem;
  white-space: nowrap; transition: background 0.2s;
}
.header-btn:hover { background: #777; }
.header-btn-life {
  background: #ff0000; color: #fff; border: none; padding: 0.3rem 0.6rem;
  border-radius: 40px; font-weight: bold; cursor: pointer; font-size: 0.7rem;
  white-space: nowrap; transition: background 0.2s;
}
.header-btn-life:hover { background: #cc0000; }
.header-link {
  color: #e0e0e0; text-decoration: none; font-size: 1.5rem; font-weight: 250;
  padding: 0.1rem 0.1rem; transition: color 0.2s; display: inline-block; line-height: 1;
}
.header-link:hover { color: #3498db; }
.search-section { margin: 0; padding: 0; width: 100%; }
.search-form { display: flex; flex-wrap: nowrap; gap: 0.2rem; width: 100%; padding: 0.05rem 0; }
.search-input {
  flex: 1; min-width: 0; padding: 0.15rem 0.3rem; background: #1a1a1a;
  border: 1px solid #333; border-radius: 3px; color: #e0e0e0;
  font-size: 0.65rem; min-height: 24px; width: 100%; box-sizing: border-box;
}
.search-btn {
  background: transparent; color: #e0e0e0; border: none; padding: 0 0.3rem;
  cursor: pointer; font-size: 0.65rem; min-height: 24px; min-width: 20px;
  display: inline-flex; align-items: center; justify-content: center;
}
.search-btn:hover { color: #3498db; }
.filter-row { display: flex; flex-wrap: wrap; gap: 2px; width: 100%; margin: 0.1rem 0 0 0; padding: 0; }
.filter-btn {
  flex: 1; text-align: center; background: transparent; color: #888;
  padding: 0.05rem 0; text-decoration: none; font-size: 0.65rem;
  transition: color 0.2s; border: none; cursor: pointer; min-height: 20px;
  display: flex; align-items: center; justify-content: center; min-width: 40px;
}
.filter-btn.active, .filter-btn:hover { color: #e0e0e0; }

/* Slideshow */
#slideshow {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
  overflow: hidden; background: #000; z-index: 1;
  will-change: transform, opacity; backface-visibility: hidden;
  transform: translateZ(0); margin: 0; padding: 0;
}
#slideshow img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: block; line-height: 0; background: #000; opacity: 0;
  will-change: opacity, transform; backface-visibility: hidden;
  transform: translateZ(0) scale(1.001); user-select: none;
  -webkit-tap-highlight-color: transparent; object-fit: cover; image-rendering: auto;
}
#slideshow.hidden { display: none; }

/* Toggle bar - Moved down to 58px to clear the search bar */
#toggleBar {
  position: fixed; top: 58px; left: 0; width: 100%; height: 2px;
  background: transparent; cursor: pointer; transition: background 0.2s;
  z-index: 99998; pointer-events: auto;
}
#toggleBar.feed-visible { background: #e74c3c; }
#toggleBar::after {
  content: ''; position: absolute; top: -8px; left: 50%;
  transform: translateX(-50%); background: transparent;
  transition: background 0.2s, transform 0.2s;
  box-shadow: none;
}
#toggleBar.feed-visible::after { background: #e74c3c; box-shadow: 0 0 8px rgba(231, 76, 60, 0.6); }

/* Feed container - Moved to 60px to match */
.feed-container {
  display: none; position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
  overflow-y: auto; -ms-overflow-style: none; scrollbar-width: none;
  background: #0a0a0a; z-index: 2; padding: 0 0 60px 0; pointer-events: auto;
}
.feed-container::-webkit-scrollbar { display: none; }
.feed-container.show { display: block; }

/* Feed items */
.feed-image { display: block; width: 100%; margin: 0; padding: 0; line-height: 0; }
.feed-image img { display: block; width: 100%; height: auto; margin: 0; padding: 0; }
.feed-video { display: block; width: 100%; margin: 0; padding: 0; background: #0a0a0a; }
.feed-video video { display: block; width: 100%; height: auto; margin: 0; padding: 0; }
.video-placeholder { padding: 1rem; text-align: center; color: #888; font-size: 0.8rem; }
.feed-title {
  font-size: 6px; color: #888; text-align: center; padding: 0.1rem 0;
  line-height: 1.2; background: #0a0a0a; cursor: pointer;
}
.feed-article { padding: 0.5rem 0.3rem; border-bottom: 1px solid #2a2a2a; background: #0a0a0a; }
.feed-article .article-title { font-size: 10px; color: #fff; font-weight: normal; margin-bottom: 0.2rem; cursor: pointer; }
.feed-article .article-subject { font-size: 8px; color: #aaa; margin-bottom: 0.2rem; }
.feed-article .article-readmore { font-size: 8px; color: #3498db; text-decoration: none; }
.feed-article .article-readmore:hover { text-decoration: underline; }
.feed-article-thumb img { display: block; width: 100%; height: auto; max-height: 300px; object-fit: cover; margin-bottom: 4px; }

/* Location info card */
.loc-info {
  display: none; background: #1a1a1e; border: 1px solid #2a2d33;
  border-radius: 4px; padding: 4px 8px; margin: 2px 0 4px 0;
  font-size: 9px; line-height: 1.5; color: #88929e;
  width: 100%; max-width: 260px;
}
.loc-info.open { display: block; }
.loc-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.loc-details { flex: 1; }
.loc-line { display: flex; gap: 8px; }
.loc-label { color: #5f6b7a; font-weight: 500; min-width: 50px; }
.loc-value { color: #b0bcc8; word-break: break-all; }
.gps-link { cursor: pointer; color: #6a9fb5; }
.gps-link:hover { text-decoration: underline; }
.loc-dollar {
  background: none; border: 1px solid #2a2d33; border-radius: 4px;
  color: #b0bcc8; font-size: 10px; padding: 2px 6px; cursor: pointer;
  flex-shrink: 0; transition: background 0.2s;
}
.loc-dollar:hover { background: #2a2d33; color: #fff; }

/* © Direct chat toggle button — sits beside the $ button */
.loc-chat {
  background: #0d1410; color: #7ed9a6; border: 1px solid #1f3328;
  border-radius: 4px; font-size: 13px; width: 26px; height: 26px;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  margin-left: 4px; transition: 0.2s; font-weight: 700; line-height: 1;
  flex-shrink: 0; padding: 0;
}
.loc-chat:hover { background: #12241a; color: #a6ffca; border-color: #3a9b5e; }
.loc-chat.active {
  background: #1a3d29; color: #d6ffe5;
  box-shadow: 0 0 8px rgba(58, 155, 94, 0.5);
}

/* Payment modal */
#paymentModal {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7); z-index: 99999;
  justify-content: center; align-items: center;
}
#paymentModal.open { display: flex; }
.modal-content {
  background: #1a1a1e; border: 1px solid #2a2d33; border-radius: 8px;
  padding: 20px; max-width: 460px; width: 92%; color: #c7c9cb; position: relative;
}
.modal-close {
  position: absolute; top: 8px; right: 12px; background: none; border: none;
  color: #5f6b7a; font-size: 18px; cursor: pointer;
}
.modal-close:hover { color: #b0bcc8; }
.modal-content h3 {
  margin: 0 0 16px 0; font-weight: 400; color: #b0bcc8;
  border-bottom: 1px solid #2a2d33; padding-bottom: 8px;
}
.modal-content label {
  display: block; margin: 10px 0 4px 0; font-size: 11px; color: #5f6b7a;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.modal-content input,
.modal-content textarea,
.modal-content select {
  width: 100%; padding: 8px 10px; background: #0e0e10;
  border: 1px solid #2a2d33; border-radius: 4px; color: #c7c9cb;
  font-size: 14px; font-family: inherit; box-sizing: border-box;
}
.modal-content input:focus,
.modal-content textarea:focus,
.modal-content select:focus { border-color: #627480; outline: none; }
.modal-content .row { display: flex; gap: 12px; }
.modal-content .row > div { flex: 1; }
.modal-content .submit-row { margin-top: 16px; display: flex; justify-content: flex-end; }
.modal-content .submit-row button {
  background: #1a2a33; border: 1px solid #26333d; color: #b0c8d8;
  padding: 8px 24px; border-radius: 4px; cursor: pointer;
  font-size: 16px; transition: 0.2s;
}
.modal-content .submit-row button:hover {
  background: #1e3340; border-color: #3a9b5e; color: #d6e8f0;
}
.secure-note {
  font-size: 10px; color: #5f6b7a; text-align: center;
  margin-top: 10px; border-top: 1px solid #2a2d33; padding-top: 10px;
}
@media (max-width:480px) {
  .modal-content { padding: 16px; }
  .modal-content .row { flex-direction: column; gap: 0; }
}

/* Map modal */
#mapModal {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7); z-index: 99999;
  justify-content: center; align-items: center;
}
#mapModal.open { display: flex; }
#mapModal .modal-content { max-width: 700px; width: 94%; }
#mapModal #map {
  height: 350px; width: 100%; border-radius: 4px;
  border: 1px solid #2a2d33; margin-bottom: 12px;
}
.map-info-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px;
  font-size: 11px; color: #88929e; margin: 8px 0 12px 0;
  background: #0e0e10; padding: 8px 12px; border-radius: 4px;
}
.map-info-grid .label { color: #5f6b7a; font-weight: 500; }
.map-info-grid .value { color: #b0bcc8; word-break: break-all; }
.map-pay-row { display: flex; justify-content: flex-end; gap: 12px; align-items: center; }
.map-pay-row a {
  background: #1a2a33; border: 1px solid #26333d; color: #b0c8d8;
  padding: 8px 24px; border-radius: 4px; text-decoration: none;
  font-size: 16px; transition: 0.2s;
}
.map-pay-row a:hover { background: #1e3340; border-color: #3a9b5e; color: #d6e8f0; }
.map-image { max-width: 100%; max-height: 150px; border-radius: 4px; margin: 4px 0 8px 0; }
@media (max-width:480px) {
  #mapModal .modal-content { padding: 12px; }
  #mapModal .map-info-grid { grid-template-columns: 1fr; }
}

/* © Direct chat modal — inline, no iframe */
#chatModal {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85);
  z-index: 100000; align-items: center; justify-content: center; padding: 12px;
}
#chatModal.open { display: flex; }
#chatModal .chat-modal-content {
  position: relative; width: 100%; max-width: 600px; height: 90vh;
  max-height: 820px; background: #0b0d0f; border: 1px solid #262b30;
  border-radius: 12px; overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,0.9);
}
#chatModal .modal-close {
  position: absolute; top: 8px; right: 8px; z-index: 10;
  background: #1a1a1e; color: #c7c9cb; border: 1px solid #2a2d33;
  width: 28px; height: 28px; border-radius: 6px; cursor: pointer;
  font-size: 14px; line-height: 1; display: flex;
  align-items: center; justify-content: center;
}
#chatModal .modal-close:hover { background: #262b30; color: #fff; }

/* Inline chat */
.inline-chat {
  display: flex; flex-direction: column; height: 100%; width: 100%;
  background: #0e0e10;
}
.inline-chat-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid #1f1f23;
  background: #0b0d0f; flex-shrink: 0;
}
.inline-chat-brand { font-size: 14px; letter-spacing: 2px; color: #eaeef2; }
.inline-chat-brand .dot { color: #3a9b5e; margin: 0 4px; font-weight: 700; }
.inline-chat-brand .life { color: #5f6b7a; font-weight: 300; }
.inline-chat-messages {
  flex: 1; overflow-y: auto; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 8px; background: #0e0e10;
}
.inline-chat-messages::-webkit-scrollbar { width: 3px; }
.inline-chat-messages::-webkit-scrollbar-thumb { background: #2f3a44; border-radius: 8px; }

.chat-msg {
  display: flex; flex-direction: column; max-width: 88%;
  animation: chatFadeIn .2s ease;
}
.chat-msg.own  { align-self: flex-end;  align-items: flex-end; }
.chat-msg.other { align-self: flex-start; align-items: flex-start; }

.chat-bubble {
  padding: 8px 12px; border-radius: 10px; font-size: 13px; line-height: 1.45;
  word-wrap: break-word; border: 1px solid #3a3a3e;
  background: #17181c; color: #c8d0d8;
}
.chat-msg.own .chat-bubble {
  background: #1a2a33; color: #d6e3ed; border-bottom-right-radius: 2px;
}
.chat-msg.other .chat-bubble { border-bottom-left-radius: 2px; }
.chat-meta { font-size: 9px; color: #5f6b7a; margin-top: 3px; padding: 0 4px; }

.inline-chat-form {
  display: flex; gap: 8px; padding: 10px 14px 14px 14px;
  background: #0e0e10; border-top: 1px solid #1a1a1e; flex-shrink: 0;
}
.inline-chat-form input[type="text"] {
  flex: 1; padding: 9px 12px; background: #18181c;
  border: 1px solid #25282e; border-radius: 8px; color: #d6e0e8;
  font-size: 14px; font-family: inherit; outline: none; transition: border-color .2s;
}
.inline-chat-form input[type="text"]:focus { border-color: #3a9b5e; background: #121216; }
.inline-chat-form button {
  background: #1a2a33; color: #b0c8d8; border: 1px solid #26333d;
  padding: 9px 18px; border-radius: 8px; font-size: 11px; font-weight: 500;
  cursor: pointer; text-transform: uppercase; letter-spacing: .5px; transition: .2s;
}
.inline-chat-form button:hover {
  background: #1e3340; border-color: #3a9b5e; color: #d6e8f0;
}
@keyframes chatFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 480px) {
  #chatModal { padding: 0; }
  #chatModal .chat-modal-content {
    height: 100vh; max-height: 100vh; border-radius: 0;
    border-left: 0; border-right: 0; max-width: none;
  }
}

/* Room badge (used inside inline chat header) */
.room-badge {
  font-size: 9px; color: #4a7a5e; padding: 2px 6px;
  border: 1px solid #1f3328; border-radius: 3px;
  font-family: monospace; background: #0d1410;
}

/* Scroll buttons */
#loadingIndicator {
  text-align: center; padding: 20px; display: none;
  color: #888; font-size: 0.8rem;
}
.scroll-btn {
  position: fixed; bottom: 60px; z-index: 99999;
  background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 50%;
  width: 36px; height: 36px; 
  display: none;
  align-items: center; justify-content: center;
  font-size: 18px; font-weight: 300; color: #e0e0e0; opacity: 0.6;
  transition: opacity 0.2s, background 0.2s; cursor: pointer;
  user-select: none; touch-action: none;
  text-shadow: 0 0 8px rgba(0,0,0,0.8); pointer-events: auto !important;
}

body:has(.feed-container.show) .scroll-btn,
.feed-container.show .scroll-btn {
  display: flex;
}

.scroll-btn:active { opacity: 0.9; background: rgba(255, 255, 255, 0.25); }
.scroll-btn-left { left: 16px; }
.scroll-btn-right { right: 16px; }

/* Camera modal */
#camera-modal {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.95); z-index: 1000; flex-direction: column;
  align-items: center; justify-content: center; backdrop-filter: blur(4px);
}
#camera-video {
  max-width: 90%; max-height: 70vh; border-radius: 12px; transition: transform 0.2s;
}
.camera-controls-panel {
  margin-top: 0.4rem; display: flex; flex-direction: column;
  align-items: center; gap: 0.2rem;
}
.camera-select, .quality-select {
  background: #1a1a1a; color: #fff; border: 1px solid #555;
  border-radius: 40px; padding: 0.3rem 0.8rem;
}
.controls {
  display: flex; gap: 0.3rem; flex-wrap: wrap; justify-content: center;
  background: #111; padding: 0.2rem 0.4rem; border-radius: 60px;
}
.controls button {
  padding: 0.15rem 0.4rem; font-size: 0.65rem; border: none;
  border-radius: 40px; cursor: pointer; font-weight: bold;
  background: #555; color: #fff;
}
.controls button:hover { background: #777; }
.controls button.burst-btn {
  background: #e67e22; font-size: 1.2rem; padding: 0.1rem 0.8rem; min-width: 44px;
}
.controls button.burst-btn:active { background: #d35400; }
.upload-progress {
  display: none; width: 80%; max-width: 300px; background: #2a2a2a;
  border-radius: 20px; overflow: hidden; height: 8px; margin-top: 8px;
}
.upload-progress-bar { width: 0%; height: 100%; background: #3498db; transition: width 0.3s; }
.upload-progress-text { font-size: 0.7rem; color: #aaa; margin-top: 4px; text-align: center; }
.step {
  color: #e0e0e0; background: rgba(0,0,0,0.6); padding: 0.1rem 0.4rem;
  border-radius: 40px; font-size: 0.6rem;
}
.recording-indicator {
  display: none; position: fixed; bottom: 12px; right: 12px;
  background: #e74c3c; color: #fff; padding: 2px 6px; border-radius: 40px;
  font-weight: bold; z-index: 1001; font-size: 0.6rem;
  animation: pulse 1s infinite;
}
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}
.flash-btn.active { color: #fff; background: #555; }
.video-wrapper {
  position: relative; display: block; width: 100%; max-width: 90%;
  margin: 0 auto; border-radius: 12px; overflow: hidden;
}
.video-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 10; cursor: pointer; touch-action: none;
  pointer-events: auto; background: transparent;
}
#camera-video {
  display: block; width: 100%; height: auto;
  pointer-events: none; border-radius: 0;
}
.mode-toggle { display: flex; gap: 8px; justify-content: center; margin-bottom: 6px; }
.mode-toggle button {
  background: #333; color: #888; border: 1px solid #555;
  padding: 0.2rem 0.8rem; border-radius: 40px; cursor: pointer;
  font-weight: bold; font-size: 0.9rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s; min-width: 44px;
}
.mode-toggle button.active-mode {
  background: #3498db; color: #fff; border-color: #2980b9;
}
.mode-toggle button:hover { background: #555; color: #e0e0e0; }

/* Admin / misc */
.admin-card {
  background: #111; border-radius: 12px; padding: 1rem;
  border: 1px solid #2a2a2a; margin-top: 1rem;
  max-width: 100%; overflow-x: hidden;
}
.admin-input, .admin-select, .admin-textarea {
  width: 100%; padding: 0.5rem 0.75rem; background: #1a1a1a;
  border: 1px solid #333; border-radius: 8px; color: #e0e0e0;
  font-size: 0.9rem; margin-bottom: 0.75rem;
  max-width: 100%; box-sizing: border-box;
}
.admin-textarea { resize: vertical; }
.location-row { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.location-row input { flex: 1; min-width: 60px; }
.get-location-btn {
  background: #555; color: white; border: none; padding: 0 0.75rem;
  border-radius: 8px; cursor: pointer; white-space: nowrap;
  font-size: 0.8rem; min-height: 34px;
}
.get-location-btn:hover { background: #777; }
.admin-btn {
  background: #333; color: #e0e0e0; border: 1px solid #444;
  padding: 0.1rem 0.3rem; border-radius: 4px; cursor: pointer;
  font-size: 0.75rem; font-family: inherit; min-height: 26px; min-width: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s; text-decoration: none; line-height: 1;
}
.admin-btn:hover { background: #444; text-decoration: none; }
.delete-btn {
  background: #333; color: #e74c3c; border: 1px solid #884444;
  padding: 0.1rem 0.3rem; border-radius: 4px; cursor: pointer;
  font-size: 0.75rem; font-family: inherit; min-height: 26px; min-width: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s; text-decoration: none; line-height: 1;
}
.delete-btn:hover { background: #3a1a1a; }
.edit-btn {
  background: #333; color: #3498db; border: 1px solid #444;
  padding: 0.1rem 0.3rem; border-radius: 4px; cursor: pointer;
  font-size: 0.75rem; font-family: inherit; min-height: 26px; min-width: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s; text-decoration: none; line-height: 1;
}
.edit-btn:hover { background: #1a2a3a; }
.item-list { margin-top: 0.75rem; }
.item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.5rem; border-bottom: 1px solid #2a2a2a; gap: 0.5rem;
  flex-wrap: wrap; word-break: break-word; overflow-wrap: break-word;
}
.item-title { font-weight: bold; font-size: 0.9rem; word-break: break-word; }
.item-meta { font-size: 0.7rem; color: #888; margin-top: 0.2rem; word-break: break-word; }
.item-actions { display: flex; gap: 0.3rem; flex-shrink: 0; }
.edit-badge { background: #2c3e50; padding: 0.2rem 0.5rem; border-radius: 20px; font-size: 0.7rem; }
.success-msg {
  background: #1a3a2a; border-left: 4px solid #2ecc71;
  padding: 0.5rem 0.75rem; margin-bottom: 0.75rem;
  font-size: 0.9rem; word-break: break-word;
}
.error-msg {
  background: #3a1a1a; border-left: 4px solid #e74c3c;
  padding: 0.5rem 0.75rem; margin-bottom: 0.75rem;
  font-size: 0.9rem; word-break: break-word;
}
.file-btn { display: inline-flex; align-items: center; gap: 0.3rem; }
.file-btn input[type="file"] {
  position: absolute; width: 0; height: 0; opacity: 0;
}
.file-count { font-size: 0.7rem; color: #888; }
.upload-status { margin-top: 0.5rem; font-size: 0.8rem; color: #aaa; }
.upload-status .done { color: #2ecc71; }
.upload-status .error { color: #e74c3c; }
.existing-search-area { margin-bottom: 0.5rem; }
.existing-search-area input {
  width: 100%; padding: 0.5rem; background: #1a1a1a;
  border: 1px solid #333; border-radius: 8px; color: #e0e0e0;
  font-size: 0.9rem; box-sizing: border-box;
}
.existing-search-area span { font-size: 0.8rem; color: #888; }
.upload-progress-admin {
  display: none; width: 100%; background: #2a2a2a;
  border-radius: 20px; overflow: hidden; height: 8px; margin-top: 0.5rem;
}
.upload-progress-admin .bar {
  width: 0%; height: 100%; background: #3498db; transition: width 0.3s;
}
.login-form { display: flex; gap: 0.2rem; align-items: center; flex-wrap: wrap; }
.login-form input[type="password"] {
  background: #1a1a1a; border: 1px solid #444; color: #e0e0e0;
  padding: 0.15rem 0.3rem; border-radius: 3px; min-height: 24px;
  flex: 1; min-width: 80px; font-size: 0.65rem;
}
.btn {
  background: transparent; color: #e0e0e0; border: none;
  padding: 0 0.3rem; cursor: pointer; font-size: 0.65rem;
  font-family: inherit; min-height: 24px; min-width: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color 0.2s; text-decoration: none;
}
.btn:hover { color: #3498db; }

@media (max-width: 640px) {
  .container { padding: 0.1rem 0.2rem; }
  .site-title { font-size: 0.9rem; }
  .header-avatar { height: 24px; width: 24px; }
  .header-btn, .header-btn-life { padding: 0.2rem 0.4rem; font-size: 0.65rem; }
  .filter-row { flex-wrap: wrap; }
  .filter-btn { flex: 1; min-width: 40px; font-size: 0.6rem; }
  #camera-video { max-width: 98%; max-height: 55vh; }
  .controls { gap: 0.4rem; padding: 0.4rem 0.8rem; }
  .controls button { padding: 0.4rem 1rem; font-size: 0.8rem; }
  .admin-card { padding: 0.5rem; }
  .item { flex-direction: column; align-items: flex-start; }
  .item-actions { width: 100%; justify-content: flex-end; }
  .search-input { font-size: 0.6rem; min-height: 20px; }
  
  /* Adjust fixed positions for smaller mobile screens */
  #toggleBar { top: 52px; }
  .feed-container { top: 54px; }
  .scroll-btn { width: 30px; height: 30px; font-size: 14px; bottom: 50px; }
  .scroll-btn-left { left: 12px; }
  .scroll-btn-right { right: 12px; }
}