/* 音乐「普通模式」层（2026-11-30 重做，照手机两端 ai_music 普通版）
   2026 黑蓝版：底 #101112 / 板 #1b1c1d / 字 #f3f3f0 / 蓝 #9ddcff */
#measy { display: flex; flex-direction: column; gap: 12px; margin: 0 0 8px; }

/* ---------- 卡片 ---------- */
#measy .measy-card {
  background: #1b1c1d;
  border: 1px solid #26282a;
  border-radius: 14px;
  padding: 14px;
}
#measy .measy-card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
#measy .measy-card-t { font-size: 14px; font-weight: 600; color: #f3f3f0; }

/* 我自己写歌词 开关（双生，联动原生 #custom-lyrics） */
#measy .measy-sw { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12px; color: #9aa0a6; }
#measy .measy-sw input { position: absolute; opacity: 0; width: 0; height: 0; }
#measy .measy-sw i {
  width: 34px; height: 20px; border-radius: 999px; background: #2c2f31; position: relative; transition: background .16s ease;
}
#measy .measy-sw i::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #8b9096; transition: transform .16s ease, background .16s ease;
}
#measy .measy-sw input:checked + i { background: rgba(157, 220, 255, .35); }
#measy .measy-sw input:checked + i::after { transform: translateX(14px); background: #9ddcff; }
#measy .measy-sw input:checked ~ span { color: #cfeaff; }

/* 卡片里被搬进来的原生字段：去掉它自己那层框和外边距 */
#measy .measy-in-card { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
#measy .measy-in-card > .field { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; }
#measy .measy-inst { margin-top: 8px !important; padding-top: 8px !important; border-top: 1px solid #232628 !important; }
#measy .measy-inst .field { display: block; }
#measy .measy-inst .toggle-line { margin: 0 !important; padding: 0 !important; min-height: 0 !important; display: block !important; }
/* 纯音乐：标题 + 小字 + 开关同一行，开关与「纯音乐」文字垂直居中对齐 */
#measy .measy-inst-row { display: flex; align-items: center; gap: 6px; min-height: 20px; }
#measy .measy-inst-t { font-size: 14px; font-weight: 600; color: #f3f3f0; line-height: 1.2; }
#measy .measy-inst-d { font-size: 11px; color: #7d8288; line-height: 1.2; }
#measy .measy-inst-row .toggle { margin-left: auto; flex: 0 0 auto; }

#measy #prompt-field textarea { min-height: 104px !important; background: #141517; border-color: #2c2f31; }
#measy #lyrics-section textarea { min-height: 104px !important; background: #141517; border-color: #2c2f31; margin-top: 8px; }

#measy .measy-hintrow { margin-top: 8px; font-size: 11px; color: #7d8288; }
#measy .measy-foot-tip { margin-top: 8px; font-size: 11px; color: #6f747a; }

/* ---------- 帮我写 ---------- */
#measy .measy-assist {
  display: flex; align-items: center; gap: 10px; margin-top: 10px;
  height: 38px; padding: 0 12px; border-radius: 10px;
  background: #141517; border: 1px solid #2c2f31; transition: border-color .15s ease, background .15s ease;
}
#measy .measy-assist:hover { border-color: rgba(157, 220, 255, .45); background: rgba(157, 220, 255, .06); }
#measy .measy-assist-btn {
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; border: 0; background: none; padding: 0;
  color: #9ddcff; white-space: nowrap;
}
#measy .measy-assist-btn:disabled { opacity: .55; cursor: default; }
#measy .measy-left { font-size: 11px; color: #7d8288; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 灵感例子 ---------- */
#measy .measy-more-btn {
  margin-left: auto; font: inherit; font-size: 12px; color: #9aa0a6;
  background: none; border: 0; padding: 0; cursor: pointer; transition: color .15s ease;
}
#measy .measy-more-btn:hover { color: #9ddcff; }
#measy .measy-egs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#measy .measy-eg {
  display: flex; flex-direction: column; gap: 3px; text-align: left; cursor: pointer;
  padding: 10px 12px; border-radius: 10px; background: #141517; border: 1px solid #2c2f31;
  transition: border-color .15s ease, background .15s ease; min-width: 0;
}
#measy .measy-eg:hover { border-color: rgba(157, 220, 255, .45); background: rgba(157, 220, 255, .06); }
#measy .measy-eg b { font-size: 13px; font-weight: 600; color: #f3f3f0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#measy .measy-eg span { font-size: 11px; color: #7d8288; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 风格标签 / 音乐配方 ---------- */
#measy .measy-prow { display: flex; align-items: center; }
#measy .measy-prow + .measy-prow { margin-top: 12px; }
#measy .measy-pl { flex: 0 0 68px; font-size: 13px; color: #9aa0a6; }
#measy .measy-pick {
  flex: 1; min-width: 0; height: 38px; display: flex; align-items: center; padding: 0 12px;
  border-radius: 10px; background: #141517; border: 1px solid #2c2f31; cursor: pointer;
  font: inherit; transition: border-color .15s ease, background .15s ease;
}
#measy .measy-pick:hover { border-color: #4a4f52; }
#measy .measy-pick.is-on { background: rgba(157, 220, 255, .08); border-color: rgba(157, 220, 255, .45); }
#measy .measy-pick-t { font-size: 13px; color: #8b9096; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#measy .measy-pick.is-on .measy-pick-t { color: #cfeaff; font-weight: 600; }
#measy .measy-pick-arw { margin-left: auto; font-size: 11px; color: #8b9096; transition: transform .15s ease; }
#measy .measy-pick.is-open .measy-pick-arw { transform: rotate(180deg); }

