/* 焦个朋友 - 客户端点歌 UI */
:root {
  --glass-bg: rgba(255,255,255,0.05);
  --glass-bd: rgba(255,255,255,0.10);
}
* { -webkit-tap-highlight-color: transparent; }
html, body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }

.glass-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.06);
}

.marquee { display: inline-block; padding-left: 100%; animation: marquee 22s linear infinite; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.queue-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-bd);
  border-radius: 14px;
}
.queue-row .num {
  width: 22px; height: 22px; border-radius: 6px;
  background: rgba(255,255,255,0.08);
  font-size: 11px; color: white/70;
  display: flex; align-items: center; justify-content: center;
}
.queue-row .meta { flex: 1; min-width: 0; }
.queue-row .meta .name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-row .meta .sub { font-size: 11px; color: rgba(255,255,255,0.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-row .nick {
  font-size: 10px; color: #fda4af;
  background: rgba(244,114,182,0.10);
  padding: 2px 6px; border-radius: 6px;
}

.search-row {
  display: flex; gap: 10px; align-items: center;
  padding: 10px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
}
.search-row img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: rgba(255,255,255,0.10); }
.search-row .info { flex: 1; min-width: 0; }
.search-row .info .name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-row .info .sub { font-size: 11px; color: rgba(255,255,255,0.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-row button {
  flex-shrink: 0;
  padding: 6px 12px; border-radius: 999px;
  background: linear-gradient(135deg, #fbbf24, #fb7185);
  color: white; font-size: 12px; font-weight: 600;
  transition: all 0.2s ease;
}
.search-row button.added,
.search-row button[disabled] {
  background: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
  cursor: not-allowed;
}

/* "👎 不好听" 次级按钮：灰色小圆角，和"加入"区分开 */
.search-row .dislike-btn {
  flex-shrink: 0;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.10);
  font-size: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
}
.search-row .dislike-btn:hover {
  background: rgba(244, 63, 94, 0.20);
  color: #fda4af;
  border-color: rgba(244, 63, 94, 0.35);
}
.search-row .dislike-btn:disabled,
.search-row .dislike-btn.done {
  opacity: 0.45;
  cursor: not-allowed;
}

/* 队列行：区分"我的"/"别人的" */
.queue-row.others { opacity: 0.6; }
.queue-row.mine   { border-color: rgba(251,191,36,0.35); }
.queue-row .lock-tip { font-size: 10px; }

/* 当前播放区：点歌人 */
#cur-picker { font-style: italic; }

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* 进度条发光动画 */
#progress-bar { box-shadow: 0 0 8px rgba(251,113,133,0.5); }

/* ---------- AI 聊天气泡 ---------- */
.ai-msg { display: flex; align-items: flex-start; gap: 8px; }
.ai-msg.ai-user { justify-content: flex-end; }
.ai-avatar {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #fb7185);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; box-shadow: 0 2px 8px rgba(251,113,133,0.35);
}
.ai-bubble {
  max-width: 78%;
  padding: 10px 12px; border-radius: 14px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.10);
  font-size: 13px; line-height: 1.55; color: rgba(255,255,255,0.88);
  word-break: break-word;
}
.ai-msg.ai-user .ai-bubble {
  background: linear-gradient(135deg, rgba(251,191,36,0.20), rgba(251,113,133,0.20));
  border-color: rgba(251,191,36,0.30);
}
.ai-bubble-wide { max-width: 100%; }
.ai-story { color: #fde68a; font-size: 12.5px; }
.ai-intent { margin-top: 4px; font-size: 11px; color: rgba(255,255,255,0.5); }
.ai-songs { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.ai-song {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px; padding: 6px 8px;
}
.ai-song img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; background: rgba(255,255,255,0.08); }
.ai-song-info { flex: 1; min-width: 0; }
.ai-song-name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-song-sub { font-size: 10.5px; color: rgba(255,255,255,0.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-song button {
  flex-shrink: 0; padding: 4px 10px; border-radius: 999px;
  background: linear-gradient(135deg, #fbbf24, #fb7185);
  color: white; font-size: 11px; font-weight: 600; border: 0; cursor: pointer;
}
.ai-song button.added, .ai-song button[disabled] {
  background: rgba(16,185,129,0.25); color: #6ee7b7;
  border: 1px solid rgba(16,185,129,0.4); cursor: not-allowed;
}
.ai-empty { margin-top: 8px; font-size: 12px; color: rgba(255,255,255,0.5); }
