/*@import url("https://fonts.googleapis.com/css?family=Roboto&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500&display=swap");
@import url("http://fonts.googleapis.com/css?family=PT+Sans&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Agbalumo&display=swap');*/
.checkbox{display:flex;align-items:center;gap:8px}
input[type=checkbox]{width:16px;height:16px}
.small{font-size:12px;color:var(--muted)}
.loader {
  position: fixed;
  visibility: visible;
  opacity: 1;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-color-b);
  transition: opacity 1.75s ease, visibility 1.75s ease;
  z-index: 1000;
}
.loader--hidden {
  opacity: 0;
  visibility: hidden;
}
  .app-update-banner {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100vw - 24px), 520px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.94);
    color: #f8fafc;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.24);
    z-index: 1100;
  }
  .app-update-banner[hidden] {
    display: none;
  }
  .app-update-banner__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
  }
  .app-update-banner__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .app-update-banner__button,
  .app-update-banner__dismiss {
    border: 0;
    border-radius: 999px;
    padding: 8px 12px;
    cursor: pointer;
  }
  .app-update-banner__button {
    background: #f8fafc;
    color: #111827;
    font-weight: 600;
  }
  .app-update-banner__dismiss {
    background: rgba(248, 250, 252, 0.16);
    color: #f8fafc;
  }
