/* === Base Styles (Keep as is for logic/layout) === */
#main-container, .wrapper, .content { 
  max-width: 100%; 
}
/* Ensure dropdown never overflows off the screen */
.profile-dropdown {
  max-width: 90vw;            /* Prevents overflow on small screens */
  width: 250px;               /* Optional: standard width */
  right: 10px !important;     /* Nudge it inward on desktop */
  overflow-wrap: break-word;  /* Allow text wrapping */
  z-index: 9999;              /* Ensure it's above other content */
  box-shadow: 0 4px 10px rgba(0,0,0,0.2); /* Optional: styling */
}

body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background: #f5f5f5;
  color: #222;
}
#main-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  padding: 10px;
}

#left-column {
  max-width: 700px;
  flex-grow: 1;
}

#right-column {
  width: 300px;
  min-width: 280px;
  padding: 10px;
  background-color: #f7f7f7;
  border-left: 2px solid #ccc;
  border-radius: 8px;
  position: sticky;
  top: 20px;
  height: fit-content;
}

#about-scouseair {
  font-size: 14px;
  line-height: 1.5;
}
#mobile-about-banner {
  display: none;
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #f9f9f9;
  border-top: 1px solid #ccc;
  padding: 10px;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
  z-index: 999;
  font-size: 14px;
}

#mobile-about-banner summary {
  cursor: pointer;
  font-weight: bold;
  text-align: center;
}

.mobile-about-content {
  margin-top: 8px;
  text-align: left;
}

@media (max-width: 768px) {
  #mobile-about-banner {
    display: block;
  }
}
@media (max-width: 768px) {
  #about-cultchat-box {
    display: none !important;
  }
}

/* === Theme 1: GeoCities 1999 === */
.geocities-theme body {
  background: url('https://www.transparenttextures.com/patterns/stardust.png') repeat;
  font-family: "Comic Sans MS", cursive;
  color: lime;
}

.geocities-theme .post {
  background: #0000aa;
  border: 3px dashed yellow;
  padding: 10px;
  margin: 10px;
  color: white;
}

.geocities-theme button,
.geocities-theme select {
  background: magenta;
  color: yellow;
  border: 2px solid red;
  font-weight: bold;
}

/* === Theme 2: Early 2000s Blog === */
.blog2000-theme body {
  background: url('https://www.transparenttextures.com/patterns/denim.png') repeat;
  font-family: Verdana, sans-serif;
  color: #333;
}

.blog2000-theme .post {
  background: white;
  border: 1px solid #aaa;
  padding: 10px;
  margin: 10px;
  box-shadow: 2px 2px 5px #999;
}

.blog2000-theme button,
.blog2000-theme select {
  background: #dfefff;
  color: #003366;
  border: 1px solid #003366;
}

/* === Theme 3: MySpace Vibe === */
.myspace-theme body {
  background: url('https://www.transparenttextures.com/patterns/black-linen.png') repeat;
  font-family: Arial Black, sans-serif;
  color: white;
}

.myspace-theme .post {
  background: #111;
  border: 1px solid #444;
  padding: 10px;
  margin: 10px;
  color: #fff;
  box-shadow: 0 0 8px hotpink;
}

.myspace-theme button,
.myspace-theme select {
  background: hotpink;
  color: black;
  border: none;
  font-weight: bold;
}
.windowsxp-theme body {
  background: #87CEEB; /* Sky blue */
  font-family: Tahoma, Verdana, sans-serif;
  color: black;
}

.windowsxp-theme .post {
  background: white;
  border: 2px solid #1C5AA6;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
}

