/* ══════════════════════════════════════
   FAB
══════════════════════════════════════ */
#dropLyricFAB {
  position: fixed; top: 68px; right: 14px; bottom: auto; left: auto;
  transform: none; z-index: 400;
  display: none; align-items: center; gap: 5px;
  padding: 7px 12px 7px 10px; border-radius: 50px;
  background: var(--gold); color: var(--bg);
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 0.6rem; letter-spacing: 1.5px; text-transform: uppercase;
  border: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
}
#dropLyricFAB.fab-visible    { display: flex; }
#dropLyricFAB.hidden-fab     { opacity: 0; pointer-events: none; transform: translateY(8px); }
#dropLyricFAB.scroll-hidden  { opacity: 0; pointer-events: none; transform: translateY(6px); }
#dropLyricFAB:hover  { transform: translateY(-2px) scale(1.03); }
#dropLyricFAB:active { transform: scale(0.96); }

/* ══════════════════════════════════════
   BACK TO TOP
══════════════════════════════════════ */
#margoScrollTop {
  position: fixed; bottom: 80px; right: 16px; z-index: 201;
  display: none; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: none; padding: 0; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#margoScrollTop.visible { display: flex; }
.scroll-top-ring {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(232,197,71,0.55);
  background: rgba(7,6,10,0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.1rem; line-height: 1;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5); transition: all 0.2s ease;
}
#margoScrollTop:hover .scroll-top-ring {
  border-color: rgba(232,197,71,0.9);
  background: rgba(232,197,71,0.12);
  transform: translateY(-2px);
}
.scroll-top-label {
  font-family: 'Lora', serif; font-size: 0.6rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(232,197,71,0.8); line-height: 1; transition: color 0.2s;
}
#margoScrollTop:hover .scroll-top-label { color: var(--gold); }
.scroll-top:not(#margoScrollTop),
#scrollToTopBtn { display: none !important; }

/* ══════════════════════════════════════
   FLOATING NEW-POSTS BAR
══════════════════════════════════════ */
.new-posts-bar-wrap {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.new-posts-bar-wrap.visible {
  opacity: 1;
  pointer-events: all;
  animation: margoGlow 2.4s ease-in-out infinite;
}
.new-posts-bar-pill {
  background: rgba(7,6,10,0.92);
  border: 1px solid rgba(232,197,71,0.35);
  border-radius: 50px;
  color: var(--gold);
  padding: 10px 20px;
  font-family: 'Lora', serif;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 20px rgba(232,197,71,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
@keyframes margoPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.85)} }
@keyframes margoGlow { 0%,100%{box-shadow:0 8px 32px rgba(0,0,0,0.6),0 0 20px rgba(232,197,71,0.08)} 50%{box-shadow:0 8px 32px rgba(0,0,0,0.6),0 0 28px rgba(232,197,71,0.18)} }
.toast { display: none !important; }

/* ══════════════════════════════════════
   INPUTS
══════════════════════════════════════ */
input, textarea {
  width: 100%; padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px; color: var(--text);
  font-family: 'Lora', serif; font-size: 0.95rem;
  transition: all 0.2s; -webkit-appearance: none; appearance: none;
}
input:focus, textarea:focus {
  outline: none;
  border-color: rgba(232,197,71,0.38);
  background: rgba(232,197,71,0.03);
  box-shadow: 0 0 0 3px rgba(232,197,71,0.07);
}
input::placeholder { color: rgba(255,255,255,0.22); }
@media(max-width:768px){ input,textarea{ font-size:16px!important; } }

textarea#textInput {
  min-height: 120px; resize: none;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  font-family: 'Lora', serif;
  font-size: 1.25rem; line-height: 1.7; color: #fff; padding: 20px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  letter-spacing: -0.01em;
}
  min-height: 90px; resize: none;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  font-family: 'Lora', serif;
  font-style: normal;
  font-size: 1.08rem; line-height: 1.65; color: #fff; padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