.loader::after {
  content: "";
  width: 75px;
  height: 75px;
  border: 15px solid #dddddd;
  border-top-color: var(--primary);
  border-radius: 50%;
    .app-update-banner {
      top: 10px;
      align-items: flex-start;
      flex-direction: column;
    }
    .app-update-banner__actions {
      width: 100%;
      justify-content: flex-end;
    }
  -webkit-animation: loading 1.75s linear infinite;
  -moz-animation: loading 1.75s linear infinite;
  -o-animation: loading 1.75s linear infinite;
  animation: loading 1.75s linear infinite;
}
@keyframes loading {
  from {
    transform: rotate(0turn);
  }
  to {
    transform: rotate(1turn);
  }
}
button:disabled,
button[disabled]{
  background-color: #cccccc;
  cursor: not-allowed;
}
@media only screen and (max-width:650px){
  .loader{display: none;}
  /* .chat-container .setuser .dim{display: none!important} */
  .chat-container{height: 100svh !important; margin: 0 !important; max-width: none !important; display: flex !important; flex-direction: column !important;}
  .chat-messages{max-height:none !important;}
  .chat-header{flex-grow: 0 !important;}
  .chat-main{flex: 1 !important;}
  body{margin: 0 !important; padding: 0 !important;}

  .chat-container{border-radius: 0 !important;}
  .chat-main{grid-template-columns: 1fr !important;}
  /* Sidebar becomes an off-canvas drawer on mobile */

  /* .chat-sidebar{display:block !important;} */

  /* Tighter mobile layout */
  body{font-size: 15px !important;}

  .chat-header{
    padding: 10px 10px !important;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
  }

  .sidebar-toggle{
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: var(--border);
    background: rgba(255, 255, 255, 0.70);
    color: #4a4a55;
    cursor: pointer;
    flex: 0 0 auto;
  }
  .sidebar-toggle:active{transform: translateY(1px);}
  .sidebar-toggle i{font-size: 18px;}

  .logo{
    width: 64px;
    height: 26px;
    background-size: contain;
    flex: 0 0 auto;
  }
  .audio-player{
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
  }
  .songs-feed{
    padding-left: 44px;
    padding-top: 10px;
    padding-right: 8px;
    border-radius: 16px;
    font-size: 12px;
  }
  #playPause{
    padding: 10px 12px;
    border-radius: 16px;
  }
  #playPause .icon i{font-size: 1.1em;}

  .chat-messages{
    padding: 10px 10px !important;
    gap: 8px;
  }
  .message{
    padding: 8px 10px;
    border-radius: 14px;
    max-width: min(92%, 640px);
    font-size: 13px;
  }
  .chat-messages .message .meta{
    font-size: 12px;
    margin-bottom: 3px;
  }
  .chat-messages .metaDate{
    margin: 6px 0;
    grid-gap: 10px;
  }
  .bot_msg,
  .bot_msg_upload{
    padding: 6px 10px;
    border-radius: 16px;
    font-size: 12px;
  }

  .msger-inputarea{
    padding: 8px 10px;
    gap: 8px;
  }
  .msger-inputarea *{padding: 8px;}
  .msger-input{
    height: 40px;
    padding: 0 12px;
  }
  .msger-send-btn{
    height: 40px;
    padding: 0 14px;
  }

  .chat-sidebar{
    position: fixed;
    top: 0;
    left: 0;
    height: 100svh;
    width: min(84vw, 320px);
    transform: translateX(-105%);
    transition: transform 0.50s ease;
    z-index: 20;
    box-shadow: var(--shadow-lg);
    padding-top: calc(16px + env(safe-area-inset-top));
  }
  body.sidebar-open .chat-sidebar{transform: translateX(0);}

  .sidebar-overlay{
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.45);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    z-index: 19;
  }
  .sidebar-overlay[hidden]{display:none;}

  .setuser{
    min-width: calc(100vw - 24px);
    padding: 14px 14px;
  }
  .setuser p.header{
    font-size: 18px;
    margin: 0 0 8px;
  }
  .setuser label.checkbox{
    padding: 8px 10px;
    gap: 8px;
  }
  .setuser input[type=text],
  .setuser input[type=password],
  .setuser input[type=email],
  .setuser input:not([type]){
    height: 40px;
    border-radius: 10px;
  }
 
}
:root {
  --dark-color-a: #eee;
  --dark-color-b: #1a1e38;
  --light-color: #e6e9ff;
  --success-color: #5cb85c;
  --error-color: #d9534f;
  --body-bg: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  --border: 1px solid rgba(15, 23, 42, 0.10);
  --msger-bg: #fff;

  /* App theme (derived from existing palette) */
  --text: #0f172a;
  --muted: #64748b;
  --surface: #ffffff;
  --surface-2: #f6f7fb;
  --ring: rgba(134, 110, 162, 0.35);
  --primary: rgba(134, 110, 162, 0.92);
  --primary-2: rgb(171 155 189);
  --bubble-in: #ffffff;
  --bubble-out: rgba(134, 110, 162, 0.14);
  --shadow-lg: 0 18px 50px rgba(2, 6, 23, 0.14);
  --shadow-sm: 0 6px 18px rgba(2, 6, 23, 0.10);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(134, 110, 162, 0.22);
}
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  color: var(--text);
  background-image: var(--body-bg);
  min-height: 100vh;
  margin: 0;
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

html, body {
  height: 100%;
}

ul {
  list-style: none;
}
.users-panel {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

#usersList,
#guestsList {
  list-style: none;
  margin: 0;
  padding: 0;
}

#usersList {
  flex: 0 0 auto;
}

