/* =====================================================================
   SunoMusic 前台样式 · 金色扁平化设计体系 · 亮/暗双主题
   ===================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --sb-w: 215px;
  --top-h: 64px;
  --player-h: 96px;

  --gold:   #c9942e;
  --gold-2: #e8bb5e;
  --gold-3: #f3d79a;
  --gold-grad: linear-gradient(135deg, #ecc471 0%, #cf9630 100%);
  --gold-soft: #fdf6e7;
  --gold-line: #e6c477;

  --bg: #f4f5f9;
  --card: #ffffff;
  --card-2: #fafbfd;
  --line: #e9ebf1;
  --line-2: #f0f1f5;
  --txt: #20242e;
  --txt2: #6b7280;
  --txt3: #9aa1af;
  --green: #10b981;
  --red: #ef4444;
  --radius: 16px;
  --shadow: 0 8px 28px rgba(30, 35, 50, .07);
}

html[data-theme="dark"] {
  --bg: #0e0e15;
  --card: #181822;
  --card-2: #1f1f2b;
  --line: #292a36;
  --line-2: #23242f;
  --txt: #e9eaf2;
  --txt2: #a2a6b8;
  --txt3: #6e7184;
  --gold-soft: #2a2316;
  --shadow: 0 8px 28px rgba(0, 0, 0, .35);
}

html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--txt); font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
img { display: block; }

input, textarea, select {
  font-family: inherit; font-size: 14px; color: var(--txt);
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  outline: none; background: var(--card); transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(207,150,48,.14); }
textarea { resize: vertical; min-height: 96px; line-height: 1.6; }

/* 滚动条 */
.content::-webkit-scrollbar, .hs-vp::-webkit-scrollbar, .sb-nav::-webkit-scrollbar,
.modal::-webkit-scrollbar, .p-playlist::-webkit-scrollbar, .pick-rows::-webkit-scrollbar { width: 0; height: 0; }
* { scrollbar-width: none; }

/* ================= 应用框架 ================= */
/* 整页滚动结构：内容区随页面自然增高；播放器默认隐藏，播放歌曲时 fixed 滑出于视口底部 */
body.app { min-height: 100vh; }
/* 默认（无播放器）：内容主体撑满整屏，版权层自然落在视口底部 */
.app-body { display: flex; min-height: 100vh; }
/* 播放器显示时：内容主体缩到播放器顶部，把版权层顶到播放器下方（未滚动时被播放器覆盖） */
body.app:has(.player.show) .app-body { min-height: calc(100vh - var(--player-h)); }
.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content { flex: 1; padding: 22px 26px 34px; }

/* ================= 左侧导航 ================= */
.sidebar {
  width: var(--sb-w); flex: none; height: 100vh;
  background: var(--card); border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: width .22s ease; overflow: hidden; position: sticky; top: 0; z-index: 40;
}
/* 播放器显示时侧栏缩到播放器顶部，底部不被版权层或空白影响 */
body.app:has(.player.show) .sidebar { height: calc(100vh - var(--player-h)); }
.sb-logo {
  height: var(--top-h); flex: none; display: flex; align-items: center;
  padding: 0 14px; gap: 11px; width: var(--sb-w);
}
.logo-badge {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  background: var(--gold-grad); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(207,150,48,.35);
}
.logo-word { font-size: 17px; font-weight: 800; letter-spacing: .5px; white-space: nowrap;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.logo-mini { display: none; justify-content: center; padding: 0; }

.sb-nav { flex: 1; overflow-y: auto; padding: 10px 12px 12px; }
.sb-group + .sb-group { margin-top: 18px; }
.sb-group-title {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--txt3); font-weight: 500;
  padding: 0 12px; margin-bottom: 8px; white-space: nowrap;
}
.gt-bar { width: 3px; height: 12px; border-radius: 2px; background: var(--gold-grad); flex: none; }

.sb-parent, .sb-link, .sb-child {
  display: flex; align-items: center; width: 100%;
  font-size: 14px; color: var(--txt2); border-radius: 10px;
  white-space: nowrap; position: relative; text-align: left;
}
.sb-parent { padding: 10px 12px; gap: 12px; font-weight: 600; color: var(--txt); }
.sb-link { padding: 10px 12px; gap: 12px; font-weight: 500; margin-top: 2px; }
.sb-ico { width: 22px; height: 22px; flex: none; }
.sb-parent:hover, .sb-link:hover, .sb-child:hover { background: var(--card-2); color: var(--gold); }
.sb-link.active, .sb-child.active { background: var(--gold-soft); color: var(--gold); font-weight: 700; }
html[data-theme="dark"] .sb-link.active, html[data-theme="dark"] .sb-child.active { background: rgba(207,150,48,.14); }
.sb-arrow { width: 15px; height: 15px; margin-left: auto; transition: transform .2s; }
.sb-menu.collapsed .sb-arrow { transform: rotate(-90deg); }

.sb-children { display: flex; flex-direction: column; padding: 2px 0 4px; overflow: hidden; }
.sb-menu.collapsed .sb-children { display: none; }
.sb-child { padding: 9px 12px 9px 48px; gap: 10px; font-size: 13.5px; }
.sb-child-ico { display: none; width: 20px; height: 20px; flex: none; }
.sb-tag {
  margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 700;
  color: #8a5e14; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.sb-tag { position: relative; }
.sb-tag::before {
  content: ''; position: absolute; inset: -3px -8px; border-radius: 999px;
  background: var(--gold-soft); border: 1px solid var(--gold-line); z-index: -1;
}
html[data-theme="dark"] .sb-tag::before { background: rgba(207,150,48,.12); border-color: rgba(230,196,119,.3); }
.sb-tag { color: var(--gold); -webkit-text-fill-color: var(--gold); }

/* 实心金色别名标签（天工音乐/海螺/天谱乐） */
.sb-tag-gold {
  -webkit-text-fill-color: #fff; color: #fff;
  background: var(--gold-grad);
  border: none; border-radius: 999px;
  padding: 2px 8px; font-size: 10.5px; font-weight: 700; font-style: normal;
  line-height: 1.5;
}
.sb-tag-gold::before { display: none; }
/* 红色 NEW 标签 */
.sb-tag-new {
  -webkit-text-fill-color: #fff; color: #fff;
  background: linear-gradient(135deg,#ff6b6b,#ef4444);
  border: none; border-radius: 6px;
  padding: 1px 6px; font-size: 10px; font-weight: 800; font-style: normal;
  line-height: 1.5; letter-spacing: .3px;
}
.sb-tag-new::before { display: none; }
.sb-child-ai .sb-text { font-weight: 700; }

/* 帮助与更多 */
.sb-help-wrap { flex: none; padding: 10px 12px 14px; position: relative; }
.sb-help-pop {
  position: absolute; left: 12px; right: 12px; bottom: 60px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.14); padding: 6px; display: none; z-index: 60;
}
.sb-help-pop.open { display: block; }
.sb-help-pop a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 13px; color: var(--txt2); }
.sb-help-pop a:hover { background: var(--card-2); color: var(--gold); }
.sb-help {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--txt2);
  border-top: 1px solid var(--line-2);
}
.sb-help:hover { background: var(--card-2); color: var(--gold); }
.sb-more { width: 16px; height: 16px; margin-left: auto; }

/* ------- 侧栏收起态（单一 class 驱动，宽度 70px） ------- */
html[data-sb="collapsed"] { --sb-w: 70px; }
html[data-sb="collapsed"] .logo-full { display: none; }
html[data-sb="collapsed"] .logo-mini { display: flex; }
html[data-sb="collapsed"] .sb-group-title,
html[data-sb="collapsed"] .sb-parent,
html[data-sb="collapsed"] .sb-text,
html[data-sb="collapsed"] .sb-arrow,
html[data-sb="collapsed"] .sb-more,
html[data-sb="collapsed"] .sb-tag,
html[data-sb="collapsed"] .sb-tag-gold,
html[data-sb="collapsed"] .sb-tag-new { display: none; }
html[data-sb="collapsed"] .sb-nav { padding: 10px 10px; }
html[data-sb="collapsed"] .sb-children { display: flex !important; flex-direction: column; padding: 0; }
html[data-sb="collapsed"] .sb-child,
html[data-sb="collapsed"] .sb-link,
html[data-sb="collapsed"] .sb-help { justify-content: center; padding: 10px 0; gap: 0; }
html[data-sb="collapsed"] .sb-child-ico { display: block; }
html[data-sb="collapsed"] .sb-child + .sb-child { margin-top: 2px; }
html[data-sb="collapsed"] .sb-help-wrap { padding: 10px 10px 14px; }

/* ================= 顶栏 ================= */
.topbar {
  flex: none; height: var(--top-h); background: var(--card);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; padding: 0 22px;
  position: sticky; top: 0; z-index: 30;
}
.tb-icon-btn {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center; color: var(--txt2);
}
.tb-icon-btn:hover { background: var(--card-2); color: var(--gold); }
.tb-search {
  display: flex; align-items: center; gap: 8px; flex: 1; max-width: 460px;
  background: var(--card-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 0 16px; height: 40px; transition: border-color .15s;
}
.tb-search:focus-within { border-color: var(--gold); }
.tb-search svg { color: var(--txt3); flex: none; }
.tb-search input { border: none; background: none; padding: 0; border-radius: 0; box-shadow: none !important; }

.tb-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }

/* 金色胶囊 */
.tb-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 18px;
  border-radius: 999px; font-size: 13.5px; font-weight: 700; white-space: nowrap; flex: none;
}
.pill-invite {
  background: var(--gold-grad); color: #fff;
  box-shadow: 0 4px 12px rgba(207,150,48,.32);
}
.pill-invite:hover { filter: brightness(1.05); }
.pill-vip {
  background: var(--card-2); border: 1.5px solid var(--gold-line); color: var(--gold);
}
.pill-vip:hover { background: var(--gold-soft); }
/* 后台自定义顶部导航链接：金色边框胶囊 */
.pill-nav {
  background: transparent; border: 1.5px solid var(--gold-line); color: var(--gold);
  text-decoration: none;
}
.pill-nav:hover { background: var(--gold-soft); }

/* 签到横条 */
.sign-bar {
  display: flex; align-items: center; height: 40px; border-radius: 999px; overflow: hidden;
  background: var(--card-2); border: 1.5px solid var(--gold-line); flex: none;
}
.sign-num { padding: 0 16px; font-size: 13px; color: var(--txt2); white-space: nowrap; }
.sign-num b { color: var(--gold); font-size: 16px; font-weight: 800; margin-left: 3px; }
.sign-btn {
  align-self: stretch; display: inline-flex; align-items: center; padding: 0 20px;
  background: var(--gold-grad); color: #fff; font-size: 13.5px; font-weight: 700; white-space: nowrap;
}
.sign-btn:hover { filter: brightness(1.05); }
.sign-btn.is-signed { background: var(--card-2); color: var(--txt3); cursor: default; }

/* 头像下拉 */
.tb-user { position: relative; }
.tb-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--gold-grad);
  color: #fff; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.tb-avatar:hover { box-shadow: 0 0 0 3px rgba(207,150,48,.2); }
