/* VchatStickers · 贴纸选择器 + 气泡内动画（对标 TG） */
.vst-overlay { position: fixed; inset: 0; z-index: 9998; }
.vst-overlay[hidden] { display: none; }
.vst-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.35); }
.vst-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 56vh;
  display: flex;
  flex-direction: column;
  background: #17212b;
  color: #f5f7fa;
  border-radius: 14px 14px 0 0;
  padding-bottom: env(safe-area-inset-bottom);
}
.vst-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}
.vst-close {
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 26px;
  cursor: pointer;
}
.vst-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 8px;
  align-content: start;
}
.vst-empty { grid-column: 1 / -1; text-align: center; color: #8a97a3; padding: 24px 0; }
.vst-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 6px;
}
.vst-cell:active { background: rgba(255, 255, 255, 0.1); }
.vst-cell__media { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.vst-cell__media img, .vst-cell__media svg { max-width: 100%; max-height: 100%; object-fit: contain; }
.vst-cell--lock .vst-cell__media { filter: grayscale(1); opacity: 0.5; }
.vst-lock { position: absolute; right: 4px; bottom: 4px; font-size: 14px; }
.vst-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex: 0 0 auto;
}
.vst-tab {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #cdd6df;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.vst-tab img { max-width: 100%; max-height: 100%; object-fit: contain; }
.vst-tab--on { background: rgba(106, 178, 242, 0.3); box-shadow: inset 0 0 0 2px #6ab2f2; }
.vst-tab__vip {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #f0b400;
  color: #1a1a22;
  font-size: 8px;
  line-height: 1;
  padding: 2px 3px;
  border-radius: 4px;
  transform: scale(0.85);
}

/* 气泡内贴纸（透明背景，自动循环；对标 TG ~128px） */
.vst-anim, .vst-msg { display: block; }
.vst-anim { max-width: 100%; max-height: 100%; object-fit: contain; }

.imfc-msg__sticker,
.im-group-chat__sticker {
  width: 128px;
  height: 128px;
  max-width: 50vw;
  max-height: 50vw;
  display: flex;
  align-items: center;
  justify-content: center;
}
.imfc-msg__sticker svg,
.imfc-msg__sticker img,
.im-group-chat__sticker svg,
.im-group-chat__sticker img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