#guestsList {
  flex: 0 0 auto;
}
.btn {
  cursor: pointer;
  padding: 3px 12px;
  background: rgb(0 2 196 / 25%);
  color: #fff;
  font-weight: bold;
  border: solid 1px #3b60e1;
}
.logo{
  background: url("/img/roomie.svg?v=8");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  width: 85px;
  height: 33px;
}
/* Chat Page */
.chat-container {
  width: 100%;
  max-width: 980px;
  margin: 0;
  height: calc(100vh - 48px);
  border: var(--border);
  border-radius: 14px;
  background: var(--msger-bg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.chat-header {
  background: rgba(238, 238, 238, 0.85);
  color: #4a4a55;
  padding: 12px 14px;
  border-bottom: var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  /* z-index: 5; */
  backdrop-filter: blur(10px);
}

/* Mobile menu button (enabled in the mobile media query) */
.sidebar-toggle{display:none;}
.chat-main {
  display: grid;
  grid-template-columns: 280px 1fr;
  flex: 1 1 auto;
  min-height: 0;
}
.chat-sidebar {
	background: var(--surface-2);
	color: #4a4a55;
	padding: 16px 14px 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
	border-right: var(--border);
}

/* Make the user list scroll while keeping logout pinned */
.chat-sidebar .users-panel {
  /* flex: 1 1 auto; */
  min-height: 0;
  overflow-y: auto;
}
.chat-sidebar h2 {
  font-size: 20px;
  background: rgba(0, 0, 0, 0.1);
  padding: 10px;
  margin-bottom: 20px;
}
.chat-sidebar h3 {
  margin-bottom: 15px;
  font-size: inherit;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.chat-sidebar .online-users-title {
  justify-content: flex-start;
  gap: 8px;
}
.chat-sidebar .online-users-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #4a4a55;
}
.chat-sidebar .online-users-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}
.chat-sidebar .sidebar-divider {
  height: 1px;
  background: rgba(15, 23, 42, 0.12);
  margin: 4px 0 8px;
}
.chat-sidebar .rooms-title {
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}
.chat-sidebar .rooms-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: #4a4a55;
}
.chat-sidebar .rooms-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}
.chat-sidebar ul li {
  padding: 8px 10px;
  border-radius: 10px;
  color: #334155;
  line-height: 1.1;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.55);
}
.chat-sidebar ul li:hover {
  background: rgba(134, 110, 162, 0.08);
}

/* Active room highlight (only affects the Rooms list) */
#rooms li.is-active {
  background: var(--bubble-out);
  border-color: var(--ring);
  color: var(--text);
}

#rooms li.is-active:hover {
  background: rgba(134, 110, 162, 0.18);
}
.upload-icon{
	background-image: url("/img/songs.png");
	background-repeat:no-repeat;
	width: 64px;
	height: 64px;
}
.logout-icon{
  background-image: url("/img/tune.png");
	background-repeat:no-repeat;
  width: 32px;
	height: 32px;
  border: none;
  margin-top: auto;
  margin-bottom: 0;
  align-self: flex-start;
  background-color: transparent;
  cursor: pointer;
  border-radius: 10px;
}

.profile-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  z-index: 20;
}

.profile-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 48px));
  padding: 18px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
  z-index: 21;
  isolation: isolate;
}

.profile-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: var(--border);
  background: rgba(255, 255, 255, 0.85);
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  padding: 0;
  z-index: 1;
}

.profile-modal__close:hover {
  color: var(--text);
}

.profile-modal__close:active {
  transform: translateY(1px);
}

.profile-modal[hidden],
.profile-modal-overlay[hidden] {
  display: none;
}

.profile-modal__title {
  margin: 0 0 12px;
  text-align: center;
  color: #334155;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.profile-modal__details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.profile-modal__line {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.profile-modal__label {
  font-weight: 750;
  color: #334155;
}

.profile-modal__delete {
  cursor: pointer;
  width: 100%;
  height: 44px;
  padding: 0 16px;
  background: var(--error-color);
  color: #fff;
  font-weight: 800;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 12px;
  transition: transform 0.12s ease, filter 0.15s ease;
}

.profile-modal__delete:active {
  transform: translateY(1px);
}

.profile-modal__confirm[hidden] {
  display: none;
}

.profile-modal__confirm {
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(248, 250, 252, 0.95);
}

.profile-modal__confirm-text {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.4;
}

.profile-modal__confirm-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.profile-modal__confirm-cancel,
.profile-modal__confirm-delete {
  flex: 1 1 0;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  font-weight: 700;
  cursor: pointer;
}

.profile-modal__confirm-cancel {
  background: #fff;
  color: #334155;
}

.profile-modal__confirm-delete {
  background: var(--error-color);
  color: #fff;
}

.profile-modal__logout {
  margin-top: 12px;
	width: auto;
  min-width: 32px;
  height: 32px;
  border: none;
  background-color: transparent;
  background-image: url("/img/exit.png");
  background-repeat: no-repeat;
  background-position: left center;
  padding: 0 0 0 40px;
  cursor: pointer;
  border-radius: 10px;
}
.chat-messages {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 14px;
  background: var(--surface-2);
  gap: 10px;
  scroll-behavior: smooth;
}