.windowsxp-theme button {
  background: linear-gradient(to bottom, #4CAF50, #2E7D32);
  border: 2px outset #1C5AA6;
  color: white;
  font-weight: bold;
  font-family: Tahoma;
}
.mspaint-theme body {
  background: white;
  font-family: "Comic Sans MS", Courier, monospace;
  color: black;
}

.mspaint-theme .post {
  background: #fff;
  border: 2px solid black;
  padding: 10px;
}

.mspaint-theme button {
  background: red;
  color: yellow;
  border: 2px solid blue;
  font-weight: bold;
  font-size: 14px;
}
.clippy-theme body {
  background: #e0e0e0;
  font-family: Tahoma, sans-serif;
}

.clippy-theme .post {
  background: white;
  border-radius: 12px;
  box-shadow: 0 0 10px #aaa;
  padding: 15px;
  border: 1px solid #999;
}

.clippy-theme button {
  background: #ffff99;
  color: black;
  border: 2px solid #333;
  font-weight: bold;
}
.tumblr-theme body {
  background: #2c2f33;
  font-family: "Georgia", serif;
  color: #fefefe;
}

.tumblr-theme .post {
  background: #444;
  border-left: 4px solid #00CED1;
  padding: 15px;
  margin: 10px;
  font-style: italic;
  transition: background 0.3s;
}

.tumblr-theme .post:hover {
  background: #555;
}

.tumblr-theme button {
  background: #ffb6c1;
  color: #2c2f33;
  border: none;
  font-family: cursive;
}
.reddit06-theme body {
  background: #eeeeee;
  font-family: "Times New Roman", serif;
  color: #222;
}

.reddit06-theme .post {
  background: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  font-size: 14px;
}

.reddit06-theme a {
  color: #3366cc;
  text-decoration: underline;
}

.reddit06-theme button {
  background: #ccc;
  color: #000;
  font-weight: bold;
  border: 2px solid #999;
}
.matrix-theme body {
  background: black;
  color: #00ff00;
  font-family: monospace;
}

.matrix-theme .post {
  background: #000;
  border: 1px solid #00ff00;
  box-shadow: 0 0 10px #00ff00;
  padding: 10px;
}

.matrix-theme button {
  background: #003300;
  color: #00ff00;
  border: 2px solid #00ff00;
  font-weight: bold;
}
.newspaper-theme body {
  background: #fff;
  color: #000;
  font-family: "Times New Roman", serif;
}

.newspaper-theme .post {
  background: #f2f2f2;
  border: 1px solid #ccc;
  padding: 12px;
  font-size: 16px;
  line-height: 1.6;
}

.newspaper-theme button {
  background: #000;
  color: #fff;
  border: 2px solid #333;
}
.gamer-theme body {
  background: #1a1a1a;
  color: #39ff14;
  font-family: "Orbitron", sans-serif;
}

.gamer-theme .post {
  background: #111;
  border: 2px solid #ff00ff;
  box-shadow: 0 0 10px #ff00ff;
  padding: 12px;
}

.gamer-theme button {
  background: linear-gradient(to right, #ff00ff, #00ffff);
  color: black;
  border: none;
  font-weight: bold;
}
.limewire-theme body {
  background: #000;
  color: #0f0;
  font-family: "Courier New", monospace;
}

.limewire-theme .post {
  background: #111;
  border: 2px dashed #0f0;
  padding: 10px;
  margin: 10px;
  color: #0f0;
}

.limewire-theme button,
.limewire-theme select {
  background: #0f0;
  color: #000;
  border: 2px solid #0f0;
  font-weight: bold;
}
.aim-theme body {
  background: #fffbe7;
  color: #333;
  font-family: "Comic Sans MS", cursive;
}

.aim-theme .post {
  background: #fff;
  border: 2px solid #333;
  padding: 10px;
  margin: 10px;
  box-shadow: 2px 2px 5px #999;
}

.aim-theme button,
.aim-theme select {
  background: #ffd700;
  color: #000;
  border: 2px solid #333;
  font-weight: bold;
}
.dialup-theme body {
  background: linear-gradient(45deg, #f0f, #0ff);
  color: #111;
  font-family: "Lucida Console", monospace;
  animation: glitch 0.5s infinite alternate;
}

.dialup-theme .post {
  background: #fff;
  border: 3px dotted #000;
  padding: 10px;
  margin: 10px;
  box-shadow: 0 0 10px red;
}

.dialup-theme button,
.dialup-theme select {
  background: #ff00ff;
  color: white;
  border: 2px solid black;
  font-weight: bold;
}

@keyframes glitch {
  0% { text-shadow: 2px 0 red; }
  100% { text-shadow: -2px 0 blue; }
}


.action-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.action-row button {
  font-size: 16px;
  padding: 6px 8px;
  background-color: #d0eaff;
  color: #004466;
  border: 1px solid #a0cce5;
  border-radius: 6px;
  transition: background 0.2s ease;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-row button:hover {
  background-color: #b8dcf5;
}


#main-header {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 15px;
}

#auth-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

#auth-buttons input {
  padding: 6px;
  margin: 0;
  height: 30px;
}

body {
    font-family: Arial, sans-serif;
    text-align: center;
    margin-top: 50px;
  }
  
  h1 {
    color: darkred;
  }
  body {
    font-family: Arial, sans-serif;
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    background: #fdfdfd;
    color: #333;
  }
  
  h1, h2 {
    color: darkred;
    margin-bottom: 10px;
  }
  
  form, .post {
    background: #fff;
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  }
  
  ul {
    list-style: none;
    padding-left: 0;
  }
  
  .post audio {
    margin-top: 5px;
  }
  button {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  button:hover {
    background-color: #004c99;
    transform: translateY(-1px);
  }
  
  button:active {
    background-color: #003366;
    transform: translateY(1px);
  }
  
  button {
    padding: 6px 12px;
    margin-top: 8px;
    border: none;
    background-color: #c0392b;
    color: white;
    border-radius: 4px;
    cursor: pointer;
  }
  
  button:hover {
    background-color: #a93226;
  }
  
  .reply {
    background: #f2f2f2;
    padding: 8px;
    margin-top: 10px;
    border-left: 3px solid #aaa;
    border-radius: 4px;
  }
  .score {
    font-weight: bold;
    margin-top: 5px;
    display: inline-block;
  }
  .score.positive { color: green; }
  .score.negative { color: red; }
  .score.neutral { color: #777; }
  ul ul {
    margin-left: 20px;
    border-left: 2px solid #ccc;
    padding-left: 10px;
  }
  body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #fff;
    color: #111;
  }
  
  .container {
    max-width: 600px;
    margin: 0 auto;
    padding: 15px;
  }
  
  input[type="text"],
  input[type="password"],
  button,
  textarea {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    box-sizing: border-box;
  }
  
  form {
    margin-bottom: 20px;
  }
  
  button {
    background: #b30000;
    color: white;
    border: none;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    cursor: pointer;
  }
  
  button:hover {
    background: #900;
  }
  
  audio {
    width: 100%;
    margin-top: 5px;
  }
  
  .score {
    font-weight: bold;
  }
  
  .positive {
    color: green;
  }
  
  .negative {
    color: red;
  }
  
  .neutral {
    color: gray;
  }
  
  /* Responsive tweaks */
  @media (max-width: 600px) {
    .post, .reply, button {
      font-size: 1rem;
    }
  
    .container {
      padding: 10px;
    }
  
    .button-row {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
  
    button {
      width: 100%;
    }
  }
  body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #fdfdfd;
    text-align: center;
  }
  
  .container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
  }
  
  input, textarea, button, select {
    padding: 8px;
    margin: 5px 0;
    width: 90%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  button {
    background-color: #990000;
    color: white;
    border: none;
    padding: 6px 10px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 4px;
  }
  
  
  button:hover {
    background-color: #cc0000;
  }
  
  .score {
    font-weight: bold;
  }
  
  .score.positive { color: green; }
  .score.negative { color: red; }
  .score.neutral { color: gray; }
  
  ul {
    list-style: none;
    padding-left: 0;
  }
  
  audio {
    margin: 10px 0;
    width: 100%;
  }
  
  .reply {
    margin-left: 20px;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
  }
  .post-card {
    background: #fff;
    border: 1px solid #ddd;
    margin: 15px 0;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 1px 1px 5px rgba(0,0,0,0.05);
    text-align: left;
  }
  .post-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px 12px;
    margin-bottom: 12px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    text-align: left;
    font-size: 0.95em;
    line-height: 1.4;
  }
  
  .post-tag {
    background: #eee;
    color: #333;
    font-size: 0.85em;
    padding: 2px 8px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 5px;
  }
  #trending-section {
    background: #fffce8;
    border: 1px solid #ffe58f;
    border-radius: 8px;
    padding: 15px;
  }
  #sort-method,
#filter-tag {
  width: auto;
  padding: 5px 10px;
  font-size: 1rem;
  margin: 0 10px;
}