textarea#textInput::placeholder { color: rgba(255,255,255,0.18); }
textarea#textInput:focus {
  border-color: rgba(232,197,71,0.32);
  background: rgba(232,197,71,0.025);
  box-shadow: 0 0 0 4px rgba(232,197,71,0.06), inset 0 1px 0 rgba(232,197,71,0.06);
}
.char-count {
  text-align: right; font-family: 'Lora', serif;
  font-size: 0.6rem; color: rgba(255,255,255,0.22);
  margin-top: -10px; font-weight: 700; letter-spacing: 0.5px;
}
.hint {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.95rem; color: rgba(255,255,255,0.3); line-height: 1.5;
}

/* ══════════════════════════════════════
   MODALS
══════════════════════════════════════ */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.88);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 1100; padding: 0;
  backdrop-filter: blur(16px) saturate(0.8);
  animation: modalFadeIn 0.18s ease forwards;
}
@media (max-width: 519px) {
  .modal-sheet {
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: none;
  }
  .modal { align-items: flex-end; padding: 0; }
}
@media(min-width:520px) { .modal { align-items: center; padding: 16px; } }
@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal.hidden { display: none; }
body.modal-open { overflow: hidden !important; }

.modal-sheet {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom: none; border-radius: 28px 28px 0 0;
  width: 100%; max-width: 480px;
  overflow: hidden; display: flex; flex-direction: column;
  max-height: 96dvh;
  box-shadow: 0 -8px 60px rgba(0,0,0,0.7), 0 0 0 1px rgba(232,197,71,0.05) inset;
  animation: sheetSlideUp 0.32s cubic-bezier(0.16,1,0.3,1);
}
@media(min-width:520px) {
  .modal-sheet {
    border-radius: 24px; border-bottom: 1px solid rgba(255,255,255,0.07);
    animation: sheetFadeIn 0.28s cubic-bezier(0.16,1,0.3,1);
    max-height: 92dvh;
  }
}
@keyframes sheetSlideUp {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes sheetFadeIn {
  from { transform: translateY(16px) scale(0.98); opacity: 0; }
  to   { transform: translateY(0) scale(1);       opacity: 1; }
}
.modal-top {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(232,197,71,0.03) 0%, transparent 100%);
}
.modal-title {
  font-family: 'Lora', serif;
  font-size: 1rem; font-weight: 400;
  letter-spacing: 3px; text-transform: uppercase;
  background: linear-gradient(90deg, #ffffff 30%, #E8C547 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.modal-close {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.38); width: 30px; height: 30px; border-radius: 50%;
  font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.18s; line-height: 1;
}
.modal-close:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.2); }
.modal-body {
  padding: 18px 20px; overflow-y: auto; flex: 1;
  display: flex; flex-direction: column; gap: 10px;
  scrollbar-width: none;
}
.modal-body::-webkit-scrollbar { display: none; }
.modal-footer {
  padding: 12px 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column; gap: 8px; flex-shrink: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.3) 0%, transparent 100%);
}
@media(min-width:520px) { .modal-footer { padding-bottom: 14px; } }

.field-label {
  font-family: 'Lora', serif; font-size: 0.6rem; font-weight: 700;
  color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 3px;
  margin-bottom: -4px;
}
  font-family: 'Lora', serif; font-size: 0.6rem; font-weight: 700;
  color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 2px;
}