/* Existing renderer appends <br/> after every message; modern spacing uses gap instead */
.chat-messages br {
  display: none;
}

.message {
  background: var(--bubble-in);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 16px;
  padding: 10px 12px;
  color: #0f172a;
  font-size: 14px;
  opacity: 1;
  margin: 0;
  max-width: min(78%, 640px);
  box-shadow: var(--shadow-sm);
}
.right {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.right .message {
  background: var(--bubble-out);
  border-color: rgba(134, 110, 162, 0.22);
}

.chat-messages .message .meta {
  font-size: 13px;
  color: #334155;
  opacity: 1;
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.chat-messages .message .text {
  color: #0f172a;
  line-height: 1.35;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.chat-messages .metaDate {
  color: var(--muted);
  display: grid;
  width: 100%;
  align-items: center;
  grid-template-columns: minmax(20px, 1fr) auto minmax(20px, 1fr);
  grid-gap: 12px;
  font-size: 12px;
  margin: 8px 0;
}
.chat-messages .metaDate:before,
.chat-messages .metaDate:after {
  content: "";
  border-top: 1px solid rgba(15, 23, 42, 0.10);
}
.chat-messages .message .meta span {
  color: #777;
  font-size: 13px;
}
.bot_msg {
  font-size: 13px;
  text-align: center;
  width: auto;
  margin: auto;
  border: 1px solid rgba(15, 23, 42, 0.10);
  padding: 7px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.70);
  color: #334155;
  box-shadow: var(--shadow-sm);
}
.bot_msg_upload {
  font-size: 13px;
  text-align: center;
  width: auto;
  margin: auto;
  border: 1px solid rgba(15, 23, 42, 0.10);
  padding: 7px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.70);
  color: #334155;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.chat-empty-state {
  font-size: 13px;
  text-align: center;
  width: min(520px, 100%);
  margin: auto;
  padding: 10px 14px;
  border-radius: 20px;
  border: var(--border);
  background: rgba(255, 255, 255, 0.70);
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.upload_counter{
  border-radius: 10px;
  border: 1px solid #c95151;
  padding: 5px;
  background-color: #cbcce1;
  position: absolute;
  top: 0;
  right: 0;
  font-size: 11px;
}
.msger-inputarea * {
  padding: 10px;
  border: none;
  border-radius: 3px;
  font-size: 0.9em;
}
/* #goBack{
  display: none;
} */
.msger-inputarea {
  display: flex;
  padding: 12px 14px;
  border-top: var(--border);
  background: rgba(255, 255, 255, 0.92);
  gap: 10px;
  flex: 0 0 auto;
  position: sticky;
  bottom: 0;
  z-index: 1;
  backdrop-filter: blur(10px);
}
.msger-input {
  flex: 1;
  background: #f1f2f6;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  height: 44px;
  padding: 0 14px;
  color: var(--text);
}
.msger-input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.msger-input::placeholder {
  color: rgba(100, 116, 139, 0.95);
}
.msger-input:focus {
  border-color: rgba(134, 110, 162, 0.45);
  box-shadow: 0 0 0 3px rgba(134, 110, 162, 0.18);
}
.msger-send-btn {
  margin-left: 0;
  background: var(--primary);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.23s;
  opacity: 1;
  border-radius: 999px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(134, 110, 162, 0.28);
}
.msger-send-btn:hover {
  background: rgba(134, 110, 162, 1);
}
.msger-send-btn:active {
  transform: translateY(1px);
}
.login-span{
  text-decoration: none;
  text-shadow: none;
  color: var(--primary);
  cursor: pointer;
  font-weight: 700;
}
.link-spans{
  text-decoration: none;
  text-shadow: none;
  color: var(--primary);
  cursor: pointer;
  font-weight: 700;
}
.upload-wrapper{
  display: none;
}
/* Scope label styling to the modal (avoid impacting labels elsewhere) */
.setuser label {
  color: #111827;
}
.setuser label.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(134, 110, 162, 0.10);
  border: 1px solid rgba(134, 110, 162, 0.18);
  cursor: pointer;
  user-select: none;
}
.setuser label.checkbox input[type=checkbox] {
  accent-color: rgba(134, 110, 162, 0.95);
}
#file-chosen{
  margin-left: 0.3rem;
  font-family: sans-serif;
}
.setuser {
  z-index: 3;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  isolation: isolate;
  padding: 18px 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  width: min(400px, calc(100vw - 48px));
}

