/* ---------- 音乐房间 · 移动端 ---------- */
.mr-mb-list, .mr-mb-room { padding: 12px; font-size: 14px; }
.mr-mb-list { padding-bottom: 40px; }
.mr-mb-room { padding-bottom: 40px; }

/* ---------- 通用 ---------- */
.mr-mb-hide { display: none !important; }
.mr-mb-empty { text-align: center; color: #999; padding: 48px 16px; }
.mr-mb-notice { background: #fff7e6; color: #ad6800; border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; }
.mr-mb-toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(8px);
  background: rgba(0,0,0,.75); color: #fff; padding: 8px 16px; border-radius: 18px;
  font-size: 13px; opacity: 0; pointer-events: none; transition: all .2s; z-index: 999; max-width: 80%;
}
.mr-mb-toast.mr-mb-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 列表页 ---------- */
/* 顶栏用宿主标准那一条（.ls-page-navbar），本文件不再画第二条；
   has-navbar 只是给页面顶部留出它压住的高度（宿主顶栏是 fixed 的）。 */
.mr-mb-list.has-navbar { padding-top: 56px; }
/* 顶栏标题靠左：宿主默认把它居中，这里改成紧跟在返回箭头后面。
   宿主有两种可能的实现，都盖一遍：
   1) flex 布局 + 标题居中 —— margin-right:auto 让标题不吸剩余空间（右侧按钮照旧贴最右），
      justify-content / text-align 再各压一层；
   2) 标题绝对定位 + translateX(-50%) 居中 —— 解开定位与位移，让它回到文档流里。 */
.ls-page-navbar[data-mr-navbar="list"] .ls-page-navbar-title {
  position: static;
  left: auto;
  right: auto;
  transform: none;
  margin-right: auto;
  justify-content: flex-start;
  text-align: left;
}
.mr-mb-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.mr-mb-title { font-size: 20px; margin: 0; flex: 1; }
/* 创建房间：顶栏右侧的小胶囊按钮。图标 + 文字，尺寸贴着顶栏高度，
   不抢标题，也不至于点不着。 */
.mr-mb-create {
  display: inline-flex; align-items: center; gap: 4px;
  border: none; border-radius: 14px;
  padding: 5px 11px 5px 8px; font-size: 13px; font-weight: 500;
  color: #fff; background: linear-gradient(135deg, #5b8cff, #3d6ae8);
  box-shadow: 0 2px 6px rgba(74, 124, 247, .3);
  transition: transform .16s, box-shadow .16s;
}
.mr-mb-create svg { width: 15px; height: 15px; display: block; flex: none; }
.mr-mb-create:active {
  transform: scale(.94);
  box-shadow: 0 1px 3px rgba(74, 124, 247, .28);
}
/* 宿主顶栏右侧容器：按钮靠右、垂直居中 */
.ls-page-navbar-right .mr-mb-create { flex: none; }
.mr-mb-rooms { list-style: none; margin: 0; padding: 0; }
.mr-mb-room-item {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 12px; padding: 12px; margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06); cursor: pointer;
  text-decoration: none; color: inherit;
}
.mr-mb-room-cover {
  width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; background: #2b2f4a;
}
.mr-mb-room-cover-fallback {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2b2f4a, #1c1e33);
}
.mr-mb-room-cover-fallback svg { width: 26px; height: 26px; }
.mr-mb-room-main { flex: 1; min-width: 0; }
.mr-mb-room-name { display: flex; align-items: center; gap: 5px; font-size: 16px; font-weight: 600; }
.mr-mb-room-name-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr-mb-lock { width: 13px; height: 13px; color: #b8860b; flex: none; }
.mr-mb-room-song {
  font-size: 12px; color: #666; margin-top: 3px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mr-mb-room-meta { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #999; margin-top: 4px; }
.mr-mb-sep { color: #ddd; }
.mr-mb-room-del {
  border: 1px solid #ffdddd; background: #fff; color: #e05252;
  border-radius: 8px; padding: 6px 10px; font-size: 12px;
}
.mr-mb-more {
  display: block; width: 100%; border: none; background: #f2f2f2; color: #666;
  border-radius: 10px; padding: 12px; font-size: 14px;
}

/* ---------- 推荐房间（列表页最上面那块，横向滑动） ---------- */
.mr-mb-rec { margin-bottom: 12px; }
.mr-mb-rec-head { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.mr-mb-rec-title { font-size: 15px; font-weight: 600; }
.mr-mb-rec-sub { font-size: 11px; color: #999; }
.mr-mb-rec-scroll {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.mr-mb-rec-scroll::-webkit-scrollbar { display: none; }
.mr-mb-rec-card {
  flex: none; width: 108px; text-decoration: none; color: inherit;
  background: #fff; border-radius: 12px; padding: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.mr-mb-rec-cover {
  position: relative; width: 92px; height: 92px; border-radius: 9px; overflow: hidden;
  background: linear-gradient(135deg, #2b2f4a, #1c1e33);
  display: flex; align-items: center; justify-content: center;
}
.mr-mb-rec-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mr-mb-rec-cover svg { width: 30px; height: 30px; }
.mr-mb-rec-badge {
  position: absolute; left: 4px; top: 4px; z-index: 1;
  background: linear-gradient(135deg, #5b8cff, #3d6ae8); color: #fff;
  font-size: 10px; line-height: 1; padding: 3px 5px; border-radius: 4px; font-weight: 600;
}
.mr-mb-rec-name {
  font-size: 13px; font-weight: 600; margin-top: 7px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mr-mb-rec-meta { font-size: 11px; color: #999; margin-top: 3px; }

/* ---------- 排序 ---------- */
.mr-mb-sort { display: flex; gap: 8px; margin-bottom: 12px; }
.mr-mb-sort-btn {
  border: none; background: #f2f2f2; color: #666; border-radius: 14px;
  padding: 7px 14px; font-size: 13px; font-family: inherit;
}
.mr-mb-sort-on { background: linear-gradient(135deg, #5b8cff, #3d6ae8); color: #fff; font-weight: 600; }

/* 居中弹层（列表页创建房间用） */
.mr-mb-overlay { position: fixed; inset: 0; z-index: 900; }
.mr-mb-overlay-mask { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.mr-mb-dialog {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: min(86vw, 360px); background: #fff; border-radius: 14px; padding: 18px;
}
.mr-mb-dialog-title { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.mr-mb-dialog input {
  width: 100%; box-sizing: border-box; border: 1px solid #e0e0e0; border-radius: 8px;
  padding: 10px 12px; margin-bottom: 10px; font-size: 14px;
}
.mr-mb-dialog-btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }
.mr-mb-dialog-btns button { border: none; border-radius: 8px; padding: 8px 18px; font-size: 14px; background: #f2f2f2; }
.mr-mb-dialog-btns .mr-mb-primary { background: #4a7cf7; color: #fff; }
.mr-mb-dialog-btns button:disabled { opacity: .6; }
.mr-mb-create-plrow { display: flex; gap: 8px; margin-bottom: 6px; }
.mr-mb-create-plrow select { flex: none; width: 86px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 13px; background: #fff; }
.mr-mb-create-plrow input { flex: 1; min-width: 0; border: 1px solid #e0e0e0; border-radius: 8px; padding: 9px 10px; font-size: 13px; }
.mr-mb-dialog-hint { font-size: 11px; color: #999; margin-bottom: 6px; }
.mr-mb-room-main { flex: 1; min-width: 0; }

/* ---------- 房间设置 & 成员管理（v2.0.0） ---------- */
.mr-mb-setbtn {
  width: 36px; height: 36px; border: none; border-radius: 50%; flex: none;
  background: #f0f1f5; color: #555; display: flex; align-items: center; justify-content: center;
}
.mr-mb-setbtn svg { width: 17px; height: 17px; display: block; }
.mr-mb-sheet-title { flex: 1; font-size: 15px; font-weight: 600; }
.mr-mb-set-sheet .mr-mb-sheet-body { overflow-y: auto; padding-top: 10px; max-height: 90vh; }
.mr-mb-set-sheet .mr-mb-sheet-head { margin-bottom: 4px; }
.mr-mb-set-sheet .mr-mb-set-note { margin-bottom: 2px; }
.mr-mb-f-label { display: block; font-size: 12px; color: #888; margin: 5px 0 3px; }
.mr-mb-f-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #444; margin: 7px 0; }
.mr-mb-f-check input[type=checkbox] {
  width: 18px; height: 18px; flex: none; margin: 0;
  -webkit-appearance: checkbox; appearance: checkbox; accent-color: #4a7cf7;
}
.mr-mb-set-sheet input[type=text], .mr-mb-set-sheet input[type=number], .mr-mb-set-sheet select {
  width: 100%; box-sizing: border-box; border: 1px solid #e0e0e0; border-radius: 8px;
  padding: 6px 12px; font-size: 14px; background: #fff;
}
.mr-mb-set-save {
  width: 100%; border: none; background: #4a7cf7; color: #fff;
  border-radius: 8px; padding: 9px 0; font-size: 14px; margin-top: 4px;
}
.mr-mb-set-danger { display: flex; gap: 10px; margin-top: 8px; margin-bottom: 40px; }
.mr-mb-set-danger button {
  flex: 1; border-radius: 8px; padding: 10px 0; font-size: 13px;
  border: 1px solid #ffdddd; background: #fff; color: #e05252;
}
.mr-mb-set-sheet input:disabled, .mr-mb-set-sheet select:disabled {
  background: #f4f4f6; color: #aaa;
}
.mr-mb-set-note { font-size: 11px; color: #999; margin-bottom: 4px; }
.mr-mb-uop {
  border: 1px solid #e5e5e5; background: #fff; color: #555;
  border-radius: 8px; padding: 4px 9px; font-size: 12px; flex: none;
}
.mr-mb-uop.mr-mb-ban, .mr-mb-uop.mr-mb-kick { color: #e05252; border-color: #ffdddd; }
.mr-mb-uop.mr-mb-sethost { color: #4a7cf7; border-color: #c9d9fb; }
.mr-mb-bannedbox { margin-top: 14px; }
.mr-mb-bannedbox .mr-mb-pane-title { margin-bottom: 8px; }

/* ---------- 房间页：顶部导航 ---------- */
/* 用宿主标准顶栏；房间名+房主两行塞进标题位，右侧是设置与退出。 */
/* 返回箭头是模块自己的（不带 .ls-go-back），样式照宿主那颗补一份 */
.mr-mb-back {
  flex: none; font-size: 22px; line-height: 1; color: #333;
  cursor: pointer; padding: 4px; margin-left: -4px;
}
.mr-mb-room-navbar .ls-page-navbar-title {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  line-height: 1.2;
}
.mr-mb-room-navbar .mr-mb-room-name { font-size: 15px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr-mb-room-navbar .mr-mb-room-host { font-size: 11px; color: #999; margin-top: 2px; }
.mr-mb-room-navbar .ls-page-navbar-right { display: flex; align-items: center; gap: 8px; }
.mr-mb-leave {
  flex: none; border: 1px solid #ffdddd; background: #fff; color: #e05252;
  border-radius: 8px; padding: 6px 10px; font-size: 12px;
}

/* 留声机播放器：黑胶唱片 + 唱片下方控制键 */
.mr-mb-player {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 6px 0 10px;
}
.mr-mb-player.idle { opacity: .72; }
.mr-mb-disc-row { display: flex; align-items: center; gap: 8px; width: 100%; justify-content: center; }
/* 胶片两侧的在线成员 */
.mr-mb-side { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mr-mb-u { position: relative; width: 50px; display: flex; flex-direction: column; align-items: center; }
.mr-mb-u-avwrap { position: relative; width: 40px; height: 40px; }
.mr-mb-u-av {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
  background: #eef1f6; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.mr-mb-u-badge {
  position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
  background: #f5b301; color: #fff; font-size: 9px; line-height: 1;
  padding: 2px 5px; border-radius: 8px; white-space: nowrap;
}
.mr-mb-u-nick {
  font-size: 10px; color: #888; margin-top: 3px; max-width: 50px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mr-mb-u-bubble {
  position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%);
  background: #1c1e33; color: #fff; font-size: 10px; line-height: 1.4;
  padding: 5px 8px; border-radius: 10px; max-width: 120px; width: max-content;
  word-break: break-all; z-index: 20; text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.mr-mb-u-bubble:after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: #1c1e33;
}
.mr-mb-disc-wrap { position: relative; width: 170px; height: 170px; flex: none; }
.mr-mb-disc-rotor { position: absolute; inset: 0; }
.mr-mb-player.playing .mr-mb-disc-rotor { animation: mr-spin 6s linear infinite; }
@keyframes mr-spin { to { transform: rotate(360deg); } }
.mr-mb-disc {
  width: 170px; height: 170px; display: block;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.28));
}
.mr-mb-disc-cover {
  position: absolute; left: 41px; top: 41px; width: 88px; height: 88px;
  border-radius: 50%; object-fit: cover;
}
.mr-mb-note {
  position: absolute; left: 50%; top: 50%; width: 34px; height: 34px;
  transform: translate(-50%, -50%);
}
.mr-mb-player-ops { display: flex; align-items: center; gap: 14px; }
.mr-mb-ctl {
  border: none; cursor: pointer; color: #444; border-radius: 50%;
  background: #f0f1f5; display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0;
}
.mr-mb-ctl svg { width: 19px; height: 19px; display: block; pointer-events: none; }
.mr-mb-playpause { width: 54px; height: 54px; background: #4a7cf7; color: #fff; }
.mr-mb-playpause svg { width: 22px; height: 22px; }
/* 播放/暂停图标切换：!important 压过一切 display 规则，保证同屏只有一个 */
svg.mr-mb-ic-pause { display: none !important; }
.mr-mb-player.playing svg.mr-mb-ic-pause { display: block !important; }
.mr-mb-player.playing svg.mr-mb-ic-play { display: none !important; }
.mr-mb-player-info { text-align: center; width: 100%; }
.mr-mb-now-title { font-size: 16px; font-weight: 600; color: #222; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr-mb-now-artist { font-size: 12px; color: #999; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 进度条 */
.mr-mb-progress {
  width: 100%; max-width: 320px; height: 4px; border-radius: 2px;
  background: #e8e9ef; cursor: pointer; overflow: hidden;
}
.mr-mb-progress-fill { width: 0; height: 100%; background: #4a7cf7; border-radius: 2px; }
.mr-mb-times {
  width: 100%; max-width: 320px; display: flex; justify-content: space-between;
  font-size: 11px; color: #aaa; margin-top: -6px;
}

/* ---------- 房间页：标签栏 ---------- */
.mr-mb-tabs {
  display: flex; background: #f0f1f5; border-radius: 10px; padding: 3px;
  margin-bottom: 10px;
}
.mr-mb-tab {
  flex: 1; border: none; background: transparent; color: #777;
  border-radius: 8px; padding: 8px 0; font-size: 14px;
}
.mr-mb-tab.active { background: #fff; color: #222; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* ---------- 房间页：内容面板 ---------- */
.mr-mb-pane { display: none; }
.mr-mb-pane.active { display: block; }
.mr-mb-pane-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px;
}
.mr-mb-pane-title { font-size: 15px; font-weight: 600; color: #333; }
.mr-mb-addsong {
  border: none; background: #4a7cf7; color: #fff;
  border-radius: 18px; padding: 7px 16px; font-size: 13px;
}

/* 成员列表 */
.mr-mb-userlist { list-style: none; margin: 0; padding: 0; }
.mr-mb-userrow {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px;
}
.mr-mb-userrow img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #eee; flex: none; }
.mr-mb-userrow .mr-mb-uname { flex: 1; font-size: 14px; }
.mr-mb-userrow .mr-mb-ustate { font-size: 12px; color: #bbb; }
.mr-mb-userrow .mr-mb-ustate.on { color: #3a9a5c; }
.mr-mb-userrow .mr-mb-ubadge { font-size: 11px; color: #b8860b; background: #fdf6e3; border-radius: 4px; padding: 1px 6px; }
.mr-mb-kick {
  border: none; background: #fdeaea; color: #e05252;
  border-radius: 8px; padding: 5px 10px; font-size: 12px;
}

/* 歌曲列表 */
.mr-mb-songlist { list-style: none; margin: 0; padding: 0; }
.mr-mb-song {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 12px; padding: 9px 12px; margin-bottom: 8px;
  cursor: pointer;
}
.mr-mb-song.playing { outline: 2px solid #4a7cf7; }
.mr-mb-song-thumb {
  width: 42px; height: 42px; border-radius: 8px; object-fit: cover; background: #f0f0f0; flex: none;
}
.mr-mb-song-main { flex: 1; min-width: 0; }
.mr-mb-song-title { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr-mb-song-artist { font-size: 12px; color: #999; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr-mb-song-ops { display: flex; gap: 8px; flex: none; }
.mr-mb-song-ops button {
  border: 1px solid #e5e5e5; background: #fff; color: #555;
  border-radius: 8px; padding: 5px 10px; font-size: 12px;
}
.mr-mb-song-empty { color: #bbb; text-align: center; padding: 20px 0; font-size: 13px; }

/* 聊天列表 */
.mr-mb-chatlist {
  list-style: none; margin: 0; padding: 0;
  -webkit-overflow-scrolling: touch;
}
.mr-mb-chat-item {
  display: flex; align-items: flex-start; gap: 8px;
  background: #fff; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px;
}
.mr-mb-chat-avatar {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  background: #eef1f6; flex: none;
}
.mr-mb-chat-body { flex: 1; min-width: 0; }
.mr-mb-chat-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.mr-mb-chat-name { font-size: 12px; font-weight: 600; color: #4a7cf7; }
.mr-mb-chat-time { font-size: 11px; color: #bbb; flex: 1; }
.mr-mb-chat-del { border: none; background: #f6f6f6; color: #e05252; border-radius: 6px; padding: 2px 8px; font-size: 11px; }
.mr-mb-chat-text { font-size: 14px; word-break: break-word; }

/* 歌词 */
.mr-mb-lrc-song {
  text-align: center; font-size: 13px; color: #888; margin-bottom: 8px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mr-mb-lrclist {
  position: relative; /* offsetTop 定位基准，滚动居中依赖它 */
  list-style: none; margin: 0; padding: 0 8px;
  /* 高度必须是一个"确定的可见窗口"：clientHeight 会把 padding 算进去，
     之前用 max-height + 24vh/30vh 内边距做居中，clientHeight 变成了 911px，
     居中线被推到屏幕外，当前唱的那句永远在首屏之外。 */
  height: calc(100vh - 566px);
  min-height: 104px;
  overflow: hidden auto;
  -webkit-overflow-scrolling: touch;
  overflow-wrap: break-word;
  scrollbar-width: none;        /* 滚动条不占位，居中计算更准 */
}
/* 首尾留白：让第一句/最后一句也能滚到中线。
   用伪元素而不是 padding——伪元素只加 scrollHeight，不会污染 clientHeight */
.mr-mb-lrclist::before, .mr-mb-lrclist::after { content: ''; display: block; height: calc(50% - 20px); }
.mr-mb-lrclist::-webkit-scrollbar { width: 0; height: 0; }
.mr-mb-lrc-line {
  padding: 8px 6px; text-align: center; font-size: 14px; line-height: 1.55;
  color: #9aa0b5; word-break: break-word;
  transition: color .25s, transform .25s, opacity .25s; cursor: pointer;
  opacity: .7;
}
.mr-mb-lrc-line.on {
  color: #1c1e33; font-weight: 700; transform: scale(1.05); opacity: 1;
}
.mr-mb-lrc-empty { text-align: center; color: #bbb; padding: 40px 16px; font-size: 13px; }

/* 底部固定区：常驻歌词条 + 发送条 */
.mr-mb-room { padding-bottom: calc(112px + env(safe-area-inset-bottom)); } /* 给固定发送区留位 */
.mr-mb-room.mr-mb-lrc-tab { padding-bottom: calc(66px + env(safe-area-inset-bottom)); } /* 歌词页没有常驻歌词条，底部更矮 */
/* 顶栏由宿主接管成 fixed（顶栏被提到页面根部），内容顶部留出它压住的高度 */
.mr-mb-room.has-navbar { padding-top: 56px; }
.mr-mb-chatbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 500;
  display: flex; flex-direction: column; gap: 8px;
  background: #fff; border-top: 1px solid #eee;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
}
/* 常驻歌词条：聊天/歌曲/成员页也能看到正在唱的那句，点一下跳到歌词页 */
.mr-mb-lrcbar {
  display: flex; align-items: center; gap: 8px; width: 100%; box-sizing: border-box;
  border: none; background: #f2f5ff; color: #4a7cf7;
  border-radius: 14px; padding: 7px 12px; font-size: 13px; text-align: left;
}
.mr-mb-lrcbar.mr-mb-hide { display: none; }
.mr-mb-lrcbar-ic { flex: none; font-size: 12px; opacity: .75; }
.mr-mb-lrcbar-text {
  flex: 1; min-width: 0; color: #3b4a6b; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mr-mb-chatrow { display: flex; gap: 8px; }
.mr-mb-chat-input {
  flex: 1; min-width: 0; border: 1px solid #e0e0e0; border-radius: 18px;
  padding: 9px 14px; font-size: 14px;
}
.mr-mb-chat-send { border: none; background: #4a7cf7; color: #fff; border-radius: 18px; padding: 9px 18px; font-size: 14px; flex: none; }

/* ---------- 点歌面板（底部抽屉） ---------- */
.mr-mb-sheet { position: fixed; inset: 0; z-index: 900; }
.mr-mb-sheet.mr-mb-hide { display: none; }
.mr-mb-sheet-mask { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.mr-mb-sheet-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: #f7f8fa; border-radius: 16px 16px 0 0;
  max-height: 72vh; display: flex; flex-direction: column;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
}
.mr-mb-sheet-head { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.mr-mb-sheet-tab {
  border: none; background: transparent; color: #777; font-size: 14px;
  padding: 6px 12px; border-radius: 8px;
}
.mr-mb-sheet-tab.active { background: #fff; color: #222; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.mr-mb-sheet-close {
  margin-left: auto; border: none; background: transparent; color: #999;
  font-size: 16px; padding: 6px 10px;
}
.mr-mb-mode { display: none; flex-direction: column; min-height: 0; }
.mr-mb-mode.active { display: flex; }
.mr-mb-searchrow { display: flex; gap: 8px; margin-bottom: 10px; }
.mr-mb-searchrow select, .mr-mb-searchrow input {
  border: 1px solid #e0e0e0; border-radius: 8px; padding: 9px 10px; font-size: 14px; background: #fff;
}
.mr-mb-searchrow select { flex: none; width: 86px; }
.mr-mb-searchrow input { flex: 1; min-width: 0; }
.mr-mb-dosearch { border: none; background: #4a7cf7; color: #fff; border-radius: 8px; padding: 0 16px; font-size: 14px; flex: none; }
.mr-mb-doimport {
  border: none; background: #4a7cf7; color: #fff; border-radius: 8px;
  padding: 10px 0; font-size: 14px; margin-bottom: 10px;
}
.mr-mb-pl-hint { font-size: 12px; color: #999; line-height: 1.6; }
.mr-mb-pl-head { font-size: 13px; font-weight: 600; color: #555; margin: 12px 0 6px; }
.mr-mb-plist { list-style: none; margin: 0; padding: 0; }
.mr-mb-pl {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 10px; padding: 9px 12px; margin-bottom: 6px;
}
.mr-mb-pl-main { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr-mb-plist .mr-mb-hint { padding: 12px 0; }
.mr-mb-results { list-style: none; margin: 0; padding: 0; overflow-y: auto; min-height: 120px; max-height: 48vh; }
.mr-mb-result {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 10px; padding: 8px 10px; margin-bottom: 6px;
}
.mr-mb-result img { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; background: #f0f0f0; flex: none; }
.mr-mb-result .mr-mb-rmain { flex: 1; min-width: 0; }
.mr-mb-result .mr-mb-rname { font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr-mb-result .mr-mb-rartist { font-size: 12px; color: #999; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr-mb-result .mr-mb-radd {
  border: 1px solid #4a7cf7; background: #fff; color: #4a7cf7;
  border-radius: 14px; padding: 4px 12px; font-size: 12px; flex: none;
}
.mr-mb-result .mr-mb-radd:disabled { border-color: #ccc; color: #bbb; }
.mr-mb-hint { color: #bbb; text-align: center; padding: 24px 0; font-size: 13px; }

/* ---------- 矮屏适配（老机型 / 横屏）：把播放器再收一档，保证当前歌词句不被底栏压住 ---------- */
@media (max-height: 720px) {
  .mr-mb-player { gap: 8px; padding: 4px 0 8px; }
  .mr-mb-disc-wrap, .mr-mb-disc { width: 148px; height: 148px; }
  .mr-mb-disc-cover { left: 36px; top: 36px; width: 76px; height: 76px; }
  .mr-mb-note { width: 30px; height: 30px; }
  .mr-mb-u { width: 46px; }
  .mr-mb-u-avwrap, .mr-mb-u-av { width: 36px; height: 36px; }
  .mr-mb-side { gap: 6px; }
  .mr-mb-player-ops { gap: 12px; }
  .mr-mb-ctl { width: 38px; height: 38px; }
  .mr-mb-playpause { width: 48px; height: 48px; }
  .mr-mb-playpause svg { width: 20px; height: 20px; }
  .mr-mb-now-title { font-size: 15px; }
  .mr-mb-lrclist { height: calc(100vh - 508px); }
}

/* ---------- 核心音乐解析面板（注入槽：发布页 / 编辑页 / 音乐详情页） ----------
   这一块长在产品自己的页面上，所以样式全部收在 .mr-core 下，
   只设自己的外观，不动宿主页面的排版。
   形态是「一颗按钮 + 点开的模态框」：面板本体只占一行，搜索与解析都在框里。 */
.mr-core {
  margin: 12px 0; padding: 10px 12px; border: 1px solid #e6e8ef; border-radius: 10px;
  background: #fafbfe; font-size: 14px; line-height: 1.6; color: #40465a;
  box-sizing: border-box;
}
.mr-core * { box-sizing: border-box; }

/* 面板本体：一颗按钮 + 一句说明。
   说明用 flex:1 吃掉剩下的宽度、窄屏自己折行 —— 不给它宽度的话它会把按钮挤到换行，
   两行之间又没有对齐关系，看着就是「歪的」。 */
.mr-core-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-height: 36px; }
.mr-core-open {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 16px; border: 1px solid #4a7cf7; border-radius: 8px;
  background: #4a7cf7; color: #fff; font-size: 14px; line-height: 1; cursor: pointer;
  flex: none; white-space: nowrap;
}
.mr-core-open:hover { background: #3a6ae0; border-color: #3a6ae0; }
.mr-core-open i { font-size: 15px; line-height: 1; }
.mr-core-hint { flex: 1 1 200px; min-width: 0; font-size: 12px; line-height: 1.6; color: #8b90a3; }
.mr-core-status { margin-top: 6px; font-size: 12px; color: #4a7cf7; min-height: 0; }
.mr-core-status:empty { display: none; }

/* 待挂解析（解析好了还没发的那条）：左边「名称 + 说明」两行，右边两颗按钮。
   中间那个 info 用 flex:1 撑开，左边缘才与上面那行按钮对齐。
   选择器写成两个类是为了压过后面的 .mr-core-item（它把方向设成了 column），
   比原来的 `flex-direction: row !important` 干净。 */
.mr-core-pending:empty { display: none; }
.mr-core-item.mr-core-pending-item {
  flex-direction: row; align-items: center; justify-content: space-between;
  gap: 10px; margin-top: 8px; padding: 8px 10px; border: 1px dashed #cdd6f0;
  border-radius: 8px; background: #fff;
}
.mr-core-pending-info { flex: 1 1 auto; min-width: 0; }
.mr-core-pending-item .mr-core-item-name { font-size: 13px; }
.mr-core-pending-item .mr-core-item-sub { font-size: 12px; margin-top: 2px; }
.mr-core-pending-item .mr-core-ops { margin-top: 0; flex: none; }

/* 模态框开着时别让底下的页面跟着滚 */
html.mr-core-lock, html.mr-core-lock body { overflow: hidden; }

/* ---------- 模态框 ---------- */
/* hidden 属性必须显式压掉 display，否则下面的 flex 会盖过它 */
.mr-core-modal[hidden] { display: none; }
.mr-core-modal {
  position: fixed; inset: 0; z-index: 999999;
  display: flex; align-items: center; justify-content: center;
}
.mr-core-mask { position: absolute; inset: 0; background: rgba(17, 20, 32, .48); }
.mr-core-dialog {
  position: relative; display: flex; flex-direction: column;
  width: min(560px, calc(100vw - 24px)); max-height: min(78vh, 640px);
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(17, 20, 32, .22);
  font-size: 14px; line-height: 1.6; color: #40465a;
}
.mr-core-dialog-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid #eef0f6;
}
.mr-core-title { font-weight: 600; color: #1f2437; }
.mr-core-x {
  width: 30px; height: 30px; border: none; border-radius: 8px; background: transparent;
  color: #8b90a3; font-size: 20px; line-height: 1; cursor: pointer;
}
.mr-core-x:hover { background: #f2f4f9; color: #40465a; }

/* 页签：搜索 / 粘贴链接 */
.mr-core-tabs { display: flex; gap: 6px; padding: 10px 14px 0; border-bottom: 1px solid #eef0f6; }
.mr-core-tab {
  height: 34px; padding: 0 14px; border: 1px solid transparent; border-bottom: none;
  border-radius: 8px 8px 0 0; background: transparent; color: #6b7186;
  font-size: 13px; cursor: pointer; margin-bottom: -1px;
}
.mr-core-tab:hover { color: #4a7cf7; }
.mr-core-tab.is-on {
  border-color: #eef0f6; background: #fff; color: #4a7cf7; font-weight: 600;
}

.mr-core-pane[hidden] { display: none; }
.mr-core-pane { padding: 12px 14px; overflow-y: auto; }
.mr-core-row { display: flex; flex-wrap: wrap; gap: 8px; }
.mr-core-row select, .mr-core-row input[type="text"] {
  height: 36px; padding: 0 10px; border: 1px solid #dfe2ea; border-radius: 8px;
  background: #fff; color: #40465a; font-size: 13px; min-width: 0;
}
/* 输入框的 flex-basis 压到 130px：手机端弹窗内容区只有 300 出头，
   原来 180px 时「音源 + 输入框 + 按钮」会折成三行（输入框一行、按钮一行）。
   桌面上 flex-grow 照旧把它撑满，所以只有换行阈值变了。 */
.mr-core-row input[type="text"] { flex: 1 1 130px; }
.mr-core-row select { flex: none; }
.mr-core-row button {
  height: 36px; padding: 0 16px; border: 1px solid #4a7cf7; border-radius: 8px;
  background: #4a7cf7; color: #fff; font-size: 13px; cursor: pointer; flex: none;
}
.mr-core-row button:hover { background: #3a6ae0; border-color: #3a6ae0; }
/* 手机端这一行放不下「音源 + 输入框 + 按钮」三件套时，按钮会落到第二行 ——
   让它撑满整行，看着是「一个整行按钮」，而不是「左边孤零零剩了一颗按钮」。 */
@media (max-width: 480px) {
  .mr-core-row button { flex: 1 1 100%; }
}

/* 「粘贴链接」页签下面那张说明表：标签列定宽、内容列吃掉剩余 —— 几行左边对齐成一列 */
.mr-core-tip {
  margin-top: 12px; padding: 10px 12px; border-radius: 8px;
  background: #f7f9fe; font-size: 12px; color: #6b7186;
}
.mr-core-tip-line { display: flex; gap: 10px; line-height: 1.7; }
.mr-core-tip-line + .mr-core-tip-line { margin-top: 3px; }
.mr-core-tip-k { flex: none; width: 56px; color: #9aa0b4; }
.mr-core-tip-v { flex: 1 1 auto; min-width: 0; word-break: break-word; }
.mr-core-tip-v code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px; background: #eef2fb; color: #4a5a7a;
  padding: 1px 5px; border-radius: 4px;
}

/* 搜索结果 */
.mr-core-results:empty { display: none; }
.mr-core-list { list-style: none; margin: 10px 0 0; padding: 0; max-height: 44vh; overflow-y: auto; }
/* 待挂解析那条 <li> 的父容器是个 <div>（不是 <ul>），`.mr-core-list` 那条 list-style
   管不到它 —— 不在这里压掉，行首会多出一个小圆点。 */
.mr-core-item { list-style: none; display: flex; flex-direction: column; padding: 8px 4px; border-bottom: 1px solid #eef0f6; }
.mr-core-item:last-child { border-bottom: none; }
.mr-core-item-name { color: #1f2437; word-break: break-word; }
.mr-core-item-sub { font-size: 12px; color: #8b90a3; word-break: break-word; }
/* 搜索结果整行可点：点一条就取地址并填表 */
.mr-core-pickable { cursor: pointer; border-radius: 8px; padding: 8px 8px; }
.mr-core-pickable:hover { background: #f4f7ff; }
.mr-core-pickable:active { background: #e9efff; }
.mr-core-pickable.is-busy { opacity: .55; pointer-events: none; }

.mr-core-dialog-foot {
  padding: 8px 14px; border-top: 1px solid #eef0f6; background: #fafbfe;
}
.mr-core-modal-status { font-size: 12px; color: #8b90a3; }

/* 「清除 / 自检」那一排 */
.mr-core-ops { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mr-core-ops button {
  height: 30px; padding: 0 12px; border-radius: 8px; font-size: 12px; cursor: pointer;
  border: 1px solid #e2e5ec; background: #fff; color: #6b7186;
}
.mr-core-ops button:hover { border-color: #4a7cf7; color: #4a7cf7; }
.mr-core-ops button:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- 填表/解析中的全局加载遮罩与动画 ---------- */
.mr-core-overlay {
  position: fixed; inset: 0; z-index: 999999;
  background: rgba(17, 20, 32, 0.45);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.mr-core-overlay.mr-core-show {
  opacity: 1; pointer-events: auto;
}
.mr-core-overlay-card {
  background: #fff; border-radius: 14px; padding: 22px 28px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  box-shadow: 0 12px 36px rgba(0,0,0,.18);
  min-width: 200px; max-width: 85vw; text-align: center;
}
.mr-core-spinner {
  width: 36px; height: 36px;
  border: 3px solid #eef2fb;
  border-top-color: #4a7cf7;
  border-radius: 50%;
  animation: mr-core-spin .8s linear infinite;
}
.mr-core-overlay-text {
  font-size: 14px; font-weight: 500; color: #2d3345;
}
.mr-core-overlay-sub {
  font-size: 12px; color: #8b92a5; margin-top: -8px;
}
@keyframes mr-core-spin {
  to { transform: rotate(360deg); }
}