#posts-list + div {
  text-align: center;
  margin-bottom: 20px;
}
.post-header {
  cursor: pointer;
  padding: 10px;
  background: #f4f4f4;
  border-radius: 5px;
}

.post-header:hover {
  background: #eaeaea;
}
.parent-context {
  background-color: #f3f3f3;
  padding: 4px 8px;
  border-left: 3px solid #999;
  margin-bottom: 5px;
  font-size: 0.85em;
  color: #555;
}
.mention {
  color: #007bff;
  font-weight: 500;
  cursor: pointer;
}

.tag {
  color: #b20000;
  font-weight: 500;
  cursor: pointer;
}
.reply-count {
  font-size: 0.85em;
  color: #555;
  margin-bottom: 5px;
}

.three-dots-menu {
  position: relative;
  display: inline-block;
}

.dots-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.post-menu {
  position: absolute;
  right: 0;
  top: 20px;
  background: white;
  border: 1px solid #ccc;
  padding: 5px;
  z-index: 10;
}

.post-menu button {
  display: block;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}
input[type="text"],
input[type="password"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: border 0.2s, box-shadow 0.2s;
  margin-bottom: 10px;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: #0077ff;
  box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.2);
  outline: none;
}


.hidden {
  display: none;
}
.button-row button {
  margin-right: 20px;
  margin-bottom: 20px;
}
select {
  margin-left: 5px;
  padding: 2px;
}
.profile-dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background-color: #444;
  color: white;
  padding: 6px 10px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.dropdown-content {
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  border: 1px solid #ccc;
  z-index: 1;
  padding: 8px;
  border-radius: 5px;
}
.voice-reply-audio {
  transform: scale(0.8);
  margin-left: 40px;
  margin-bottom: 12px;
  opacity: 0.85;
  border-left: 3px solid #ccc;
  padding-left: 8px;
}
.score, .reply-count {
  font-size: 0.85em;
  color: #555;
}
.action-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.action-row button {
  font-size: 13px;
  padding: 6px 10px;
  background-color: #f4f4f4;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.action-row button:hover {
  background-color: #e0e0e0;
}
.action-row {
  justify-content: center; /* or flex-end for right-aligned */
}
.post-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  background-color: #e0f0ff;
  color: #0077cc;
  font-size: 12px;
  margin: 4px 0;
  font-weight: bold;
}
.post-tag[data-tag="Music"] {
  background-color: #d1e7dd;
  color: #0f5132;
}
.post-tag[data-tag="Film"] {
  background-color: #ffeeba;
  color: #856404;
}
.post-tag[data-tag="Art"] {
  background-color: #f8d7da;
  color: #842029;
}
/* You can add more tag-specific colors here */
.top-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  padding: 10px 20px;
  font-size: 14px;
}