.setuser-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 12px;
  text-align: center;
}

.setuser-brand-logo {
  display: block;
  height: 54px;
  width: auto;
  max-width: 90%;
}

.setuser-brand-subtitle {
  margin: 0;
  width: 100%;
  font-size: 15px;
  font-weight: 650;
  color: var(--muted);
  text-align: center;
}

.setuser.is-compact-auth .setuser-brand .setuser-brand-subtitle {
  display: none;
}

.setuser-help-icon {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--muted);
  opacity: 0.95;
  pointer-events: auto;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.85);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  padding: 7px;
  z-index: 6;
}

.setuser-help-icon:hover {
  opacity: 1;
}

.setuser-help-icon:active {
  transform: translateY(1px);
}

.setuser-help-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.setuser .now-playing-preview {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 18px 18px;
  border-radius: inherit;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  box-shadow: none;
  z-index: 5;
  overflow: hidden;
  text-align: center;
}

.setuser .now-playing-preview::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 220px;
  background: radial-gradient(circle at 50% 0%, var(--ring) 0%, transparent 62%);
  z-index: 0;
}

.setuser .now-playing-preview > * {
  position: relative;
  z-index: 1;
}

.setuser .now-playing-preview[hidden] {
  display: none;
}

.setuser .now-playing-preview:not([hidden]) {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.setuser .now-playing-preview .now-playing-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.setuser .now-playing-preview .setuser-disclaimer {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: var(--border);
  background: rgba(255, 255, 255, 0.75);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  max-width: 340px;
}

.setuser .now-playing-track {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--text);
  width: 100%;
  max-width: 340px;
  padding: 12px 12px;
  border-radius: 14px;
  border: var(--border);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
}

#login-listener-preview,
#login-visitor-preview,
#login-rooms-preview,
#login-status-preview {
  width: 100%;
  max-width: 340px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 999px;
  border: var(--border);
  background: var(--bubble-out);
  color: var(--text);
  font-size: 13px;
}

#login-status-preview {
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
  font-weight: 750;
}

.setuser form {
  width: 100%;
}

.setuser .header {
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 6px;
}