#measy .measy-panel { margin-top: 8px; border: 1px solid #2c2f31; border-radius: 10px; background: #141517; overflow: hidden; }
#measy .measy-panel-h { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid #232628; }
#measy .measy-panel-cnt { font-size: 11px; color: #7d8288; }
#measy .measy-panel-clr, #measy .measy-panel-done {
  font: inherit; font-size: 12px; background: none; border: 0; cursor: pointer; padding: 0;
}
#measy .measy-panel-clr { margin-left: auto; color: #8b9096; }
#measy .measy-panel-clr:hover { color: #f3f3f0; }
#measy .measy-panel-done { color: #9ddcff; font-weight: 600; }
#measy .measy-panel-body { max-height: 264px; overflow-y: auto; padding: 2px 12px 12px; }
#measy .measy-panel-body::-webkit-scrollbar { width: 6px; }
#measy .measy-panel-body::-webkit-scrollbar-thumb { background: #2f3234; border-radius: 3px; }
#measy .measy-g { margin: 10px 0 6px; font-size: 11px; font-weight: 600; color: #6f747a; }
#measy .measy-chips2 { display: flex; flex-wrap: wrap; gap: 6px; }
#measy .measy-tag {
  font: inherit; font-size: 12px; line-height: 1; padding: 7px 10px; border-radius: 999px;
  background: #1b1c1d; color: #d9dcd8; border: 1px solid #2c2f31; cursor: pointer; transition: all .15s ease;
}
#measy .measy-tag:hover { border-color: #4a4f52; color: #fff; }
#measy .measy-tag.is-on { background: rgba(157, 220, 255, .16); border-color: #9ddcff; color: #cfeaff; font-weight: 600; }

#measy .measy-rec {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  font: inherit; padding: 7px 8px; border-radius: 8px; border: 0; background: none; cursor: pointer;
}
#measy .measy-rec:hover { background: #1b1c1d; }
#measy .measy-rec.is-on { background: rgba(157, 220, 255, .1); }
#measy .measy-rec-n { font-size: 13px; color: #e6e8e4; }
#measy .measy-rec.is-on .measy-rec-n { color: #cfeaff; font-weight: 600; }
#measy .measy-rec-s { font-size: 11px; color: #6f747a; }
#measy .measy-rec-ck { margin-left: auto; font-size: 12px; color: #9ddcff; display: none; }
#measy .measy-rec.is-on .measy-rec-ck { display: inline; }