.control-item {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #f5f5f5;
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.1);
}
#search-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 10px auto 20px auto;
  max-width: 500px;
}

#searchInput {
  flex-grow: 1;
  padding: 10px;
  font-size: 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
#search-container button {
  padding: 8px 12px;
  font-size: 18px;
  background-color: #0077cc;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

#search-container button:hover {
  background-color: #005fa3;
}
.party-label {
  display: inline-block;
  background-color: #ffe066;
  color: #333;
  font-weight: bold;
  padding: 3px 8px;
  margin-left: 5px;
  border-radius: 12px;
  font-size: 0.8em;
  vertical-align: middle;
}
select {
  padding: 6px;
  margin-top: 6px;
  font-size: 14px;
  border-radius: 6px;
}
/* 🌕 Light Theme (Default) */
/* Fix top-controls for dark mode */
body.dark-mode .top-controls .control-item {
  color: white;
}

/* Dropdown background and text color */
body.dark-mode .top-controls select {
  background-color: #333;
  color: white;
  border: 1px solid #555;
}
body {
  background-color: white;
  color: black;
}
body.dark-mode .post-card,
body.dark-mode form,
body.dark-mode #notifications-box,
body.dark-mode #party-requests-section,
body.dark-mode #trending-section {
  background-color: #1e1e1e;
  color: #e0e0e0;
  border-color: #333;
}

/* 🌑 Dark Theme */
body.dark-mode {
  background-color: #0a0a0a;
  color: #e0e0e0;
}

.dark-mode .post-card {
  background-color: #1e1e1e;
  border: 1px solid #333;
}

.dark-mode .theme-toggle {
  background-color: #333;
  color: white;
}

/* Toggle button style */
#mode-toggle {
  position: fixed;
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  font-size: 12px;
  z-index: 1000;
  background-color: #444;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 0 4px rgba(0,0,0,0.4);
  transition: background-color 0.2s ease;
}

body.light-mode #mode-toggle {
  background-color: #ddd;
  color: #111;
}

