/* ============================================================
   一期一会 v33 — 私人时光馆
   暖纸色 / 墨色导航 / 朱砂强调 / 影像与声音统一体验
   ============================================================ */
:root {
  --primary: #c45d43;
  --primary-rgb: 196, 93, 67;
  --primary-dark: #943f2c;
  --primary-bg: #f6e4de;
  --bg: #f3f0ea;
  --surface: #fbfaf7;
  --surface-strong: #ffffff;
  --fg: #292621;
  --muted: #716b62;
  --ink: #202824;
  --ink-soft: #2d3732;
  --hover: #ebe7df;
  --line: rgba(53, 48, 41, .11);
  --danger: #b5413e;
  --danger-bg: #f8dfdc;
  --sel-bg: #efd6ce;
  --glass: rgba(251, 250, 247, .88);
  --shadow-sm: 0 2px 10px rgba(45, 38, 29, .06);
  --shadow-md: 0 14px 38px rgba(45, 38, 29, .10);
  --shadow-lg: 0 26px 80px rgba(30, 27, 22, .18);
  --side-w: 250px;
  --r-s: 12px; --r-m: 18px; --r-l: 28px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg); color: var(--fg);
  line-height: 1.55; letter-spacing: .1px;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
input, textarea, .pp-lyric p, .lb-info { user-select: text; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; }
svg { display: block; }
[hidden] { display: none !important; }
::selection { background: rgba(var(--primary-rgb), .22); }

/* 细滚动条（YPm 式，默认隐藏 hover 显示） */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(128, 128, 128, .38); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(128, 128, 128, .58); }
::-webkit-scrollbar-track { background: transparent; }