/* ---------- 调得更细 ---------- */
.measy-more { border: 1px solid #26282a; border-radius: 14px; background: #16181a; }
.measy-more > summary {
  cursor: pointer; list-style: none; padding: 13px 14px; font-size: 13px; color: #e6e8e4;
  display: flex; align-items: baseline; gap: 8px;
}
.measy-more > summary::-webkit-details-marker { display: none; }
.measy-more > summary span { font-size: 11px; color: #7d8288; }
.measy-more-body { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 16px; }
.measy-lib { border-top: 1px solid #232628; padding-top: 12px; }
.measy-lib .measy-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.measy-lib .measy-head b { font-size: 13px; color: #f3f3f0; }
.measy-lib .measy-hint { font-size: 11px; color: #7d8288; }
.measy-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.measy-group strong { flex: 0 0 74px; font-size: 12px; color: #9aa0a6; font-weight: 500; }
.measy-more .measy-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.measy-chip, .measy-sub {
  font: inherit; font-size: 12px; line-height: 1; cursor: pointer;
  background: #141517; color: #d9dcd8; border: 1px solid #2c2f31; border-radius: 999px;
  padding: 8px 12px; transition: all .15s ease;
}
.measy-chip:hover, .measy-sub:hover { border-color: #4a4f52; color: #fff; }
.measy-chip[aria-pressed="true"] { background: rgba(157, 220, 255, .14); border-color: #9ddcff; color: #cfeaff; }
.measy-more #music-style-field .style-chips { display: flex; flex-wrap: wrap; gap: 6px; }

@media (max-width: 640px) {
  #measy .measy-pl, .measy-group strong { flex-basis: 100%; }
  #measy .measy-egs { grid-template-columns: 1fr; }
}

/* 创作记录里的三颗按钮（再像一点 / 换个感觉 / 改副歌） */
.audio-card .vary-row{display:flex;gap:6px;margin:11px 0 0}
.audio-card .vary-row button{flex:1;height:26px;padding:0;border-radius:6px;font-size:10px;letter-spacing:.2px;
  border:1px solid #33505f;background:rgba(157,220,255,.08);color:#b9dcf0}
.audio-card .vary-row button:hover{background:rgba(157,220,255,.18);color:#fff;border-color:#4a6b7e}
.simple-modal .vary-lyric{width:100%;margin-top:12px;background:#171a1c;color:#f3f3f0;border:1px solid #2a333a;
  border-radius:8px;padding:10px 12px;font-size:12px;line-height:1.75;resize:vertical;box-sizing:border-box}

/* 2026-11-30 创作记录卡片：显示这条当初选的风格 / 写的描述 / 是否纯音乐（与手机两端一致） */





/* 2026-11-30 记录卡片底部按钮统一：有框一起有框、同高同圆角（重新生成 / 歌词 / 下载 / 删除） */
.audio-card .record-actions>div{gap:6px}
.audio-card .record-actions>div button{width:auto;height:26px;padding:0 8px;border-radius:6px;font-size:10px;
  display:inline-flex;align-items:center;gap:4px;border:1px solid rgba(157,220,255,.22);
  background:rgba(157,220,255,.10);color:#9ddcff}
.audio-card .record-actions>div button:hover{background:rgba(157,220,255,.20);border-color:rgba(157,220,255,.45);color:#e9f7ff}
.audio-card .record-actions>div button svg{width:12px;height:12px}
.audio-card .record-actions>div button[data-download],.audio-card .record-actions>div button[data-delete]{margin-left:0}

/* 2026-12-02 风格标签改成一行行的下拉：一个分组一行，右侧原生下拉，同组单选 */
#measy .measy-sel {
  -webkit-appearance: none; appearance: none;
  flex: 1 1 auto; min-width: 0; height: 36px;
  padding: 0 32px 0 12px;
  border: 1px solid #2c2f31; border-radius: 9px;
  background-color: #16181a;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238b9096' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 10px 6px;
  color: #8b9096; font-size: 13px; font-family: inherit; cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
#measy .measy-sel:hover { border-color: #4a4f52; }
#measy .measy-sel:focus { outline: none; border-color: rgba(157, 220, 255, .45); }
#measy .measy-sel.is-on { color: #cfeaff; font-weight: 600; border-color: rgba(157, 220, 255, .45); background-color: rgba(157, 220, 255, .08); }
#measy .measy-sel option { background: #16181a; color: #e8eaec; }
/* 2026-12-02 预览复检后收紧：行距统一、框高含边框一致、已选态更稳、占位字提亮 */
#measy .measy-tagrows + .measy-prow { margin-top: 12px; }
#measy .measy-sel { box-sizing: border-box; height: 36px; color: #9aa0a6; }
#measy .measy-sel.is-on { color: #d7edff; background-color: rgba(157, 220, 255, .10); border-color: rgba(157, 220, 255, .55); }
#measy .measy-sel:hover.is-on { border-color: rgba(157, 220, 255, .7); }
/* 2026-12-02 第三轮：配方那行的箭头换成跟下拉一致的 chevron；已选态再明确一档 */
#measy .measy-pick-arw {
  font-size: 0; width: 10px; height: 6px; margin-left: auto;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238b9096' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 10px 6px;
  transition: transform .15s ease;
}
#measy .measy-sel.is-on { color: #eaf6ff; font-weight: 600; background-color: rgba(157, 220, 255, .14); border-color: rgba(157, 220, 255, .65); }
/* 2026-12-02 第四轮：未选字与箭头提亮一档，选中态边框加实 */
#measy .measy-sel { color: #a4aab0; }
#measy .measy-sel.is-on { color: #f2f9ff; border-color: rgba(157, 220, 255, .8); background-color: rgba(157, 220, 255, .18); }
#measy .measy-pick-arw { background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%239aa0a6' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
/* 2026-12-02 配方改下拉后复检：底部提示对齐到控件列、已选行加一条左侧色条（inset，不挤布局） */
#measy .measy-card > .measy-foot-tip { margin-top: 10px; padding-left: 68px; }
#measy .measy-sel.is-on { box-shadow: inset 3px 0 0 0 #4aa8e0; }


/* 2026-12-02 第十一版：描述不再用「框」，改成正文排版（她第三次说文字超出框）。
   没有边框、没有固定高度、没有滚动条 ⇒ 文字多长排多长，永远不会被切或压边。 */
/* 2026-12-02 她：「描述文字与上下两条边的空隙要一致」⇒ 上下各 12px，完全对称。 */
.audio-card .music-brief{margin:0;padding:14px 0;border-top:1px solid rgba(157,220,255,.10);min-height:0;overflow:hidden;display:flex;flex-direction:column}
/* 2026-12-02 她指出「描述」标签与正文第一行上沿的空隙不一致 ⇒ 改成基线对齐（align-items:baseline），
   标签不再自己 padding-top，两段文字的首行基线严格齐平。 */
.audio-card .music-brief .brief-row{display:grid;grid-template-columns:26px minmax(0,1fr) auto;gap:10px;align-items:start;min-height:0;flex:1 1 auto}
/* 2026-12-02 她问「上沿空隙是否一致」⇒ 标签与正文同字号同行高（12.5px / 1.75），
   上沿、行距、上下留白全部逐像素一致，不再一个 10.5px 一个 12.5px。 */
.audio-card .music-brief .brief-row>span{font-size:12.5px;color:#7ea3ba;letter-spacing:.3px;line-height:1.75;padding-top:10px;margin:0;align-self:start}
/* 2026-12-02 第十二版：她问「写了歌词 / 上千字提示词怎么显示，我不是叫你做文本框配滑竿吗」
   ⇒ 描述改回真正的文本框：1px 边框 + 内底色 + 圆角 + 固定高度，里面自带滑竿。
   高度被卡片锁死（不吃内容），文字再长也只在框内滚，绝不撑高卡片、绝不越界。 */
.audio-card .music-brief .brief-text{box-sizing:border-box;min-height:0;height:100%;max-height:100%;
  min-width:0;padding:9px 12px;border:1px solid rgba(157,220,255,.16);background:rgba(10,17,22,.55);border-radius:9px;
  overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;
  font-size:12.5px;line-height:1.75;font-weight:400;color:#cfe0ec;white-space:pre-wrap;word-break:break-word}
/* 滑竿自绘：⛔ 不用系统滚动条（不同系统/headless 下粗细颜色不一致，实测有环境根本画不出来）。
   原生滚动条隐藏，右侧叠一条 5px 轨道 + 滑块，JS 按 scrollTop 同步 ⇒ 任何浏览器看到的一样。 */
.audio-card .music-brief .brief-box{position:relative;min-width:0;height:100%;min-height:0}
.audio-card .music-brief .brief-text{padding-right:17px;scrollbar-width:none;-ms-overflow-style:none}
.audio-card .music-brief .brief-text::-webkit-scrollbar{width:0;height:0;display:none}
.audio-card .music-brief .brief-bar{position:absolute;right:3px;top:4px;bottom:4px;width:6px;border-radius:6px;background:rgba(255,255,255,.08);opacity:0;transition:opacity .18s;pointer-events:none}
.audio-card .music-brief .brief-box.is-scroll .brief-bar{opacity:1}
.audio-card .music-brief .brief-thumb{position:absolute;left:0;width:100%;border-radius:5px;background:rgba(157,220,255,.72);min-height:20px}
/* 还有内容没滚出来时，底部 18px 渐隐（她不想看到「半行字被硬切」）：
   只有真正溢出才加 is-scroll，短描述不加，不会误伤。 */
.audio-card .music-brief .brief-text.is-scroll{
  -webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 26px),transparent);
  mask-image:linear-gradient(to bottom,#000 calc(100% - 26px),transparent)}
.audio-card .music-brief .brief-copy{align-self:start;margin-top:8px}

/* 2026-12-02 副标题结构统一：左边风格标签（超长框内省略），右边固定显示「N 首 / 纯音乐」，
   首数永远不会被省略号吃掉，四张卡结构一模一样。 */
.audio-card .card-sub{display:flex;align-items:center;gap:6px;margin-top:8px;min-width:0}
.audio-card .card-sub .sub-tag{flex:1 1 auto;min-width:0;font-style:normal;font-size:10px;color:#7595ab;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.audio-card .card-sub .sub-count{flex:0 0 auto;font-weight:400;font-size:10px;color:#9fc0d4;background:rgba(157,220,255,.10);border:1px solid rgba(157,220,255,.16);border-radius:5px;padding:0 5px;line-height:1.6;white-space:nowrap}