/* ══════════════════════════════════════
   VIBE BUTTONS
══════════════════════════════════════ */
.emotion-grid {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  gap: 8px;
  padding: 4px 0 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.emotion-grid::-webkit-scrollbar { display: none; }
.emotion-btn {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 10px 4px 9px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03); color: rgba(255,255,255,0.55);
  font-family: 'Lora', serif; font-size: 0.7rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s var(--ease-out); text-align: center;
}
.emotion-btn:hover {
  background: rgba(255,255,255,0.08); color: #fff;
  transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.emotion-btn[data-emotion="Love"].active       { background:rgba(255,107,157,0.15); border-color:rgba(255,107,157,0.5); color:#FF6B9D; box-shadow:0 0 16px rgba(255,107,157,0.15); }
.emotion-btn[data-emotion="Heartbreak"].active { background:rgba(255,80,80,0.15);   border-color:rgba(255,80,80,0.5);   color:#ff6060; box-shadow:0 0 16px rgba(255,80,80,0.15);   }
.emotion-btn[data-emotion="Hope"].active       { background:rgba(107,140,255,0.15); border-color:rgba(107,140,255,0.5); color:#7B9FFF; box-shadow:0 0 16px rgba(107,140,255,0.15); }
.emotion-btn[data-emotion="Nostalgia"].active  { background:rgba(232,197,71,0.14);  border-color:rgba(232,197,71,0.5);  color:#E8C547; box-shadow:0 0 16px rgba(232,197,71,0.12);  }
.emotion-btn[data-emotion="Healing"].active    { background:rgba(74,222,128,0.13);  border-color:rgba(74,222,128,0.45); color:#4ade80; box-shadow:0 0 16px rgba(74,222,128,0.12);  }
.emotion-btn[data-emotion="Joy"].active        { background:rgba(255,200,71,0.14);  border-color:rgba(255,200,71,0.5);  color:#ffc847; box-shadow:0 0 16px rgba(255,200,71,0.12);  }
.emotion-btn[data-emotion="Rage"].active       { background:rgba(255,100,60,0.15);  border-color:rgba(255,100,60,0.5);  color:#FF6440; box-shadow:0 0 16px rgba(255,100,60,0.15);  }
.emotion-btn[data-emotion="Loneliness"].active { background:rgba(160,160,255,0.14); border-color:rgba(160,160,255,0.45);color:#a0a0ff; box-shadow:0 0 16px rgba(160,160,255,0.12); }
.emotion-btn[data-emotion="SendIt"].active     { background:rgba(0,229,200,0.13);   border-color:rgba(0,229,200,0.5);   color:#00e5c8; box-shadow:0 0 16px rgba(0,229,200,0.14);   }
.emotion-btn[data-emotion="LetOut"].active     { background:rgba(200,100,255,0.13); border-color:rgba(200,100,255,0.5); color:#c864ff; box-shadow:0 0 16px rgba(200,100,255,0.14); }
.emotion-btn[data-emotion="Love"]:hover       { border-color:rgba(255,107,157,0.28); color:#FF6B9D; }
.emotion-btn[data-emotion="Heartbreak"]:hover { border-color:rgba(255,80,80,0.28);   color:#ff6060; }
.emotion-btn[data-emotion="Hope"]:hover       { border-color:rgba(107,140,255,0.28); color:#7B9FFF; }
.emotion-btn[data-emotion="Nostalgia"]:hover  { border-color:rgba(232,197,71,0.32);  color:#E8C547; }
.emotion-btn[data-emotion="Healing"]:hover    { border-color:rgba(74,222,128,0.28);  color:#4ade80; }
.emotion-btn[data-emotion="Joy"]:hover        { border-color:rgba(255,200,71,0.32);  color:#ffc847; }
.emotion-btn[data-emotion="Rage"]:hover       { border-color:rgba(255,100,60,0.28);  color:#FF6440; }
.emotion-btn[data-emotion="Loneliness"]:hover { border-color:rgba(160,160,255,0.28); color:#a0a0ff; }
.emotion-btn[data-emotion="SendIt"]:hover     { border-color:rgba(0,229,200,0.28);   color:#00e5c8; }
.emotion-btn[data-emotion="LetOut"]:hover     { border-color:rgba(200,100,255,0.28); color:#c864ff; }

/* ══════════════════════════════════════
   RESULT / GUESS / LISTEN
══════════════════════════════════════ */
.result-msg {
  padding: 13px; border-radius: 12px; font-weight: 600; font-size: 0.82rem;
  line-height: 1.4; text-align: center;
}
.result-msg.hidden { display: none; }
.result-success { background: var(--success-faint); border: 1px solid var(--success-border); color: var(--success); }
.result-error   { background: rgba(255,100,100,0.08); border: 1px solid rgba(255,100,100,0.28); color: #ff6464; }
.result-partial { background: var(--partial-faint); border: 1px solid var(--partial-border); color: var(--partial); }

.listen-link {
  display: block; padding: 12px 14px; background: var(--surface-2);
  border: 1px solid var(--border-hi); border-radius: 10px;
  color: var(--text); text-decoration: none; font-weight: 600;
  font-size: 0.83rem; transition: all 0.2s; font-family: 'Lora', serif;
}
.listen-link:hover { border-color: var(--gold-border); color: var(--gold); transform: translateY(-1px); }
.guess-links {
  padding: 11px; background: var(--bg);
  border: 1px solid var(--gold-border); border-radius: 10px;
}
.guess-links.hidden { display: none; }
.guess-links-title {
  font-family: 'Lora', serif; font-size: 0.6rem; color: var(--gold); font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 7px;
}
.guess-link {
  display: block; padding: 8px 11px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 7px; color: var(--gold);
  text-decoration: none; font-weight: 600; font-size: 0.82rem;
  text-align: center; margin-bottom: 5px; font-family: 'Lora', serif;
}
.guess-link:hover { border-color: var(--gold-border); }
.guess-field {
  width: 100%; padding: 11px 13px; background: var(--bg); border: 1px solid var(--border-hi);
  border-radius: 9px; color: var(--text); font-family: 'Lora', serif;
  font-size: 0.95rem; transition: all 0.18s; -webkit-appearance: none;
}
.guess-field:focus { outline: none; border-color: var(--gold-border); box-shadow: 0 0 0 3px rgba(232,197,71,0.07); }
/* v6.8 — composer inputs explicit font to fix inconsistency */
#songInput,
#artistInput {
  font-family: 'Lora', serif;
  font-size: 0.82rem;
  font-weight: 500;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 10px 14px;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.9);
}
  font-size: 0.95rem;
  font-weight: 400;
}

.lyric-display {
  font-family: 'Lora', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.97rem; line-height: 1.6; text-align: center;
  padding: 14px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 11px; color: var(--text); max-height: 110px; overflow-y: auto;
  letter-spacing: -0.01em;
}


#shareInputs { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.modal-title { text-align: center; }
.modal-top { position: relative; }

#songInput:not(:focus),
#artistInput:not(:focus) {
  border: 1px solid rgba(232,197,71,0.25);
}
#songInput:focus,
#artistInput:focus {
  border-color: rgba(232,197,71,0.6);
  box-shadow: 0 0 0 3px rgba(232,197,71,0.08);
}

#songInput {
  margin-bottom: 10px;
}
#songInput::placeholder,
#artistInput::placeholder {
  color: rgba(255,255,255,0.5);
}
#songInput,
#artistInput {
  color: #ffffff;
}

/* ══════════════════════════════════════════════
   MARGO COMPOSER — Premium Modal v10
   ══════════════════════════════════════════════ */

/* Override modal-sheet for composer specifically */
#composer .modal-sheet {
  background: #0F0E14;
  border: none;
  border-radius: 28px 28px 0 0;
  /* Gold spotlight top border */
  box-shadow:
    0 -1px 0 0 rgba(232,197,71,0.55),
    0 -4px 32px rgba(232,197,71,0.08),
    0 -24px 80px rgba(0,0,0,0.8),
    inset 0 1px 0 rgba(232,197,71,0.12);
  overflow: hidden;
}

@media(min-width:520px){
  #composer .modal-sheet {
    border-radius: 24px;
    box-shadow:
      0 0 0 1px rgba(232,197,71,0.18),
      0 0 0 0px rgba(232,197,71,0.06),
      0 32px 80px rgba(0,0,0,0.85),
      inset 0 1px 0 rgba(232,197,71,0.1);
  }
}

/* Gold gradient line at very top */
#composer .modal-sheet::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(232,197,71,0.3) 20%,
    #E8C547 50%,
    rgba(232,197,71,0.3) 80%,
    transparent 100%
  );
  z-index: 1;
}

/* Topbar — close button right, MARGO watermark label left */
.composer-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px 8px;
  flex-shrink: 0;
  position: relative;
}



.composer-topbar .modal-close {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.18s;
}
.composer-topbar .modal-close:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}

/* Modal body — better spacing, lighter feel */
#composer .modal-body {
  padding: 10px 20px 16px;
  gap: 12px;
}

/* Search field — more open, readable */
#composer .smart-search-field {
  border: none !important;
  border-bottom: 1.5px solid rgba(232,197,71,0.2) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 6px 0 14px !important;
}
#composer .smart-search-field:focus-within {
  border-bottom-color: rgba(232,197,71,0.6) !important;
}
#composer .smart-search-input {
  font-size: 1.05rem !important;
  font-family: 'Lora', serif !important;
  color: #F4F1ED !important;
  letter-spacing: 0.01em;
}
#composer .smart-search-input::placeholder {
  color: rgba(232,197,71,0.32) !important;
  font-style: italic;
}
#composer .smart-search-icon svg {
  stroke: rgba(232,197,71,0.45) !important;
}

/* Song pill — more premium */
#composer .song-pill {
  background: rgba(232,197,71,0.06);
  border: 1px solid rgba(232,197,71,0.22);
  border-radius: 16px;
  padding: 11px 14px;
}
#composer .song-pill-name {
  font-size: 0.95rem;
  font-family: 'Lora', serif;
  font-weight: 700;
  color: #F4F1ED;
  letter-spacing: 0.01em;
}
#composer .song-pill-artist {
  font-size: 0.82rem;
  color: rgba(244,241,237,0.5);
  letter-spacing: 0.02em;
}