/* 文字不透明度分级（YPm） */
.dim { color: var(--fg); opacity: .72; }
.small { font-size: 12px; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--r-s); font-size: 14px; font-weight: 600;
  background: var(--hover); color: var(--fg);
  transition: transform .15s var(--ease), background .15s, color .15s, opacity .15s;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { background: #ececf0; }
.btn:active { transform: scale(.96); }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover { background: #38469a; }
.btn.ghost { background: transparent; color: var(--fg); opacity: .82; }
.btn.ghost:hover { background: var(--hover); opacity: 1; }
.btn.small { padding: 6px 13px; font-size: 13px; }
.btn.small svg { width: 15px; height: 15px; }
.btn.block { width: 100%; padding: 12px; font-size: 15px; }
.btn.ghost-dark { background: rgba(255, 255, 255, .14); color: #fff; }
.btn.ghost-dark:hover { background: rgba(255, 255, 255, .24); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: var(--danger-bg); }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* 图标按钮（YPm ButtonIcon） */
.icon-btn {
  width: 38px; height: 38px; border-radius: 26%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg); transition: background .15s, transform .12s, color .15s;
  flex: 0 0 auto;
}
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn:hover { background: rgba(16, 19, 23, .06); }
.icon-btn:active { transform: scale(.9); }
.icon-btn.dark { color: #fff; }
.icon-btn.dark:hover { background: rgba(255, 255, 255, .16); }
.icon-btn.big { width: 44px; height: 44px; border-radius: 50%; }
.icon-btn.big svg { width: 26px; height: 26px; }

/* 播放/暂停双态图标 */
.ic-pause { display: none; }
.playing .ic-pause { display: block; }
.playing .ic-play { display: none; }
/* 房间暂停/继续按钮（播放中显示"暂停"图标） */
#room-pause .ic-pause-s { display: none; }
#room-pause .ic-play-s { display: block; }
#room-pause.playing .ic-pause-s { display: block; }
#room-pause.playing .ic-play-s { display: none; }
#room-pause .ic-play-s, #room-pause .ic-pause-s { width: 16px; height: 16px; }

/* ============ 输入 ============ */
input, select {
  font-family: inherit; font-size: 14px; color: var(--fg);
  border: none; background: var(--hover); border-radius: var(--r-s);
  padding: 10px 16px; outline: none; width: 100%;
  transition: background .18s, box-shadow .18s;
}
input::placeholder { color: var(--fg); opacity: .38; }
input:focus, select:focus {
  background: #fff;
  box-shadow: 0 0 0 1.5px rgba(var(--primary-rgb), .55), var(--shadow-sm);
}
select { width: auto; }

/* 搜索框（Immich 大圆角 + 内嵌图标） */
.search-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--hover); border-radius: 999px; padding: 0 18px;
  flex: 1; transition: background .18s, box-shadow .18s;
}
.search-box svg { width: 18px; height: 18px; opacity: .38; flex: 0 0 auto; transition: opacity .18s; }
.search-box input { background: transparent; padding: 13px 0; flex: 1; }
.search-box input:focus { box-shadow: none; background: transparent; }
.search-box:focus-within { background: #fff; box-shadow: 0 0 0 1.5px rgba(var(--primary-rgb), .55), var(--shadow-md); }
.search-box:focus-within svg { opacity: .85; color: var(--primary); }
.search-box.block { border-radius: var(--r-s); }

/* ============ Toast ============ */
#toast {
  position: fixed; left: 50%; bottom: calc(110px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: rgba(16, 19, 23, .92); color: #fff; padding: 11px 24px; border-radius: 999px;
  font-size: 14px; z-index: 1000; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  max-width: 88vw; text-align: center; box-shadow: var(--shadow-lg);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }
#toast.err { background: rgba(217, 67, 47, .96); }
/* 手机上播放条占 80–148px，Toast 固定 110px 会被压住 */
@media (max-width: 960px) {
  #toast { bottom: calc(100px + env(safe-area-inset-bottom)); }
  body:has(#player-bar:not([hidden])) #toast { bottom: calc(164px + env(safe-area-inset-bottom)); }
}

/* ============ 登录页 ============ */
.login-wrap {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 24px;
}
.login-card { width: 100%; max-width: 350px; text-align: center; }
.login-logo {
  width: 64px; height: 64px; margin: 0 auto 18px; font-size: 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-bg); border-radius: 22px;
}
.brand { font-size: 32px; font-weight: 900; letter-spacing: .12em; }
.brand .dot { color: var(--primary); }
.brand-sub { color: var(--fg); opacity: .58; font-size: 13px; margin: 6px 0 34px; letter-spacing: .2em; }
.login-tabs { display: flex; gap: 26px; justify-content: center; margin-bottom: 26px; }
.tab-btn { color: var(--fg); opacity: .38; font-size: 15px; font-weight: 600; padding: 4px 2px; border-bottom: 2px solid transparent; transition: all .15s; }
.tab-btn.active { color: var(--fg); opacity: 1; border-bottom-color: var(--primary); }
.login-card form label { display: block; text-align: left; font-size: 12px; font-weight: 600; opacity: .58; margin-bottom: 14px; }
.login-card form input { margin-top: 5px; background: #f3f4f6; }
.login-card .btn { margin-top: 12px; }
.form-err { color: var(--danger); font-size: 13px; min-height: 20px; margin-top: 10px; }
.login-note { margin-top: 40px; opacity: .38; font-size: 12px; letter-spacing: .1em; }

/* ============ 布局：Immich 式侧边栏 ============ */
.shell { display: flex; min-height: 100vh; min-height: 100dvh; }
.sidebar {
  width: var(--side-w); flex: 0 0 var(--side-w);
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  display: flex; flex-direction: column;
  padding: 24px 12px 18px 20px;
  border-right: 1px solid var(--line);
}
.brand-mini { font-size: 18px; font-weight: 900; letter-spacing: .1em; padding: 2px 22px 26px; display: block; }
.brand-mini .dot { color: var(--primary); }
.sidenav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
/* Immich 药丸激活态：右侧全圆角 + 10% 主色底 */
.sidenav a {
  display: flex; align-items: center; gap: 15px;
  padding: 11px 22px; border-radius: 0 999px 999px 0;
  color: var(--fg); opacity: .75; font-size: 15px; font-weight: 500;
  transition: all .15s var(--ease);
}
.sidenav a .nav-svg { width: 21px; height: 21px; }
.sidenav a:hover { background: var(--hover); opacity: 1; color: var(--primary); }
.sidenav a.active { background: rgba(var(--primary-rgb), .1); color: var(--primary); opacity: 1; font-weight: 600; }
.sidebar-foot { display: flex; align-items: center; justify-content: space-between; padding: 0 22px 0 12px; }
.disk-hint { font-size: 12px; opacity: .38; font-variant-numeric: tabular-nums; }
.disk-hint.warn { opacity: 1; color: var(--danger); font-weight: 600; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary-bg); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; flex: 0 0 auto;
  transition: transform .15s;
}
.avatar:hover { transform: scale(1.06); }
.avatar.big { width: 64px; height: 64px; font-size: 24px; }

/* 移动端顶栏 + 底部 tabbar */
.topbar {
  display: none; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50; min-height: 58px; padding: env(safe-area-inset-top) 18px 0;
  background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.topbar .brand-mini { padding: 0; }
.tabbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--line); padding: 5px 0 calc(5px + env(safe-area-inset-bottom));
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10.5px; font-weight: 600; opacity: .45; padding: 5px 0;
  transition: opacity .15s, color .15s;
}
.tabbar a .nav-svg { width: 23px; height: 23px; }
.tabbar a.active { color: var(--primary); opacity: 1; }

/* ============ 页面通用 ============ */
.view { flex: 1; min-width: 0; padding: 34px 40px 0; max-width: 1280px; }
.page { padding-bottom: 160px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-title { font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.section-title {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 20px; font-weight: 800; letter-spacing: -.01em; margin: 28px 0 14px;
}
.cnt-inline { font-size: 13px; font-weight: 600; opacity: .38; }
.empty { text-align: center; opacity: .45; padding: 80px 20px; font-size: 14px; }
.empty svg { width: 44px; height: 44px; margin: 0 auto 14px; }
.empty.small-empty { padding: 36px 12px; font-size: 13px; }
.panel { border: 1px solid var(--line); border-radius: var(--r-m); padding: 20px; margin-bottom: 14px; background: #fff; }
.panel h4 { margin-bottom: 14px; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.hint-text { font-size: 13px; opacity: .58; margin: 8px 0; }

/* ============ 相册卡片条（Immich 卡片） ============ */
.album-strip-wrap { overflow-x: auto; margin: 0 -6px 20px; padding: 4px 6px; scrollbar-width: thin; }
.album-strip { display: flex; gap: 12px; width: max-content; }
.album-card {
  width: 118px; flex: 0 0 auto; position: relative;
  border-radius: var(--r-m); padding: 7px;
  border: 1px solid transparent; cursor: pointer;
  transition: background .18s, border-color .18s;
}
.album-card:hover { background: var(--hover); border-color: var(--line); }
.album-card.active { background: var(--primary-bg); border-color: rgba(var(--primary-rgb), .25); }
.album-cover {
  aspect-ratio: 1; border-radius: var(--r-s); overflow: hidden; background: var(--hover);
  display: flex; align-items: center; justify-content: center; color: var(--fg);
}
.album-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-cover svg { width: 26px; height: 26px; opacity: .3; }
.album-name {
  font-size: 13px; font-weight: 600; margin-top: 8px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.album-card.active .album-name { color: var(--primary); }
.album-count { font-size: 12px; opacity: .48; }
.album-more {
  position: absolute; top: 11px; right: 11px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(16, 19, 23, .5); color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s;
}
.album-more svg { width: 17px; height: 17px; }
.album-card:hover .album-more { opacity: 1; }
.album-card.new .album-cover { border: 1.6px dashed rgba(16, 19, 23, .25); background: transparent; color: var(--fg); }
.album-card.new svg.plus { width: 22px; height: 22px; opacity: .5; }

/* 上下文菜单 */
.ctx-menu {
  position: fixed; z-index: 500; min-width: 132px;
  background: #fff; border-radius: var(--r-m); box-shadow: var(--shadow-lg);
  padding: 5px; border: 1px solid var(--line);
  animation: popIn .12s var(--ease);
}
@keyframes popIn { from { opacity: 0; transform: scale(.94) translateY(-3px); } to { opacity: 1; transform: none; } }
.ctx-menu button {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 9px 12px; border-radius: var(--r-s); font-size: 13.5px; font-weight: 500;
  text-align: left;
}
.ctx-menu button svg { width: 16px; height: 16px; opacity: .6; }
.ctx-menu button:hover { background: var(--hover); }
.ctx-menu button.danger { color: var(--danger); }

/* ============ 时间线（Immich justified） ============ */
.tl-group { margin-bottom: 14px; }
.day-head { display: flex; align-items: center; gap: 0; padding: 14px 2px 10px; }
.day-check {
  width: 0; height: 26px; overflow: hidden; flex: 0 0 auto; padding: 0; border: 0; background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: var(--fg); opacity: 0; border-radius: 50%;
  visibility: hidden; pointer-events: none;
  transition: width .2s ease-out, margin .2s ease-out, opacity .2s ease-out, background .18s; cursor: pointer;
}
.sel-on .day-check { width: 28px; margin-right: 10px; opacity: .45; visibility: visible; pointer-events: auto; }
.day-check:hover { opacity: .9 !important; }
.day-check:focus-visible { opacity: 1; outline: 2px solid rgba(var(--primary-rgb), .35); outline-offset: 2px; }
.day-check svg { width: 24px; height: 24px; }
.day-check.on { opacity: 1; color: var(--primary); }
.day-title { font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.day-head .cnt { font-size: 12px; opacity: .38; font-weight: 600; margin-left: 8px; }

/* justified 行：2px 缝隙（Immich） */
.jrow { display: flex; margin-bottom: 2px; }
.jitem { position: relative; overflow: hidden; background: var(--hover); cursor: pointer; flex: 0 0 auto; }
.jitem:focus-visible { outline: 3px solid rgba(var(--primary-rgb), .42); outline-offset: 2px; z-index: 4; }
.jitem img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .2s var(--ease), border-radius .2s;
}
/* Immich 选中效果：图片缩小到 0.85 露出浅蓝底 */
.jitem:hover img { transform: scale(1.02); }
.jitem.selected { background: var(--sel-bg); z-index: 1; }
.jitem.selected img { transform: scale(.85); }
.cell-check {
  position: absolute; top: 6px; left: 6px; width: 25px; height: 25px; z-index: 2;
  border-radius: 50%; background: rgba(16, 19, 23, .28); color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: scale(.82); transition: opacity .15s, background .15s, transform .15s;
}
.cell-check svg { width: 16px; height: 16px; opacity: 0; }
.sel-on .jitem .cell-check { opacity: 1; transform: scale(1); border: 1.5px solid rgba(255,255,255,.82); }
.sel-on .jitem:hover .cell-check { background: rgba(16,19,23,.68); }
.sel-on .jitem.selected .cell-check { opacity: 1; background: var(--primary); border-color: var(--primary); }
.jitem.selected .cell-check svg { opacity: 1; }
/* Immich 式顶部渐变 hover 遮罩 */
.jitem::after {
  content: ''; position: absolute; inset: 0 0 auto; height: 46%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .22), transparent);
  opacity: 0; transition: opacity .18s; pointer-events: none;
}
.jitem:hover::after { opacity: 1; }
.jitem.selected::after { opacity: 0; }
.v-dur {
  position: absolute; right: 6px; top: 6px; color: #fff;
  font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 5px;
  background: rgba(16, 19, 23, .55); font-variant-numeric: tabular-nums; z-index: 2;
  text-shadow: 0 0 4px rgba(0, 0, 0, .6);
}
.v-play {
  position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .95); color: var(--fg); z-index: 2;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s, transform .15s;
  box-shadow: var(--shadow-md);
}
.v-play svg { width: 19px; height: 19px; margin-left: 2px; }
.jitem:hover .v-play { opacity: 1; transform: scale(1.04); }
.status-badge {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: rgba(16, 19, 23, .5); color: #fff;
  font-size: 12.5px; font-weight: 600; padding: 4px; text-align: center;
  backdrop-filter: blur(2px);
}
.jitem.vgone { background: var(--hover); }

/* Immich 式顶部多选操作条 */
.select-bar {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 80; display: flex; align-items: center; gap: 8px;
  background: #fff; color: var(--fg); padding: 8px 10px 8px 6px;
  border-radius: 999px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  max-width: 94vw; animation: popIn .18s var(--ease);
}
.sel-count { font-size: 14px; font-weight: 600; color: var(--primary); white-space: nowrap; padding: 0 4px; }
.sel-mode-label { font-size: 11px; font-weight: 750; letter-spacing: .08em; color: rgba(255,255,255,.58); white-space: nowrap; }
.sel-div { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.sel-album {
  width: auto; max-width: 150px; background: var(--hover);
  padding: 7px 12px; font-size: 13px; border-radius: 999px;
}
.select-bar button:disabled, .select-bar select:disabled { opacity: .38; cursor: not-allowed; }
.select-bar button:disabled:hover { background: transparent; }
.btn.ghost.active { color: #fff; background: var(--ink); border-color: var(--ink); box-shadow: 0 8px 22px rgba(25,31,27,.18); }

/* ============ 音乐（YPm 列表） ============ */
.music-hero { padding: 6px 0 4px; }
.music-search-row { display: flex; gap: 12px; max-width: 640px; }
.music-filter-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; max-width: 760px; margin-top: 13px; }
.music-source-note { font-size: 11px; color: rgba(255,255,255,.52); letter-spacing: .03em; }
.vip-filter { display: inline-flex; align-items: center; gap: 2px; padding: 4px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(0,0,0,.12); flex: none; }
.vip-filter button { border: 0; border-radius: 999px; padding: 6px 26px; background: transparent; color: rgba(255,255,255,.62); font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; cursor: pointer; transition: background .18s, color .18s, box-shadow .18s; }
.vip-filter button:hover { background: rgba(255,255,255,.12); color: #fff; }
.vip-filter button.active { background: rgba(255,255,255,.92); color: var(--ink); box-shadow: 0 2px 7px rgba(0,0,0,.14); }
.vip-filter button.active[data-vip-filter="only"] { background: linear-gradient(135deg, #c9992e, #e0b64a); color: #fff; box-shadow: 0 2px 7px rgba(120,84,10,.28); }
.resolver-select {
  appearance: none; -webkit-appearance: none;
  border: 1px solid rgba(255,255,255,.16); border-radius: 999px;
  background: rgba(0,0,0,.12) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23cfd8c9' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 13px center;
  color: #e4edde; padding: 8px 32px 8px 15px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: border-color .18s, background-color .18s;
}
.resolver-select:hover { border-color: rgba(255,255,255,.3); }
.p-mode-badge { display: inline-flex; align-items: center; margin-left: 7px; padding: 1.5px 8px; border-radius: 999px; background: linear-gradient(135deg, #c9992e, #e0b64a); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .05em; vertical-align: 1.5px; }
.player-bar .pb-hidden { display: none !important; }
.player-bar.room-mode .pb-progress { pointer-events: none; opacity: .55; }
.player-bar.room-mode .pb-center { color: #e4edde; }
.music-hint { opacity: .5; font-size: 13px; margin: 16px 0 4px; min-height: 20px; }

.song-list { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.search-state { padding: 22px 12px; color: var(--muted); font-size: 12px; }
.room-search-note { color: var(--muted); font-size: 11px; letter-spacing: .02em; padding: 0 2px 8px; }
.song-row {
  display: flex; align-items: center; gap: 16px;
  padding: 8px 12px; border-radius: var(--r-m); cursor: pointer;
  transition: background .18s;
}
.song-row:hover { background: var(--hover); }
.song-row .row-cover {
  width: 46px; height: 46px; border-radius: var(--r-s); overflow: hidden;
  background: var(--hover); position: relative; flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(16, 19, 23, .05);
}
.song-row .row-cover img { width: 100%; height: 100%; object-fit: cover; }
/* 通用封面占位（歌曲行 / 队列） */
.cover-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: #fff;
  background: linear-gradient(145deg, #56608a, #2c3352);
}
.song-row .row-idx { width: 26px; text-align: right; font-size: 14px; opacity: .38; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.song-row .row-meta { flex: 1; min-width: 0; }
.song-row .song-title { font-size: 15.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.song-row .song-artist { font-size: 12.5px; opacity: .58; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.song-source { display: inline-block; margin-left: 6px; padding: 1px 5px; border: 1px solid currentColor; border-radius: 999px; font-size: 9px; line-height: 1.25; opacity: .7; vertical-align: 1px; }
.song-fallback { display: inline-block; margin-left: 4px; color: var(--primary); font-size: 9px; opacity: .78; vertical-align: 1px; }
.song-access-badge { display: inline-flex; align-items: center; margin-left: 6px; padding: 1px 5px; border-radius: 999px; background: rgba(196, 93, 67, .13); color: var(--primary-dark); font-size: 9px; font-weight: 800; line-height: 1.35; letter-spacing: .02em; vertical-align: 1px; }
.player-access { margin-left: 7px; flex: 0 0 auto; }
.room-access { margin: 3px 0 0; }
.music-credential-row { align-items: center; gap: 8px; }
.music-credential-label { flex: 0 0 64px; color: var(--fg); font-size: 12px; font-weight: 600; }
.song-row .row-dur { color: var(--fg); opacity: .58; font-size: 13.5px; flex: 0 0 auto; font-variant-numeric: tabular-nums; width: 44px; text-align: right; }
/* YPm 播放中行：主色浅底 + 主色字 */
.song-row.playing { background: var(--primary-bg); }
.song-row.playing .song-title, .song-row.playing .song-artist,
.song-row.playing .row-dur, .song-row.playing .row-idx { color: var(--primary); opacity: .9; }
.song-row.playing:hover { background: #dde6fc; }
/* 播放中动效均衡器 */
.row-eq { display: none; align-items: flex-end; gap: 2.5px; width: 26px; height: 18px; justify-content: center; flex: 0 0 auto; }
.song-row.playing .row-idx { display: none; }
.song-row.playing .row-eq { display: flex; }
.song-row.playing .row-dur { display: none; }
.song-row.playing:hover .row-eq { display: none; }
.song-row.playing:hover .row-btn { display: inline-flex; }
.row-eq i { width: 3px; border-radius: 2px; background: var(--primary); animation: eq 1s ease-in-out infinite; }
.row-eq i:nth-child(1) { height: 60%; animation-delay: -.45s; }
.row-eq i:nth-child(2) { height: 100%; animation-delay: -.7s; }
.row-eq i:nth-child(3) { height: 40%; }
@keyframes eq { 0%, 100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }
.row-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 auto;
  color: var(--fg); opacity: .5; transition: all .15s;
}
.row-btn svg { width: 18px; height: 18px; }
.row-btn:hover { background: rgba(var(--primary-rgb), .12); color: var(--primary); opacity: 1; }
.song-row .row-btn { visibility: hidden; }
.song-row:hover .row-btn { visibility: visible; }
.song-row.playing:hover .row-btn { visibility: visible; }
/* 房间搜索结果：点歌是主操作，按钮常显 */
#room-search-results .song-row .row-btn { visibility: visible; }

/* ============ 播放条（YPm 64px 毛玻璃） ============ */
.player-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  height: 72px;
  background: var(--glass); backdrop-filter: saturate(180%) blur(24px); -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px; padding: 0 22px;
  animation: barUp .35s var(--ease);
}
@keyframes barUp { from { transform: translateY(100%); } to { transform: none; } }
.pb-cover {
  width: 48px; height: 48px; border-radius: var(--r-s); overflow: hidden;
  background: var(--hover); flex: 0 0 auto; cursor: pointer; position: relative;
  box-shadow: 0 4px 10px -2px rgba(16, 19, 23, .22);
  transition: transform .15s;
}
.pb-cover:hover { transform: scale(1.04); }
.pb-cover img { width: 100%; height: 100%; object-fit: cover; }
.pb-cover .cover-ph-mini {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: #fff; background: linear-gradient(145deg, #56608a, #2c3352);
}
.pb-cover .cover-ph-mini svg { width: 22px; height: 22px; }
.pb-info { min-width: 0; flex: 1 1 0; max-width: 420px; cursor: pointer; }
.p-title { font-size: 14.5px; font-weight: 700; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-artist { font-size: 12px; opacity: .58; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.pb-center { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; }
.pb-center .icon-btn svg { width: 23px; height: 23px; }
.pb-play { width: 46px; height: 46px; }
.pb-play svg { width: 27px; height: 27px; }
.pb-right { display: flex; align-items: center; gap: 12px; flex: 1 1 0; max-width: 420px; }
.pb-progress { flex: 1; height: 4px; background: rgba(128, 128, 128, .18); border-radius: 99px; overflow: hidden; cursor: pointer; position: relative; transition: height .15s; }
.pb-progress:hover { height: 6px; }
.pb-fill { height: 100%; background: var(--primary); border-radius: 99px; width: 0; }
.pb-progress.dark { background: rgba(255, 255, 255, .25); }
.pb-progress.dark .pb-fill { background: #fff; }
.p-time { font-size: 12px; opacity: .58; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ============ 全屏播放页（黑胶 + 歌词） ============ */
.player-page {
  position: fixed; inset: 0; z-index: 300; overflow: hidden;
  animation: slideUp .3s var(--ease);
}
@keyframes slideUp { from { transform: translateY(6%); opacity: 0; } to { transform: none; opacity: 1; } }
.pp-bg {
  position: absolute; inset: -70px;
  background-size: cover; background-position: center;
  filter: blur(60px) contrast(80%) brightness(.52);
  background-color: #14161c;
}
.pp-inner {
  position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column;
  max-width: 1120px; margin: 0 auto; padding: calc(22px + env(safe-area-inset-top)) calc(34px + env(safe-area-inset-right)) calc(26px + env(safe-area-inset-bottom)) calc(34px + env(safe-area-inset-left));
  color: #fff;
}
.pp-top { display: flex; align-items: center; justify-content: space-between; }
.pp-spacer { width: 44px; flex: 0 0 auto; }
.pp-from { font-size: 12.5px; font-weight: 700; letter-spacing: .2em; opacity: .75; }
.pp-main { flex: 1; display: flex; gap: 56px; align-items: center; min-height: 0; padding: 14px 0; }
.pp-disc-wrap { flex: 0 0 auto; }
.pp-disc {
  position: relative; width: min(340px, 32vw); aspect-ratio: 1; border-radius: 50%;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
}
.pp-disc img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  background: #1a1d24;
  animation: spin 22s linear infinite; animation-play-state: paused;
}
.pp-disc.playing img { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }
.pp-hole {
  position: absolute; left: 50%; top: 50%; width: 15%; height: 15%;
  transform: translate(-50%, -50%);
  border-radius: 50%; background: #14161c; border: 4px solid rgba(255, 255, 255, .2);
}
.pp-lyric-col { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; max-height: 100%; }
.pp-title { font-size: 30px; font-weight: 900; letter-spacing: -.01em; }
.pp-artist { font-size: 15px; opacity: .68; margin: 6px 0 20px; }
.pp-lyric {
  flex: 1; min-height: 0; overflow-y: auto; padding: 10px 6px; scrollbar-width: none;
  mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
}
.pp-lyric::-webkit-scrollbar { display: none; }
/* YPm 歌词：非高亮 0.28 透明度 + 缩放 */
.pp-lyric p {
  font-size: 16px; font-weight: 600; color: #fff; opacity: .28;
  padding: 9px 16px; margin: 2px 0; border-radius: var(--r-m);
  transition: all .35s var(--ease); transform: scale(.96); transform-origin: left center;
  cursor: pointer;
}
.pp-lyric p:hover { background: rgba(255, 255, 255, .08); }
.pp-lyric p.active { opacity: .98; transform: scale(1); font-size: 19px; font-weight: 800; }
.pp-lyric-back {
  position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.26); border-radius: 999px;
  background: rgba(22,25,32,.78); color: #fff; font: inherit; font-size: 12px; font-weight: 600; letter-spacing: .03em;
  padding: 6px 16px; cursor: pointer; z-index: 2; backdrop-filter: blur(8px);
  transition: background .2s, opacity .25s;
}
.pp-lyric-back:hover { background: rgba(22,25,32,.95); }
.pp-controls { padding-top: 6px; }
.pp-progress-row { display: flex; align-items: center; gap: 14px; }
.pp-btns { display: flex; align-items: center; justify-content: center; gap: 26px; padding: 16px 0 4px; }
.pp-btns .icon-btn { width: 50px; height: 50px; }
.pp-btns .icon-btn svg { width: 29px; height: 29px; }
.pp-btns .pp-play { width: 64px; height: 64px; }
.pp-btns .pp-play svg { width: 38px; height: 38px; }

/* ============ 一起听 ============ */
.room-search-results { max-height: 340px; overflow-y: auto; margin-top: 14px; }
.room-queue { display: flex; flex-direction: column; gap: 2px; }
.q-title { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-remove {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  color: var(--fg); opacity: .4; transition: all .15s;
}
.q-remove svg { width: 15px; height: 15px; }
.q-remove:hover { background: var(--danger-bg); color: var(--danger); opacity: 1; }

/* ============ 我的 ============ */
.user-card {
  display: flex; gap: 20px; align-items: center;
  padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-l);
  margin: 16px 0 20px;
}
.user-main { flex: 1; min-width: 0; }
.user-name-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.user-name-row strong { font-size: 24px; font-weight: 800; }
.quota { max-width: 460px; }
.quota-bar { height: 6px; background: rgba(128, 128, 128, .16); border-radius: 99px; overflow: hidden; }
.quota-fill { height: 100%; background: var(--primary); border-radius: 99px; transition: width .3s; }
.quota-text { font-size: 12.5px; opacity: .58; margin-top: 7px; }
.invite-code { font-size: 26px; font-weight: 900; letter-spacing: .32em; color: var(--primary); }
.add-user-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.admin-users-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.admin-users-row:last-of-type { border-bottom: none; }
.au-name { font-weight: 700; min-width: 80px; }
.au-role-badge { font-size: 11px; font-weight: 700; color: var(--primary); background: var(--primary-bg); padding: 3px 10px; border-radius: 99px; }
.au-btn { border: 1.5px solid var(--line); font-size: 12px; font-weight: 600; padding: 5px 13px; border-radius: 99px; transition: all .15s; }
.au-btn:hover { border-color: var(--fg); }
.au-btn.danger:hover { border-color: var(--danger); color: var(--danger); }

/* ============ 灯箱（Immich） ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 400; background: #000;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  animation: fadeIn .18s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lb-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top)) calc(14px + env(safe-area-inset-right)) 10px calc(14px + env(safe-area-inset-left));
  background: linear-gradient(to bottom, rgba(0, 0, 0, .45), transparent);
}
.lb-actions { display: flex; align-items: center; gap: 4px; }
.lb-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: background .15s, transform .12s;
}
.lb-btn svg { width: 22px; height: 22px; }
.lb-btn:hover { background: rgba(255, 255, 255, .18); }
.lb-btn:active { transform: scale(.92); }
.lb-zoom { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid rgba(255,255,255,.14); border-radius: 24px; background: rgba(0,0,0,.28); }
.lb-zoom .lb-btn { width: 32px; height: 32px; }
.lb-zoom .lb-btn svg { width: 17px; height: 17px; }
.lb-zoom-btn:disabled { cursor: default; opacity: .35; }
.lb-zoom-value { min-width: 42px; height: 32px; padding: 0 4px; border-radius: 16px; color: rgba(255,255,255,.78); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lb-zoom-value:hover { background: rgba(255,255,255,.14); color: #fff; }
.lb-stage { flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; padding: 64px 70px 40px; min-height: 0; overflow: hidden; touch-action: none; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 3px; transform-origin: center center; transition: transform .18s var(--ease); cursor: zoom-in; will-change: transform; }
.lb-stage img.is-zoomed { cursor: grab; }
.lb-stage img.is-panning { cursor: grabbing; transition: none; }
.lb-stage video { max-width: 100%; max-height: calc(100vh - 140px); border-radius: 6px; outline: none; }
/* Immich 圆形导航钮 */
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, .6); transition: all .15s;
}
.lb-nav svg { width: 30px; height: 30px; }
.lb-nav:hover { background: rgba(120, 120, 120, .55); color: #fff; }
.lb-prev { left: calc(12px + env(safe-area-inset-left)); } .lb-next { right: calc(12px + env(safe-area-inset-right)); }
.lb-info {
  width: 100%; padding: 12px 24px calc(14px + env(safe-area-inset-bottom));
  text-align: center; color: rgba(255, 255, 255, .75); font-size: 13px;
}

/* ============ 模态 ============ */
.modal-mask {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(16, 19, 23, .45); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn .15s ease;
}
.modal-card {
  width: 100%; max-width: 360px; background: #fff; border-radius: var(--r-l);
  padding: 24px; box-shadow: var(--shadow-lg);
  animation: popIn .18s var(--ease);
}
.modal-card h4 { font-size: 17px; font-weight: 800; margin-bottom: 16px; }
.modal-btns { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* ============ 响应式 ============ */
@media (max-width: 960px) {
  .sidebar { display: none; }
  .topbar { display: flex; }
  .tabbar { display: flex; }
  .view { padding: 20px 16px 0; }
  .page { padding-bottom: 170px; }
  .page-title { font-size: 24px; }
  .page-head .btn { padding: 8px 13px; font-size: 13px; }
  .page-head .btn svg { width: 15px; height: 15px; }
  .pp-main { flex-direction: column; gap: 16px; overflow-y: auto; }
  .pp-disc { width: min(230px, 58vw); }
  .pp-lyric-col { width: 100%; flex: 1; min-height: 150px; }
  .pp-title { font-size: 22px; text-align: center; }
  .pp-artist { text-align: center; }
  .player-bar { padding: 0 12px; gap: 10px; height: 64px; }
  .pb-info { width: auto; flex: 1; min-width: 0; }
  .pb-right { display: none; }
  .pb-center { flex: 0 0 auto; }
  .jrow { margin-bottom: 2px; }
  .song-row { padding: 7px 8px; gap: 11px; }
  .song-row .row-cover { width: 40px; height: 40px; }
  .song-row .song-title { font-size: 14.5px; }
  .user-card { flex-direction: column; text-align: center; align-items: center; }
  .user-name-row { justify-content: center; }
  .quota { width: 100%; }
  .select-bar { top: 66px; flex-wrap: wrap; justify-content: center; border-radius: 20px; }
}

/* ============================================================
   v12 编辑模式 — 暖白浮层 / 朱砂选择 / 与私人时光馆统一
   ============================================================ */
.select-bar {
  top: 18px; min-height: 60px; max-width: calc(100vw - 32px);
  gap: 12px; padding: 7px 9px;
  border: 1px solid rgba(53,48,41,.13); border-radius: 20px;
  color: var(--fg); background: rgba(251,250,247,.94);
  box-shadow: 0 20px 56px rgba(32,40,36,.18), 0 2px 8px rgba(45,38,29,.07);
  backdrop-filter: blur(22px) saturate(125%);
}
.sel-summary, .sel-actions { display: flex; align-items: center; gap: 7px; }
.sel-summary { min-width: 174px; }
.sel-copy { display: flex; min-width: 0; flex-direction: column; gap: 1px; }
.select-bar .sel-done {
  width: 44px; height: 44px; border-radius: 14px; color: #fff; background: var(--ink);
  box-shadow: 0 7px 18px rgba(32,40,36,.18);
}
.select-bar .sel-done:hover { color: #fff; background: var(--ink-soft); }
.sel-mode-label { color: var(--primary); font-size: 9px; font-weight: 800; line-height: 1.2; letter-spacing: .16em; }
.select-bar .sel-count { max-width: 180px; overflow: hidden; padding: 0; color: var(--fg); font-size: 12px; font-weight: 680; text-overflow: ellipsis; }
.select-bar .sel-div { height: 32px; margin: 0 1px; background: var(--line); }
.select-bar .btn.ghost-dark {
  min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px;
  color: var(--fg); background: rgba(255,255,255,.68); box-shadow: none;
}
.select-bar .btn.ghost-dark:hover { border-color: rgba(var(--primary-rgb),.24); color: var(--primary-dark); background: #fff; }
.select-bar .btn.danger { color: var(--danger); background: rgba(248,223,220,.45); }
.select-bar .btn.danger:hover { border-color: rgba(181,65,62,.18); color: var(--danger); background: var(--danger-bg); }
.select-bar .sel-album {
  min-height: 40px; max-width: 164px; padding: 7px 32px 7px 12px;
  border: 1px solid var(--line); border-radius: 12px; color: var(--fg); background-color: rgba(255,255,255,.68);
  font-size: 12px; font-weight: 650; box-shadow: none;
}
.select-bar .sel-album:focus { border-color: rgba(var(--primary-rgb),.4); background: #fff; box-shadow: 0 0 0 3px rgba(var(--primary-rgb),.1); }
.select-bar button:disabled, .select-bar select:disabled { opacity: .34; filter: saturate(.5); }

.sel-on .day-check {
  width: 28px; height: 28px; margin-right: 10px; border: 1px solid rgba(53,48,41,.14);
  color: transparent; opacity: 1; background: rgba(255,255,255,.72); box-shadow: var(--shadow-sm);
}
.sel-on .day-check svg { width: 14px; height: 14px; opacity: 0; }
.sel-on .day-check:hover { color: rgba(var(--primary-rgb),.55); border-color: rgba(var(--primary-rgb),.3); background: #fff; }
.sel-on .day-check:hover svg { opacity: 1; }
.sel-on .day-check.on { color: #fff; border-color: var(--primary); background: var(--primary); box-shadow: 0 5px 14px rgba(var(--primary-rgb),.24); }
.sel-on .day-check.on svg { opacity: 1; }

.sel-on .jitem { background: var(--primary-bg); transition: background .18s, box-shadow .18s, transform .18s var(--ease); }
.sel-on .jitem:hover { box-shadow: inset 0 0 0 2px rgba(var(--primary-rgb),.24); }
.sel-on .jitem.selected { background: var(--primary-bg); box-shadow: inset 0 0 0 2px var(--primary), 0 8px 22px rgba(var(--primary-rgb),.12); }
.sel-on .jitem.selected img { transform: scale(.955); border-radius: 12px; }
.sel-on .jitem .cell-check {
  top: 10px; left: 10px; width: 28px; height: 28px;
  color: #fff; background: rgba(251,250,247,.88); border: 1px solid rgba(255,255,255,.85);
  box-shadow: 0 4px 15px rgba(25,28,25,.2), inset 0 0 0 1px rgba(53,48,41,.12);
  backdrop-filter: blur(12px);
}
.sel-on .jitem .cell-check svg { width: 15px; height: 15px; }
.sel-on .jitem:hover .cell-check { background: #fff; box-shadow: 0 5px 18px rgba(25,28,25,.24), inset 0 0 0 1px rgba(var(--primary-rgb),.24); }
.sel-on .jitem.selected .cell-check {
  color: #fff; border-color: var(--primary); background: var(--primary);
  box-shadow: 0 6px 18px rgba(var(--primary-rgb),.35);
}
.sel-on .jitem.selected .cell-check svg { opacity: 1; }
.sel-on .jitem.selected::after { opacity: 0; }

@media (max-width: 960px) and (min-width: 641px) {
  .select-bar { top: 76px; }
}
@media (max-width: 640px) {
  .select-bar {
    top: auto; right: 12px; bottom: calc(92px + env(safe-area-inset-bottom)); left: 12px;
    width: auto; max-width: none; min-height: 0; transform: none;
    display: grid; grid-template-columns: 1fr; gap: 7px; padding: 8px; border-radius: 21px;
  }
  .sel-summary { min-width: 0; }
  .select-bar .sel-done { width: 40px; height: 40px; border-radius: 12px; }
  .sel-copy { flex: 1; }
  .select-bar .sel-count { max-width: none; }
  .select-bar .sel-div { display: none; }
  .sel-actions { width: 100%; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 6px; }
  .select-bar .btn.ghost-dark { min-height: 38px; padding: 7px 10px; }
  .select-bar .sel-album { width: 100%; max-width: none; min-height: 38px; }
  .sel-on .jitem .cell-check { top: 7px; left: 7px; width: 25px; height: 25px; }
}

/* ============================================================
   v7 visual system overrides
   ============================================================ */
body {
  background:
    radial-gradient(circle at 83% 3%, rgba(196, 93, 67, .07), transparent 24rem),
    radial-gradient(circle at 8% 88%, rgba(42, 67, 57, .06), transparent 28rem),
    var(--bg);
}

.btn {
  min-height: 42px; padding: 10px 17px; border-radius: 999px;
  background: var(--surface-strong); border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .75);
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { background: #fff; border-color: rgba(53, 48, 41, .2); box-shadow: var(--shadow-sm); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 10px 24px rgba(var(--primary-rgb), .2); }
.btn.primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); box-shadow: 0 13px 30px rgba(var(--primary-rgb), .26); }
.btn.ghost { background: rgba(255, 255, 255, .56); opacity: 1; }
.btn.ghost:hover { background: #fff; }
.btn.small { min-height: 34px; padding: 6px 13px; }

input, select {
  min-height: 44px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line);
  border-radius: 13px; padding: 11px 15px;
}
input:focus, select:focus {
  background: #fff; box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .12); border-color: rgba(var(--primary-rgb), .58);
}
.search-box {
  min-height: 52px; border-radius: 16px; background: rgba(255, 255, 255, .72);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.search-box:focus-within { box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .12), var(--shadow-md); border-color: rgba(var(--primary-rgb), .5); }
.search-box.block { border-radius: 16px; }

/* 登录：左侧品牌场景 + 右侧身份入口 */
.login-wrap {
  display: grid; grid-template-columns: minmax(420px, 1.15fr) minmax(420px, .85fr);
  align-items: stretch; justify-content: stretch; gap: 14px; min-height: 100dvh; padding: 14px;
}
.login-scene {
  position: relative; min-height: calc(100dvh - 28px); overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 38px 42px; border-radius: 30px; color: #f8f3ea;
  background:
    radial-gradient(circle at 68% 34%, rgba(225, 133, 102, .42), transparent 22%),
    radial-gradient(circle at 28% 72%, rgba(218, 183, 135, .12), transparent 30%),
    linear-gradient(145deg, #17231f 0%, #283a32 54%, #18231f 100%);
  box-shadow: var(--shadow-lg);
}
.login-scene::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .3;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
.login-scene-top, .login-scene-foot {
  position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 20px;
  font-size: 10px; font-weight: 700; letter-spacing: .2em; opacity: .58;
}
.login-scene-copy { position: relative; z-index: 2; max-width: 610px; }
.scene-mark {
  display: block; margin-bottom: 28px; font-family: "Songti SC", "STSong", serif;
  font-size: clamp(52px, 7vw, 104px); font-weight: 700; line-height: .9; letter-spacing: -.06em;
}
.login-scene-copy p { font-family: "Songti SC", "STSong", serif; font-size: clamp(20px, 2.2vw, 31px); line-height: 1.65; letter-spacing: .08em; opacity: .82; }
.login-panel { display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-card { max-width: 390px; text-align: left; }
.login-logo {
  width: 48px; height: 48px; margin: 0 0 28px; border-radius: 50%;
  background: var(--ink); color: #f8f3ea; font-family: "Songti SC", "STSong", serif; font-size: 22px;
  box-shadow: 0 10px 26px rgba(32, 40, 36, .18);
}
.login-eyebrow, .page-eyebrow { display: block; font-size: 10px; font-weight: 800; letter-spacing: .18em; color: var(--primary); margin-bottom: 10px; }
.brand { font-family: "Songti SC", "STSong", serif; font-size: 40px; letter-spacing: .06em; line-height: 1.2; }
.brand .dot { color: var(--primary); }
.brand-sub { margin: 6px 0 34px; font-size: 12px; letter-spacing: .24em; opacity: .48; }
.login-tabs { justify-content: flex-start; gap: 8px; margin-bottom: 26px; padding: 4px; border-radius: 999px; background: var(--hover); width: max-content; }
.tab-btn { min-width: 84px; padding: 8px 16px; border: none; border-radius: 999px; font-size: 13px; }
.tab-btn.active { background: #fff; color: var(--fg); border: none; box-shadow: var(--shadow-sm); }
.login-card form label { opacity: 1; color: var(--muted); font-size: 12px; margin-bottom: 15px; }
.login-card form input { margin-top: 7px; background: rgba(255,255,255,.76); }
.login-card .btn.block { justify-content: space-between; margin-top: 18px; padding: 13px 18px; border-radius: 14px; }
.login-note { text-align: left; margin-top: 28px; opacity: .42; letter-spacing: .03em; }

/* 桌面框架 */
.shell { min-height: 100dvh; align-items: flex-start; gap: 16px; padding: 14px 14px 14px 0; }
.sidebar {
  top: 14px; height: calc(100dvh - 28px); margin-left: 14px; padding: 25px 14px 18px;
  border: 0; border-radius: 26px; color: #f5efe6;
  background:
    radial-gradient(circle at 16% 10%, rgba(196, 93, 67, .26), transparent 26%),
    linear-gradient(165deg, #252f2a, #17201c 72%);
  box-shadow: 0 20px 50px rgba(31, 39, 35, .16);
}
.brand-mini { display: flex; align-items: center; gap: 12px; padding: 2px 12px 31px; letter-spacing: 0; }
.brand-seal {
  width: 40px; height: 40px; flex: 0 0 auto; display: grid; place-items: center;
  border-radius: 50%; background: var(--primary); color: #fff;
  font-family: "Songti SC", "STSong", serif; font-size: 19px; box-shadow: 0 9px 24px rgba(var(--primary-rgb), .28);
}
.brand-type { display: flex; flex-direction: column; font-family: "Songti SC", "STSong", serif; font-size: 18px; letter-spacing: .12em; line-height: 1.2; }
.brand-type small { margin-top: 5px; font-family: inherit; font-size: 7px; font-weight: 700; letter-spacing: .18em; opacity: .4; }
.sidenav { gap: 7px; }
.sidenav a {
  position: relative; gap: 13px; padding: 12px 14px; border-radius: 14px;
  color: #f5efe6; opacity: .56; font-size: 13.5px; font-weight: 600;
}
.sidenav a .nav-svg { width: 20px; height: 20px; }
.sidenav a:hover { background: rgba(255,255,255,.07); color: #fff; opacity: .9; }
.sidenav a.active { color: #fff; opacity: 1; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.04); }
.sidenav a.active::after { content: ''; position: absolute; right: 11px; width: 5px; height: 5px; border-radius: 50%; background: #e8896f; box-shadow: 0 0 0 4px rgba(232,137,111,.1); }
.sidebar-foot { padding: 0 8px; }
.sidebar .avatar { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.12); }
.disk-hint { color: #f5efe6; opacity: .36; }
.view {
  max-width: none; min-height: calc(100dvh - 28px); padding: 42px 48px 0;
  border: 1px solid rgba(255,255,255,.72); border-radius: 26px;
  background: rgba(251, 250, 247, .88); box-shadow: 0 10px 40px rgba(45,38,29,.05);
}
.page { width: 100%; max-width: 1480px; margin: 0 auto; }
.page-head { align-items: flex-end; margin-bottom: 32px; }
.page-heading { max-width: 660px; }
.page-title { font-size: clamp(31px, 3vw, 44px); font-weight: 780; letter-spacing: -.045em; line-height: 1.1; }
.page-lead { margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.page-eyebrow { margin-bottom: 12px; }
.section-title { font-size: 16px; margin: 30px 0 13px; letter-spacing: -.01em; }
.panel { background: rgba(255,255,255,.66); border-color: var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-sm); }

/* 相册与时光流 */
.album-strip-wrap { margin: 0 -8px 28px; padding: 4px 8px 10px; }
.album-strip { gap: 13px; }
.album-card { width: 162px; padding: 7px; border-radius: 20px; }
.album-card:hover { background: rgba(255,255,255,.88); border-color: var(--line); box-shadow: var(--shadow-sm); }
.album-card.active { background: #fff; border-color: rgba(var(--primary-rgb), .24); box-shadow: 0 10px 30px rgba(var(--primary-rgb), .1); }
.album-cover { aspect-ratio: 4 / 3; border-radius: 15px; background: var(--hover); }
.album-name { margin: 10px 4px 0; font-size: 13px; }
.album-count { margin: 1px 4px 2px; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.album-card.new .album-cover { border-color: rgba(53,48,41,.18); background: rgba(255,255,255,.42); }
.album-more { top: 14px; right: 14px; background: rgba(31,35,31,.64); backdrop-filter: blur(8px); }
.tl-group { margin-bottom: 25px; }
.day-head { padding: 16px 3px 11px; }
.day-title { font-family: "Songti SC", "STSong", serif; font-size: 16px; font-weight: 700; letter-spacing: .04em; }
.day-head .cnt { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.jrow { margin-bottom: 7px; }
.jitem { border-radius: 14px; background: #e8e3da; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.jitem img { border-radius: 14px; }
.jitem:hover img { transform: scale(1.035); }
.jitem.selected { box-shadow: inset 0 0 0 2px rgba(var(--primary-rgb), .28); }
.cell-check { top: 10px; left: 10px; background: rgba(24,28,25,.5); backdrop-filter: blur(8px); }
.select-bar { top: 20px; padding: 8px 12px 8px 7px; background: rgba(31,39,35,.94); color: #fff; border-color: rgba(255,255,255,.1); box-shadow: 0 18px 50px rgba(19,23,20,.3); backdrop-filter: blur(18px); }
.select-bar .icon-btn { color: #fff; }
.select-bar .sel-count { color: #fff; }
.select-bar .sel-div { background: rgba(255,255,255,.18); }
.select-bar .sel-album { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.12); }

/* 音乐：沉浸搜索区 + 精致列表 */
.music-hero {
  position: relative; overflow: hidden; padding: 38px 40px 34px; margin: 0 0 28px;
  border-radius: 26px; color: #f8f3eb;
  background:
    radial-gradient(circle at 83% 18%, rgba(221,126,92,.4), transparent 26%),
    radial-gradient(circle at 12% 95%, rgba(160,137,95,.2), transparent 34%),
    linear-gradient(135deg, #1f2d27, #35483e);
  box-shadow: var(--shadow-md);
}
.music-hero::after { content: ''; position: absolute; right: -80px; bottom: -170px; width: 360px; height: 360px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 60px rgba(255,255,255,.025), 0 0 0 120px rgba(255,255,255,.018); pointer-events: none; }
.music-hero > * { position: relative; z-index: 1; }
.inverse-heading { margin-bottom: 30px; }
.inverse-heading .page-eyebrow { color: #efa58f; }
.inverse-heading .page-lead { color: rgba(255,255,255,.56); }
.music-search-row { max-width: 760px; }
.music-hero .search-box { min-height: 58px; background: rgba(255,255,255,.94); border: 0; color: var(--fg); box-shadow: 0 18px 40px rgba(10,16,13,.18); }
.music-hero .search-box input { font-size: 15px; }
.music-hint { margin: 14px 4px 0; color: rgba(255,255,255,.54); opacity: 1; }
#song-section { max-width: 1000px; }
.song-list { gap: 6px; }
.song-row { gap: 14px; padding: 9px 13px; border: 1px solid transparent; border-radius: 16px; }
.song-row:hover { background: rgba(255,255,255,.78); border-color: var(--line); box-shadow: var(--shadow-sm); }
.song-row .row-cover { width: 50px; height: 50px; border-radius: 13px; box-shadow: 0 5px 15px rgba(28,26,22,.12); }
.song-row .song-title { font-size: 14px; }
.song-row .song-artist { margin-top: 3px; }
.song-row.playing { background: #f8e9e4; border-color: rgba(var(--primary-rgb), .16); }
.song-row.playing:hover { background: #f4dfd8; }

.room-search-results { max-height: 420px; }

/* 我的 */
.user-card {
  position: relative; overflow: hidden; padding: 28px; margin: 28px 0 24px;
  border: 0; border-radius: 24px; background: linear-gradient(135deg, #202a25, #35463d); color: #f8f3eb; box-shadow: var(--shadow-md);
}
.user-card::after { content: ''; position: absolute; width: 250px; height: 250px; right: -100px; top: -120px; border-radius: 50%; border: 1px solid rgba(255,255,255,.09); box-shadow: 0 0 0 48px rgba(255,255,255,.025); }
.user-card .avatar { position: relative; z-index: 1; background: var(--primary); color: #fff; }
.user-main { position: relative; z-index: 1; }
.user-name-row strong { font-size: 28px; }
.user-card .quota-bar { background: rgba(255,255,255,.13); }
.user-card .quota-fill { background: #ef9a82; }
.user-card .quota-text { color: #fff; opacity: .54; }
.au-role-badge { color: var(--primary-dark); background: var(--primary-bg); }
.user-card .au-role-badge { color: #fff; background: rgba(255,255,255,.1); }
.invite-code { color: var(--primary); }

/* 悬浮播放器 */
.player-bar {
  left: calc(var(--side-w) + 44px); right: 28px; bottom: 22px; height: 76px;
  padding: 0 14px; border: 1px solid rgba(255,255,255,.54); border-radius: 20px;
  background: rgba(31, 39, 35, .92); color: #f8f3eb; box-shadow: 0 22px 60px rgba(20,24,21,.28);
  backdrop-filter: saturate(140%) blur(24px); -webkit-backdrop-filter: saturate(140%) blur(24px);
}
.player-bar .icon-btn { color: #fff; }
.player-bar .icon-btn:hover { background: rgba(255,255,255,.1); }
.pb-cover { width: 52px; height: 52px; border-radius: 14px; }
.pb-fill { background: #ed9279; }
.pb-progress { background: rgba(255,255,255,.14); }
.pb-play { background: #f7f1e8; color: var(--ink) !important; border-radius: 50%; }
.pb-play:hover { background: #fff !important; }

/* 播放页与浮层 */
.pp-bg { filter: blur(70px) saturate(75%) brightness(.42); }
.pp-inner { max-width: 1240px; }
.pp-disc { box-shadow: 0 28px 90px rgba(0,0,0,.54), 0 0 0 10px rgba(255,255,255,.04); }
.pp-title { font-size: 34px; }
.pp-lyric p { font-family: "Songti SC", "STSong", serif; font-size: 17px; letter-spacing: .03em; }
.pp-lyric p.active { font-size: 21px; }
.modal-card, .ctx-menu { background: var(--surface); border-color: var(--line); }
.modal-card { border-radius: 22px; }
.lightbox { background: #090b0a; }

@media (min-width: 1450px) {
  .view { padding-left: 64px; padding-right: 64px; }
}

@media (max-width: 1080px) and (min-width: 961px) {
  :root { --side-w: 220px; }
  .view { padding: 38px 32px 0; }
  .sidenav a { font-size: 12.5px; }
}

@media (max-width: 960px) {
  body { background: var(--surface); }
  .shell { display: block; padding: 0; }
  .sidebar { display: none; }
  .topbar {
    display: flex; height: 66px; padding: 0 18px; border-bottom-color: var(--line);
    background: rgba(243,240,234,.9); color: var(--fg);
  }
  .topbar .brand-mini { gap: 9px; }
  .topbar .brand-seal { width: 34px; height: 34px; font-size: 16px; }
  .topbar .brand-type { font-size: 15px; }
  .topbar .brand-type small { display: none; }
  .tabbar {
    display: flex; left: 12px; right: 12px; bottom: 10px; border: 1px solid rgba(255,255,255,.55);
    border-radius: 20px; padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
    background: rgba(31,39,35,.94); color: #fff; box-shadow: 0 16px 44px rgba(21,25,22,.25);
  }
  .tabbar a { border-radius: 14px; opacity: .45; }
  .tabbar a.active { background: rgba(255,255,255,.09); color: #fff; }
  .tabbar a.active .nav-svg { color: #ef9a82; }
  .view { min-height: calc(100dvh - 66px); padding: 26px 16px 0; border: 0; border-radius: 0; background: var(--surface); box-shadow: none; }
  .page { padding-bottom: 180px; }
  .page-head { align-items: flex-start; margin-bottom: 24px; }
  .page-title { font-size: 32px; }
  .page-lead { max-width: 480px; }
  .album-card { width: 146px; }
  .jrow { margin-bottom: 5px; }
  .jitem, .jitem img { border-radius: 10px; }
  .music-hero { padding: 30px 26px; border-radius: 22px; }
  .player-bar { left: 12px; right: 12px; bottom: 88px; height: 68px; border-radius: 18px; }
  .pb-cover { width: 46px; height: 46px; }
  .select-bar { top: 74px; }
}

@media (max-width: 820px) {
  .login-wrap { display: flex; min-height: 100dvh; padding: 0; }
  .login-scene { display: none; }
  .login-panel { width: 100%; min-height: 100dvh; padding: 38px 24px; background: radial-gradient(circle at 90% 0%, rgba(var(--primary-rgb),.09), transparent 18rem), var(--bg); }
  .login-card { width: 100%; }
}

@media (max-width: 640px) {
  .page-head { gap: 20px; }
  .head-actions { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; }
  .page-head .btn { min-width: 0; padding: 8px 8px; font-size: 11px; gap: 5px; white-space: nowrap; }
  .page-head .btn svg { width: 14px; height: 14px; }
  .sort-toggle { grid-column: 1 / -1; justify-self: start; }
  .page-title { font-size: 30px; }
  .page-lead { font-size: 12px; }
  .album-card { width: 132px; }
  .album-name { font-size: 12px; }
  .music-hero { margin-left: -4px; margin-right: -4px; padding: 25px 20px; }
  .music-hero .page-title { font-size: 29px; }
  .music-hero .page-lead { color: rgba(255,255,255,.58); }
  .music-hero .search-box { min-height: 52px; padding: 0 14px; }
  .music-filter-row { align-items: flex-start; flex-direction: column; gap: 8px; margin-top: 11px; }
  .vip-filter button { padding: 6px 16px; }
  .song-row { gap: 10px; padding: 8px 7px; }
  .song-row .row-idx { display: none; }
  .song-row .row-cover { width: 44px; height: 44px; }
  .song-row .row-dur { width: 36px; font-size: 11px; }
  .song-row .row-btn { visibility: visible; width: 31px; height: 31px; }
  .user-card { flex-direction: row; text-align: left; align-items: center; padding: 22px 18px; }
  .user-name-row { justify-content: flex-start; }
  .user-card .avatar.big { width: 54px; height: 54px; }
  .admin-users-row { gap: 8px; }
  .player-bar .pb-center .icon-btn:not(.pb-play) { display: none; }
  .player-bar { gap: 8px; }
  .pp-inner { padding: 16px 18px calc(20px + env(safe-area-inset-bottom)); }
  .pp-main { padding-top: 6px; }
  .pp-disc { width: min(220px, 60vw); }
  .pp-lyric p { font-size: 15px; }
  .pp-lyric p.active { font-size: 18px; }
  .select-bar { width: calc(100% - 24px); }
  .select-bar .sel-div { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ============================================================
   v9 media workflow — 上传、上传者、封面选择与编辑抽屉
   ============================================================ */
.album-cover { position: relative; }
.album-empty-cover {
  width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 7px; color: var(--muted); background: linear-gradient(145deg, rgba(255,255,255,.54), rgba(232,226,215,.7));
}
.album-empty-cover svg { width: 24px; height: 24px; }
.album-empty-cover small { font-size: 9px; letter-spacing: .06em; opacity: .62; }
.custom-cover-badge {
  position: absolute; left: 8px; bottom: 8px; padding: 3px 7px; border-radius: 999px;
  background: rgba(28,32,29,.62); color: #fff; font-size: 8px; font-weight: 700; letter-spacing: .08em;
  backdrop-filter: blur(8px); box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.album-card.new .album-count { opacity: .38; }
.sort-toggle {
  display: inline-flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--line);
  border-radius: 999px; background: rgba(255,255,255,.62); box-shadow: var(--shadow-sm);
}
.sort-toggle button {
  min-height: 32px; padding: 0 11px; border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 700;
  transition: background .18s, color .18s, box-shadow .18s;
}
.sort-toggle button:hover { color: var(--fg); }
.sort-toggle button.active { background: var(--ink); color: #fff; box-shadow: 0 4px 12px rgba(25,31,27,.16); }

.media-by {
  position: absolute; left: 10px; bottom: 10px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px; max-width: calc(100% - 20px);
  padding: 4px 9px 4px 4px; border-radius: 999px; color: #fff;
  background: rgba(24,28,25,.58); backdrop-filter: blur(10px); box-shadow: 0 4px 14px rgba(0,0,0,.14);
  opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s;
}
.media-by i {
  width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%;
  background: var(--primary); font-style: normal; font-size: 9px; font-weight: 800;
}
.media-by b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 650; }
.jitem:hover .media-by { opacity: 1; transform: none; }
.jitem.selected .media-by { opacity: 0; }

.media-more { display: flex; justify-content: center; padding: 24px 12px 42px; }
.media-more[hidden] { display: none; }
.media-more .btn { min-width: 148px; }

.media-drop-hint {
  position: fixed; z-index: 220; inset: 28px 28px 104px calc(var(--side-w) + 44px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border: 2px dashed rgba(var(--primary-rgb), .48); border-radius: 28px;
  color: var(--fg); background: rgba(251,250,247,.9); backdrop-filter: blur(22px); box-shadow: var(--shadow-lg);
  pointer-events: none; animation: fadeIn .16s ease;
}
.media-drop-hint[hidden] { display: none; }
.media-drop-hint .drop-mark { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 10px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 28px; }
.media-drop-hint strong { font-size: 20px; }
.media-drop-hint span { color: var(--muted); font-size: 12px; }

/* 上传确认 */
.upload-mask, .cover-picker-mask { align-items: center; padding: 24px; }
.upload-card, .cover-picker-card {
  width: min(620px, 100%); max-height: min(780px, calc(100dvh - 48px)); overflow: hidden;
  display: flex; flex-direction: column; padding: 26px; border: 1px solid rgba(255,255,255,.7); border-radius: 25px;
  background: var(--surface); box-shadow: 0 30px 100px rgba(25,28,25,.28); animation: popIn .2s var(--ease);
}
.upload-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.upload-head h4 { font-size: 23px; line-height: 1.2; letter-spacing: -.03em; }
.editor-kicker { display: block; margin-bottom: 6px; color: var(--primary); font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.upload-summary { margin: 11px 0 18px; color: var(--muted); font-size: 12px; }
.upload-destination {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px;
  margin-bottom: 15px; color: var(--muted); font-size: 12px; font-weight: 650;
}
.upload-destination select { width: 100%; }
.upload-file-list { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 7px; padding-right: 4px; }
.upload-file {
  display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 15px;
  background: rgba(255,255,255,.62);
}
.upload-file-preview { width: 48px; height: 48px; flex: 0 0 auto; overflow: hidden; display: grid; place-items: center; border-radius: 11px; background: var(--hover); color: var(--muted); }
.upload-file-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-file-icon svg { width: 21px; height: 21px; }
.upload-file-meta { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.upload-file-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.upload-file-meta small { color: var(--muted); font-size: 10px; margin-top: 2px; }
.upload-file-remove { width: 32px; height: 32px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--muted); }
.upload-file-remove:hover { background: var(--danger-bg); color: var(--danger); }
.upload-file-remove svg { width: 15px; height: 15px; }
.upload-progress-wrap { margin-top: 18px; padding: 15px; border-radius: 15px; background: var(--ink); color: #fff; }
.upload-progress-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 11px; }
.upload-progress-label span { opacity: .64; }
.upload-progress { height: 5px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.13); }
.upload-progress > div { width: 0; height: 100%; border-radius: inherit; background: #ef9a82; transition: width .2s ease; }
.upload-errors { max-height: 120px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; margin-top: 12px; padding: 12px; border-radius: 13px; background: var(--danger-bg); color: var(--danger); font-size: 11px; }
.upload-errors strong { margin-bottom: 3px; }
.upload-actions, .cover-picker-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.upload-actions .btn.primary { min-width: 126px; justify-content: space-between; }

/* 封面选择器 */
.cover-picker-card { width: min(820px, 100%); }
.cover-picker-hint { margin: 10px 0 18px; color: var(--muted); font-size: 12px; }
.cover-picker-grid {
  min-height: 140px; max-height: min(520px, 58dvh); overflow-y: auto;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding-right: 4px;
}
.cover-option { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 14px; background: var(--hover); border: 2px solid transparent; }
.cover-option img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s var(--ease); }
.cover-option:hover img { transform: scale(1.045); }
.cover-option.selected { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb),.15); }
.cover-option-owner { position: absolute; left: 7px; bottom: 7px; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: rgba(30,34,31,.7); color: #fff; font-size: 9px; font-weight: 800; backdrop-filter: blur(8px); }
.cover-option-check { position: absolute; right: 7px; top: 7px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; opacity: 0; transform: scale(.75); transition: .18s; }
.cover-option-check svg { width: 15px; height: 15px; }
.cover-option.selected .cover-option-check { opacity: 1; transform: none; }

/* 灯箱详情与编辑抽屉 */
.lb-info { display: flex; align-items: center; justify-content: center; gap: 7px; transition: padding-right .25s var(--ease); }
.lb-uploader-avatar { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; font-size: 9px; font-weight: 800; }
.lb-uploader { color: #fff; font-weight: 650; }
.lb-info-dot { opacity: .36; }
.lb-editor {
  position: fixed; z-index: 8; top: 10px; right: 10px; bottom: 10px; width: min(390px, calc(100vw - 20px));
  display: flex; flex-direction: column; overflow-y: auto; padding: 24px;
  border: 1px solid rgba(255,255,255,.7); border-radius: 22px; color: var(--fg); background: rgba(251,250,247,.97);
  box-shadow: -20px 0 70px rgba(0,0,0,.28); backdrop-filter: blur(24px); animation: drawerIn .25s var(--ease);
}
@keyframes drawerIn { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
.lb-editor-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.lb-editor-head h4 { font-size: 23px; letter-spacing: -.03em; }
.editor-owner { display: flex; align-items: center; gap: 11px; margin: 22px 0 6px; padding: 14px; border-radius: 15px; background: var(--ink); color: #fff; }
.editor-owner-avatar { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--primary); font-size: 13px; font-weight: 800; }
.editor-owner > div { display: flex; flex-direction: column; }
.editor-owner-label { margin-bottom: 2px; font-size: 9px; letter-spacing: .1em; opacity: .46; }
.editor-owner strong { font-size: 13px; }
.editor-section { padding: 20px 0; border-bottom: 1px solid var(--line); }
.editor-time-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 9px; }
.editor-time-grid label { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 650; }
.editor-time-grid input { min-width: 0; padding: 9px 10px; font-size: 11px; }
.editor-time-grid input[readonly] { color: var(--muted); background: var(--hover); }
.editor-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.editor-section-head strong { font-size: 13px; }
.editor-section-head span { color: var(--muted); font-size: 9px; }
.editor-albums { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 12px; }
.editor-album-option { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.6); cursor: pointer; }
.editor-album-option:has(input:checked) { border-color: rgba(var(--primary-rgb),.42); background: var(--primary-bg); }
.editor-album-option input { position: absolute; opacity: 0; pointer-events: none; }
.editor-album-option > span { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border-radius: 9px; background: var(--hover); }
.editor-album-option img { width: 100%; height: 100%; object-fit: cover; }
.editor-album-option i svg { width: 16px; height: 16px; opacity: .4; }
.editor-album-option b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.editor-cover-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.editor-cover-btn { display: grid; grid-template-columns: 38px minmax(0,1fr); grid-template-rows: auto auto; column-gap: 9px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 13px; text-align: left; background: rgba(255,255,255,.6); }
.editor-cover-btn:hover { border-color: rgba(var(--primary-rgb),.4); background: #fff; }
.editor-cover-btn > span { grid-row: 1 / 3; width: 38px; height: 38px; display: grid; place-items: center; overflow: hidden; border-radius: 10px; background: var(--hover); color: var(--primary); }
.editor-cover-btn > span img { width: 100%; height: 100%; object-fit: cover; }
.editor-cover-btn > span svg { width: 17px; height: 17px; }
.editor-cover-btn b { align-self: end; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.editor-cover-btn small { align-self: start; color: var(--muted); font-size: 8px; }
.editor-empty { color: var(--muted); font-size: 11px; line-height: 1.6; }
.editor-file-info { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.editor-file-info span { display: flex; flex-direction: column; color: var(--muted); font-size: 10px; }
.editor-file-info b { margin-bottom: 3px; color: var(--fg); font-size: 9px; letter-spacing: .04em; }
.editor-footer { margin-top: auto; padding-top: 20px; }
.editor-open .lb-stage, .editor-open .lb-top, .editor-open .lb-info { padding-right: 410px; }

@media (hover: none) {
  .album-more { opacity: 1; }
  .media-by { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
  .media-drop-hint { inset: 78px 14px 166px; }
  .editor-open .lb-stage, .editor-open .lb-top, .editor-open .lb-info { padding-right: 24px; }
  .lb-editor { width: min(390px, calc(100vw - 20px)); }
}

@media (max-width: 640px) {
  .upload-mask, .cover-picker-mask { align-items: flex-end; padding: 0; }
  .upload-card, .cover-picker-card { width: 100%; max-height: 92dvh; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; }
  .upload-head h4 { font-size: 21px; }
  .cover-picker-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; }
  .cover-picker-actions { flex-wrap: wrap; }
  .cover-picker-actions .btn { flex: 1; }
  .lb-info { justify-content: flex-start; overflow-x: auto; padding-left: 14px; padding-right: 14px; white-space: nowrap; }
  .lb-editor { inset: auto 0 0; width: 100%; max-height: 88dvh; border-radius: 24px 24px 0 0; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); animation-name: drawerUp; }
  @keyframes drawerUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
  .editor-albums, .editor-cover-actions { grid-template-columns: 1fr; }
  .media-by { left: 6px; bottom: 6px; padding: 3px; }
  .media-by i { width: 19px; height: 19px; }
  .media-by b { display: none; }
  .media-drop-hint strong { font-size: 17px; }
}

/* v12 必须位于全部历史覆盖层之后，确保编辑浮层不被旧主题反向覆盖。 */
.select-bar {
  top: 18px; padding: 7px 9px; border-color: rgba(53,48,41,.13); border-radius: 20px;
  color: var(--fg); background: rgba(251,250,247,.94);
  box-shadow: 0 20px 56px rgba(32,40,36,.18), 0 2px 8px rgba(45,38,29,.07);
  backdrop-filter: blur(22px) saturate(125%);
}
.select-bar .sel-count { color: var(--fg); }
.select-bar .sel-div { background: var(--line); }
.select-bar .sel-album { color: var(--fg); background-color: rgba(255,255,255,.68); border-color: var(--line); }
@media (max-width: 960px) and (min-width: 641px) {
  .select-bar { top: 76px; }
}
@media (max-width: 640px) {
  .select-bar {
    top: auto; right: 12px; bottom: calc(92px + env(safe-area-inset-bottom)); left: 12px;
    width: auto; max-width: none; transform: none; padding: 8px;
  }
}

/* ============================================================
   v13 安全中心 + 稳定的底部编辑工具坞
   ============================================================ */
.select-bar {
  top: auto; bottom: 24px;
  animation: editDockIn .2s var(--ease);
}
@keyframes editDockIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
body:has(#player-bar:not([hidden])) .select-bar { bottom: 104px; }
#btn-select-mode.active:hover, .btn.ghost.active:hover {
  color: #fff; background: var(--ink-soft); border-color: var(--ink-soft);
}
.select-bar .sel-done:hover { color: #fff; background: var(--ink-soft); }
.select-bar .btn.ghost-dark:hover { color: var(--primary-dark); background: #fff; }
.select-bar .btn.danger:hover { color: var(--danger); background: var(--danger-bg); }

.security-panel {
  position: relative; overflow: hidden; padding: 26px;
  background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(247,243,236,.78));
}
.security-panel::before {
  content: ''; position: absolute; right: -70px; top: -90px; width: 230px; height: 230px;
  border-radius: 50%; background: radial-gradient(circle, rgba(var(--primary-rgb),.10), transparent 68%); pointer-events: none;
}
.security-heading { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.security-heading h4 { margin: 2px 0 3px; font-size: 20px; letter-spacing: -.025em; }
.security-heading .hint-text { margin: 0; }
.security-kicker { display: block; color: var(--primary); font-size: 9px; font-weight: 850; letter-spacing: .18em; }
.security-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; margin-bottom: 12px; }
.security-metrics > div {
  display: flex; min-width: 0; flex-direction: column; padding: 15px 16px;
  border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.68);
}
.security-metrics strong { color: var(--fg); font-size: 25px; line-height: 1; letter-spacing: -.04em; }
.security-metrics span { margin-top: 6px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .05em; }
.security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.security-card, .security-log-wrap { min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.68); }
.security-card { padding: 16px; }
.security-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.security-card-head h5 { font-size: 13px; }
.security-card-head span { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.security-list { display: flex; min-height: 80px; max-height: 250px; overflow-y: auto; flex-direction: column; gap: 5px; }
.security-list.compact { min-height: 38px; max-height: 150px; margin-top: 10px; }
.security-row { display: flex; min-width: 0; align-items: center; gap: 9px; padding: 9px; border-radius: 12px; background: rgba(243,240,234,.72); }
.security-presence { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #4f9b6c; box-shadow: 0 0 0 4px rgba(79,155,108,.12); }
.security-presence.blocked { background: var(--danger); box-shadow: 0 0 0 4px rgba(181,65,62,.1); }
.security-row-main { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.security-row-main strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.security-row-main small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.security-row-meta { color: var(--muted); font-size: 9px; white-space: nowrap; }
.security-action { flex: 0 0 auto; padding: 5px 8px; border: 1px solid var(--line); border-radius: 9px; color: var(--fg); background: rgba(255,255,255,.72); font-size: 9px; font-weight: 750; }
.security-action:hover { border-color: rgba(var(--primary-rgb),.3); color: var(--primary-dark); background: #fff; }
.security-action.danger:hover { border-color: rgba(181,65,62,.2); color: var(--danger); background: var(--danger-bg); }
.blacklist-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; }
.blacklist-form input { width: 100%; min-width: 0; min-height: 38px; padding: 8px 10px; font-size: 10px; }
.blacklist-form .btn { min-height: 38px; padding: 7px 10px; font-size: 10px; }
.security-log-wrap { margin-top: 12px; padding: 16px; }
.security-log { max-height: 330px; overflow: auto; border-top: 1px solid var(--line); }
.security-log-row { display: grid; grid-template-columns: 42px 130px minmax(170px,1fr) 70px; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.log-status { width: max-content; padding: 3px 6px; border-radius: 7px; font-size: 9px; font-weight: 800; }
.log-status.ok { color: #397552; background: rgba(79,155,108,.12); }
.log-status.bad { color: var(--danger); background: var(--danger-bg); }
.log-who { display: flex; min-width: 0; flex-direction: column; }
.log-who strong, .log-who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-who strong { font-size: 10px; }
.log-who small { color: var(--muted); font-size: 8px; }
.security-log code { overflow: hidden; color: var(--muted); font-family: ui-monospace, Consolas, monospace; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.log-time { color: var(--muted); font-size: 9px; text-align: right; white-space: nowrap; }
.security-empty { padding: 24px 8px; color: var(--muted); font-size: 10px; text-align: center; }
.admin-users-row.suspended { opacity: .68; }
.au-status { padding: 3px 8px; border-radius: 999px; font-size: 9px; font-weight: 800; }
.au-status.on { color: #397552; background: rgba(79,155,108,.12); }
.au-status.off { color: var(--danger); background: var(--danger-bg); }
.au-btn.warning:hover { border-color: rgba(181,65,62,.25); color: var(--danger); background: var(--danger-bg); }

@media (max-width: 960px) {
  .select-bar { top: auto; bottom: calc(92px + env(safe-area-inset-bottom)); }
  body:has(#player-bar:not([hidden])) .select-bar { bottom: calc(168px + env(safe-area-inset-bottom)); }
  .security-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .select-bar { animation-name: editDockMobileIn; }
  @keyframes editDockMobileIn {
    from { opacity: 0; transform: translateY(10px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
  .security-panel { padding: 18px 14px; }
  .security-heading { align-items: center; }
  .security-heading h4 { font-size: 17px; }
  .security-heading .hint-text { display: none; }
  .security-metrics { grid-template-columns: 1fr 1fr; }
  .security-metrics > div { padding: 12px; }
  .security-metrics strong { font-size: 21px; }
  .blacklist-form { grid-template-columns: 1fr; }
  .security-log-row { grid-template-columns: 38px 92px minmax(150px,1fr) 62px; gap: 7px; }
  .security-log { overflow-x: auto; }
}

/* ============================================================
   v14 隐藏式管理中心 + 独占保护
   ============================================================ */
.admin-panel {
  position: fixed; z-index: 900; inset: 0; display: grid; place-items: center; padding: 22px;
  background: rgba(24,29,26,.46); opacity: 0; backdrop-filter: blur(11px) saturate(110%); -webkit-backdrop-filter: blur(11px) saturate(110%);
  transition: opacity .18s ease;
}
.admin-panel.open { opacity: 1; }
.admin-console {
  width: min(1120px, 100%); max-height: min(880px, calc(100dvh - 44px)); overflow: hidden; display: flex; flex-direction: column;
  border: 1px solid rgba(255,255,255,.75); border-radius: 28px; background: rgba(248,246,241,.96);
  box-shadow: 0 36px 110px rgba(15,20,17,.35); transform: translateY(10px) scale(.987); transition: transform .2s var(--ease);
}
.admin-panel.open .admin-console { transform: none; }
.admin-console-head {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 24px 18px;
  border-bottom: 1px solid var(--line); background: rgba(255,255,255,.64);
}
.admin-console-head h3 { margin: 2px 0 1px; color: var(--fg); font-size: 22px; letter-spacing: -.035em; }
.admin-console-head p { color: var(--muted); font-size: 10px; }
.admin-console-close { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 13px; color: var(--fg); background: rgba(255,255,255,.74); transition: .18s; }
.admin-console-close:hover { color: var(--ink); border-color: rgba(37,49,43,.18); background: #fff; transform: rotate(2deg); }
.admin-console-close svg { width: 17px; height: 17px; }
.admin-console-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px 24px; scrollbar-gutter: stable; }
.admin-console-body > .panel { margin-bottom: 12px; box-shadow: none; }
.admin-console-body > .panel:last-child { margin-bottom: 0; }
.admin-console .btn.primary:hover { color: #fff; }
.admin-console .btn:not(.primary):not(.danger):hover { color: var(--fg); background: #fff; }

.lockdown-card {
  position: relative; display: grid; grid-template-columns: 44px minmax(0,1fr) auto 44px; align-items: center; gap: 12px;
  margin: -3px 0 14px; padding: 12px 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px;
  background: rgba(255,255,255,.7); transition: .2s var(--ease);
}
.lockdown-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; color: var(--muted); background: var(--hover); transition: .2s; }
.lockdown-icon svg { width: 20px; height: 20px; }
.lockdown-copy { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lockdown-copy strong { color: var(--fg); font-size: 12px; }
.lockdown-copy small { overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.lockdown-state { padding: 4px 8px; border-radius: 99px; color: var(--muted); background: var(--hover); font-size: 9px; font-weight: 800; white-space: nowrap; }
.lockdown-toggle { position: relative; width: 44px; height: 25px; border-radius: 99px; background: #d9d6cf; box-shadow: inset 0 0 0 1px rgba(31,39,35,.06); transition: .22s var(--ease); }
.lockdown-toggle i { position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 2px 7px rgba(30,35,32,.2); transition: .22s var(--ease); }
.lockdown-toggle:hover { background: #c9c5bd; }
.lockdown-toggle:disabled { cursor: wait; opacity: .55; }
.lockdown-card.active { border-color: rgba(54,118,80,.22); background: linear-gradient(135deg, rgba(234,246,237,.9), rgba(255,255,255,.76)); }
.lockdown-card.active .lockdown-icon { color: #397552; background: rgba(79,155,108,.13); }
.lockdown-card.active .lockdown-state { color: #397552; background: rgba(79,155,108,.13); }
.lockdown-card.active .lockdown-toggle { background: #4f9b6c; }
.lockdown-card.active .lockdown-toggle:hover { background: #43885d; }
.lockdown-card.active .lockdown-toggle i { transform: translateX(19px); }

@media (max-width: 640px) {
  .admin-panel { place-items: end stretch; padding: 0; }
  .admin-console { width: 100%; max-height: 94dvh; border-width: 1px 0 0; border-radius: 25px 25px 0 0; transform: translateY(28px); }
  .admin-console-head { padding: 18px 18px 15px; }
  .admin-console-head h3 { font-size: 20px; }
  .admin-console-body { padding: 13px 12px calc(18px + env(safe-area-inset-bottom)); }
  .lockdown-card { grid-template-columns: 40px minmax(0,1fr) 44px; gap: 10px; padding: 11px; }
  .lockdown-icon { width: 40px; height: 40px; }
  .lockdown-state { display: none; }
  .lockdown-copy small { white-space: normal; }
}

/* ============================================================
   v15 我的空间标准账号页 + 管理中心换页布局
   ============================================================ */
.me-page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.user-card .me-presence { display: flex; align-items: center; gap: 7px; margin-top: 10px; color: rgba(255,255,255,.54); font-size: 10px; }
.me-presence i { width: 7px; height: 7px; border-radius: 50%; background: #78c48d; box-shadow: 0 0 0 4px rgba(120,196,141,.12); }
.me-presence b { opacity: .45; font-weight: 400; }
.me-overview-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; margin-bottom: 14px; }
.me-overview-card { min-width: 0; min-height: 194px; margin-bottom: 0; padding: 20px 22px; }
.me-card-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.me-card-heading > div { display: flex; flex-direction: column; gap: 2px; }
.me-card-heading > div > span { color: var(--primary); font-size: 8px; font-weight: 850; letter-spacing: .16em; }
.me-card-heading h4 { margin: 0; font-size: 16px; }
.me-card-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: var(--primary); background: var(--primary-bg); }
.me-card-icon svg { width: 17px; height: 17px; }
.me-quota { max-width: none; }
.quota-numbers { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.quota-numbers strong { color: var(--fg); font-size: 24px; letter-spacing: -.04em; }
.quota-numbers span { color: var(--muted); font-size: 10px; }
.me-card-note { margin-top: 13px; color: var(--muted); font-size: 10px; }
.me-account-list { margin: 0; }
.me-account-list > div { display: flex; justify-content: space-between; gap: 15px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.me-account-list > div:last-child { border-bottom: 0; }
.me-account-list dt { color: var(--muted); font-size: 10px; }
.me-account-list dd { margin: 0; color: var(--fg); font-size: 11px; font-weight: 750; text-align: right; }
.me-security-panel { padding: 24px 26px; }
.me-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.me-section-heading h4 { margin: 3px 0 4px; font-size: 20px; letter-spacing: -.03em; }
.me-section-heading p { color: var(--muted); font-size: 10px; }
.me-safe-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 99px; color: #397552; background: rgba(79,155,108,.1); font-size: 9px; font-weight: 750; white-space: nowrap; }
.me-safe-badge i { width: 6px; height: 6px; border-radius: 50%; background: #4f9b6c; }
.me-security-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 28px; }
.password-settings, .session-settings { min-width: 0; }
.password-settings { padding-right: 28px; border-right: 1px solid var(--line); }
.password-settings h5, .session-settings h5 { color: var(--fg); font-size: 13px; }
.password-settings > p, .session-settings-head p { margin: 4px 0 15px; color: var(--muted); font-size: 10px; }
.password-form { display: flex; flex-direction: column; gap: 10px; }
.password-form label { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 650; }
.password-field { position: relative; display: block; }
.password-field input { width: 100%; padding-right: 48px; }
.password-field button { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); padding: 3px; color: var(--muted); font-size: 9px; }
.password-field button:hover { color: var(--primary-dark); }
.password-strength { height: 4px; overflow: hidden; border-radius: 99px; background: var(--hover); }
.password-strength i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--primary); transition: .2s; }
.password-strength i.weak { background: var(--danger); }
.password-strength i.fair { background: #c89445; }
.password-strength i.good, .password-strength i.strong { background: #4f9b6c; }
.password-tip { margin: -4px 0 1px; color: var(--muted); font-size: 9px; }
.password-submit { align-self: flex-start; margin-top: 3px; }
.session-settings-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.session-settings-head p { margin-bottom: 13px; }
.text-btn { padding: 3px 0; color: var(--primary-dark); font-size: 10px; font-weight: 750; }
.text-btn:hover { color: var(--primary); }
.session-list { min-height: 105px; max-height: 220px; overflow-y: auto; margin-bottom: 10px; }
.session-row { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 9px 0; border-bottom: 1px solid var(--line); }
.session-row:last-child { border-bottom: 0; }
.session-device-icon { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; color: var(--muted); background: var(--hover); }
.session-device-icon svg { width: 16px; height: 16px; }
.session-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.session-main strong, .session-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-main strong { color: var(--fg); font-size: 10px; }
.session-main small { color: var(--muted); font-size: 9px; }
.session-current { padding: 4px 7px; border-radius: 99px; color: #397552; background: rgba(79,155,108,.1); font-size: 8px; font-weight: 800; white-space: nowrap; }
.session-revoke { padding: 4px 7px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 9px; }
.session-revoke:hover { color: var(--danger); border-color: rgba(181,65,62,.24); background: var(--danger-bg); }
.me-security-panel .btn.block { width: 100%; justify-content: center; }
.me-signout-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--line); }
.me-signout-row > div { display: flex; flex-direction: column; gap: 3px; }
.me-signout-row strong { color: var(--fg); font-size: 11px; }
.me-signout-row span { color: var(--muted); font-size: 9px; }

/* 管理中心是同一页面里的换页，不再使用遮罩卡片 */
.admin-panel { position: static; z-index: auto; display: block; inset: auto; padding: 0; overflow: visible; opacity: 1; background: none; backdrop-filter: none; transition: none; }
.admin-console { width: 100%; max-height: none; overflow: visible; display: block; border: 0; border-radius: 0; background: transparent; box-shadow: none; transform: none; transition: none; }
.admin-panel.open .admin-console { transform: none; }
.admin-console-head { align-items: center; margin: 3px 0 17px; padding: 0 0 16px; border-bottom: 1px solid var(--line); background: transparent; }
.admin-console-head h3 { font-size: 25px; }
.admin-console-close { width: auto; height: 34px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; border-radius: 10px; color: var(--muted); background: transparent; }
.admin-console-close:hover { color: var(--primary-dark); border-color: rgba(var(--primary-rgb),.24); background: var(--primary-bg); transform: none; }
.admin-console-close span { font-size: 10px; font-weight: 750; }
.admin-console-body { max-height: none; overflow: visible; padding: 0; }
.admin-console-body > .panel { margin: 0; padding: 19px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.admin-console-body > .panel:first-child { padding-top: 3px; }
.admin-console-body > .panel:last-child { border-bottom: 0; }
.admin-console .security-panel { padding: 3px 0 22px; background: transparent; }

@media (max-width: 760px) {
  .me-overview-grid, .me-security-grid { grid-template-columns: 1fr; }
  .password-settings { padding-right: 0; padding-bottom: 23px; border-right: 0; border-bottom: 1px solid var(--line); }
  .session-settings { padding-top: 0; }
}
@media (max-width: 640px) {
  .me-overview-card, .me-security-panel { padding: 17px 15px; }
  .me-section-heading { align-items: center; }
  .me-section-heading p { display: none; }
  .admin-console-head { margin-top: 0; }
  .admin-console-head h3 { font-size: 22px; }
  .admin-console-close span { display: none; }
}

/* v16 管理中心导航位置修正：返回入口独立靠左，标题保持稳定 */
.admin-console-back { display: flex; justify-content: flex-start; margin: 0 0 8px; }
.admin-console-back .admin-console-close { position: relative; left: -11px; }
.admin-console-head { justify-content: flex-start; margin-top: 0; }
.admin-console-head > div { min-width: 0; }
.admin-console-head .security-kicker { margin-bottom: 2px; }
.admin-console-close svg { display: block; width: 16px; height: 16px; flex: 0 0 auto; }
@media (max-width: 640px) {
  .admin-console-back { margin-bottom: 5px; }
  .admin-console-back .admin-console-close { left: -9px; }
  .admin-console-close span { display: inline; }
}

/* v18 站内相册拖拽：与系统文件上传明确区分 */
.media-draggable { cursor: grab; }
.media-draggable:active, .media-draggable.dragging { cursor: grabbing; }
.media-draggable.dragging { opacity: .46; transform: scale(.98); }
.album-card[aria-dropeffect="move"] { transition: transform .2s var(--ease), box-shadow .2s, border-color .2s, background .2s; }
.album-card[aria-dropeffect="move"]::after {
  content: '拖到这里移动'; position: absolute; left: 8px; right: 8px; bottom: 42px; z-index: 3;
  padding: 5px 4px; border-radius: 8px; color: #fff; background: rgba(32,40,36,.78); font-size: 9px; font-weight: 750; text-align: center;
  opacity: 0; pointer-events: none; transform: translateY(4px); transition: .18s var(--ease);
}
.album-card[aria-dropeffect="move"].drag-over { border-color: rgba(var(--primary-rgb),.58); background: var(--primary-bg); box-shadow: 0 0 0 3px rgba(var(--primary-rgb),.13), var(--shadow-md); transform: translateY(-3px); }
.album-card[aria-dropeffect="move"].drag-over::after { opacity: 1; transform: none; }
.album-card[aria-dropeffect="move"].drag-over .album-cover img { transform: scale(1.035); }

/* v21 上传入口收敛：默认只露出一个按钮，细分动作在菜单内完成 */
.upload-menu-wrap { position: relative; }
.upload-menu-wrap > #btn-upload { min-width: 88px; }
.upload-menu-wrap > #btn-upload .upload-chevron { width: 13px; height: 13px; margin-left: 1px; opacity: .62; transition: transform .18s var(--ease); }
.upload-menu-wrap > #btn-upload[aria-expanded="true"] .upload-chevron { transform: rotate(180deg); }
.upload-menu {
  position: absolute; z-index: 80; top: calc(100% + 8px); right: 0; min-width: 236px; padding: 6px;
  border: 1px solid var(--line); border-radius: 14px; background: rgba(251,250,247,.98);
  box-shadow: var(--shadow-lg); backdrop-filter: blur(18px); transform-origin: top right;
  animation: popIn .14s var(--ease);
}
.upload-menu[hidden] { display: none; }
.upload-menu button {
  width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 0;
  border-radius: 9px; color: var(--fg); background: transparent; text-align: left; font: inherit;
  font-size: 11px; font-weight: 650; white-space: nowrap; cursor: pointer; transition: color .16s var(--ease), background .16s var(--ease);
}
.upload-menu button:hover { color: var(--primary-dark); background: var(--primary-bg); }
/* 键盘聚焦必须可见：此前与 hover 合并写成 outline:none，键盘用户在菜单里会"失明" */
.upload-menu button:focus-visible { color: var(--primary-dark); background: var(--primary-bg); outline: 2px solid var(--primary); outline-offset: -2px; }
.upload-menu button svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--muted); }
.upload-menu button:hover svg, .upload-menu button:focus-visible svg { color: currentColor; }
@media (max-width: 640px) {
  .upload-menu-wrap { width: 100%; }
  .upload-menu-wrap > #btn-upload { width: 100%; justify-content: center; }
  .upload-menu { left: 0; right: auto; width: min(220px, calc(100vw - 32px)); transform-origin: top left; }
}

/* v17 管理入口回到用户名旁：小而明确，避免标题区出现漂移图标 */
.user-name-row .admin-role-entry {
  width: 25px; height: 25px; display: inline-grid; place-items: center; flex: 0 0 auto; margin-left: 1px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 8px; color: rgba(255,255,255,.68); background: rgba(255,255,255,.07); transition: .18s var(--ease);
}
.user-name-row .admin-role-entry:hover { color: #fff; border-color: rgba(255,255,255,.34); background: rgba(239,154,130,.22); transform: translateY(-1px); }
.user-name-row .admin-role-entry svg { display: block; width: 14px; height: 14px; }
.admin-console-back .admin-console-close { left: 0; padding-left: 0; }
@media (max-width: 640px) {
  .admin-console-back .admin-console-close { left: 0; padding-left: 0; }
}

/* ===== v75 一起听 · 沉浸式房间（参考 happy.alang.run 布局重构） ===== */
.room-page { padding-bottom: 26px; }
.room-stage { position: relative; border-radius: 22px; overflow: hidden; color: #fff; min-height: calc(100vh - 128px); display: flex; flex-direction: column; background: linear-gradient(150deg, #3a6b53 0%, #55886b 48%, #2f5a46 100%); padding: 22px 26px 24px; box-shadow: 0 30px 70px #2a4a3a30; }
.room-stage-bg { position: absolute; inset: -60px; background-position: center; background-size: cover; filter: blur(40px) saturate(1.35); opacity: .95; transform: scale(1.2); }
.room-stage::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #0d1a1461 0%, #0d1a1440 42%, #0d1a1470 100%); pointer-events: none; }
.room-stage-inner { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; min-height: 0; }

.room-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 6px 16px; border-bottom: 1px solid #ffffff30; }
.room-topbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.room-topbar-left strong { font-size: 18px; letter-spacing: .02em; text-shadow: 0 1px 8px #0b1a1259; }
.room-topbar-sub { font-size: 12px; color: #ffffffa6; }
.room-live-dot { width: 9px; height: 9px; border-radius: 50%; background: #ffffff6b; flex: none; }
.room-live-dot.live { background: #8affa8; animation: roomPulse 2.2s ease-out infinite; }
@keyframes roomPulse { 0% { box-shadow: 0 0 0 0 #8affa888; } 70% { box-shadow: 0 0 0 10px #8affa800; } 100% { box-shadow: 0 0 0 0 #8affa800; } }
.room-topbar-right { display: flex; gap: 8px; flex: none; }
.room-chip { display: inline-flex; align-items: center; padding: 5px 13px; border-radius: 999px; background: #0d1a143d; border: 1px solid #ffffff2e; font-size: 12px; color: #ffffffd9; backdrop-filter: blur(8px); }
.room-chip.live { background: #2f6b47cc; border-color: #8affa855; color: #f0fff2; }

.room-now { display: flex; gap: clamp(22px, 3vw, 44px); align-items: center; padding: clamp(20px, 3.4vw, 36px) 8px 14px; }
.room-disc { position: relative; flex: none; width: clamp(170px, 24vw, 250px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #26262b 0 33%, #101013 34% 100%); box-shadow: 0 24px 60px #05130c66, 0 0 0 1px #ffffff1f inset; }
.room-disc img { position: absolute; inset: 14%; width: 72%; height: 72%; border-radius: 50%; object-fit: cover; animation: spin 26s linear infinite; animation-play-state: paused; box-shadow: 0 0 0 7px #0b0b0e, 0 10px 30px #00000059; }
.room-disc.playing img { animation-play-state: running; }
.room-disc-hole { position: absolute; left: 50%; top: 50%; width: 10%; height: 10%; transform: translate(-50%, -50%); border-radius: 50%; background: #0b0b0e; border: 3px solid #ffffff26; }
.room-disc-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #ffffff47; }
.room-disc-ph svg { width: 34%; height: 34%; }

.room-now-main { flex: 1; min-width: 0; }
.room-now-title { font-size: clamp(26px, 3vw, 40px); font-weight: 800; letter-spacing: -.01em; line-height: 1.2; overflow-wrap: anywhere; text-shadow: 0 2px 14px #0b1a1266; }
.room-now-sub { margin-top: 9px; font-size: 14px; color: #ffffffc4; display: flex; flex-wrap: wrap; gap: 6px 14px; text-shadow: 0 1px 8px #0b1a124d; }
.room-now-album { color: #ffffff9e; }
.room-now-by { margin-top: 5px; font-size: 13px; color: #ffffff8f; min-height: 18px; }
.room-now-progress { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.room-now-progress .p-time { font-size: 12px; color: #ffffffb8; font-variant-numeric: tabular-nums; }
.room-progress-bar { flex: 1; height: 5px; border-radius: 999px; background: #ffffff3d; overflow: hidden; }
.room-progress-fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #a4f0b6, #ffffff); transition: width .45s linear; }
.room-now-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

.room-btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #ffffff3d; border-radius: 999px; background: #0d1a1433; color: #fff; font: inherit; font-size: 13px; font-weight: 600; padding: 9px 20px; cursor: pointer; backdrop-filter: blur(8px); transition: background .18s, border-color .18s; }
.room-btn:hover { background: #ffffff2b; border-color: #ffffff66; }
.room-btn.primary { background: #f2fbf0; color: #1d3a2a; border-color: transparent; }
.room-btn.primary:hover { background: #fff; }
.room-btn svg { width: 15px; height: 15px; }
.room-btn .ic-pause-s { display: none; }
.room-btn .ic-play-s { display: block; }
.room-btn.playing .ic-pause-s { display: block; }
.room-btn.playing .ic-play-s { display: none; }

.room-main { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 18px; margin-top: 18px; flex: 1; min-height: 0; align-items: stretch; }
.room-panel { background: #0d1a1430; border: 1px solid #ffffff26; border-radius: 16px; padding: 16px 18px; backdrop-filter: blur(12px); min-width: 0; display: flex; flex-direction: column; }
.room-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.room-panel-title { font-size: 14px; font-weight: 700; letter-spacing: .05em; color: #ffffffeb; text-shadow: 0 1px 8px #0b1a1240; }
.room-panel-title .cnt-inline { font-weight: 400; color: #ffffffa6; }
.room-search-row { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.room-search-row .search-box { flex: 1; background: #0d1a1438; border: 1px solid #ffffff30; }
.room-search-row .search-box input { color: #fff; }
.room-search-row .search-box input::placeholder { color: #ffffff85; }
.room-search-row .search-box svg { color: #ffffffa6; }
.room-search-results { max-height: 260px; overflow-y: auto; margin-bottom: 8px; }
.room-search-results:empty { display: none; }
.room-stage .song-row { background: #0d1a1426; }
.room-stage .song-row:hover { background: #ffffff21; }
.room-stage .song-row.playing { background: #8affa82e; }
.room-stage .song-row .song-artist { color: #ffffffc4; }
.room-stage .song-row .song-artist .song-source, .room-stage .song-fallback { color: #ffffff9e; }
.room-stage .song-row .row-idx, .room-stage .song-row .row-dur { color: #ffffffb8; }
.room-stage .song-row .song-title { color: #fff; }
.room-stage .room-search-note { color: #ffe9a8; }
.room-stage .empty.small-empty { color: #ffffff9e; border-color: #ffffff30; background: #0d1a1426; }

.room-queue-table-wrap { flex: 1; min-height: 0; max-height: none; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.room-queue-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.room-queue-table th { position: sticky; top: 0; background: #16281fcc; backdrop-filter: blur(10px); text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .08em; color: #ffffffa6; padding: 9px 8px; border-bottom: 1px solid #ffffff2e; z-index: 1; }
.room-queue-table td { padding: 9px 8px; border-bottom: 1px solid #ffffff1c; vertical-align: middle; color: #ffffffe6; }
.room-queue-table tr:hover td { background: #ffffff14; }
.col-id { width: 36px; color: #ffffff9e; }
.col-artist, .col-album, .col-by { color: #ffffffc4; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-by { color: #d9f3df; }
.col-act { width: 36px; text-align: right; }
.q-song { display: flex; align-items: center; gap: 10px; min-width: 0; }
.q-song img, .q-ph { width: 34px; height: 34px; border-radius: 7px; object-fit: cover; flex: none; }
.q-ph { display: inline-flex; align-items: center; justify-content: center; background: #ffffff26; color: #ffffffb8; font-size: 13px; }
.q-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.q-empty-row td { color: #ffffff99; text-align: center; padding: 34px 8px; border-bottom: 0; }
.room-queue-table .q-remove { border: 0; background: transparent; color: #ffffff8f; cursor: pointer; padding: 4px; border-radius: 6px; }
.room-queue-table .q-remove:hover { color: #ffc4b8; background: #ffffff21; }
.room-queue-table .q-remove svg { width: 14px; height: 14px; }

.room-chat-list { flex: 1; min-height: 240px; max-height: none; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 2px 2px 10px; }
.room-chat-empty { color: #ffffff85; font-size: 12.5px; text-align: center; padding: 40px 0; }
.room-chat-msg { font-size: 13.5px; line-height: 1.6; overflow-wrap: anywhere; }
.room-chat-msg .who { color: #b8f0c6; font-weight: 700; margin-right: 8px; }
.room-chat-msg .txt { color: #ffffffee; }
.room-chat-msg.mine .who { color: #ffe9a8; }
.room-chat-input-row { display: flex; gap: 9px; margin-top: 10px; }
.room-chat-input-row input { flex: 1; min-width: 0; border: 1px solid #ffffff30; background: #0d1a1438; color: #fff; border-radius: 999px; padding: 11px 18px; font: inherit; font-size: 13.5px; outline: none; }
.room-chat-input-row input::placeholder { color: #ffffff85; }
.room-chat-input-row input:focus { border-color: #8affa899; box-shadow: 0 0 0 3px #8affa82b; }

@media (max-width: 900px) {
  .room-stage { min-height: 0; }
  .room-main { grid-template-columns: 1fr; }
  .room-now { flex-direction: column; align-items: flex-start; gap: 16px; }
  .room-disc { width: min(190px, 48vw); }
  .col-album { display: none; }
  .room-topbar-sub { display: none; }
}

/* v115：≤640px 队列表改卡片流。原来 6 列在窄屏必须横向滚动才能看到「点歌人 / 删除」 */
@media (max-width: 640px) {
  .room-queue-table thead { display: none; }
  .room-queue-table, .room-queue-table tbody { display: block; width: 100%; }
  .room-queue-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto 34px; gap: 3px 10px; padding: 10px 2px; border-bottom: 1px solid #ffffff1c; }
  .room-queue-table td { display: block; padding: 0; border: 0; }
  .room-queue-table td.col-album { display: none; } /* ≤900 的 .col-album{display:none} 会被上面的规则覆盖 */
  .room-queue-table td.col-id { display: none; }
  .room-queue-table td:nth-child(2) { grid-column: 1 / -1; }
  .room-queue-table td.col-artist { grid-column: 1; font-size: 11.5px; max-width: none; }
  .room-queue-table td.col-by { grid-column: 2; font-size: 11px; text-align: right; max-width: none; }
  .room-queue-table td.col-act { grid-column: 3; grid-row: 2; text-align: right; }
  .room-queue-table .q-remove { padding: 8px; }
  .room-queue-table .q-empty-row { display: block; }
  .room-queue-table .q-empty-row td { padding: 28px 8px; text-align: center; }
}

/* v77 房间：可拖拽进度条 / 音量 / 多行歌词窗口 */
.room-progress-bar { position: relative; cursor: pointer; height: 6px; }
.room-progress-bar.dragging { cursor: grabbing; }
.room-progress-thumb { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #fff; transform: translateY(-50%); box-shadow: 0 1px 6px #00000059; transition: transform .15s; pointer-events: none; }
.room-progress-bar:hover .room-progress-thumb, .room-progress-bar.dragging .room-progress-thumb { transform: translateY(-50%) scale(1.3); }
.room-volume { display: inline-flex; align-items: center; gap: 7px; color: #ffffffb8; flex: none; cursor: pointer; }
.room-volume svg { width: 17px; height: 17px; }
.room-volume input[type="range"] { width: 86px; accent-color: #a4f0b6; cursor: pointer; }
.room-lyric-mini { margin-top: 12px; min-height: 104px; display: flex; flex-direction: column; justify-content: center; gap: 3px; overflow: hidden; }
.room-lyric-mini p { font-size: 14px; line-height: 1.55; color: #ffffff8f; letter-spacing: .02em; text-shadow: 0 1px 8px #0b1a1240; transition: color .25s, font-size .25s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room-lyric-mini p.active { font-size: 18px; font-weight: 700; color: #fff; text-shadow: 0 1px 12px #0b1a1259; }
.room-lyric-mini .room-lyric-empty { font-size: 13px; color: #ffffff6b; }
@media (max-width: 900px) {
  .room-volume input[type="range"] { width: 64px; }
  .room-lyric-mini { min-height: 86px; }
}

.room-disc-ph[hidden] { display: none; } /* hidden 属性必须能盖过 display:flex */

/* v80 房间整页铺满：不再做成页面中间的卡片 */
#view.room-bleed { padding: 0; max-width: none; }
#view.room-bleed .room-page { margin: 0; padding: 0; max-width: none; }
#view.room-bleed .room-stage { border-radius: 0; min-height: calc(100dvh - 104px); box-shadow: none; padding: 22px clamp(22px, 3.2vw, 48px) 26px; }
@media (max-width: 900px) {
  #view.room-bleed .room-stage { min-height: calc(100dvh - 150px); padding: 18px 16px 22px; }
}

/* 音量滑块：覆盖全局 input 的白底大内边距样式，恢复可拖拽的原生轨道（关键是别被 padding/min-height 撑成大白框） */
.room-volume input[type="range"], .room-volume input[type="range"]:focus {
  width: 86px; height: 22px; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 0;
  background: transparent; box-shadow: none; flex: none; accent-color: #a4f0b6; cursor: pointer;
}

/* v84 房间空闲态：站点浅色风格（无歌时），点歌后自动切回沉浸式深色 */
.room-stage.room-light { background: linear-gradient(160deg, #eef2e8 0%, #e4ecdc 52%, #dbe7d2 100%); color: #28372e; box-shadow: 0 24px 60px #2a4a3a1a; }
.room-stage.room-light .room-stage-bg { display: none; }
.room-stage.room-light::after { background: linear-gradient(180deg, #ffffff59 0%, #ffffff26 45%, #f2f6ec59 100%); }
.room-light .room-topbar { border-bottom-color: #d6e0ce; }
.room-light .room-topbar-left strong { color: var(--fg); text-shadow: none; }
.room-light .room-topbar-sub { color: #6b766d; }
.room-light .room-live-dot { background: #b6c3ad; }
.room-light .room-live-dot.live { background: #58a06c; }
.room-light .room-chip { background: #ffffffb8; border-color: #c8d5c0; color: #52614a; }
.room-light .room-chip.live { background: var(--primary-dark); border-color: transparent; color: #fff; }
.room-light .room-disc { box-shadow: 0 18px 44px #455d3233, 0 0 0 1px #00000014 inset; }
.room-light .room-disc img { box-shadow: 0 0 0 7px #0b0b0e, 0 10px 26px #455d3240; }
.room-light .room-now-title { color: var(--fg); text-shadow: none; }
.room-light .room-now-sub { color: #5c6d54; text-shadow: none; }
.room-light .room-now-album { color: #7c8a74; }
.room-light .room-now-by { color: #8a9683; }
.room-light .room-lyric-mini p { color: #8a9683; text-shadow: none; }
.room-light .room-lyric-mini p.active { color: var(--primary-dark); text-shadow: none; }
.room-light .room-lyric-mini .room-lyric-empty { color: #9aa694; }
.room-light .p-time { color: #6b766d; }
.room-light .room-progress-bar { background: #cfdac7; }
.room-light .room-progress-fill { background: linear-gradient(90deg, #6f9a7b, #426b55); }
.room-light .room-progress-thumb { background: #fff; border: 1px solid #b9c9b0; box-shadow: 0 1px 5px #455d3233; }
.room-light .room-volume { color: #6b766d; }
.room-light input[type="range"] { accent-color: var(--primary-dark); }
.room-light .room-btn { border-color: #c5d1bd; background: #ffffffb8; color: #31442c; }
.room-light .room-btn:hover { background: #fff; border-color: #a9bda0; }
.room-light .room-btn.primary { background: var(--primary-dark); border-color: transparent; color: #fff; }
.room-light .room-btn.primary:hover { background: var(--primary); }
.room-light .room-panel { background: #ffffffb8; border-color: #d9e2d1; backdrop-filter: none; }
.room-light .room-panel-title { color: var(--fg); text-shadow: none; }
.room-light .room-panel-title .cnt-inline { color: #8a9683; }
.room-stage.room-light .search-box, .room-stage.room-light .search-box.block { background: #fff; border-color: #c5d1bd; box-shadow: 0 1px 4px #455d320d; }
.room-stage.room-light .search-box input { color: var(--fg); }
.room-stage.room-light .search-box input::placeholder { color: #9aa694; }
.room-stage.room-light .search-box svg { color: #8a9683; }
.room-stage.room-light .resolver-select { background-color: #fff; border-color: #c5d1bd; color: #31442c;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23788a6e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; }
.room-stage.room-light .vip-filter { background: #ffffffb8; border-color: #c8d5c0; box-shadow: none; }
.room-stage.room-light .vip-filter button { color: #5c6d54; }
.room-stage.room-light .vip-filter button:hover { background: #fff; color: var(--primary-dark); }
.room-stage.room-light .vip-filter button.active { background: var(--primary-dark); color: #fff; box-shadow: none; }
.room-stage.room-light .vip-filter button.active[data-vip-filter="only"] { background: linear-gradient(135deg, #b9881f, #d8ab38); }
.room-stage.room-light .song-row { background: #ffffffcc; }
.room-stage.room-light .song-row:hover { background: #fff; }
.room-stage.room-light .song-row .song-title { color: var(--fg); }
.room-stage.room-light .song-row .song-artist { color: #7c8a74; }
.room-stage.room-light .song-row .row-idx, .room-stage.room-light .song-row .row-dur { color: #8a9683; }
.room-stage.room-light .empty.small-empty { color: #8a9683; border-color: #cdd8c8; background: #ffffff80; }
.room-light .room-queue-table th { background: #f2f6ecf2; color: #6b766d; border-bottom-color: #dbe4d3; }
.room-light .room-queue-table td { color: var(--fg); border-bottom-color: #e4ebdd; }
.room-light .room-queue-table tr:hover td { background: #ffffff80; }
.room-light .col-id, .room-light .col-artist, .room-light .col-album { color: #7c8a74; }
.room-light .col-by { color: var(--primary-dark); }
.room-light .q-title { color: var(--fg); }
.room-light .q-ph { background: #eef2e8; color: #8a9683; }
.room-light .q-empty-row td { color: #9aa694; }
.room-light .q-remove { color: #8a9683; }
.room-light .q-remove:hover { color: #c0553f; background: #0000000a; }
.room-light .room-chat-empty { color: #9aa694; }
.room-light .room-chat-msg .who { color: var(--primary-dark); }
.room-light .room-chat-msg .txt { color: var(--fg); }
.room-light .room-chat-msg.mine .who { color: #a9791c; }
.room-light .room-chat-input-row input { background: #fff; border-color: #c5d1bd; color: var(--fg); }
.room-light .room-chat-input-row input::placeholder { color: #9aa694; }

/* ============ 回收站（v101） ============ */
.trash-card {
  width: 100%; max-width: 760px; max-height: 84vh; overflow: auto;
  background: var(--surface); border-radius: var(--r-l); padding: 22px 24px;
  box-shadow: var(--shadow-lg); animation: popIn .18s var(--ease);
}
.trash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.trash-head h4 { font-size: 17px; font-weight: 800; }
.trash-hint { color: var(--muted); font-size: 11.5px; line-height: 1.7; margin: 8px 0 16px; }
.trash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.trash-item { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--hover); }
.trash-thumb { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.trash-thumb img { width: 100%; height: 100%; object-fit: cover; }
.trash-meta { padding: 8px 10px 0; display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--muted); }
.trash-meta b { font-size: 12.5px; color: var(--fg); }
.trash-actions { display: flex; gap: 6px; padding: 9px 10px 10px; margin-top: auto; }
.trash-actions .btn { flex: 1; }
.trash-empty { color: var(--muted); font-size: 12.5px; text-align: center; padding: 30px 0; }
.trash-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.trash-count-note { color: var(--muted); font-size: 11px; }
.trash-toggle { position: relative; }
.trash-toggle .trash-badge {
  position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: var(--primary); color: #fff; font-size: 10px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