.dark-mode #inbox-box {
  background: #222;
  color: #fff;
}
body.light-mode #mode-toggle {
  background-color: #ccc;
  color: black;
}
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  color: white;
  background-color: #333;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
  color: #bbb;
}
/* Match reply box and audio wrapper to dark mode */
body.dark-mode .voice-reply-wrapper {
  background-color: #222;
  border: 1px solid #444;
  padding: 10px;
  border-radius: 8px;
}

body.dark-mode .action-row,
body.dark-mode .compact-row {
  background: transparent;
}

body.dark-mode .compact-select {
  background: #111;
  color: #fff;
  border: 1px solid #555;
}

body.dark-mode .user-link-button {
  color: #62a9ff;
}

body.dark-mode .user-link-button:hover {
  color: #8bc3ff;
}

body.dark-mode .timestamp {
  color: #aaa;
  font-size: 0.75rem;
}


/* Checkbox label visibility */
body.dark-mode .top-controls input[type="checkbox"] {
  accent-color: crimson; /* optional: for better visibility */
}


.collapsible-section {
  margin: 15px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.collapsible {
  background-color: #eee;
  color: #333;
  cursor: pointer;
  padding: 10px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 16px;
  font-weight: bold;
}

.collapsible-content {
  padding: 10px;
  display: none;
  background-color: white;
  border-top: 1px solid #ddd;
}

.collapsible.active + .collapsible-content {
  display: block;
}
.voice-reply-wrapper {
  background-color: var(--post-bg, #fff);
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.voice-controls-dropdown {
  position: relative;
  display: inline-block;
}

.voice-controls-dropdown .dots-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 6px;
}

.voice-menu {
  position: absolute;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  padding: 10px;
  min-width: 160px;
  z-index: 100;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  text-align: left;
}

.voice-menu label,
.voice-menu button {
  display: block;
  margin-bottom: 8px;
  width: 100%;
  text-align: left;
  font-size: 14px;
}

.voice-menu select {
  width: 100%;
}

.voice-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

.voice-controls select,
.voice-controls button {
  padding: 5px 8px;
  font-size: 0.9em;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
}

.voice-controls label {
  font-size: 0.9em;
  font-weight: bold;
}

.voice-meta {
  font-size: 0.85em;
  color: var(--text-muted, #777);
  margin-top: 10px;
}
.transcript-bubble {
  background-color: var(--transcript-bg, #f0f0f0);
  padding: 8px 12px;
  border-radius: 12px;
  margin-top: 6px;
  display: inline-block;
  font-style: italic;
  font-size: 0.9em;
  color: #444;
  max-width: 90%;
  line-height: 1.4;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.dark-mode .transcript-bubble {
  background-color: #2a2a2a;
  color: #ddd;
}
.voice-reply-wrapper {
  background-color: #f9f9f9;
  padding: 8px 12px;
  border-left: 3px solid #bbb;
  margin: 10px 0 10px 20px;
  border-radius: 8px;
  box-shadow: none;
  opacity: 0.95;
  font-size: 0.95em;
}

.voice-reply-wrapper audio {
  transform: scale(0.92);
  opacity: 0.85;
}

.voice-meta {
  margin-top: 5px;
  font-size: 0.85em;
  color: #555;
}
.compact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

select.compact-select {
  appearance: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: white;
}


.small-meta {
  font-size: 0.85em;
  color: #666;
  margin-top: 4px;
}
.action-row.compact-row {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 2px;
}
.user-link-button {
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0;
  margin: 0;
  text-decoration: none;
  display: inline;
  font-weight: 500;
  line-height: 1;
}

.user-link-button:hover {
  text-decoration: underline;
  color: #0056b3;
}
.action-row button {
  margin-left: 6px;
}

.voice-meta em {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85em;
}
.compact-row button,
.compact-row select {
  font-size: 0.85em;
  padding: 2px 6px;
}
.compact-username {
  background: none;
  color: #4ea1f3;
  border: none;
  font-size: 0.8em;
  padding: 2px 4px;
  margin: 0;
  cursor: pointer;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 100px; /* or 80px if really tight */
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
}
.timestamp {
  font-size: 0.75em;
  color: gray;
  margin-left: 6px;
  vertical-align: middle;
}
.top-action button {
  margin-right: 6px;
  font-size: 0.9em;
}

.meta-action-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
}

.left-meta em {
  font-size: 0.9em;
  color: #ccc;
  display: flex;
  align-items: center;
  gap: 5px;
}

.right-actions button {
  margin-left: 6px;
  font-size: 0.85em;
}
.right-actions button {
  margin-left: 6px;
  font-size: 0.85em;
  padding: 4px 6px;
  background: none;
  border: 1px solid #777;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
}

.right-actions button:hover {
  background: #444;
}
/* Top action buttons */
.top-action-btn {
  background: none;
  border: 1px solid #888;
  color: #fff;
  padding: 4px 6px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
}

.top-action-btn:hover {
  background-color: #444;
}

/* Dark mode specificity, if needed */
body.dark .top-action-btn {
  color: #fff;
  border-color: #bbb;
}

body.dark .top-action-btn:hover {
  background-color: #333;
}
.clean-request-list {
  padding: 0;
  list-style: none;
}

.request-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  border-bottom: 1px solid #ddd;
  font-size: 0.95em;
}

.request-text {
  flex-grow: 1;
  text-align: left;
}

.request-username {
  color: #007bff;
  font-weight: 500;
  text-decoration: none;
}

.request-username:hover {
  text-decoration: underline;
}

.request-actions button {
  background: transparent;
  color: #333;
  font-size: 18px;
  border: none;
  margin-left: 6px;
  cursor: pointer;
}

.request-actions button:hover {
  opacity: 0.7;
}
.highlight {
  outline: 2px solid gold;
  background-color: #fffae6;
}
#profile-history ul li {
  margin-bottom: 6px;
  font-size: 0.9em;
}
#profile-history a {
  color: #007bff;
  text-decoration: none;
}
#profile-history a:hover {
  text-decoration: underline;
}
#logo-container {
  margin: 10px 0;
  text-align: center;
}