.tb-user-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 168px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.14); padding: 6px; display: none; z-index: 200;
}
.tb-user.open .tb-user-menu { display: block; }
.um-head { padding: 8px 12px 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 5px; }
.um-head b { display: block; font-size: 14px; }
.um-head span { font-size: 12px; color: var(--txt3); }
.tb-user-menu a, .tb-user-menu button {
  display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px;
  font-size: 13px; color: var(--txt2);
}
.tb-user-menu a:hover, .tb-user-menu button:hover { background: var(--card-2); color: var(--gold); }
.tb-auth { height: 38px; padding: 0 20px; border-radius: 999px; font-size: 13.5px; font-weight: 700; flex: none; display: inline-flex; align-items: center; justify-content: center; line-height: 1; white-space: nowrap; text-decoration: none; }
.tb-auth.login { border: 1.5px solid var(--line); color: var(--txt2); }
.tb-auth.login:hover { border-color: var(--gold); color: var(--gold); }
.tb-auth.reg { background: var(--gold-grad); color: #fff; }

/* 主题切换图标显隐 */
.ico-sun { display: none; }
html[data-theme="dark"] .ico-sun { display: block; }
html[data-theme="dark"] .ico-moon { display: none; }

/* ================= 通用按钮/卡片/表单 ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px; border-radius: 10px; background: var(--gold-grad); color: #fff;
  font-size: 14px; font-weight: 700; transition: filter .15s, transform .05s;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-light { background: var(--card); color: var(--txt); border: 1px solid var(--line); font-weight: 500; }
.btn-light:hover { border-color: var(--gold); color: var(--gold); filter: none; }
.btn-danger { background: var(--red); }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card-title { font-size: 16px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.notice {
  background: var(--gold-soft); border: 1px solid var(--gold-line);
  color: #8a5e14; border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px; line-height: 1.7;
}
html[data-theme="dark"] .notice { color: var(--gold-3); }

.mode-tabs { display: flex; gap: 6px; background: var(--card-2); padding: 4px; border-radius: 12px; margin-bottom: 16px; }
.mode-tabs button {
  flex: 1; padding: 9px 0; border-radius: 8px; font-size: 13.5px; font-weight: 700; color: var(--txt2);
  transition: all .15s;
}
.mode-tabs button.active { background: var(--card); color: var(--gold); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.form-item { margin-bottom: 13px; }
.form-item label { display: block; font-size: 13px; font-weight: 600; color: var(--txt); margin-bottom: 6px; }
.form-row { display: flex; gap: 10px; }
.form-row > * { flex: 1; }
.check-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--txt2); user-select: none; }
.check-line input { width: auto; }
.cost-tip {
  background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.25); color: var(--green);
  font-size: 12.5px; border-radius: 10px; padding: 9px 12px; margin: 4px 0 14px; line-height: 1.7;
}

/* ================= 首页：Hero + 今日精选 ================= */
.hero { display: flex; gap: 16px; height: 446px; }
.hero-slider { flex: 1.18; min-width: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--card); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-fallback {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 72px; background: var(--gold-grad);
}
.hero-mask {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 38%, rgba(0,0,0,.72) 100%);
}
.hero-cap { position: absolute; left: 26px; right: 26px; bottom: 22px; color: #fff; }
.hero-cap .h-badge {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 1px;
  background: var(--gold-grad); padding: 4px 12px; border-radius: 999px; margin-bottom: 10px;
}
.hero-cap h2 { font-size: 26px; font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.hero-cap p { font-size: 13.5px; opacity: .85; margin-top: 4px; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff;
  display: flex; align-items: center; justify-content: center; z-index: 5;
}
.hero-arrow:hover { background: var(--gold-grad); }
.hero-arrow.prev { left: 14px; } .hero-arrow.next { right: 14px; }
.hero-dots { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 7px; z-index: 5; }
.hero-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; transition: all .2s; }
.hero-dots i.active { width: 20px; border-radius: 4px; background: var(--gold-2); }

.hero-side {
  width: 384px; flex: none; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden;
}
.pick-head { display: flex; align-items: flex-end; justify-content: space-between; padding: 18px 20px 6px; flex: none; }
.pick-head h3 { font-size: 22px; font-weight: 800; }
.pick-head p { font-size: 12px; color: var(--txt3); margin-top: 3px; }
.pick-head a { font-size: 12.5px; color: var(--gold); font-weight: 600; white-space: nowrap; }
.pick-rows { flex: 1; position: relative; padding: 4px 12px 12px; }
.pick-batch { position: absolute; inset: 4px 12px 12px; display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity .4s; }
.pick-batch.active { opacity: 1; pointer-events: auto; }
.pick-row {
  flex: 1; display: flex; align-items: center; gap: 12px; padding: 4px 8px;
  border-radius: 12px; cursor: pointer; min-height: 0;
}
.pick-row:hover { background: var(--card-2); }
.pick-cover { width: 54px; height: 54px; border-radius: 10px; overflow: hidden; flex: none; background: var(--gold-grad); }
.pick-cover img { width: 100%; height: 100%; object-fit: cover; }
.pick-num { font-size: 19px; font-weight: 800; font-style: italic; width: 22px; text-align: center; flex: none;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pick-main { flex: 1; min-width: 0; }
.pick-title { font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-sub { font-size: 11.5px; color: var(--txt3); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-play {
  width: 38px; height: 38px; border-radius: 50%; flex: none; background: var(--gold-grad);
  color: #fff; display: flex; align-items: center; justify-content: center; padding-left: 2px;
  opacity: 0; transition: opacity .15s;
}
.pick-row:hover .pick-play { opacity: 1; }

/* ================= 区块标题 ================= */
.sec-head { display: flex; align-items: center; margin: 30px 2px 16px; }
.sec-bar { width: 4px; height: 19px; border-radius: 3px; background: var(--gold-grad); margin-right: 10px; flex: none; }
.sec-title { font-size: 19px; font-weight: 800; }
.sec-more { margin-left: auto; font-size: 13px; color: var(--txt2); display: inline-flex; align-items: center; gap: 4px; }
.sec-more:hover { color: var(--gold); }

/* ================= 横滑容器 ================= */
.hs { position: relative; }
.hs-vp { overflow-x: auto; scroll-behavior: smooth; }
.hs-track { display: flex; gap: 10px; width: max-content; padding: 4px 2px 8px; }
.hs-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%; z-index: 10;
  background: var(--card); border: 1px solid var(--line); color: var(--txt);
  box-shadow: 0 4px 14px rgba(0,0,0,.14);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .18s;
}
.hs:hover .hs-arrow { opacity: 1; }
.hs-arrow:hover { background: var(--gold-grad); color: #fff; border-color: transparent; }
.hs-arrow.prev { left: -8px; }
.hs-arrow.next { right: -8px; }
.hs-arrow.is-off { opacity: 0 !important; pointer-events: none; }

/* 卡片通用 hover 播放钮 */
.cover-hover-play {
  position: absolute; right: 10px; bottom: 10px;
  width: 40px; height: 40px; border-radius: 50%; background: var(--gold-grad); color: #fff;
  display: flex; align-items: center; justify-content: center; padding-left: 2px;
  opacity: 0; transform: translateY(8px); transition: all .18s; pointer-events: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.like-btn { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--txt3); }
.like-btn svg { width: 15px; height: 15px; }
.like-btn.on { color: var(--red); }
.like-btn.on svg { fill: var(--red); stroke: var(--red); }

/* ---- 热门榜单 220x300 ---- */
.rank-card { width: 220px; flex: none; cursor: pointer; }
.rc-cover { position: relative; width: 214px; height: 214px; margin: 3px auto 0; border-radius: 14px; overflow: hidden; background: var(--gold-grad); }
.rc-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.rank-card:hover .rc-cover img { transform: scale(1.05); }
.rank-card:hover .cover-hover-play { opacity: 1; transform: none; }
.rc-info { padding: 10px 6px 0; }
.rc-title { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--txt3); }
.rc-ver { background: var(--card-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }

/* ---- 新歌首发 185x235 ---- */
.new-card { width: 185px; flex: none; cursor: pointer; height: 235px; }
.nc-cover { position: relative; width: 185px; height: 185px; border-radius: 14px; overflow: hidden; background: var(--gold-grad); }
.nc-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.new-card:hover .nc-cover img { transform: scale(1.05); }
.new-card:hover .cover-hover-play { opacity: 1; transform: none; }
.nc-new {
  position: absolute; left: 0; top: 12px; background: var(--red); color: #fff;
  font-size: 10.5px; font-weight: 800; padding: 2px 9px 2px 7px; border-radius: 0 999px 999px 0;
  display: inline-flex; align-items: center; gap: 6px;
}
.nc-info { padding: 9px 4px 0; }
.nc-title { font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.nc-title .nc-new-dot { color: #fff; background: var(--red); font-size: 10px; font-style: normal; padding: 1px 5px; border-radius: 5px; flex: none; }
.nc-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--txt3); }
.nc-ver { background: var(--card-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }

/* ---- 风格流派 ---- */
.genre-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.g-tag {
  padding: 7px 22px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--card); font-size: 13.5px; color: var(--txt2); font-weight: 600;
}
.g-tag:hover { border-color: var(--gold-line); color: var(--gold); }
.g-tag.active { background: var(--gold-grad); border-color: transparent; color: #fff; }
.genre-panel { display: none; }
.genre-panel.active { display: block; }
.gp-track {
  display: grid; grid-template-rows: repeat(2, 72px); grid-auto-flow: column;
  grid-auto-columns: 360px; gap: 10px; width: max-content; padding: 2px;
}
.g-row {
  height: 72px; padding: 9px 10px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; display: flex; align-items: center; gap: 12px; cursor: pointer;
}
.g-row:hover { border-color: var(--gold-line); }
.g-cover { position: relative; width: 46px; height: 46px; border-radius: 9px; overflow: hidden; flex: none; background: var(--gold-grad); }
.g-cover img { width: 100%; height: 100%; object-fit: cover; }
.g-mask {
  position: absolute; inset: 0; background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center; color: #fff;
  opacity: 0; transition: opacity .15s;
}
.g-row:hover .g-mask { opacity: 1; }
.g-mask svg { width: 18px; height: 18px; fill: #fff; }
.g-main { flex: 1; min-width: 0; }
.g-title { font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-tags { font-size: 11.5px; color: var(--txt3); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: capitalize; }
.g-right { flex: none; display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--txt3); }
.g-ver { background: var(--card-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }

/* ---- 最新专辑 ---- */
.album-card { width: 185px; flex: none; cursor: pointer; }
.al-cover { position: relative; width: 182px; height: 183px; margin: 3px auto 0; border-radius: 14px; overflow: hidden; background: var(--gold-grad); }
.al-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.album-card:hover .al-cover img { transform: scale(1.05); }
.al-play {
  position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold-grad); color: #fff; display: flex; align-items: center; justify-content: center;
  padding-left: 2px; box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.al-info { padding: 10px 6px 0; }
.al-title { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-user { display: flex; align-items: center; gap: 6px; margin-top: 7px; font-size: 12px; color: var(--txt3); overflow: hidden; }
.al-user .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-count {
  flex: none; color: #8a5e14; background: var(--gold-soft); border-radius: 999px; padding: 1px 8px; font-weight: 700;
}
html[data-theme="dark"] .al-count { color: var(--gold-3); }
.al-desc {
  margin-top: 7px; font-size: 12px; color: var(--txt3); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 空区块 */
.block-empty {
  background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius);
  color: var(--txt3); text-align: center; padding: 46px 20px; font-size: 13.5px;
}
.block-empty b { color: var(--gold); }
/* 空状态按钮（如广场"去创作第一首歌"）内的文字保持白色，不被金色强调覆盖 */
.block-empty .btn, .block-empty .btn b { color: #fff; }

/* 版权：右侧主内容列（.main-col）最底部的独立层，只占右侧内容宽度，不接触左侧导航栏。
   播放器默认隐藏时自然落在视口底部；播放器显示时被顶到播放器后方，页面滚动到底完整露出 */
.site-footer {
  padding: 16px 26px 14px; background: var(--card); border-top: 1px solid var(--line);
  text-align: center; color: var(--txt3); font-size: 12.5px; line-height: 1.9;
}
/* 播放器显示时，把其高度并入版权层自身的下 padding（文档流内元素的 padding 才产生滚动高度）：
   滚动到底时版权文字正好完整露出、底边贴合播放器顶部；背景延伸至播放器后方；
   关闭播放器（.show 移除）后自动恢复普通下间距 */
body.app:has(.player.show) .site-footer { padding-bottom: calc(14px + var(--player-h)); }
.site-footer a:hover { color: var(--gold); }
.site-footer .sf-beian a { color: inherit; text-decoration: none; margin: 0 8px; }
.site-footer .sf-beian a:hover { color: var(--gold); }

/* ================= 创作中心 ================= */
.page-head { margin-bottom: 18px; }
.page-head h1 { font-size: 22px; font-weight: 800; }
.page-head p { font-size: 13px; color: var(--txt3); margin-top: 5px; }
.studio-wrap { display: flex; gap: 18px; align-items: flex-start; }
.studio-form { width: 380px; flex: none; position: sticky; top: var(--top-h); max-height: calc(100vh - var(--top-h) - 20px); overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
.studio-form::-webkit-scrollbar { display: none; width: 0; height: 0; }
.studio-works { flex: 1; min-width: 0; }
.studio-works .card { padding: 18px; }

/* ============ 创作中心 / 视频生成 / AI绘画：内容区纵向填充 ============
   页面根节点加 .studio-wrap.fill 后生效：
   - 内容区不再整体滚动，改为左右两列各自内部滚动（滚动条隐藏）
   - 左列表单区高度自适应到播放器顶部；播放器关闭后自动撑满到页面底部 */
.content:has(> .studio-wrap.fill) { display: flex; flex-direction: column; overflow: hidden; }
.content:has(> .studio-wrap.fill) > .page-head { flex: none; }
.studio-wrap.fill { flex: 1; min-height: 0; align-items: stretch; }
.studio-wrap.fill .studio-form {
  position: static; max-height: none; align-self: stretch;
  overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.studio-wrap.fill .studio-form::-webkit-scrollbar { display: none; width: 0; height: 0; }
.studio-wrap.fill .studio-works {
  overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; min-height: 0;
  padding-bottom: 2px;
}
.studio-wrap.fill .studio-works::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* studio 模型选择器 */
.studio-model-picker { position: relative; margin-bottom: 14px; }
.smp-trigger {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; background: linear-gradient(135deg, #7a5418 0%, #b5832c 100%);
  border: 1px solid #8a6220; border-radius: 14px;
  cursor: pointer; text-align: left; font-family: inherit;
  transition: box-shadow .15s;
}
.smp-trigger:hover { box-shadow: 0 4px 16px rgba(120,80,16,.35); }
.smp-trigger .smp-label { font-size: 12px; color: #f0d9a3; font-weight: 600; flex: none; }
.smp-trigger .smp-val { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; font-size: 14px; color: #fff; }
.smp-trigger .smp-val b { font-size: 15px; font-weight: 700; }
.smp-trigger .smp-val span { font-size: 12px; color: #f0d9a3; }
.smp-trigger .smp-arrow { color: #f0d9a3; transition: transform .2s; }
.studio-model-picker.open .smp-trigger .smp-arrow { transform: rotate(180deg); }
.smp-panel {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.16); padding: 10px;
  max-height: 440px; overflow-y: auto; z-index: 30;
  display: none;
}
.studio-model-picker.open .smp-panel { display: block; }
.smp-group { margin-bottom: 10px; }
.smp-group:last-child { margin-bottom: 0; }
.smp-g-title { font-size: 11.5px; font-weight: 700; color: var(--txt3); padding: 4px 8px 6px; letter-spacing: .4px; text-transform: uppercase; }
.smp-item {
  display: flex; align-items: center; gap: 10px; padding: 10px;
  border-radius: 10px; cursor: pointer; transition: background .12s;
  border: 1px solid transparent;
}
.smp-item:hover { background: var(--card-2); }
.smp-item.active { background: linear-gradient(135deg, #7a5418 0%, #b5832c 100%); border-color: #8a6220; }
.smp-item.active .smp-mname, .smp-item.active .smp-mver { color: #fff; }
.smp-item .smp-ico { font-size: 20px; width: 28px; text-align: center; }
.smp-item .smp-main { flex: 1; min-width: 0; }
.smp-item .smp-mname { font-size: 13.5px; font-weight: 600; }
.smp-item .smp-mver { font-size: 11.5px; color: var(--txt3); margin-top: 2px; }
.smp-item .smp-check { color: var(--gold); font-weight: 700; font-size: 15px; width: 16px; text-align: center; }
.smp-item.offline { opacity: .45; cursor: not-allowed; filter: grayscale(.7); }
.smp-item.offline:hover { background: transparent; }
.smp-item .smp-off { margin-left: auto; font-size: 11px; color: var(--txt3); border: 1px solid var(--line); border-radius: 6px; padding: 1px 8px; white-space: nowrap; }

/* ================= 作品网格（JS 动态卡片） ================= */
.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.work-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; position: relative; transition: box-shadow .15s, transform .15s; }
.work-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.work-cover {
  position: relative; aspect-ratio: 16/10; background: var(--gold-grad);
  display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden;
}
.work-cover img { width: 100%; height: 100%; object-fit: cover; }
.work-cover .cover-fallback { color: rgba(255,255,255,.9); font-size: 38px; }
.cover-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.28); opacity: 0; transition: opacity .15s; }
.work-cover:hover .cover-play { opacity: 1; }
.cover-play .play-circle {
  width: 46px; height: 46px; border-radius: 50%; background: var(--gold-grad);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; padding-left: 3px;
}
.cover-fav { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.4); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; z-index: 2; }
.cover-fav.on { color: #ffd34d; }
.cover-video-badge { position: absolute; left: 8px; top: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; padding: 2px 9px; border-radius: 999px; }
.work-body { padding: 12px 13px 8px; }
.work-title { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-meta { display: flex; align-items: center; gap: 7px; margin-top: 7px; font-size: 11.5px; color: var(--txt3); flex-wrap: wrap; }
.type-badge { font-size: 10.5px; padding: 2px 8px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); font-weight: 700; }
.tag-chip { background: var(--card-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-chip { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.status-chip.s-pending { background: #fef3c7; color: #92400e; }
.status-chip.s-processing { background: #e0f2fe; color: #0369a1; }
.status-chip.s-completed { background: #d1fae5; color: #047857; }
.status-chip.s-failed { background: #fee2e2; color: #b91c1c; }
.work-actions { display: flex; align-items: center; gap: 4px; padding: 8px 10px 10px; border-top: 1px solid var(--line-2); margin-top: 8px; }
.icon-btn {
  flex: 1; padding: 6px 0; font-size: 12.5px; color: var(--txt2); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap;
}
.icon-btn:hover { background: var(--card-2); color: var(--gold); }
.icon-btn.danger:hover { color: var(--red); background: #fee2e2; }
.icon-btn.on { color: var(--gold); font-weight: 700; }
.icon-btn.more { flex: 0 0 30px; font-size: 16px; }
/* 作品卡片公开开关（与 .lr-switch 同构，尺寸适配卡片底部） */
.ws-switch { position: relative; display: inline-block; width: 36px; height: 20px; flex: none; margin: 0 2px; }
.ws-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.ws-switch i { position: absolute; inset: 0; background: #d3d3d8; border-radius: 999px; transition: .2s; cursor: pointer; }
.ws-switch i b { position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.28); }
.ws-switch input:checked + i { background: var(--gold-grad); }
.ws-switch input:checked + i b { transform: translateX(16px); }
.ws-switch input:disabled + i { opacity: .5; cursor: default; }
.card-menu {
  position: absolute; right: 10px; bottom: 52px; min-width: 138px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.16);
  padding: 5px; display: none; z-index: 20;
}
.card-menu.open { display: block; }
.card-menu button { display: block; width: 100%; text-align: left; padding: 8px 10px; font-size: 12.5px; border-radius: 8px; color: var(--txt2); }
.card-menu button:hover { background: var(--card-2); color: var(--gold); }

/* 生成中 / 失败态 */
.pending-box { padding: 28px 14px 32px; text-align: center; }
.pending-box .pulse { width: 42px; height: 42px; margin: 0 auto 12px; border-radius: 50%; border: 3px solid var(--gold-soft); border-top-color: var(--gold); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pending-box .p-txt { color: var(--txt2); font-size: 13px; }
.pending-box .p-sub { color: var(--txt3); font-size: 12px; margin-top: 5px; }
.fail-box { padding: 22px 14px 26px; text-align: center; }
.fail-box .f-icon { font-size: 30px; margin-bottom: 8px; }
.fail-box .f-msg { color: var(--red); font-size: 12.5px; line-height: 1.6; padding: 0 10px; word-break: break-all; }

.load-more { text-align: center; margin-top: 22px; }
.empty-tip { text-align: center; color: var(--txt3); padding: 54px 0 60px; grid-column: 1/-1; }
.empty-tip .e-icon { font-size: 44px; margin-bottom: 10px; }

.filter-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-bar .f-btn { padding: 7px 17px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-size: 13px; color: var(--txt2); font-weight: 600; }
.filter-bar .f-btn.active { background: var(--gold-grad); color: #fff; border-color: transparent; }

/* ================= 底部播放器 ================= */
.player {
  flex: none; height: var(--player-h); background: var(--card); border-top: 1px solid var(--line);
  display: none; align-items: center; padding: 0 22px; gap: 18px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  box-shadow: 0 -4px 20px rgba(0,0,0,.05);
}
.player.show { display: flex; }
.p-left { display: flex; align-items: center; gap: 12px; width: 240px; min-width: 160px; }
.p-cover {
  width: 52px; height: 52px; border-radius: 11px; background: var(--gold-grad); color: #fff;
  display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none;
}
.p-cover img { width: 100%; height: 100%; object-fit: cover; }
.p-name { font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-artist { font-size: 11.5px; color: var(--txt3); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.p-center { flex: 1; min-width: 0; max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; gap: 7px; }
.p-row1 { display: flex; align-items: center; justify-content: center; gap: 18px; }
.p-row2 { display: flex; align-items: center; gap: 12px; }
.p-ic { color: var(--txt2); display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; position: relative; }
.p-ic:hover { color: var(--gold); background: var(--card-2); }
.p-ic .ico-one, .p-ic .ico-shuffle { display: none; }
#pMode[data-mode="one"] .ico-loop, #pMode[data-mode="shuffle"] .ico-loop { display: none; }
#pMode[data-mode="one"] .ico-one { display: block; }
#pMode[data-mode="shuffle"] .ico-shuffle { display: block; }
#pMode[data-mode="one"], #pMode[data-mode="shuffle"] { color: var(--gold); }
.p-main {
  width: 42px; height: 42px; border-radius: 50%; background: var(--gold-grad); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(207,150,48,.35);
}
.p-main:hover { filter: brightness(1.06); }
.p-time { font-size: 11.5px; color: var(--txt3); width: 44px; text-align: center; flex: none; font-variant-numeric: tabular-nums; }
.p-time.remain { width: 48px; }
.p-track { flex: 1; height: 5px; background: var(--line); border-radius: 999px; cursor: pointer; position: relative; }
.p-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--gold-grad); border-radius: 999px; }
.p-fill::after {
  content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--gold);
  opacity: 0; transition: opacity .15s; box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.p-track:hover .p-fill::after { opacity: 1; }

.p-right { display: flex; align-items: center; gap: 6px; width: 90px; justify-content: flex-end; }
.p-vol-wrap { position: relative; display: flex; align-items: center; flex-direction: column; }
.p-vol-btn { position: relative; }
.p-vol-btn .ico-x {
  position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; background: currentColor;
  transform: translate(-50%, -50%) rotate(-45deg); border-radius: 2px; opacity: 0; pointer-events: none;
  transition: opacity .18s ease;
}
.p-vol-btn .ico-x::after {
  content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: currentColor; border-radius: 2px; transform: rotate(90deg);
}
.p-vol-btn.muted { color: var(--txt3); }
.p-vol-btn.muted .ico-vol { opacity: .28; }
.p-vol-btn.muted .ico-x { opacity: 1; }
.p-vol-slider {
  position: absolute; bottom: calc(100% - 2px); left: 50%;
  transform: translateX(-50%) scaleY(.6); transform-origin: bottom center;
  width: 34px; height: 160px; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 0; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,.12);
  opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease;
}
.p-vol-wrap.show .p-vol-slider { opacity: 1; pointer-events: auto; transform: translateX(-50%) scaleY(1); }
/* 自定义纵向轨道：行程 0~100%，顶/底均可到达，按下不出现任何描边 */
.vol-track {
  position: relative; width: 6px; height: 132px; border-radius: 3px;
  background: var(--line); cursor: pointer; outline: none;
  -webkit-tap-highlight-color: transparent; touch-action: none; user-select: none;
}
.vol-fill {
  position: absolute; left: 0; right: 0; bottom: 0; height: 90%;
  border-radius: 3px; background: var(--gold); pointer-events: none;
}
.vol-thumb {
  position: absolute; left: 50%; bottom: 90%; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 2px solid var(--gold); pointer-events: none;
  transform: translate(-50%, 50%); box-shadow: 0 1px 4px rgba(0,0,0,.25); outline: none;
}
.vol-track:active, .vol-track:focus, .vol-track:focus-visible { outline: none; border: none; box-shadow: none; }

/* 播放列表面板：相对播放列表图标正上方居中展开 */
.p-list-wrap { position: relative; display: inline-flex; align-items: center; }
.p-playlist {
  position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%);
  width: 320px; max-height: 340px; overflow-y: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.2);
  padding: 8px; display: none;
}
.p-playlist.open { display: block; }
.pp-head { font-size: 12.5px; font-weight: 700; color: var(--txt3); padding: 6px 10px 8px; }
.pp-item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; cursor: pointer; }
.pp-item:hover { background: var(--card-2); }
.pp-item.active { background: var(--gold-soft); }
html[data-theme="dark"] .pp-item.active { background: rgba(207,150,48,.14); }
.pp-item img, .pp-nocover { width: 36px; height: 36px; border-radius: 7px; object-fit: cover; flex: none; background: var(--gold-grad); }
.pp-nocover { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; }
.pp-name { flex: 1; min-width: 0; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-item.active .pp-name { color: var(--gold); font-weight: 700; }

/* ================= 模态框 ================= */
.modal-overlay { position: fixed; inset: 0; background: rgba(10,10,15,.5); z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.show { display: flex; }
.modal { background: var(--card); border: 1px solid var(--line); border-radius: 18px; width: 100%; max-width: 440px; max-height: 86vh; overflow: auto; padding: 22px; animation: modalIn .18s ease; position: relative; }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal h3 { font-size: 16px; margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; padding-right: 30px; }
.modal h3 .m-close { display: none; }
.modal .m-close { color: var(--txt3); font-size: 22px; font-weight: 400; line-height: 1; cursor: pointer; position: absolute; top: 12px; right: 14px; }
.modal .m-close:hover { color: var(--txt); }
.modal .m-foot { display: flex; gap: 10px; margin-top: 18px; }
.modal .m-foot .btn { flex: 1; }
.modal .lyrics-view { background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; font-size: 13px; line-height: 1.9; white-space: pre-wrap; max-height: 46vh; overflow: auto; }
.modal video { width: 100%; border-radius: 10px; background: #000; }

/* 未登录引导弹窗 */
.login-guid-modal { max-width: 380px; text-align: center; padding: 30px 28px 26px; }
.login-guid-modal h3 { display: block; padding: 0; margin: 14px 0 8px; font-size: 18px; }
.login-guid-modal .lg-icon {
  width: 64px; height: 64px; margin: 0 auto; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); background: var(--gold-soft);
  border: 1.5px solid var(--gold-line);
}
.login-guid-modal .lg-text { font-size: 13.5px; color: var(--txt3); line-height: 1.8; margin-bottom: 20px; }
.login-guid-modal .lg-btns { display: flex; gap: 10px; }
.login-guid-modal .lg-btns .btn { flex: 1; padding: 10px 8px; font-size: 13.5px; text-decoration: none; }
.login-guid-modal .lg-primary { border: none; }

/* Toast */
.toast-wrap { position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: rgba(17,24,39,.93); color: #fff; font-size: 13.5px; padding: 10px 22px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.2); animation: toastIn .2s ease; }
.toast.err { background: rgba(190,18,60,.95); }
.toast.ok { background: rgba(6,95,70,.95); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } }

/* ================= 个人中心 ================= */
.me-grid { display: grid; grid-template-columns: 310px 1fr; gap: 18px; align-items: start; }
/* 积分流水 TAB */
.pl-tabs { display: flex; gap: 8px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.pl-tab {
  padding: 8px 16px; font-size: 13.5px; font-weight: 600; color: var(--txt3);
  border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none;
}
.pl-tab:hover { color: var(--gold); }
.pl-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.credits-big { text-align: center; padding: 10px 0 4px; }
.credits-big .num { font-size: 42px; font-weight: 800; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.credits-big .lab { color: var(--txt3); font-size: 13px; margin-top: 4px; }
.pl-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pl-table th { text-align: left; color: var(--txt3); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.pl-table td { padding: 10px; border-bottom: 1px solid var(--line-2); }
.pl-table .plus { color: var(--green); font-weight: 700; }
.pl-table .minus { color: var(--txt2); }

/* ================= 搜索页 ================= */
.search-result-head { margin-bottom: 16px; color: var(--txt3); font-size: 13px; }
.search-result-head b { color: var(--gold); }
.search-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.search-tabs a {
  padding: 7px 18px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--card); font-size: 13px; font-weight: 600; color: var(--txt2);
}
.search-tabs a.active { background: var(--gold-grad); color: #fff; border-color: transparent; }
.search-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.search-grid .rank-card { width: auto; }
.search-grid .rc-cover { width: 100%; height: auto; aspect-ratio: 1 / 1; }
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 26px; }
.pager > span { color: var(--txt3); font-size: 13px; padding: 0 4px; }

/* ================= 登录/注册独立页 ================= */
body.auth-page { height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: linear-gradient(135deg, #1d1d28 0%, #3a2f18 55%, #5a4217 100%); overflow: auto; }
.auth-card {
  width: 100%; max-width: 410px; background: #fff; border-radius: 22px; padding: 36px 34px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.auth-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 8px; }
.auth-logo .logo-badge { width: 44px; height: 44px; }
.auth-logo b { font-size: 20px; font-weight: 800; background: linear-gradient(135deg,#ecc471,#cf9630); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.auth-card h1 { font-size: 22px; text-align: center; margin-bottom: 6px; color: #20242e; }
.auth-card .sub { text-align: center; color: #9aa1af; font-size: 13px; margin-bottom: 24px; }
.auth-card .form-item label { color: #374151; }
.auth-card .btn { padding: 12px; }
.auth-foot { text-align: center; margin-top: 16px; font-size: 13px; color: #6b7280; }
.auth-foot a { color: var(--gold); font-weight: 700; }
.auth-back { display: block; text-align: center; margin-top: 16px; font-size: 12.5px; color: #9aa1af; }

/* 图形验证码（登录/注册/后台共用） */
.captcha-row { display: flex; gap: 10px; align-items: stretch; }
.captcha-row input { flex: 1 1 auto; min-width: 0; }
.captcha-img { width: 132px; height: 46px; border-radius: 10px; border: 1px solid #e5e7eb; cursor: pointer; object-fit: cover; background: #f4f6fa; flex: 0 0 auto; }
.captcha-img:hover { border-color: var(--gold, #cf9630); }

/* ================= 响应式 ================= */
@media (max-width: 1500px) {
  .hero-side { width: 340px; }
  .hero { height: 420px; }
}
@media (max-width: 1280px) {
  .pill-vip, .pill-invite { font-size: 0; padding: 0 11px; gap: 0; }
  .hero { height: 380px; }
  .hero-side { width: 300px; }
  .tb-search { max-width: 300px; }
}
@media (max-width: 1080px) {
  .hero-side { display: none; }
  .hero { height: 360px; }
  .studio-wrap { flex-direction: column; }
  .studio-form { width: 100%; position: static; }
  .me-grid { grid-template-columns: 1fr; }
  /* 窄屏取消填充布局：恢复整页滚动，两列正常堆叠 */
  .content:has(> .studio-wrap.fill) { display: block; overflow: visible; }
  .studio-wrap.fill .studio-form, .studio-wrap.fill .studio-works { overflow: visible; max-height: none; }
  .works-grid.draw-masonry { column-count: 2; }
}
@media (max-width: 900px) {
  :root { --sb-w: 70px; }
  /* 窄屏强制侧栏图标化（与收起态视觉一致） */
  .logo-full { display: none; }
  .logo-mini { display: flex; }
  .sb-group-title, .sb-parent, .sb-text, .sb-arrow, .sb-more, .sb-tag { display: none; }
  .sb-nav { padding: 10px; }
  .sb-children { display: flex !important; flex-direction: column; padding: 0; }
  .sb-child, .sb-link, .sb-help { justify-content: center; padding: 10px 0; gap: 0; }
  .sb-child-ico { display: block; }
  .sb-help-wrap { padding: 10px 10px 14px; }
  .content { padding: 16px 14px 30px; }
  .sign-bar .sign-num { display: none; }
  .sign-btn { padding: 0 14px; }
  .tb-right { gap: 8px; }
  .topbar { padding: 0 12px; gap: 8px; }
  .p-left { width: 150px; }
  .p-artist { display: none; }
  .p-row1 { gap: 10px; }
}

/* =====================================================================
   AI 创作助手页
   ===================================================================== */
.ai-wrap { display: flex; gap: 16px; min-height: 0; height: calc(100% + 56px); margin: -22px 0 -34px; }
.ai-works {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
  padding: 0; overflow: hidden;
}
.ai-works-head {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line-2);
}
.awh-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; }
.awh-refresh { width: 30px; height: 30px; border-radius: 8px; color: var(--txt2); display: flex; align-items: center; justify-content: center; }
.awh-refresh:hover { background: var(--card-2); color: var(--gold); }
.ai-works-list { flex: 1; overflow-y: auto; padding: 8px; min-height: 0; }
.aw-row {
  display: flex; align-items: center; gap: 14px; padding: 10px 12px;
  border-radius: 12px; cursor: pointer; transition: background .15s;
}
.aw-row:hover { background: var(--card-2); }
.aw-cover {
  width: 80px; height: 80px; border-radius: 10px; overflow: hidden; flex: none;
  background: var(--card-2); display: flex; align-items: center; justify-content: center;
}
.aw-cover img { width: 100%; height: 100%; object-fit: cover; }
.aw-cover-emoji { font-size: 28px; }
.aw-main { flex: 1; min-width: 0; }
.aw-name { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 5px; }
.aw-prompt {
  font-size: 12.5px; color: var(--txt2); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.aw-time { font-size: 11.5px; color: var(--txt3); margin-top: 5px; }
.aw-right { flex: none; }
.aw-play {
  width: 42px; height: 42px; border-radius: 50%; background: var(--gold-grad); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(207,150,48,.35);
}
.aw-row:hover .aw-play { transform: scale(1.06); }
.aw-state { font-size: 12.5px; color: var(--gold); display: inline-flex; align-items: center; gap: 5px; }
.aw-state::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: pulseDot 1s infinite; }
.aw-state.fail { color: var(--red); }
.aw-state.fail::before { background: var(--red); animation: none; }
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.ai-empty { text-align: center; padding: 80px 20px; color: var(--txt3); }
.ai-empty .ae-icon { font-size: 44px; margin-bottom: 14px; }
.ai-empty div { font-size: 15px; color: var(--txt2); font-weight: 600; }
.ai-empty p { font-size: 12.5px; margin-top: 8px; }

.ai-chat {
  width: 440px; flex: none; height: 100%;
  display: flex; flex-direction: column; position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.ai-msgs { flex: 1; overflow-y: auto; padding: 20px 18px 12px; display: flex; flex-direction: column; gap: 16px; min-height: 0; }

/* 灵感引导 */
.ai-welcome { text-align: center; margin: 7vh auto 0; max-width: 340px; }
.aw-big {
  font-size: 26px; font-weight: 900; letter-spacing: 1px; margin-bottom: 10px;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.aw-sub { font-size: 14px; color: var(--txt2); margin-bottom: 30px; }
.aw-qs-title { text-align: left; font-size: 13.5px; font-weight: 700; color: var(--txt); margin-bottom: 12px; padding-left: 4px; }
.aw-chips { display: flex; flex-direction: column; gap: 10px; }
.aw-chip {
  text-align: left; padding: 11px 16px; border-radius: 999px; font-size: 13.5px;
  border: 1px solid var(--gold-line); color: var(--gold); background: var(--gold-soft);
  transition: all .15s;
}
html[data-theme="dark"] .aw-chip { background: rgba(207,150,48,.08); }
.aw-chip:hover { background: var(--gold-grad); color: #fff; border-color: transparent; }

/* 消息气泡 */
.ai-msg { display: flex; gap: 10px; max-width: 100%; }
.ai-msg.me { justify-content: flex-end; }
.am-avatar {
  flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--gold-grad);
  color: #fff; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.am-col { min-width: 0; max-width: calc(100% - 44px); display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.am-bubble {
  padding: 11px 14px; border-radius: 4px 14px 14px 14px; font-size: 13.5px; line-height: 1.75;
  background: var(--card-2); border: 1px solid var(--line); color: var(--txt);
  white-space: pre-wrap; word-break: break-word;
}
.ai-msg.me .am-bubble { background: var(--gold-grad); color: #fff; border-color: transparent; border-radius: 14px 4px 14px 14px; }
.am-gen {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 999px;
  background: var(--gold-grad); color: #fff; font-size: 13px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(207,150,48,.3);
}
.am-gen:disabled { opacity: .6; box-shadow: none; }
.typing-bubble { display: inline-flex; gap: 5px; padding: 14px 16px; }
.typing-bubble i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: typingBlink 1.2s infinite; }
.typing-bubble i:nth-child(2) { animation-delay: .2s; }
.typing-bubble i:nth-child(3) { animation-delay: .4s; }
@keyframes typingBlink { 0%,100% { opacity: .25; } 50% { opacity: 1; } }

.ai-guest { margin: auto; text-align: center; color: var(--txt2); padding: 30px; }
.ai-guest .ag-icon { font-size: 40px; margin-bottom: 12px; }
.ai-guest .ag-title { font-size: 17px; font-weight: 800; color: var(--txt); margin-bottom: 6px; }
.ai-guest p { font-size: 13px; margin-bottom: 18px; }
.ag-btn { padding: 10px 34px; }

/* 输入区 */
.ai-composer { flex: none; border-top: 1px solid var(--line); padding: 12px 14px 14px; background: var(--card); }
.ai-input {
  width: 100%; min-height: 44px; max-height: 120px; border: 1px solid var(--line);
  border-radius: 12px; padding: 11px 13px; font-size: 13.5px; line-height: 1.6; resize: none;
}
.ai-composer-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 8px; }
.acb-left { display: flex; align-items: center; gap: 6px; min-width: 0; }
.acb-ico {
  width: 34px; height: 34px; border-radius: 9px; color: var(--txt2);
  display: flex; align-items: center; justify-content: center;
}
.acb-ico:hover { background: var(--card-2); color: var(--gold); }
.acb-model {
  display: inline-flex; align-items: center; gap: 6px; max-width: 210px;
  border: 1px solid var(--gold-line); background: var(--gold-soft); color: #8a5e14;
  border-radius: 999px; padding: 5px 11px; font-size: 12.5px;
}
html[data-theme="dark"] .acb-model { background: rgba(207,150,48,.1); color: var(--gold-3); }
.acb-model .acm-vendor { font-weight: 800; }
.acb-model .acm-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acb-send {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: var(--gold-grad); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(207,150,48,.35);
}
.acb-send:disabled { opacity: .5; box-shadow: none; }
.acb-clear {
  flex: none; margin-left: auto; border: 0; cursor: pointer; font-family: inherit;
  border-radius: 999px; padding: 7px 15px; font-size: 12.5px; font-weight: 600;
  color: #ffeec8; background: linear-gradient(135deg, #a87c2a 0%, #7c5a1c 100%);
  box-shadow: 0 3px 10px rgba(124,90,28,.3); transition: filter .15s;
}
.acb-clear:hover { filter: brightness(1.12); }
html[data-theme="dark"] .acb-clear { background: linear-gradient(135deg, #8a6420 0%, #5f4515 100%); }

/* Pjax 软导航顶部进度条 */
body::before {
  content: ''; position: fixed; left: 0; top: 0; height: 2px; width: 0;
  z-index: 9999; background: var(--gold-grad);
  box-shadow: 0 0 8px rgba(207,150,48,.55); pointer-events: none; opacity: 0;
}
body.pjax-loading::before { opacity: 1; animation: pjaxBar .9s ease forwards; }
@keyframes pjaxBar {
  0% { width: 0; }
  60% { width: 75%; }
  100% { width: 75%; opacity: .55; }
}

/* 模型偏好浮层 */
.ai-model-pop {
  position: absolute; left: 12px; right: 12px; bottom: 128px; z-index: 35;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.2); padding: 16px;
  display: none; flex-direction: column; max-height: 62%;
}
.ai-model-pop.open { display: flex; animation: popUp .18s ease; }
@keyframes popUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.amp-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.amp-title { font-size: 15px; font-weight: 800; }
.amp-saved { font-size: 11.5px; color: var(--green); }
.amp-auto { border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; cursor: pointer; margin-bottom: 12px; }
.amp-auto.selected { border-color: var(--gold); background: var(--gold-soft); }
html[data-theme="dark"] .amp-auto.selected { background: rgba(207,150,48,.08); }
.amp-opt-main { display: flex; align-items: center; gap: 10px; }
.amp-name { font-size: 14px; font-weight: 700; }
.amp-desc { font-size: 12px; color: var(--txt2); margin-top: 2px; }
.amp-check { color: var(--gold); display: none; flex: none; }
.amp-auto.selected .amp-check, .amp-model.selected .amp-check { display: flex; }
.amp-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.amp-tab {
  flex: 1; padding: 7px 0; border-radius: 9px; font-size: 12.5px; font-weight: 600;
  color: var(--txt2); background: var(--card-2); border: 1px solid var(--line);
}
.amp-tab.active { background: var(--gold-grad); color: #fff; border-color: transparent; }
.amp-list { overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.amp-model {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 13px; cursor: pointer;
}
.amp-model.selected { border-color: var(--gold); background: var(--gold-soft); }
html[data-theme="dark"] .amp-model.selected { background: rgba(207,150,48,.08); }
.amm-name { font-size: 13.5px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.amm-name em { font-style: normal; font-size: 10px; color: #8a5e14; background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: 6px; padding: 0 5px; }
.amm-name em.soon { color: #b45309; }
.amm-desc { font-size: 11.5px; color: var(--txt2); margin-top: 3px; }

/* =====================================================================
   我的创作（library）重构
   ===================================================================== */
.lib-profile {
  display: flex; align-items: center; gap: 18px; padding: 18px 22px; margin-bottom: 14px;
  position: relative;
}
.lp-avatar-wrap { position: relative; flex: none; }
.lp-avatar {
  width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  background: var(--gold-grad); color: #fff; font-size: 26px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; cursor: default;
  border: 2px solid var(--gold-line);
}
.lp-avatar img { width: 100%; height: 100%; object-fit: cover; }
/* 头像悬浮二层卡片 */
.lp-pop {
  position: absolute; top: 64px; left: 0; z-index: 50; width: 272px;
  padding-top: 10px; background: transparent; border: none; border-radius: 0;
  box-shadow: none; overflow: visible;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.lp-pop-inner {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.18); padding: 18px;
}
.lp-avatar-wrap:hover .lp-pop, .lp-pop:hover { opacity: 1; visibility: visible; transform: none; }
.lpp-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.lpp-avatar {
  width: 52px; height: 52px; border-radius: 50%; background: var(--gold-grad); color: #fff;
  font-size: 21px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none;
  overflow: hidden;
}
.lpp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lpp-name { font-size: 15px; font-weight: 800; }
.lpp-id { font-size: 11.5px; color: var(--txt3); margin-top: 3px; }
.lpp-stats { display: flex; gap: 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 10px 0; margin-bottom: 12px; }
.lpp-stat { flex: 1; text-align: center; }
.lpp-stat b { display: block; font-size: 16px; font-weight: 800; color: var(--txt); }
.lpp-stat span { font-size: 11.5px; color: var(--txt3); }
.lpp-bio { font-size: 12.5px; color: var(--txt2); line-height: 1.7; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lpp-btn { width: 100%; padding: 8px 0; font-size: 13px; border-radius: 9px; }

.lp-main { flex: 1; min-width: 0; }
.lp-row1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.lp-name { font-size: 19px; font-weight: 800; }
.lp-stat-link { font-size: 13px; color: var(--txt2); }
.lp-stat-link b { color: var(--txt); font-weight: 800; margin: 0 3px; }
.lp-divider { width: 1px; height: 13px; background: var(--line); }
.lp-addtag {
  font-size: 12.5px; color: var(--gold); border: 1px solid var(--gold-line); border-radius: 999px;
  padding: 4px 13px; background: var(--gold-soft);
}
html[data-theme="dark"] .lp-addtag { background: rgba(207,150,48,.08); }
.lp-addtag:hover { background: var(--gold-grad); color: #fff; border-color: transparent; }
.lp-tags { display: inline-flex; gap: 7px; flex-wrap: wrap; margin-left: 4px; }
.lp-tag { font-size: 12px; color: var(--txt2); background: var(--card-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; }
.lp-notice {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--txt2);
  background: var(--card-2); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 5px 14px 5px 11px; max-width: 440px; overflow: hidden;
}
.lp-notice .horn { flex: none; color: var(--gold); display: flex; }
.lp-notice-viewport { flex: 1; height: 19px; overflow: hidden; position: relative; }
.lp-notice-inner { transition: transform .45s ease; }
.lp-notice-line { height: 19px; line-height: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 工具栏：TAB + 右侧操作 */
.lib-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.lib-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.lib-tab {
  padding: 8px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  color: var(--txt2); background: var(--card); border: 1px solid var(--line);
}
.lib-tab:hover { color: var(--gold); border-color: var(--gold-line); }
.lib-tab.active { background: var(--gold-grad); color: #fff; border-color: transparent; font-weight: 700; }
.lib-tools { display: flex; align-items: center; gap: 9px; }
.lib-search {
  width: 170px; display: flex; align-items: center; gap: 7px;
  border: 1px solid var(--gold-line); border-radius: 999px; padding: 6px 14px; background: var(--card);
}
.lib-search svg { flex: none; color: var(--gold); }
.lib-search input { border: none; padding: 0; background: transparent; font-size: 13px; box-shadow: none !important; }
.lib-dd { position: relative; }
.lib-dd-btn {
  display: flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  background: var(--gold-grad); color: #fff; font-size: 13px; font-weight: 700;
}
.lib-dd-btn svg { transition: transform .2s; }
.lib-dd.open .lib-dd-btn svg { transform: rotate(180deg); }
.lib-dd-menu {
  position: absolute; top: 38px; right: 0; z-index: 30; min-width: 120px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.15); padding: 5px; display: none;
}
.lib-dd:hover .lib-dd-menu, .lib-dd.open .lib-dd-menu { display: block; }
body.lib-batch-on .lib-tools { display: none !important; }
.lib-dd-menu button { display: block; width: 100%; text-align: left; padding: 8px 12px; border-radius: 8px; font-size: 13px; color: var(--txt2); }
.lib-dd-menu button:hover, .lib-dd-menu button.on { background: var(--gold-soft); color: var(--gold); }
html[data-theme="dark"] .lib-dd-menu button:hover, html[data-theme="dark"] .lib-dd-menu button.on { background: rgba(207,150,48,.12); }
.lib-icon-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); color: var(--txt2); display: flex; align-items: center; justify-content: center;
}
.lib-icon-btn:hover { color: var(--gold); border-color: var(--gold-line); }
.lib-icon-btn.on { color: var(--gold); border-color: var(--gold-line); background: var(--gold-soft); }
html[data-theme="dark"] .lib-icon-btn.on { background: rgba(207,150,48,.1); }
.lib-batch-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 15px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: var(--gold); border: 1px solid var(--gold-line); background: var(--gold-soft);
}
html[data-theme="dark"] .lib-batch-btn { background: rgba(207,150,48,.08); }
.lib-batch-btn:hover { background: var(--gold-grad); color: #fff; border-color: transparent; }

/* 批量操作栏 */
.lib-batchbar {
  display: none; align-items: center; gap: 14px; margin-bottom: 12px; flex-wrap: wrap;
  background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: 12px; padding: 10px 16px;
}
html[data-theme="dark"] .lib-batchbar { background: rgba(207,150,48,.08); }
body.lib-batch-on .lib-batchbar { display: flex; }
body.lib-batch-on .lib-tabs { display: none; }
.lbb-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.lbb-check input { width: 16px; height: 16px; accent-color: var(--gold); }
.lbb-count { font-size: 13px; color: var(--txt2); }
.lbb-count b { color: var(--gold); }
.lbb-sp { flex: 1; }
.lbb-btn { padding: 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 700; border: 1px solid var(--gold-line); color: var(--gold); background: var(--card); }
.lbb-btn:hover { background: var(--gold-grad); color: #fff; border-color: transparent; }
.lbb-btn.danger { color: #fff; background: var(--red); border-color: var(--red); }
.lbb-btn.ghost { border-color: var(--line); color: var(--txt2); }
.lbb-btn.ghost:hover { color: var(--gold); border-color: var(--gold-line); background: var(--card); }

/* 列表区（高 580，约 6 行） */
.lib-list {
  height: 580px; overflow-y: auto; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 6px;
}
.lib-lrow {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 12px;
  min-height: 86px;
}
.lib-lrow:hover { background: var(--card-2); }
.lib-lrow .lr-check { width: 17px; height: 17px; accent-color: var(--gold); flex: none; display: none; }
body.lib-batch-on .lib-lrow .lr-check { display: block; }
.lr-cover {
  width: 56px; height: 56px; border-radius: 9px; overflow: hidden; flex: none;
  background: var(--card-2); display: flex; align-items: center; justify-content: center; font-size: 22px;
  cursor: pointer;
}
.lr-cover img { width: 100%; height: 100%; object-fit: cover; }
.lr-main { flex: 1; min-width: 0; cursor: pointer; }
.lr-name { font-size: 14.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-sub { font-size: 12px; color: var(--txt2); margin-top: 4px; display: flex; gap: 8px; align-items: center; }
.lr-tags { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lr-type { font-size: 11px; color: var(--gold); background: var(--gold-soft); border-radius: 6px; padding: 1px 7px; flex: none; }
html[data-theme="dark"] .lr-type { background: rgba(207,150,48,.12); }
.lr-right { flex: none; display: flex; align-items: center; gap: 9px; }
.lr-status { font-size: 12px; padding: 2px 10px; border-radius: 999px; }
.lr-status.pub { color: var(--green); background: rgba(16,185,129,.1); }
.lr-status.pri { color: var(--txt3); background: var(--card-2); }
.lr-status.run { color: var(--gold); background: var(--gold-soft); }
.lr-status.fail { color: var(--red); background: rgba(239,68,68,.1); }
.lr-time { font-size: 12px; color: var(--txt3); width: 88px; text-align: right; }
.lr-actions { display: flex; gap: 5px; }
.lr-act {
  width: 30px; height: 30px; border-radius: 8px; color: var(--txt2);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.lr-act:hover { background: var(--card); color: var(--gold); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.lr-menu {
  position: absolute; right: 0; top: 34px; z-index: 25; min-width: 128px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 26px rgba(0,0,0,.15); padding: 5px; display: none;
}
.lr-menu.open { display: block; }
.lr-menu button { display: block; width: 100%; text-align: left; padding: 7px 10px; font-size: 12.5px; border-radius: 7px; color: var(--txt2); }
.lr-menu button:hover { background: var(--card-2); color: var(--gold); }
.lr-menu button.danger { color: var(--red); }

/* 专辑行 */
.lr-album-cover { width: 56px; height: 56px; border-radius: 9px; overflow: hidden; flex: none; background: var(--gold-soft); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.lr-album-cover img { width: 100%; height: 100%; object-fit: cover; }
.lr-album-count { font-size: 11.5px; color: var(--gold); }

.lib-empty { text-align: center; padding: 90px 20px; color: var(--txt3); }
.lib-empty .le-icon { font-size: 42px; margin-bottom: 12px; }
.lib-empty .le-t { font-size: 14.5px; color: var(--txt2); font-weight: 600; }
.lib-empty p { font-size: 12.5px; margin-top: 6px; }

/* 分页 */
.lib-pager { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 14px; }
.pg-btn {
  min-width: 32px; height: 32px; padding: 0 10px; border-radius: 8px; font-size: 13px;
  border: 1px solid var(--line); background: var(--card); color: var(--txt2);
  display: inline-flex; align-items: center; justify-content: center;
}
.pg-btn:hover { border-color: var(--gold); color: var(--gold); }
.pg-btn.active { background: var(--gold-grad); color: #fff; border-color: transparent; font-weight: 700; }
.pg-btn:disabled { opacity: .4; cursor: not-allowed; }
.pg-info { font-size: 12.5px; color: var(--txt3); margin-left: 8px; }

/* 回收站提示条 */
.recycle-tip {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: 12px;
  padding: 10px 16px; margin-bottom: 12px; font-size: 13px; color: #8a5e14;
}
html[data-theme="dark"] .recycle-tip { background: rgba(207,150,48,.08); color: var(--gold-3); }
.recycle-tip button { color: var(--gold); font-weight: 700; font-size: 13px; }

/* 添加到专辑弹窗内的专辑列表 */
.alb-pick { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; margin: 12px 0 4px; }
.alb-pick-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.alb-pick-item.selected { border-color: var(--gold); background: var(--gold-soft); }
html[data-theme="dark"] .alb-pick-item.selected { background: rgba(207,150,48,.08); }
.alb-pick-cover { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--card-2); display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.alb-pick-cover img { width: 100%; height: 100%; object-fit: cover; }
.alb-pick-name { font-size: 14px; font-weight: 700; }
.alb-pick-sub { font-size: 12px; color: var(--txt3); margin-top: 2px; }
.alb-pick-radio { margin-left: auto; width: 17px; height: 17px; border-radius: 50%; border: 2px solid var(--line); flex: none; position: relative; }
.alb-pick-item.selected .alb-pick-radio { border-color: var(--gold); }
.alb-pick-item.selected .alb-pick-radio::after {
  content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--gold);
}
.alb-empty { text-align: center; color: var(--txt3); font-size: 13px; padding: 30px 0; }
.alb-foot { display: flex; gap: 10px; margin-top: 14px; }
.alb-foot .btn { flex: 1; }
.btn-outline-gold { background: var(--card); color: var(--gold); border: 1px solid var(--gold-line); font-weight: 700; }
.btn-outline-gold:hover { background: var(--gold-soft); filter: none; }

/* studio 第三方通道提示 */
.provider-notice {
  display: flex; align-items: center; gap: 9px; border-radius: 10px; padding: 10px 14px;
  background: var(--gold-soft); border: 1px solid var(--gold-line); color: #8a5e14;
  font-size: 13px; line-height: 1.6; margin-bottom: 14px;
}
html[data-theme="dark"] .provider-notice { background: rgba(207,150,48,.08); color: var(--gold-3); }

@media (max-width: 1280px) {
  .ai-chat { width: 380px; }
  .lib-search { width: 130px; }
}
@media (max-width: 1080px) {
  .ai-wrap { flex-direction: column; }
  .ai-chat { width: 100%; height: 560px; }
  .ai-works { min-height: 300px; }
}

/* ==================== 第三期：工具页 / 列表增强 / 广场系列 / 详情 / 专辑 / 头像卡 ==================== */
.btn-gold { background: var(--gold-grad); color: #fff; }

/* ---------- 创作工具 ---------- */
.tools-page { display: flex; flex-direction: column; gap: 16px; }
.tool-notice { display: flex; gap: 14px; align-items: center; padding: 18px 22px; background: var(--gold-soft); border: 1px solid var(--gold-line); }
.tool-notice .tn-icon { font-size: 28px; }
.tool-notice .tn-title { font-size: 14.5px; font-weight: 800; margin-bottom: 3px; }
.tool-notice p { font-size: 12.5px; color: var(--txt2); margin: 0; }
.tool-panel { padding: 22px 24px; }
.tp-row { display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; }
.tp-field { flex: 1; min-width: 260px; }
.tp-field label { display: block; font-size: 12.5px; color: var(--txt2); font-weight: 700; margin-bottom: 8px; }
.tp-select-wrap select {
  width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 10px;
  padding: 0 12px; background: var(--card); color: var(--txt); font-size: 13.5px;
}
.tp-cost { background: var(--gold-soft); border: 1px dashed var(--gold-line); border-radius: 12px; padding: 10px 18px; min-width: 150px; }
.tpc-label { font-size: 11.5px; color: var(--txt3); }
.tpc-num { font-size: 26px; font-weight: 900; color: var(--gold); line-height: 1.25; }
.tpc-num span { font-size: 12px; font-weight: 600; }
.tpc-bal { font-size: 11.5px; color: var(--txt2); }
.tp-start { height: 42px; padding: 0 28px; }
.tp-tip { margin-top: 14px; font-size: 12px; color: var(--txt3); }
.tj-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.tj-head h3 { font-size: 15px; font-weight: 800; }
.tj-tabs { display: flex; gap: 6px; }
.tj-tabs a { font-size: 12.5px; padding: 5px 13px; border-radius: 999px; color: var(--txt2); border: 1px solid var(--line); }
.tj-tabs a.active { background: var(--gold-grad); color: #fff; border-color: transparent; }
.tj-list { min-height: 120px; }
.tj-row { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.tj-row:last-child { border-bottom: none; }
.tj-cover { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: var(--card-2); display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.tj-cover img { width: 100%; height: 100%; object-fit: cover; }
.tj-main { flex: 1; min-width: 0; }
.tj-name { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tj-sub { font-size: 11.5px; color: var(--txt3); margin-top: 2px; }
.tj-status { flex: none; width: 84px; font-size: 12.5px; color: var(--txt2); }
.tj-status.st-succeeded { color: var(--green); }
.tj-status.st-failed { color: var(--red); }
.tj-status.st-running, .tj-status.st-waiting { color: var(--gold); }
.tj-right { flex: none; min-width: 108px; text-align: right; }
.tj-dl { padding: 6px 14px; font-size: 12.5px; }
.tj-fail { font-size: 12px; color: var(--red); }
.tj-pending { font-size: 12px; color: var(--txt3); }
.tj-empty { padding: 34px 0; text-align: center; color: var(--txt3); font-size: 13px; }

/* ---------- 我的创作：新列表头/列/开关/喜欢 ---------- */
.lib-lhead {
  display: flex; align-items: center; gap: 12px; padding: 4px 12px;
  font-size: 12px; color: var(--txt3); border-bottom: 1px solid var(--line); margin-bottom: 2px;
}
.lh-check { width: 17px; flex: none; }
.lh-cover { width: 56px; flex: none; }
.lh-main { flex: 1; }
.lh-model { width: 120px; flex: none; }
.lh-dur { width: 56px; flex: none; }
.lh-pub { width: 92px; flex: none; }
.lh-like { width: 38px; flex: none; text-align: center; }
.lh-act { width: 72px; flex: none; }
.lr-model { flex: none; width: 120px; font-size: 12px; color: var(--txt2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-dur { flex: none; width: 56px; font-size: 12.5px; color: var(--txt2); font-variant-numeric: tabular-nums; }
.lr-pub { flex: none; width: 92px; display: flex; align-items: center; gap: 7px; }
.lr-pub-word { font-size: 12.5px; color: var(--txt2); }
.lr-like-cell { flex: none; width: 38px; display: flex; align-items: center; justify-content: center; }
.lr-like {
  width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: var(--txt3); transition: .15s;
}
.lr-like:hover { background: var(--card); color: var(--gold); }
.lr-like.on { color: var(--red); }
.lr-time-inline { color: var(--txt3); font-size: 11.5px; }
.lr-menu { min-width: 164px; }
.lr-menu button.muted { color: var(--txt3); opacity: .6; cursor: not-allowed; }
.lr-menu button.muted:hover { background: none; color: var(--txt3); }

/* 公开开关 */
.lr-switch { position: relative; display: inline-block; width: 38px; height: 21px; flex: none; }
.lr-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.lr-switch i { position: absolute; inset: 0; background: #d3d3d8; border-radius: 999px; transition: .2s; cursor: pointer; }
.lr-switch i b {
  position: absolute; left: 2px; top: 2px; width: 17px; height: 17px; border-radius: 50%;
  background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.28);
}
.lr-switch input:checked + i { background: var(--gold-grad); }
.lr-switch input:checked + i b { transform: translateX(17px); }

/* 空态按钮/链接 */
.le-btn { margin-top: 14px; }
.le-link { color: var(--gold); font-weight: 700; }

/* 专辑选择弹窗：新建专辑子视图 / 通用输入弹窗 */
.alb-modal { max-width: 470px; width: 92%; }
.alb-create-field { padding: 8px 2px; }
.alb-create-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--txt); }
.alb-create-field input, .sm-input {
  width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 10px;
  padding: 0 13px; background: var(--card); color: var(--txt); font-size: 14px;
}
.alb-create-field input:focus, .sm-input:focus { border-color: var(--gold); outline: none; }
.alb-create-err { font-size: 12px; color: var(--red); margin-top: 7px; min-height: 16px; }

/* ---------- 广场查看全部系列页 ---------- */
.dc-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 2px 0 22px; }
.dc-filter {
  padding: 6px 17px; border-radius: 999px; font-size: 13px;
  border: 1px solid var(--line); color: var(--txt2); background: var(--card); transition: .15s;
}
.dc-filter:hover { border-color: var(--gold-line); color: var(--gold); }
.dc-filter.active { background: var(--gold-grad); color: #fff; border-color: transparent; }
.dc-play {
  margin: 0; padding: 0; border: none; background: none; color: inherit;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}

/* 热门榜单 4 列卡 */
.dc-hot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.dc-hot-card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 20px; cursor: pointer; transition: .18s;
}
.dc-hot-card:hover {
  background: #fdf8ec; border-color: var(--gold-line); transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(201,148,46,.15);
}
html[data-theme="dark"] .dc-hot-card:hover { background: #2a2519; }
.dch-cover {
  position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden;
  background: var(--card-2); display: flex; align-items: center; justify-content: center; font-size: 42px;
}
.dch-cover img { width: 100%; height: 100%; object-fit: cover; }
.dch-play {
  position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px; border-radius: 50%;
  background: var(--gold-grad); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(160,110,20,.4); opacity: 0; transform: translateY(6px); transition: .2s;
}
.dc-hot-card:hover .dch-play { opacity: 1; transform: none; }
.dch-play .dc-play { width: 100%; height: 100%; }
.dch-play svg { width: 19px; height: 19px; }
.dch-name { font-size: 14.5px; font-weight: 800; margin-top: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--txt); }
.dch-tags { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.dch-tags span { font-size: 11px; color: var(--txt2); background: var(--card-2); border-radius: 6px; padding: 2px 8px; }
.dch-meta { display: flex; align-items: center; gap: 7px; margin-top: 10px; }
.dch-model, .dch-dur { font-size: 11.5px; color: #9a7322; background: #fbf3dc; border-radius: 6px; padding: 2px 9px; }
html[data-theme="dark"] .dch-model, html[data-theme="dark"] .dch-dur { background: rgba(236,196,113,.13); color: #e6c477; }
.dch-meta .like-btn { margin-left: auto; }

/* 新歌首发 5 列 */
.dc-new-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.dc-new-card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 12px; cursor: pointer; transition: .18s;
}
.dc-new-card:hover {
  background: #fdf8ec; border-color: var(--gold-line); transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(201,148,46,.13);
}
html[data-theme="dark"] .dc-new-card:hover { background: #2a2519; }
.dcn-cover {
  position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden;
  background: var(--card-2); display: flex; align-items: center; justify-content: center; font-size: 38px;
}
.dcn-cover img { width: 100%; height: 100%; object-fit: cover; }
.dcn-new {
  position: absolute; right: 8px; top: 8px; z-index: 2; background: var(--gold-grad); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .6px; padding: 2px 8px; border-radius: 6px;
}
.dcn-playwrap {
  position: absolute; left: 10px; bottom: 10px; opacity: 0; transform: translateY(6px); transition: .2s;
}
.dc-new-card:hover .dcn-playwrap { opacity: 1; transform: none; }
.dcn-playwrap .dc-play {
  width: 34px; height: 34px; border-radius: 50%; background: var(--gold-grad); color: #fff;
  box-shadow: 0 4px 12px rgba(160,110,20,.4);
}
.dcn-playwrap svg { width: 15px; height: 15px; }
.dcn-name { font-size: 13.5px; font-weight: 700; margin-top: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--txt); }
.dcn-meta { display: flex; align-items: center; gap: 7px; margin-top: 7px; }
.dcn-ver, .dcn-dur { font-size: 11px; color: var(--txt3); }
.dcn-meta .like-btn { margin-left: auto; }

/* 风格流派 3 列 */
.dc-g-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dc-g-row {
  display: flex; gap: 14px; align-items: center; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; transition: .15s;
}
.dc-g-row:hover { background: #fdf8ec; border-color: var(--gold-line); }
html[data-theme="dark"] .dc-g-row:hover { background: #2a2519; }
.dcg-cover {
  position: relative; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; flex: none;
  background: var(--card-2); display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.dcg-cover img { width: 100%; height: 100%; object-fit: cover; }
.dcg-mask {
  position: absolute; inset: 0; background: rgba(0,0,0,.4); display: flex;
  align-items: center; justify-content: center; opacity: 0; transition: .2s;
}
.dc-g-row:hover .dcg-mask { opacity: 1; }
.dcg-mask svg { width: 22px; height: 22px; }
.dcg-main { flex: 1; min-width: 0; }
.dcg-name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--txt); }
.dcg-tags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.dcg-tags span { font-size: 11px; color: var(--txt2); background: var(--card-2); border-radius: 6px; padding: 2px 8px; }
.dcg-meta { display: flex; gap: 8px; margin-top: 8px; }
.dcg-ver, .dcg-dur { font-size: 11.5px; color: var(--txt3); }
.dcg-like { flex: none; }

/* 最新专辑 4 列 */
.dc-album-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.dc-album-card {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px; cursor: pointer; transition: .18s;
}
.dc-album-card:hover {
  background: #fdf8ec; border-color: var(--gold-line); transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(201,148,46,.15);
}
html[data-theme="dark"] .dc-album-card:hover { background: #2a2519; }
.dca-cover {
  aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--card-2);
  display: flex; align-items: center; justify-content: center; font-size: 44px;
}
.dca-cover img { width: 100%; height: 100%; object-fit: cover; }
.dca-name { font-size: 14.5px; font-weight: 800; margin-top: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--txt); }
.dca-time { font-size: 11.5px; color: var(--txt3); margin-top: 5px; }
.dca-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.dca-count { font-size: 12px; color: var(--gold); background: var(--gold-soft); border-radius: 999px; padding: 3px 11px; }
.dca-fav { background: none; border: none; color: var(--txt3); cursor: pointer; padding: 4px; transition: .15s; }
.dca-fav:hover { color: var(--gold); }
.dca-fav.on { color: var(--red); }

.dc-pager { margin: 28px 0 4px; gap: 6px; }
.pg-num {
  min-width: 32px; height: 32px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; font-size: 13px; color: var(--txt2); border: 1px solid var(--line); background: var(--card);
}
.pg-num.active { background: var(--gold-grad); color: #fff; border-color: transparent; }

/* ---------- 音乐详情页 ---------- */
.sd-top { display: grid; grid-template-columns: 1.35fr 1fr; gap: 34px; padding: 30px 32px; }
.sd-left { border-right: 1px solid var(--line); padding-right: 30px; display: flex; flex-direction: column; }
.sd-block-title {
  font-size: 15px; font-weight: 800; margin-bottom: 14px; padding-left: 12px; position: relative;
}
.sd-block-title::before {
  content: ''; position: absolute; left: 0; top: 2px; width: 4px; height: 15px;
  border-radius: 2px; background: var(--gold-grad);
}
.sd-lyrics {
  white-space: pre-wrap; text-align: center; font-size: 14px; line-height: 2.1;
  color: var(--txt); max-height: 430px; overflow-y: auto; padding: 4px 12px; flex: 1;
}
.sd-empty-text { color: var(--txt3); font-size: 13px; }
.sd-style { margin-top: 20px; height: 100px; overflow: hidden; }
.sd-style-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sd-tag {
  font-size: 12px; color: var(--gold); background: var(--gold-soft);
  border: 1px solid var(--gold-line); border-radius: 999px; padding: 4px 13px;
}
.sd-right { display: flex; flex-direction: column; align-items: center; text-align: center; }
.sd-disc-wrap { position: relative; width: 298px; height: 298px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.sd-disc-bg {
  position: absolute; width: 298px; height: 298px; border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #fffaf0, #f4e4bd); border: 1px solid var(--gold-line);
}
.sd-disc {
  position: relative; width: 188px; height: 188px; border-radius: 50%; overflow: hidden;
  background: #fff; box-shadow: 0 12px 32px rgba(160,110,20,.28);
  display: flex; align-items: center; justify-content: center; font-size: 52px;
}
.sd-disc img { width: 100%; height: 100%; object-fit: cover; }
.sd-title { font-size: 22px; font-weight: 900; color: var(--txt); }
.sd-artist { font-size: 13.5px; color: var(--txt2); margin-top: 8px; }
.sd-time { font-size: 12px; color: var(--txt3); margin-top: 6px; }
.sd-tags-line { margin-top: 14px; line-height: 2.1; max-width: 420px; }
.sd-dur { font-size: 12px; color: var(--txt3); margin-left: 8px; }
.sd-actions { display: flex; gap: 12px; margin-top: 22px; align-items: center; }
.sd-btn-play {
  background: linear-gradient(135deg, #b8831f, #8a5f13); color: #fff; border: none;
  border-radius: 999px; padding: 10px 28px; font-weight: 700;
}
.sd-btn-play:hover { filter: brightness(1.1); }
.sd-btn-like {
  border: 1.5px solid var(--gold-line); color: var(--gold); background: transparent;
  border-radius: 999px; padding: 10px 22px; font-weight: 700; white-space: nowrap;
}
.sd-btn-like svg { width: 15px; height: 15px; flex: none; }
.sd-btn-like span { white-space: nowrap; }
.sd-btn-like.on { color: var(--red); border-color: var(--red); background: transparent; }
.sd-btn-like:hover { filter: none; background: var(--gold-soft); }
.sd-btn-more {
  width: 44px; height: 42px; padding: 0; border-radius: 999px;
  border: 1.5px solid var(--gold-line); color: var(--gold); background: transparent;
}
.sd-btn-more:hover { filter: none; background: var(--gold-soft); }
.sd-more-wrap { position: relative; display: inline-block; }
.sd-menu {
  position: absolute; right: 0; top: 48px; z-index: 45; min-width: 190px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0,0,0,.17); padding: 6px; display: none; text-align: left;
}
.sd-menu.open { display: block; }
.sd-menu a, .sd-menu span {
  display: block; padding: 9px 12px; font-size: 13px; border-radius: 8px;
  color: var(--txt2); cursor: pointer; white-space: nowrap;
}
.sd-menu a:hover { background: var(--card-2); color: var(--gold); }
.sd-menu .muted { color: var(--txt3); cursor: not-allowed; opacity: .6; }

/* 更多列表 */
.sd-more-list { margin-top: 22px; }
.sm-row {
  display: flex; align-items: center; gap: 14px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px; margin-bottom: 10px; transition: .15s;
}
.sm-row:hover { background: #fdf8ec; border-color: var(--gold-line); }
html[data-theme="dark"] .sm-row:hover { background: #2a2519; }
.sm-cover {
  position: relative; width: 52px; height: 52px; border-radius: 9px; overflow: hidden; flex: none;
  background: var(--card-2); display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.sm-cover img { width: 100%; height: 100%; object-fit: cover; }
.sm-mask {
  position: absolute; inset: 0; background: rgba(0,0,0,.4); display: flex;
  align-items: center; justify-content: center; opacity: 0; transition: .2s;
}
.sm-row:hover .sm-mask { opacity: 1; }
.sm-play svg { width: 20px; height: 20px; }
.sm-main { flex: 1; min-width: 0; }
.sm-name { font-weight: 700; font-size: 14px; color: var(--txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-tags { font-size: 12px; color: var(--txt3); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-right { flex: none; display: flex; align-items: center; gap: 12px; }
.sm-dur { font-size: 12.5px; color: var(--txt2); font-variant-numeric: tabular-nums; }
.sm-more-btn { background: none; border: none; color: var(--txt2); cursor: pointer; padding: 6px; border-radius: 8px; }
.sm-more-btn:hover { color: var(--gold); background: var(--card-2); }

/* ---------- 专辑详情页 ---------- */
.al-hero { position: relative; height: 224px; border-radius: 18px; overflow: hidden; margin-bottom: 20px; }
.al-hero-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; background-color: #6b5527; filter: blur(28px); transform: scale(1.15); }
.al-hero-mask { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(52,37,10,.66), rgba(70,50,14,.42)); }
.al-hero-inner { position: relative; z-index: 2; display: flex; gap: 26px; align-items: center; height: 100%; padding: 32px; }
.al-hero-cover {
  width: 160px; height: 160px; border-radius: 14px; overflow: hidden; flex: none;
  background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center;
  font-size: 54px; box-shadow: 0 14px 34px rgba(0,0,0,.32);
}
.al-hero-cover img { width: 100%; height: 100%; object-fit: cover; }
.al-hero-info { min-width: 0; }
.al-hero-info h1 { color: #fff; font-size: 30px; font-weight: 900; text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.al-hero-count {
  display: inline-block; margin-top: 12px; font-size: 13px; color: #f6d78b;
  border: 1px solid #d9b968; border-radius: 999px; padding: 4px 15px; background: rgba(0,0,0,.2);
}
.al-hero-time { color: rgba(255,255,255,.85); font-size: 12.5px; margin-top: 10px; }
.al-hero-btns { display: flex; gap: 12px; margin-top: 16px; }
.al-play-btn {
  background: linear-gradient(135deg, #8a5f13, #5e4010); color: #fff; border: none;
  border-radius: 999px; padding: 10px 24px; font-weight: 700;
}
.al-play-btn:hover { filter: brightness(1.12); }
.al-fav-btn {
  background: rgba(255,255,255,.92); color: #5a4517; border: none;
  border-radius: 999px; padding: 10px 22px; font-weight: 700;
}
.al-fav-btn:hover { filter: none; background: #fff; }
.al-fav-btn.on { color: var(--red); background: #fff; }
.al-songlist { padding: 8px 16px; }
.as-row { display: flex; align-items: center; gap: 14px; height: 80px; border-bottom: 1px solid var(--line); }
.as-row:last-child { border-bottom: none; }
.as-num { width: 80px; text-align: center; font-size: 15px; font-weight: 700; color: var(--txt3); font-variant-numeric: tabular-nums; flex: none; }
.as-cover {
  position: relative; width: 52px; height: 52px; border-radius: 9px; overflow: hidden; flex: none;
  background: var(--card-2); display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.as-cover img { width: 100%; height: 100%; object-fit: cover; }
.as-row:hover .sm-mask { opacity: 1; }
.as-main { flex: 1; min-width: 0; }
.as-name { font-weight: 700; font-size: 14px; color: var(--txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-sub { font-size: 12px; color: var(--txt3); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-right { flex: none; display: flex; align-items: center; gap: 12px; padding-right: 8px; }
.as-dur { font-size: 12.5px; color: var(--txt2); font-variant-numeric: tabular-nums; }

/* ---------- 顶栏头像悬浮资料卡 ---------- */
.tb-user { position: relative; }
.tb-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.tb-profile-card {
  position: absolute; right: 0; top: 52px; z-index: 80; width: 292px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 18px 46px rgba(0,0,0,.2); padding: 18px;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .22s; pointer-events: none;
}
.tb-profile-card::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 14px; }
.tb-user:hover .tb-profile-card,
.tb-user.open .tb-profile-card,
.tb-profile-card:hover { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.tpc-head { display: flex; gap: 12px; align-items: center; }
.tpc-avatar {
  width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex: none;
  background: var(--gold-grad); color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px;
}
.tpc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tpc-name { font-size: 16px; font-weight: 800; color: var(--txt); display: flex; align-items: center; gap: 8px; }
.tpc-level {
  display: inline-block; flex: none; padding: 2px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; line-height: 1.5; color: #f5e3b8;
  background: linear-gradient(135deg, #7a5418 0%, #b5832c 100%);
  border: 1px solid #8a6220; white-space: nowrap; max-width: 96px; overflow: hidden; text-overflow: ellipsis;
}
.tpc-id { font-size: 11.5px; color: var(--txt3); margin-top: 3px; }
.tpc-stats { display: flex; margin: 14px 0 10px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tpc-stats a { flex: 1; text-align: center; padding: 10px 0; }
.tpc-stats a + a { border-left: 1px solid var(--line); }
.tpc-stats b { display: block; font-size: 16px; font-weight: 800; color: var(--gold); }
.tpc-stats span { font-size: 11.5px; color: var(--txt3); }
.tpc-bio { font-size: 12.5px; color: var(--txt2); line-height: 1.7; margin-bottom: 10px; }
.tpc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tpc-tags span { font-size: 11px; color: var(--gold); background: var(--gold-soft); border-radius: 999px; padding: 2px 10px; }
.tpc-links { display: flex; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.tpc-links a {
  flex: 1; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--txt2);
  background: var(--card-2); border-radius: 9px; padding: 8px 0;
}
.tpc-links a:hover { color: var(--gold); }
.tpc-logout {
  width: 100%; margin-top: 10px; padding: 9px; border-radius: 9px; border: 1px solid var(--line);
  background: transparent; color: var(--red); font-size: 13px; font-weight: 700;
  display: inline-flex; gap: 7px; align-items: center; justify-content: center;
}
.tpc-logout:hover { background: rgba(239,68,68,.06); }

@media (max-width: 1280px) {
  .dc-hot-grid { gap: 14px; }
  .dc-new-grid { grid-template-columns: repeat(4, 1fr); }
  .dc-g-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) {
  .sd-top { grid-template-columns: 1fr; }
  .sd-left { border-right: none; padding-right: 0; }
  .dc-hot-grid, .dc-album-grid { grid-template-columns: repeat(2, 1fr); }
  .dc-new-grid { grid-template-columns: repeat(3, 1fr); }
  .dc-g-grid { grid-template-columns: 1fr; }
}

/* ============ 会员套餐弹窗 ============ */
/* 会员套餐弹窗：总宽自适应（左右各留 190px），TAB 下套餐列表固定 1500px，窄屏出横向滚动条 */
.modal-overlay:has(.mp-root) .modal { width: calc(100vw - 380px); max-width: none; overflow-x: auto; }
.mp-root { padding: 6px 0 10px; min-width: 0; }
.mp-head { text-align: center; margin-bottom: 20px; }
.mp-title { font-size: 22px; font-weight: 900; color: var(--txt); }
.mp-sub { font-size: 12.5px; color: var(--txt3); margin-top: 6px; }
.mp-tabs { display: flex; justify-content: center; gap: 6px; margin-bottom: 18px; padding-bottom: 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.mp-tab {
  padding: 7px 20px; border: 1px solid var(--line); background: transparent; border-radius: 999px;
  font-size: 13px; cursor: pointer; color: var(--txt2); font-family: inherit; transition: all .15s;
}
.mp-tab:hover { color: var(--gold); border-color: var(--gold-line); }
.mp-tab.active { background: var(--gold-grad); color: #fff; border-color: transparent; }
.mp-hot { font-size: 10.5px; margin-left: 4px; padding: 1px 6px; background: rgba(201,148,46,.15); color: var(--gold); border-radius: 4px; font-weight: 700; }

/* 列表固定 1500px：宽屏居中，窄屏由弹层底部横向滚动条承载，超出部分隐藏不折行
   注意：去掉本层 overflow:hidden，避免「特惠尊享」角标（top:-10px）被裁剪；顶部预留 12px 给角标外露 */
.mp-grid { display: flex; flex-wrap: nowrap; gap: 14px; padding: 12px 4px 14px; width: 1500px; max-width: none; margin: 0 auto; }
.mp-load, .mp-empty { flex: 1; text-align: center; padding: 30px; color: var(--txt3); }

.mp-plan {
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 14px 18px;
  background: var(--card); position: relative; transition: box-shadow .15s, transform .12s;
  display: flex; flex-direction: column; flex: 1 0 0; min-width: 0;
}
.mp-plan:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.mp-plan.mp-deal-card {
  border-color: var(--gold-line);
  background: linear-gradient(180deg, #fffbea 0%, var(--card) 60%);
}
.mp-deal {
  position: absolute; top: -10px; right: 10px;
  background: var(--gold-grad); color: #fff; font-size: 11px; padding: 2px 10px;
  border-radius: 999px; font-weight: 700;
}
.mp-pname { font-size: 14px; font-weight: 700; color: var(--txt); }
.mp-price { font-size: 26px; font-weight: 900; color: var(--gold); margin-top: 6px; letter-spacing: -0.5px; }
.mp-per { font-size: 11px; color: var(--txt3); margin-top: -2px; }
.mp-plan ul { list-style: none; padding: 0; margin: 12px 0 0; font-size: 12px; color: var(--txt2); line-height: 1.85; flex: 1; }
.mp-plan ul li { display: flex; align-items: flex-start; gap: 6px; }
.mp-b { color: var(--gold); font-weight: 700; flex: none; }
.mp-buy {
  margin-top: 14px; width: 100%; padding: 9px; border-radius: 10px; border: none; cursor: pointer;
  background: linear-gradient(135deg, #b8831f, #8a5f13); color: #fff; font-size: 13px; font-weight: 700;
  font-family: inherit; transition: filter .15s;
}
.mp-buy:hover { filter: brightness(1.08); }

/* 会员专属套餐角标与卡片描边 */
.mp-vip-tag {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-size: 11px; font-weight: 700; color: #8a6d1d;
  background: linear-gradient(135deg, #f7e7b0, #e7c873);
  border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}
.mp-plan.mp-vip-card { border-color: #d9b75c; box-shadow: inset 0 0 0 1px rgba(217,183,92,.25); }
/* 暗色主题：特惠卡片顶部改为暗色金渐变，避免浅色渐变盖住卡片上半部分文字 */
html[data-theme="dark"] .mp-plan.mp-deal-card { background: linear-gradient(180deg, rgba(207,150,48,.14) 0%, var(--card) 60%); }

/* 支付方式选择卡片 */
.pay-picker-modal { max-width: 420px; }
.pp-amount { text-align: center; font-size: 14px; color: var(--txt2); margin: 4px 0 18px; }
.pp-amount b { font-size: 26px; color: var(--gold); margin-left: 6px; font-weight: 900; }
.pp-list { display: flex; flex-direction: column; gap: 10px; }
.pay-ch {
  display: flex; align-items: center; gap: 12px; width: 100%;
  border: 1px solid var(--line); background: var(--card); border-radius: 12px;
  padding: 14px 16px; font-size: 14.5px; font-weight: 600; color: var(--txt);
  cursor: pointer; font-family: inherit; transition: all .15s; text-align: left;
}
.pay-ch:hover { border-color: var(--gold-line); background: rgba(201,148,46,.06); }
.pay-ch .pay-ico { font-size: 20px; line-height: 1; }
.pay-ch .pay-go { margin-left: auto; color: var(--txt3); font-size: 20px; }

/* 套餐列表统一固定 1500px 横向滚动，不再折行 */

/* ============ 创作中心：人声选择 + 标签输入行 ============ */
.voice-pick { display: flex; gap: 8px; }
.voice-opt {
  flex: 1; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 4px; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(201,148,46,.06); color: var(--txt2); cursor: pointer;
  font-size: 13px; font-family: inherit; transition: all .15s; white-space: nowrap;
}
.voice-opt svg { flex: none; }
.voice-opt:hover { border-color: var(--gold-line); color: var(--gold); }
.voice-opt.active { background: var(--gold-grad); color: #fff; border-color: transparent; }
.voice-opt.active svg { stroke: #fff; }

.tags-input-row { display: flex; gap: 8px; align-items: stretch; }
.tags-input-row input { flex: 1; min-width: 0; }
.tag-label-row { display: flex; align-items: center; gap: 8px; }
.tag-pick-btn {
  flex: none; padding: 1px 10px; border: 1px solid var(--gold); border-radius: 6px;
  background: transparent; color: var(--gold); font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit; white-space: nowrap; transition: all .15s; line-height: 1.6;
}
.tag-pick-btn:hover { background: var(--gold); color: #fff; }

/* ============ 标签选择对话框 ============ */
.tpd-root { padding: 4px 0; }
.tpd-cats { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.tpd-cat {
  padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent;
  font-size: 12px; cursor: pointer; color: var(--txt2); font-family: inherit; transition: all .15s;
}
.tpd-cat:hover { color: var(--gold); border-color: var(--gold-line); }
.tpd-cat.active { background: var(--gold-grad); color: #fff; border-color: transparent; }
.tpd-tags { display: flex; flex-wrap: wrap; gap: 8px; max-height: 280px; overflow-y: auto; }
.tpd-tag {
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card-2);
  font-size: 12px; color: var(--txt2); cursor: pointer; transition: all .15s;
}
.tpd-tag:hover { border-color: var(--gold-line); color: var(--gold); }
.tpd-tag.active { background: var(--gold); color: #fff; border-color: transparent; }
.tpd-sub { margin-top: 10px; }
.tpd-sub-title { font-size: 12px; color: var(--txt3); margin-bottom: 6px; }
.tpd-empty { text-align: center; padding: 30px; color: var(--txt3); }

/* ============ 通用：行内开关 ============ */
.switch-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 42px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card-2);
  font-size: 13.5px; color: var(--txt2);
}
.form-item .switch-row { margin-top: 0; }
.switch { position: relative; display: inline-block; width: 42px; height: 23px; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch i {
  position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: background .2s;
}
.switch i::before {
  content: ''; position: absolute; left: 3px; top: 3px; width: 17px; height: 17px;
  background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.switch input:checked + i { background: var(--gold); }
.switch input:checked + i::before { transform: translateX(19px); }

/* 标签选择按钮统一靠右 */
.tag-label-row { width: 100%; }
.tag-label-row .tag-pick-btn { margin-left: auto; }
/* 行尾按钮整体上移7px（生成实例/段落标签/选择标签） */
.tag-label-row > .tag-pick-btn { transform: translateY(-7px); }
/* 并排表单：右侧无标题项（循环片段开关）与左侧输入框底部对齐 */
.form-row > .form-item.align-end { align-self: flex-end; }

/* ============ 个人中心：头像上传与昵称 ============ */
.me-avatar-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.avatar-up {
  position: relative; width: 100px; height: 100px; flex: none; border-radius: 10px;
  border: 1.5px dashed var(--line); background: var(--card-2); cursor: pointer; overflow: hidden;
  display: flex; align-items: center; justify-content: center; transition: border-color .15s; box-sizing: border-box;
}
.avatar-up:hover { border-color: var(--gold); }
.avatar-up input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.avatar-up img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar-plus { font-size: 46px; font-weight: 300; line-height: 1; color: var(--txt3); user-select: none; pointer-events: none; }
.avatar-up.has-img .avatar-plus { display: none; }
.avatar-tip { font-size: 12.5px; color: var(--txt3); line-height: 1.9; }

/* ============ 上传参考音乐 ============ */
.ref-up {
  width: 100%; height: 126px; box-sizing: border-box;
  border: 1.5px dashed var(--gold-line); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  cursor: pointer; background: var(--card-2); transition: all .15s; padding: 12px; overflow: hidden;
}
.ref-up:hover { border-color: var(--gold); background: rgba(212,175,108,.06); }
.ref-up:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.ref-up-inner { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ref-up-plus { font-size: 34px; font-weight: 800; line-height: 1; color: var(--gold); margin-bottom: 4px; }
.ref-up-t1 { font-size: 13px; color: var(--txt2); }
.ref-up-t2 { font-size: 12px; color: var(--txt3); }
.ref-up-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.ref-up-msg { font-size: 13px; color: var(--txt2); line-height: 1.7; }
.ref-up-msg.err { color: #e5675f; }
.ref-up-fname { color: var(--txt3); font-size: 12px; word-break: break-all; }
.ref-up-retry { color: var(--gold); font-size: 12.5px; }
.ref-up-ok { font-size: 13px; color: var(--txt2); }
.ref-up-actions { display: flex; gap: 8px; }
.btn-xs { padding: 2px 12px !important; font-size: 12px !important; }
.ref-up-spin {
  display: inline-block; width: 16px; height: 16px; margin-right: 4px; vertical-align: -3px;
  border: 2px solid var(--gold-line); border-top-color: var(--gold); border-radius: 50%;
  animation: refspin .8s linear infinite;
}
@keyframes refspin { to { transform: rotate(360deg); } }

/* ============ 作品卡：下载悬浮卡片 + body级菜单 ============ */
.dl-pop {
  position: fixed; z-index: 2000; min-width: 210px; visibility: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 34px rgba(0,0,0,.22); padding: 6px;
}
.dl-pop button {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 9px 12px; border: 0; background: transparent; border-radius: 8px;
  font-size: 13px; color: var(--txt); cursor: pointer; font-family: inherit; text-align: left; white-space: nowrap;
}
.dl-pop button:hover { background: var(--card-2); color: var(--gold); }
.dl-pop .dl-ico { font-size: 15px; }

.body-pop {
  position: fixed; z-index: 2001; min-width: 150px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 34px rgba(0,0,0,.22); padding: 6px;
}
.body-pop button {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 8px 12px; border: 0; background: transparent; border-radius: 8px;
  font-size: 13px; color: var(--txt); cursor: pointer; font-family: inherit; text-align: left; white-space: nowrap;
}
.body-pop button:hover { background: var(--card-2); color: var(--gold); }
.body-pop .bp-danger:hover { color: #e5675f; }

/* ============ 歌词区工具：字数统计 / 生成示例 / 段落标签卡 ============ */
.tag-label-row .lyrics-tools { margin-left: auto; display: inline-flex; gap: 8px; transform: translateY(-7px); }
.tag-label-row .lyrics-tools .tag-pick-btn { margin-left: 0; }
.lyrics-wrap { position: relative; }
.lyrics-count {
  position: absolute; right: 10px; bottom: 8px; pointer-events: none;
  font-size: 12px; color: var(--txt3);
  background: var(--card-2); border-radius: 6px; padding: 1px 8px; opacity: .85;
}
.seg-pop {
  position: fixed; z-index: 2000; width: 252px; visibility: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 34px rgba(0,0,0,.22); padding: 10px;
}
.seg-pop .seg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg-item {
  padding: 9px 4px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); color: var(--txt); font-size: 13px; cursor: pointer;
  font-family: inherit; transition: all .15s; text-align: center;
}
.seg-item:hover { border-color: var(--gold-line); color: var(--gold); background: var(--card-2); }
/* 卡片左侧中间箭头，指向「段落标签」按钮；flip 时箭头转到右侧 */
.seg-pop::before {
  content: ''; position: absolute; left: -7px; top: 50%; width: 12px; height: 12px;
  background: var(--card); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transform: translateY(-50%) rotate(45deg);
}
.seg-pop.flip::before {
  left: auto; right: -7px;
  border-left: 0; border-bottom: 0;
  border-right: 1px solid var(--line); border-top: 1px solid var(--line);
}
/* 作品卡内容区跳转详情页：去掉链接默认样式 */
.work-body-link { display: block; color: inherit; text-decoration: none; }

/* ================= AI 视频 / AI 绘画页 ================= */
.md-model-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.md-model {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 9px 11px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--card); cursor: pointer; font-family: inherit; transition: all .15s; text-align: left;
}
.md-model:hover { border-color: var(--gold-line); }
.md-model.active { border-color: var(--gold); background: var(--gold-soft); }
.mdm-group { font-size: 10.5px; color: #8a5e14; background: rgba(212,175,108,.18); border: 1px solid var(--gold-line); border-radius: 6px; padding: 0 6px; line-height: 1.6; }
.mdm-name { font-size: 12.8px; font-weight: 600; color: var(--txt); line-height: 1.35; }
.md-hint { font-size: 12px; color: var(--txt3); margin-top: 5px; }

.md-ref-single { position: relative; }
.md-ref-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.md-ref-add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  width: 100%; min-height: 108px; border: 1.5px dashed var(--gold-line); border-radius: 12px;
  background: transparent; cursor: pointer; font-family: inherit; transition: all .15s; text-align: center; padding: 8px;
}
.md-ref-add:hover { border-color: var(--gold); background: rgba(212,175,108,.06); }
.mdf-plus { font-size: 28px; font-weight: 800; color: var(--gold); line-height: 1; }
.mdf-t1 { font-size: 12.5px; color: var(--txt2); }
.mdf-t2 { font-size: 11px; color: var(--txt3); }
.md-ref-thumb { position: relative; width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.md-ref-thumb img { display: block; width: 100%; height: 108px; object-fit: cover; }
.md-ref-del {
  position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 50%;
  border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 14px; line-height: 1;
  cursor: pointer; padding: 0;
}
.md-ref-del:hover { background: #e5675f; }

.media-card .work-cover video { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #000; }
.media-card .work-cover img { display: block; width: 100%; aspect-ratio: 1/1; object-fit: cover; }

/* ---------- 视频/绘画页右侧：标题「查看全部」 ---------- */
.works-more-link { font-size: 13px; color: var(--gold); font-weight: 600; white-space: nowrap; }
.works-more-link:hover { text-decoration: underline; }

/* ---------- 视频页右侧：一行 4 个 ---------- */
.works-grid.video-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.media-card .mc-cover {
  position: relative; display: block; width: 100%; aspect-ratio: 16/9;
  background: #0c0c14; overflow: hidden; text-decoration: none;
}
.media-card .mc-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.media-card:hover .mc-cover img { transform: scale(1.04); }
.media-card .mc-cover .mc-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 32px; background: linear-gradient(135deg, #23233a, #14141f); }
.media-card .mc-play {
  position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold-grad); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,.35); opacity: 0; transition: opacity .2s; pointer-events: none;
}
.media-card .mc-play svg { width: 17px; height: 17px; margin-left: 2px; }
.media-card:hover .mc-play { opacity: 1; }
.media-card .mc-title-link { color: inherit; text-decoration: none; }
.media-card .mc-title-link:hover .work-title { color: var(--gold); }

/* ---------- 绘画页右侧：瀑布流（三列） ---------- */
.works-grid.draw-masonry { display: block; column-count: 3; column-gap: 12px; }
.works-grid.draw-masonry > * { break-inside: avoid; margin-bottom: 12px; display: block; }
.draw-masonry.media-card .mc-cover { aspect-ratio: auto; background: var(--card-2); }
.draw-masonry.media-card .mc-cover img { position: static; height: auto; aspect-ratio: auto; }
.draw-masonry.media-card .work-title { white-space: normal; }

/* ---------- 媒体卡片（视频/绘画）：封面 + 名称 + 元信息行（模型/创作者/日期/喜欢） ---------- */
.media-card .mc-info { padding: 9px 2px 2px; }
.media-card .mc-name {
  font-size: 13px; font-weight: 700; color: var(--txt);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.media-card .mc-meta {
  display: flex; align-items: center; gap: 8px; margin-top: 5px;
  font-size: 11.5px; color: var(--txt3); overflow: hidden;
}
.media-card .mc-meta .type-badge { flex: none; }
.media-card .mc-meta .mc-user, .media-card .mc-meta .mc-date {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto;
}
.media-card .mc-meta .mc-like {
  margin-left: auto; flex: none; color: var(--gold); font-size: 13px; line-height: 1;
  cursor: default;
}

/* ---------- 全部视频页：一行 5 个 ---------- */
.mv-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.mv-card { display: block; color: inherit; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.mv-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.mv-cover { position: relative; aspect-ratio: 16/9; background: #0c0c14; overflow: hidden; }
.mv-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.mv-card:hover .mv-cover img { transform: scale(1.05); }
.mv-cover .mv-emoji { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 38px; background: linear-gradient(135deg, #23233a, #14141f); }
.mv-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.85);
  width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,.52); color: #fff;
  display: flex; align-items: center; justify-content: center; opacity: 0; transition: all .2s;
}
.mv-play svg { width: 22px; height: 22px; margin-left: 3px; }
.mv-card:hover .mv-play { opacity: 1; transform: translate(-50%, -50%) scale(1); background: var(--gold-grad); }
.mv-name { padding: 9px 11px 2px; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-meta { display: flex; justify-content: space-between; gap: 8px; padding: 2px 11px 11px; font-size: 11.5px; color: var(--txt3); }

/* ---------- 全部图片页：一行 6 个 ---------- */
.gi-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.gi-card { display: block; color: inherit; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.gi-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.gi-img { width: 100%; background: var(--card-2); overflow: hidden; }
.gi-img img { display: block; width: 100%; height: auto; object-fit: cover; transition: transform .25s; }
.gi-card:hover .gi-img img { transform: scale(1.04); }
.gi-name { padding: 8px 10px 2px; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gi-meta { display: flex; justify-content: space-between; gap: 6px; padding: 2px 10px 9px; font-size: 11px; color: var(--txt3); }

/* ---------- 视频播放页 ---------- */
.vv-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.vv-main { padding: 0 !important; overflow: hidden; }
.vv-player { background: #000; width: 100%; max-height: 72vh; display: flex; align-items: center; justify-content: center; }
.vv-player video { display: block; width: 100%; max-height: 72vh; background: #000; }
.vv-info { padding: 18px 20px; }
.vv-info h1 { font-size: 19px; margin: 0 0 10px; line-height: 1.4; }
.vv-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--txt3); }
.vv-model { background: var(--gold-soft); color: #8a5e14; border: 1px solid var(--gold-line); border-radius: 999px; padding: 2px 11px; font-size: 12px; }
.vv-prompt { margin-top: 16px; border-top: 1px solid var(--line-2); padding-top: 14px; }
.vv-prompt-t { font-size: 13px; font-weight: 700; color: var(--txt2); margin-bottom: 7px; }
.vv-prompt p { margin: 0; font-size: 13.5px; line-height: 1.9; color: var(--txt2); white-space: pre-wrap; word-break: break-word; }
.vv-side { padding: 15px 16px; }
.vv-side-t { font-size: 15px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.vv-side-t a { font-size: 12.5px; color: var(--gold); font-weight: 500; }
.vv-rel { display: flex; flex-direction: column; gap: 10px; }
.vv-rel-item { display: flex; gap: 10px; color: inherit; text-decoration: none; }
.vv-rel-cover { position: relative; flex: none; width: 126px; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: #0c0c14; }
.vv-rel-cover img { width: 100%; height: 100%; object-fit: cover; }
.vv-rel-cover > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.vv-rel-play { position: absolute; right: 6px; bottom: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; }
.vv-rel-play svg { width: 12px; height: 12px; margin-left: 1px; }
.vv-rel-name { font-size: 13px; color: var(--txt2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vv-rel-item:hover .vv-rel-name { color: var(--gold); }

/* ---------- 图片详情页 ---------- */
.iv-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.iv-main { padding: 18px !important; }
.iv-imgbox { display: flex; align-items: center; justify-content: center; background: var(--card-2); border-radius: 12px; padding: 12px; max-height: 74vh; overflow: hidden; }
.iv-imgbox img { max-width: 100%; max-height: 68vh; object-fit: contain; border-radius: 8px; }
.iv-info { padding: 16px 4px 2px; }
.iv-info h1 { font-size: 19px; margin: 0 0 10px; line-height: 1.4; }
.iv-rel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.iv-rel-item { display: block; aspect-ratio: 1/1; border-radius: 8px; overflow: hidden; background: var(--card-2); }
.iv-rel-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.iv-rel-item:hover img { transform: scale(1.06); }

@media (max-width: 1200px) {
  .mv-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .vv-wrap, .iv-wrap { grid-template-columns: 1fr; }
  .works-grid.video-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