/* Song confirm inputs — readable */
#composer .song-confirm-input {
  font-size: 0.95rem !important;
  color: #F4F1ED !important;
  background: rgba(255,255,255,0.04) !important;
  border: 1px solid rgba(232,197,71,0.18) !important;
  letter-spacing: 0.01em;
}
#composer .song-confirm-input:focus {
  background: rgba(232,197,71,0.06) !important;
  border-color: rgba(232,197,71,0.5) !important;
}
#composer .song-confirm-label {
  color: rgba(232,197,71,0.65) !important;
  font-size: 0.6rem !important;
  letter-spacing: 2.5px !important;
}

/* Lyric chip — readable, italic, instrument serif */
#composer .lyric-chip {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 14px;
  padding: 14px 14px;
}
#composer .lyric-chip:focus-within {
  border-color: rgba(232,197,71,0.4);
  box-shadow: 0 0 0 3px rgba(232,197,71,0.07);
}
#composer .lyric-chip-text {
  font-family: 'Lora', serif !important;
  font-size: 1.05rem !important;
  line-height: 1.55 !important;
  color: #F4F1ED !important;
  opacity: 1 !important;
  letter-spacing: 0.01em;
}

/* Vibe label */
#composer .field-label {
  font-size: 0.6rem !important;
  letter-spacing: 3px !important;
  color: rgba(244,241,237,0.45) !important;
}