#logo-container img {
  max-width: 100px;
  height: auto;
  display: block;
  margin: 0 auto;
}

#logo-dark {
  display: none;
}

body.dark-mode #logo-dark {
  display: block;
}

body.dark-mode #logo-light {
  display: none;
}

@media (max-width: 600px) {
  #logo-container img {
    max-width: 200px;
  }
}
.waveform {
  width: 100%;
  height: 40px;
  background: #f1f1f1;
  border-radius: 5px;
  margin: 10px 0;
}

.wave-btn {
  border: none;
  background: none;
  font-size: 18px;
  cursor: pointer;
}
#profile-history {
  background: #f0f0f0;
  color: #000;
}

body.dark-mode #profile-history {
  background: #333;
  color: #eee;
}
header .container {
  background: #fff;
}

body.dark-mode header .container {
  background: #111;
  color: #eee;
}
@media (max-width: 600px) {
  .top-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-dropdown {
    width: 100%;
    display: flex;
    justify-content: flex-end;
  }

  #search-container {
    flex-direction: column;
    align-items: stretch;
  }

  #search-container input {
    width: 100%;
  }

  #search-container button {
    width: 100%;
  }
}

.hidden {
  display: none;
}
.hidden {
  display: none !important;
}
#toggle-search-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: #666;
  cursor: pointer;
  padding: 4px;
  margin-right: 10px;
  display: inline-flex;
  align-items: center;
}

#toggle-search-btn:hover {
  color: #000;
}
.toggle-actions-btn {
  background-color: #e0e0e0;
  border: 1px solid #999;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 14px;
  color: #333;
  margin-top: 6px;
  margin-bottom: 4px;
  cursor: pointer;
  display: inline-block;
  line-height: 1;
}
/* Mini icon-only button for top row */
.icon-only-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  color: #444;
}

.icon-only-btn:hover {
  color: #000;
  transform: scale(1.1);
}

/* Smaller toggle-actions button */
.toggle-actions-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  margin-top: 6px;
  color: #555;
}