.setuser .header .brand-logo-inline {
 display: inline-block;
    height: 1.3em;
  width: auto;
    vertical-align: -0.33em;
    margin: 0;
}
.status {
  display: block;
  margin: 10px 0 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(134, 110, 162, 0.26);
  background: var(--surface);
  box-shadow: var(--shadow-sm);

  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: #5d6476;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  z-index: 4;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

/* Don't show an empty status placeholder */
.status:empty {
  display: none;
}
.setuser input[type=text],
.setuser input[type=password],
.setuser input[type=email],
.setuser input:not([type]) {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  color: var(--text);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.setuser input::placeholder {
  color: rgba(100, 116, 139, 0.95);
}
.setuser input:focus {
  border-color: rgba(134, 110, 162, 0.38);
  box-shadow: 0 0 0 3px rgba(134, 110, 162, 0.14);
}
.setBTN{
  cursor: pointer;
  width: 100%;
  height: 44px;
  padding: 0 16px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  border: 1px solid rgba(134, 110, 162, 0.35);
  border-radius: 12px;
  transition: transform 0.12s ease, background 0.15s ease;
}
.setBTN:hover{background: rgba(134, 110, 162, 1);}
.setBTN:active{transform: translateY(1px);}
/* .Uploadbtn{
  cursor: pointer;
  padding: 10px 14px;
  background: var(--primary-2);
  color: #fff;
  font-weight: 800;
  border: 1px solid rgba(134, 110, 162, 0.35);
  border-radius: 12px;
  transition: transform 0.12s ease, filter 0.15s ease;
  margin-top: 6px;
}
.Uploadbtn:hover{filter: brightness(0.98);}
.Uploadbtn:active{transform: translateY(1px);}
.upload-status{
  font-size: 15px;
  color: var(--error-color);
} */
.forgotten-wrapper {
  display: none;
  flex-direction: column;
}
.register-wrapper{
  display: none;
  flex-direction: column;
  row-gap: 8px;
}
.newPass-wrapper{
  display: none;
  justify-content: space-between;
}
.login-wrapper{
  display: flex;
  flex-direction: column;
  row-gap: 8px;
}
.guest-wrapper{
   display: none;
  flex-direction: column;
  row-gap: 8px;
}

/* Consistent spacing inside modal forms */
.setuser .login-wrapper,
.setuser .register-wrapper,
.setuser .guest-wrapper,
.setuser .forgotten-wrapper,
.setuser .newPass-wrapper {
  row-gap: 10px;
}

.setuser.is-compact-auth .register-wrapper,
.setuser.is-compact-auth .forgotten-wrapper {
  padding-top: 4px;
}

.setuser p.header {
  width: 100%;
  text-align: center;
  padding: 0;
  margin: 0 0 10px;
  color: #334155;
  text-shadow: none;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.setuser .guest-wrapper p.small {
  margin: -6px 0 4px;
  padding: 0;
  font-size: 11px;
  line-height: 1.25;
  text-align: left;
  color: rgba(100, 116, 139, 0.95);
  font-style: italic;
}
.setuser p.nickError {
  margin-top: 10px;
  text-shadow: none;
  color: #b91c1c;
  margin-bottom: 0px;
  padding: 0px;
  width: 100%;
  text-align: center;
  font-size: 16px;
  font-style: italic;
}
.dim {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 23, 0.55);
  opacity: 0.45;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  z-index: 1;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
}
.setuser .login-info-span{
    margin-top: 7px;
    font-size: 14px;
    color: var(--muted);
    text-shadow: none !important;
    padding: 0 0 5px!important;
}
.setuser .forgotten-info-span{
  font-size: 13px;
  color: var(--muted);
  text-shadow: none !important;
}

.setuser .login-info-span,
.setuser .forgotten-info-span,
.setuser #goBack {
  text-align: center;
}

.setuser .setuser-footer {
  display: grid;
  justify-items: center;
  row-gap: 10px;
  margin-top: 12px;
}

.setuser .login-info-span a {
  color: var(--muted);
  text-decoration: none;
}

.setuser .login-info-span a:hover,
.setuser .login-info-span a:focus-visible {
  color: var(--text);
}

.setuser .link-spans:hover,
.setuser .login-span:hover {
  text-decoration: none;
}
.audio-player{
  width: 243px;
  position: relative;
  display: flex;
}
#audioStream{display: none;}
.songs-feed {
  text-align: left;
  border: #c2b3b3 solid 1px;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  flex: 1;
  padding-left: 48px;
  padding-top: 12px;
  padding-right: 9px;
  border-radius: 19px;
  min-width: -webkit-fill-available;
  background-color: #d7d8dd;
  color: #30548b;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: -webkit-fill-available;
}
#playPause {
  background-color: rgb(171 155 189);
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 12px 14px;
  cursor: pointer;
  outline: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
#playPause:hover .icon {
  transform: scale(1.2);
}
#playPause .icon {
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.3s ease-in-out;
}
#playPause .icon i {
  font-size: 1.2em;
}
#folder-size{
  margin-top: 10px;
  background: rgba(134, 110, 162, 0.10);
  border: 1px solid rgba(134, 110, 162, 0.18);
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: #334155;
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}