/* Emotion buttons — more readable */
#composer .emotion-btn {
  font-size: 0.82rem !important;
  padding: 7px 13px !important;
  color: rgba(244,241,237,0.65) !important;
  border-color: rgba(255,255,255,0.1) !important;
  letter-spacing: 0.02em;
}
#composer .emotion-btn:hover {
  color: #F4F1ED !important;
  border-color: rgba(255,255,255,0.2) !important;
}
#composer .emotion-btn.active {
  color: var(--bg) !important;
}

/* Footer — glass effect */
#composer .modal-footer {
  background: linear-gradient(0deg, rgba(15,14,20,0.98) 0%, rgba(15,14,20,0.85) 100%);
  border-top: 1px solid rgba(232,197,71,0.1);
  padding: 14px 20px 28px;
  gap: 10px;
}

/* Drop It button — unmissable */
#composer .composer-btn-primary {
  font-family: 'Lora', serif !important;
  font-size: 1.1rem !important;
  letter-spacing: 3px !important;
  padding: 16px !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #f5d878 0%, #E8C547 50%, #D4A832 100%) !important;
  color: var(--bg) !important;
  box-shadow: 0 4px 24px rgba(232,197,71,0.35), 0 1px 0 rgba(255,255,255,0.2) inset !important;
  transition: all 0.2s var(--ease-out) !important;
  border: none !important;
}
#composer .composer-btn-primary:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 32px rgba(232,197,71,0.5) !important;
}
#composer .composer-btn-primary:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 12px rgba(232,197,71,0.3) !important;
}

/* Secondary buttons */
#composer .composer-btn-secondary {
  font-family: 'Lora', serif !important;
  font-size: 0.6rem !important;
  letter-spacing: 1.5px !important;
  color: rgba(244,241,237,0.55) !important;
  border-color: rgba(255,255,255,0.1) !important;
  border-radius: 12px !important;
  padding: 12px !important;
  transition: all 0.18s !important;
}
#composer .composer-btn-secondary:hover {
  color: #F4F1ED !important;
  border-color: rgba(232,197,71,0.3) !important;
  background: rgba(232,197,71,0.05) !important;
}