.toggle-actions-btn:hover {
  color: #000;
}
@media (max-width: 600px) {
  /* Stack top controls vertically */
  .top-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px;
  }

  /* Ensure header elements wrap or stack */
  .header-container,
  .profile-dropdown {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .profile-dropdown {
    justify-content: flex-start;
  }

  /* Logo + header button spacing */
  #logo-container,
  .profile-dropdown button,
  .icon-only-btn,
  #toggle-theme {
    margin-bottom: 5px;
  }

  /* Ensure search input fits screen width */
  #search-container input,
  #search-container button {
    width: 100%;
    box-sizing: border-box;
  }

  /* Prevent posts and replies from overflowing */
  .post-card,
  .voice-reply-wrapper {
    width: 100%;
    box-sizing: border-box;
  }
}
.transcript-output {
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  padding: 8px 12px;
  margin-top: 6px;
  font-size: 14px;
  font-style: italic;
  color: #333;
  border-radius: 4px;
  white-space: pre-wrap;
}
.post-card {
  border: 2px solid #999;
  background-color: #fff;
  padding: 12px;
  margin-bottom: 15px;
  box-shadow: 2px 2px 4px #ccc;
}

.voice-reply-wrapper {
  border: 1px solid #aaa;
  background-color: #fdfdfd;
  padding: 10px;
  margin: 8px 0;
  border-left: 4px solid #999;
}
.post-card,
.voice-reply-wrapper {
  font-family: Tahoma, Verdana, sans-serif;
}
.highlight {
  background-color: yellow;
  transition: background-color 2s ease;
}
.notification-badge {
  background: red;
  color: white;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
  font-size: 0.75em;
  margin-left: 6px;
  display: none;
}
.menu-badge {
  position: absolute;
  top: 0px;
  right: 0px;
  background-color: red;
  color: white;
  font-size: 10px;
  font-weight: bold;
  border-radius: 50%;
  padding: 2px 5px;
  line-height: 1;
  z-index: 10;
}

.hidden {
  display: none !important;
}
.speed-btn {
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 4px 8px;
  margin-left: 5px;
  cursor: pointer;
}
.auth-cancel {
  background: transparent;
  color: #900;
  border: none;
  font-size: 0.9em;
  margin-top: 8px;
  cursor: pointer;
  text-decoration: underline;
}
.auth-cancel:hover {
  color: #c00;
}
#toggle-post-btn {
  padding: 8px 16px;
  background: #b30000;
  color: white;
  border: none;
  border-radius: 6px;
  margin: 10px 0;
  cursor: pointer;
}
.trigger-warning-icon {
  color: #cc0000;
  margin-right: 5px;
  font-weight: bold;
  cursor: help;
}
.mark-trigger-btn {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 0.8em;
  background: transparent;
  border: none;
  color: red;
  cursor: pointer;
}
.tiny-trigger-btn {
  font-size: 14px;
  padding: 4px 6px;
  background-color: transparent;
  color: #b30000;
  border: none;
  cursor: pointer;
  vertical-align: middle;
  margin: 0 4px;
  display: inline;
}
.tiny-trigger-btn:hover {
  color: #800000;
}
.trigger-warning-icon {
  cursor: help;
}
/* DM styling */
.dm-received {
  background-color: #e0f3ff; /* light blue */
  border: 1px solid #99d0ff;
  border-radius: 8px;
  padding: 8px;
  margin: 10px 0;
}

.dm-sent {
  background-color: #ffe0e0; /* light red */
  border: 1px solid #ff9999;
  border-radius: 8px;
  padding: 8px;
  margin: 10px 0;
}
.keep-forever-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 5px;
    font-size: 12px;
    color: #555;
}

.keep-forever-container input[type="checkbox"] {
    transform: scale(0.8);
    margin-right: 5px;
    cursor: pointer;
}


#toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
}

.toast {
  background-color: #333;
  color: #fff;
  padding: 12px 18px;
  margin-top: 10px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateX(100%);
  animation: slideIn 0.3s forwards, fadeOut 0.3s 3s forwards;
  font-family: sans-serif;
  max-width: 300px;
}

