/* 声屿 · 公屏控制台样式（参照同类语音房重排）
 * 只在最后加载，覆盖 ui-kit.css 的「卡片式」右键菜单，统一为扁平列表。
 * 分区：1 输入条 2 更多面板 3 私聊下拉 4 礼物面板 5 消息悬浮操作 6 个人资料窗 7 右键菜单
 */

/* ── 1. 输入条：表情 / 更多 + 输入 + 私聊 / 送花 / ↑发送 ───────────── */
/* 输入条横跨公屏底部整行，不再缩成右下角小胶囊 */
.rm-inputbar {
  left: 12px; right: 12px; bottom: 8px;
  width: auto; max-width: none;
  border-radius: 10px;
  padding: 5px 8px 5px 10px;
  box-shadow: 0 4px 14px rgba(30, 58, 138, .07);
}
#chat-list.rm-chat { padding-bottom: 64px !important; }
/* 右侧悬浮竖条（分享/浏览器/回大厅）与顶栏重复，直接收掉 */
#rm-quick { display: none !important; }

.rm-inputbar .rm-tool-line { color: #7b8aa2; }
.rm-inputbar .rm-tool-line:hover { color: #2f6fed; background: #eef3ff; }
.rm-inputbar .rm-tool-line.on { color: #2f6fed; background: #e6efff; }

.rm-send-ico {
  width: 30px; height: 28px; padding: 0; margin-left: 1px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
}
.rm-send-ico svg { width: 15px; height: 15px; }
.rm-send-ico::after { content: none !important; }

.rm-in-ico { width: 26px; height: 26px; flex: 0 0 26px; color: #7b8aa2; }
.rm-in-ico:hover { color: #2f6fed; background: #eef3ff; }
.rm-in-ico.on { color: #e0568a; background: #fdeef4; }
.rm-flower.on svg { fill: rgba(224, 86, 138, .16); }

/* ── 2. 更多面板（图片 / ＠全体 / 互动） ─────────────────────────── */
.rm-more-pop {
  position: absolute; left: 6px; bottom: calc(100% + 8px);
  width: 188px; padding: 5px 0; z-index: 40;
  background: #fff; border: 1px solid #e4e9f2; border-radius: 8px;
  box-shadow: 0 8px 22px rgba(30, 58, 138, .12);
}
.rm-more-pop[hidden] { display: none; }
.rm-more-item {
  display: flex; align-items: center; gap: 8px;
  width: 100%; height: 32px; padding: 0 12px;
  border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 12.5px; color: #3d4759; text-align: left;
}
.rm-more-item svg { width: 15px; height: 15px; flex: 0 0 15px; color: #7b8aa2; }
.rm-more-item span { flex: 1 1 auto; }
.rm-more-item:hover { background: #f2f5fb; }
.rm-more-item:disabled { cursor: default; opacity: .55; }
.rm-more-tag {
  flex: 0 0 auto; padding: 0 5px; height: 15px; line-height: 15px;
  border-radius: 3px; background: #f1f3f7; color: #98a3b5;
  font-size: 10px; font-style: normal;
}
.rm-more-item.rm-mention { color: #2f6fed; }
.rm-more-item.rm-mention .rm-more-tag { background: #e9f0ff; color: #3f6fe0; }
.rm-more-item.rm-mention.locked { color: #98a3b5; opacity: .6; }
.rm-more-item.rm-mention.on { background: #e9f0ff; }

/* ── 3. 私聊下拉（置顶会话 + 未读） ─────────────────────────────── */
.rm-dm-pop {
  position: absolute; right: 30px; bottom: calc(100% + 8px);
  width: 216px; max-height: 268px; overflow: auto; padding: 5px 0; z-index: 40;
  background: #fff; border: 1px solid #e4e9f2; border-radius: 8px;
  box-shadow: 0 8px 22px rgba(30, 58, 138, .12);
}
.rm-dm-pop[hidden] { display: none; }
.rm-dm-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 12px 6px; font-size: 11.5px; color: #98a3b5;
}
.rm-dm-head b { color: #3d4759; font-size: 12px; font-weight: 600; }
.rm-dm-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 7px 12px; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 12.5px; color: #3d4759; text-align: left;
}
.rm-dm-item:hover { background: #f2f5fb; }
.rm-dm-item .ava {
  width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%;
  background: #dbe6ff center/cover no-repeat; color: #2f6fed;
  font-size: 11px; display: inline-flex; align-items: center; justify-content: center;
}
.rm-dm-item .nm { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rm-dm-item .badge-unread {
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: #f4453c; color: #fff; font-size: 10px; line-height: 16px; text-align: center;
}
.rm-dm-empty { padding: 12px; font-size: 12px; color: #98a3b5; text-align: center; }
.rm-dm-foot {
  border-top: 1px solid #eef1f6; margin-top: 4px; padding: 6px 12px 2px;
  font-size: 11.5px; color: #7b8aa2;
}

/* ── 4. 礼物面板（7 圣兽） ──────────────────────────────────────── */
.rm-gift-pop {
  position: absolute; right: 8px; bottom: calc(100% + 8px); z-index: 41;
  width: 292px; padding: 10px; background: #fff;
  border: 1px solid #e4e9f2; border-radius: 10px;
  box-shadow: 0 10px 26px rgba(30, 58, 138, .14);
}
.rm-gift-pop[hidden] { display: none; }
.rm-gift-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.rm-gift-head b { font-size: 12.5px; color: #3d4759; }
.rm-gift-head span { font-size: 11px; color: #98a3b5; }
.rm-gift-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.rm-gift-cell {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 2px; border: 1px solid #eef1f6; border-radius: 8px;
  background: #fbfcfe; cursor: pointer; font: inherit;
}
.rm-gift-cell:hover { border-color: #cddfff; background: #f2f7ff; }
.rm-gift-cell b { font-size: 11.5px; color: #3d4759; }
.rm-gift-cell i { font-style: normal; font-size: 10px; color: #98a3b5; }
.rm-gift-dot { width: 20px; height: 20px; border-radius: 50%; }

/* ── 5. 消息行悬浮操作（复制 / 私聊 / 撤回） ────────────────────── */
#chat-list .chat-row { position: relative; }
#chat-list .chat-act {
  position: absolute; right: 46px; top: 1px;
  display: none; align-items: center; gap: 2px; padding: 1px 3px;
  background: rgba(255, 255, 255, .97); border: 1px solid #e6ebf3;
  border-radius: 6px; box-shadow: 0 2px 8px rgba(30, 58, 138, .08); z-index: 3;
}
#chat-list .chat-row:hover .chat-act { display: flex; }
#chat-list .chat-act-btn {
  width: 22px; height: 20px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 4px; background: transparent; color: #7b8aa2;
  cursor: pointer; font: inherit; font-size: 11px;
}
#chat-list .chat-act-btn:hover { background: #eef3ff; color: #2f6fed; }
#chat-list .chat-act-btn.danger:hover { background: #fdeceb; color: #d9363e; }

/* ── 7. 频道菜单：扁平列表风（覆盖 ui-kit 的圆角卡片 + 左侧色条） ── */
.rm-ctx {
  position: fixed !important; z-index: 99999 !important; left: 0; top: 0;
  min-width: 0 !important; width: 172px !important;
  padding: 4px 0 !important;
  border: 1px solid #e2e2e2 !important; border-radius: 2px !important;
  background: #fff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .10) !important;
  font-size: 12.5px !important; color: #333 !important;
}
.rm-ctx-item {
  height: 30px !important; padding: 0 16px !important;
  border-radius: 0 !important;
  color: #333 !important; font-size: 12.5px !important; font-weight: 400 !important;
  box-shadow: none !important;
}
.rm-ctx-item:hover {
  background: #f2f3f5 !important; color: #111 !important; box-shadow: none !important;
}
.rm-ctx-sep { height: 1px !important; margin: 5px 0 !important; background: #ededed !important; }
.rm-ctx-item.has-sub .rm-ctx-arrow { font-style: normal; color: #9b9b9b; font-size: 12px; margin-left: 10px; }
.rm-ctx-sub {
  width: 150px !important; padding: 4px 0 !important;
  border: 1px solid #e2e2e2 !important; border-radius: 2px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .10) !important;
}
.rm-ctx-sub .rm-ctx-item { height: 28px !important; padding: 0 14px !important; }
.rm-ctx-item.is-danger { color: #d9363e !important; }
.rm-ctx-item.is-danger:hover { background: #fdeceb !important; }

/* 底栏 F2 键帽吸收文案 + 状态灯 */
.rm-foot-kbd i {
  font-style: normal; font-size: 9.5px; margin-left: 3px;
  color: #98a3b5; letter-spacing: 0;
}
.rm-foot-kbd.on i { color: #fff; opacity: .9; }
.rm-foot-status::before {
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  margin-right: 5px; background: #c3ccd9; vertical-align: 1px;
}
.rm-foot-status.on::before { background: #2f9e6e; }
.rm-foot-status.bad::before { background: #e2574c; }

body.narrow .rm-more-pop { width: 168px; }
body.narrow .rm-gift-pop { width: 268px; }
body.narrow .rm-dm-pop { width: 196px; }
