/* 消息里的歌歌表情 */
.cs-emoji { width: 22px; height: 22px; vertical-align: -5px; margin: 0 1px; }

/* 表情面板（位置由各页面自己定） */
.cs-emoji-panel { background: #fff; display: flex; flex-direction: column; position: relative; }
.cs-emoji-panel[hidden] { display: none; }
.cs-emoji-scroll { flex: 1; overflow-y: auto; padding: 4px 10px 10px; -webkit-overflow-scrolling: touch; }
.cs-emoji-panel.with-actions .cs-emoji-scroll { padding-bottom: 64px; }
.cs-emoji-scroll::-webkit-scrollbar { width: 4px; }
.cs-emoji-scroll::-webkit-scrollbar-thumb { background: #dfe6e9; border-radius: 4px; }
.cs-emoji-label { font-size: 12px; color: #636e72; padding: 10px 4px 6px; }
.cs-emoji-grid { display: grid; grid-template-columns: repeat(var(--cs-emoji-cols, 7), 1fr); }
.cs-emoji-cell {
  aspect-ratio: 1; border: none; background: none; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.cs-emoji-cell:hover { background: #f1f0ff; }
.cs-emoji-cell:active { transform: scale(0.9); }
.cs-emoji-cell .cs-emoji { width: 30px; height: 30px; margin: 0; vertical-align: 0; }
.cs-emoji-char { font-size: 26px; line-height: 1; }
.cs-emoji-actions { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 10px; }
.cs-emoji-actions button {
  height: 40px; border: none; border-radius: 20px; cursor: pointer; font-family: inherit;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12); -webkit-tap-highlight-color: transparent;
}
.cs-emoji-del { width: 56px; background: #fff; color: #2d3436; font-size: 18px; }
.cs-emoji-send { width: 72px; background: #6C5CE7; color: #fff; font-size: 15px; font-weight: 600; }

/* 表情包：面板底部 tab + 4 列格子；消息里显示成不带气泡的动图 */
.cs-emoji-body { flex: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
.cs-emoji-tabs {
  flex-shrink: 0; display: flex; gap: 4px; padding: 6px 8px; overflow-x: auto;
  border-top: 1px solid #f1f2f6; scrollbar-width: none;
}
.cs-emoji-tabs::-webkit-scrollbar { display: none; }
.cs-emoji-tab {
  flex-shrink: 0; width: 48px; height: 36px; border: none; background: none; border-radius: 18px;
  cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.cs-emoji-tab.active { background: rgba(108,92,231,0.14); }
.cs-emoji-tab img { width: 28px; height: 28px; object-fit: contain; }
.cs-sticker-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.cs-sticker-cell {
  border: none; background: none; border-radius: 12px; cursor: pointer; padding: 6px 4px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  -webkit-tap-highlight-color: transparent;
}
.cs-sticker-cell:hover { background: #f1f0ff; }
.cs-sticker-cell:active { transform: scale(0.94); }
.cs-sticker-cell img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.cs-sticker-cell span { font-size: 11px; color: #636e72; line-height: 1.3; }
.cs-sticker { display: block; width: 120px; height: 120px; object-fit: contain; }
.cs-sticker-unknown { font-size: 14px; }
.bubble.cs-sticker-bubble { background: none !important; padding: 0 !important; }