.toast.success { background-color: #28a745; }
.toast.error   { background-color: #dc3545; }
.toast.info    { background-color: #007bff; }

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}
#local-ad-billboard {
  position: fixed;
  right: 0;
  top: 0;
  width: 600px;
  height: 100vh;
  background: #f0f0f0;
  border-left: 2px solid #ccc;
  overflow: hidden;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-carousel {
  display: flex;
  flex-direction: column;
  animation: scrollAds 15s linear infinite;
}

.ad-item {
  padding: 15px;
  border-bottom: 1px solid #ccc;
  background: white;
  text-align: center;
  font-weight: bold;
}

@keyframes scrollAds {
  0% { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}

/* Mobile View: make it a bottom banner */
@media (max-width: 768px) {
  #local-ad-billboard {
    position: fixed;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    height: 80px;
    border-left: none;
    border-top: 2px solid #ccc;
  }

  .ad-carousel {
    flex-direction: row;
    animation: scrollAdsHorizontal 20s linear infinite;
  }

  .ad-item {
    min-width: 200px;
    border-bottom: none;
    border-right: 1px solid #ccc;
  }

  @keyframes scrollAdsHorizontal {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
  }
}
.share-popup {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 2px solid black;
  padding: 20px;
  z-index: 9999;
  width: 300px;
  box-shadow: 2px 2px 8px gray;
  border-radius: 8px;
}

.share-popup-content {
  text-align: center;
}

.share-options a {
  display: inline-block;
  margin: 8px;
  text-decoration: none;
  font-weight: bold;
}
.emoji-reactions {
  display: none;
  margin-top: 5px;
}
.right-actions .toggle-actions-btn {
  cursor: pointer;
}
.emoji-reaction-counts {
  margin-top: 4px;
  font-size: 14px;
}
.emoji-reaction-counts span {
  margin-right: 6px;
}
/* Right-hand fixed about/info box */
.about-box {
  position: fixed;
  top: 100px;
  right: 20px;
  width: 600px;
  background: #fff;
  border: 2px solid #ccc;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 1000;
  font-size: 14px;
}

.about-box .about-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.about-box .close-about {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #c00;
}

.about-box ul.community-rules {
  padding-left: 20px;
  margin-top: 8px;
}

.about-box ul.community-rules li {
  margin-bottom: 6px;
}
.main-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
}

.main-left {
  flex: 1;
  min-width: 60%;
}

.main-right {
  width: 300px;
}

.about-box {
  background-color: #fffdfd;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 1px 2px 6px rgba(0, 0, 0, 0.1);
  font-size: 14px;
}

.about-box h3, .about-box h4 {
  margin-top: 0.5em;
  color: #a00;
}

.about-box p, .about-box li {
  line-height: 1.5;
  margin-bottom: 8px;
}

.about-list {
  padding-left: 1.2em;
  margin-top: 0;
}

.close-button {
  float: right;
  border: none;
  background: none;
  font-size: 18px;
  cursor: pointer;
  color: #c00;
}
.site-footer {
  background-color: #f9f9f9;
  padding: 10px 0;
  text-align: center;
  font-size: 13px;
  color: #333;
  border-top: 1px solid #ccc;
}

.site-footer a {
  color: #444;
  text-decoration: none;
  margin: 0 5px;
}

.site-footer a:hover {
  text-decoration: underline;
}
.nav-button {
  padding: 6px 12px;
  font-size: 0.9em;
  background-color: #2e8b57;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.nav-button:hover {
  background-color: #256b45;
}
html, body {
  overflow-x: hidden;
}
.reply-text,
.reply-content,
.comment-content,
.text-reply-list li {
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

a {
  word-break: break-word;
  overflow-wrap: break-word;
}

.voice-reply-wrapper,
.post-card {
  max-width: 100%;
  box-sizing: border-box;
}
.reply-text,
.reply-content,
.comment-content,
.text-reply-list li {
  word-break: break-all;
}
.post-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  margin-top: 10px;
  border-radius: 6px;
}
.trigger-blur-container {
  position: relative;
  display: inline-block;
  width: 100%;
  height: auto;
  cursor: pointer;
}

.trigger-blur-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  filter: blur(15px);
  border-radius: 8px;
  transition: filter 0.3s ease;
}

.trigger-warning-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 300px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  text-align: center;
}
.image-container {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.image-container img {
  display: block;
  width: 100%;
  height: auto;
  filter: blur(8px);
  transition: filter 0.5s ease;
}

.image-container img.loaded {
  filter: none;
}

.image-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  font-size: 20px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
.tag-select-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 5px;
  margin-bottom: 10px;
}

.tag-select-wrapper input[type="text"] {
  width: 140px;
  padding: 3px 6px;
  font-size: 12px;
  text-align: center;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.tag-select-wrapper select {
  width: 200px;
  padding: 5px;
  font-size: 14px;
  border-radius: 4px;
}
#google_translate_element {
  font-size: 14px;
  border: 1px solid #ccc;
  padding: 6px;
  border-radius: 6px;
  display: inline-block;
  background: white;
}