/* Search result sheet — premium */
#composer .search-sheet {
  background: #141218;
  border: 1px solid rgba(232,197,71,0.12);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.7);
}
#composer .search-result-song {
  font-size: 0.95rem !important;
  color: #F4F1ED !important;
  font-weight: 700 !important;
}
#composer .search-result-artist {
  font-size: 0.82rem !important;
  color: rgba(244,241,237,0.45) !important;
}

/* YouTube card */
#composer .yt-card {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
}
#composer .yt-title {
  font-size: 0.82rem !important;
  color: #F4F1ED !important;
  font-weight: 600 !important;
}
#composer .yt-channel {
  color: rgba(244,241,237,0.45) !important;
  font-size: 0.7rem !important;
}

/* ══ COMPOSER LOGO MARK ══ */
.composer-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; user-select: none;
}
.composer-logo-mark {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  width: 22px; height: 22px;
}
.composer-logo-mark .logo-circle {
  position: relative; z-index: 2;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(232,197,71,0.8));
  animation: core-breathe 3.4s ease-in-out infinite;
}
.composer-logo-mark .logo-circle svg { width: 100%; height: 100%; display: block; }
.composer-logo-mark .logo-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(232,197,71,0.65);
  width: 18px; height: 18px;
  animation: nav-ripple 3.4s ease-out infinite;
}
.composer-logo-mark .logo-ring:nth-child(1) { animation-delay: 0s;   }
.composer-logo-mark .logo-ring:nth-child(2) { animation-delay: 1.1s; }
.composer-logo-mark .logo-ring:nth-child(3) { animation-delay: 2.2s; }
.composer-logo-text {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  line-height: 1;
  opacity: 0.75;
}

/* Fix composer logo position */
.composer-topbar{padding:14px 18px 8px;overflow:hidden;}
.composer-logo{opacity:0.75;}
.composer-logo-mark{width:16px;height:16px;}
.composer-logo-mark .logo-circle{width:14px;height:14px;}
.composer-logo-mark .logo-ring{width:14px;height:14px;border-width:1px;}
.composer-logo-text{font-size: 0.7rem;letter-spacing:3px;}

/* Fix logo clip + placeholder brightness */
#composer .modal-sheet{overflow:visible!important;}
#composer .modal-body{overflow-y:auto;}
.composer-topbar{padding:14px 20px 8px!important;overflow:visible!important;}
.composer-logo-mark{width:18px!important;height:18px!important;margin-left:2px;}
.composer-logo-mark .logo-circle{width:16px!important;height:16px!important;}
.composer-logo-mark .logo-ring{width:16px!important;height:16px!important;}
#composer .smart-search-input::placeholder{color:rgba(232,197,71,0.7)!important;font-style:normal!important;font-weight:500!important;}
#composer .smart-search-input{color:#F4F1ED!important;font-size:1rem!important;}

/* Fix vibe active state visibility */
#composer .emotion-btn.active{background:rgba(232,197,71,0.18)!important;border-color:rgba(232,197,71,0.6)!important;color:#E8C547!important;box-shadow:0 0 12px rgba(232,197,71,0.15)!important;}
#composer .emotion-btn[data-emotion="Heartbreak"].active{background:rgba(255,80,100,0.15)!important;border-color:rgba(255,80,100,0.5)!important;color:#ff6b7a!important;}
#composer .emotion-btn[data-emotion="Rage"].active{background:rgba(255,80,60,0.15)!important;border-color:rgba(255,80,60,0.5)!important;color:#ff6b5a!important;}

/* ── FIX 7: reduce modal blur cost on mobile ── */
@media (max-width: 768px) {
  .modal {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(0,0,0,0.94);
  }
  .modal-sheet {
    will-change: transform, opacity;
    transform: translateZ(0);
  }
  .new-posts-bar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* ── New posts banner — mobile ── */
@media (max-width: 480px) {
  .new-posts-bar {
    top: 56px;
    font-size: 0.6rem;
    letter-spacing: 0.8px;
    padding: 9px 14px 9px 10px;
    text-align: center;
    justify-content: center;
  }
}
}
