/* =====================================================================
 * 小雫云盘 · 小猫娘皮肤
 * ---------------------------------------------------------------------
 * 全部手写，不依赖任何 CDN / 框架。
 * 结构：
 *   1. 变量与主题      2. 基础排版        3. 顶栏 / 导航
 *   4. 通用组件        5. 首页与工具栏    6. 文件网格 / 列表
 *   7. 上传页          8. 预览器          9. 详情 / 分享
 *  10. 后台            11. 动效 / 响应式
 * ===================================================================== */

/* ---------- 1. 变量与主题 ---------- */
:root {
  --accent: #ff8fb1;
  --accent-deep: #ff6f9c;
  --accent-soft: #ffe6ee;
  --accent-text: #fff;

  --bg: #fff8fb;
  --bg-deco: #ffeef5;
  --card: #ffffff;
  --card-2: #fffafc;
  --text: #43303a;
  --text-2: #6c5763;
  --muted: #a48e99;
  --border: #ffe1ea;
  --border-2: #f2e2e8;

  --ok: #48c78e;
  --warn: #ffb020;
  --err: #ff6b6b;
  --info: #6aa9ff;

  --shadow-s: 0 2px 8px rgba(255, 143, 177, .10);
  --shadow-m: 0 8px 28px rgba(214, 138, 165, .16);
  --shadow-l: 0 20px 60px rgba(196, 122, 150, .22);
  --radius: 16px;
  --radius-s: 10px;
  --radius-l: 24px;
  --header-h: 62px;
  --maxw: 1180px;
  --font: "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", "Fira Code", "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

html[data-theme="dark"], html.dark {
  --bg: #17131a;
  --bg-deco: #1f1822;
  --card: #221c26;
  --card-2: #291f2d;
  --text: #f2e9f0;
  --text-2: #cdbcc7;
  --muted: #9a8794;
  --border: #382c3d;
  --border-2: #302733;
  --accent-soft: #3a2431;
  --shadow-s: 0 2px 8px rgba(0, 0, 0, .35);
  --shadow-m: 0 8px 28px rgba(0, 0, 0, .45);
  --shadow-l: 0 20px 60px rgba(0, 0, 0, .55);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    --bg: #17131a; --bg-deco: #1f1822; --card: #221c26; --card-2: #291f2d;
    --text: #f2e9f0; --text-2: #cdbcc7; --muted: #9a8794;
    --border: #382c3d; --border-2: #302733; --accent-soft: #3a2431;
    --shadow-s: 0 2px 8px rgba(0,0,0,.35);
    --shadow-m: 0 8px 28px rgba(0,0,0,.45);
    --shadow-l: 0 20px 60px rgba(0,0,0,.55);
  }
}

/* ---------- 2. 基础排版 ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1000px 460px at 12% -10%, var(--bg-deco), transparent 62%),
    radial-gradient(760px 380px at 92% 4%, var(--bg-deco), transparent 58%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent-deep); text-decoration: none; transition: color .18s, opacity .18s; }
a:hover { color: var(--accent); }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.35; font-weight: 700; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.06rem; }
p { margin: 0 0 1em; }
code, pre, kbd { font-family: var(--mono); }
hr { border: none; border-top: 1px dashed var(--border); margin: 22px 0; }
::selection { background: var(--accent); color: #fff; }

.sz-wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }
.sz-main { min-height: 62vh; padding: 26px 0 60px; }
.sz-main-wide { max-width: none; }
.sz-main-wide .sz-wrap { max-width: 1440px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: 8px 14px; z-index: 99; }
.skip-link:focus { left: 8px; top: 8px; border-radius: 8px; }
.muted { color: var(--muted); }
.text-c { text-align: center; }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }
.mono { font-family: var(--mono); font-size: .92em; }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); background-clip: content-box; }

/* ---------- 3. 顶栏 / 导航 ---------- */
.sz-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--border);
}
@supports not (background: color-mix(in srgb, red, blue)) {
  .sz-header { background: var(--card); }
}
.sz-header-inner { display: flex; align-items: center; gap: 14px; height: var(--header-h); }
.sz-brand { display: flex; align-items: center; gap: 10px; color: var(--text); flex-shrink: 0; }
.sz-brand:hover { color: var(--text); }
.sz-brand-logo { display: grid; place-items: center; filter: drop-shadow(0 4px 10px rgba(255,143,177,.35)); }
.sz-brand-text { display: flex; flex-direction: column; line-height: 1.18; }
.sz-brand-text b { font-size: 1.06rem; letter-spacing: .2px; }
.sz-brand-text i { font-style: normal; font-size: .72rem; color: var(--muted); }
@media (max-width: 900px) { .sz-brand-text i { display: none; } }

.sz-searchbar {
  flex: 1; min-width: 120px; max-width: 420px;
  display: flex; align-items: center; gap: 8px;
  background: var(--card-2); border: 1px solid var(--border);
  border-radius: 99px; padding: 6px 6px 6px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.sz-searchbar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.sz-searchbar svg { color: var(--muted); flex-shrink: 0; }
.sz-searchbar input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font-size: .95rem; outline: none; font-family: inherit; }
.sz-searchbar button {
  border: 0; border-radius: 99px; padding: 7px 16px; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff; font-size: .88rem; font-weight: 600; font-family: inherit;
}
.sz-searchbar button:hover { filter: brightness(1.05); }

.sz-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.sz-navlink {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 12px; border-radius: 99px; font-size: .9rem;
  color: var(--text-2); white-space: nowrap; transition: background .18s, color .18s;
}
.sz-navlink:hover { background: var(--accent-soft); color: var(--accent-deep); }
.sz-navlink.on { background: var(--accent-soft); color: var(--accent-deep); font-weight: 600; }
.sz-navlink-quiet { color: var(--muted); }
.sz-iconbtn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--card-2); cursor: pointer; display: grid; place-items: center;
  color: var(--text-2); font-size: 1rem; transition: background .18s, border-color .18s, transform .18s;
}
.sz-iconbtn:hover { border-color: var(--accent); transform: rotate(-12deg); }
.sz-theme-icon::before { content: "🌗"; }
html[data-theme="light"] .sz-theme-icon::before { content: "☀️"; }
html[data-theme="dark"] .sz-theme-icon::before { content: "🌙"; }

@media (max-width: 720px) {
  .sz-header-inner { flex-wrap: wrap; height: auto; padding: 8px 0; gap: 8px; }
  .sz-searchbar { order: 3; max-width: none; flex-basis: 100%; }
  .sz-navlink span { display: none; }
  .sz-navlink { padding: 8px 10px; font-size: 1.05rem; }
}

.sz-announce {
  background: linear-gradient(90deg, var(--accent-soft), transparent);
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.sz-announce .sz-wrap { display: flex; align-items: center; gap: 10px; padding: 10px 18px; }
.sz-announce-text { flex: 1; color: var(--text-2); }
.sz-announce-close { border: 0; background: none; color: var(--muted); font-size: 1.3rem; cursor: pointer; line-height: 1; }

/* ---------- 4. 通用组件 ---------- */
.sz-card-box {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-s);
  padding: 20px; margin-bottom: 20px;
}
.sz-card-box > h2:first-child, .sz-card-box > h1:first-child { margin-top: 0; }

.sz-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--border); background: var(--card-2); color: var(--text);
  padding: 9px 18px; border-radius: 99px; cursor: pointer;
  font-size: .92rem; font-family: inherit; font-weight: 600; line-height: 1.4;
  transition: transform .16s, box-shadow .16s, background .16s, border-color .16s, filter .16s;
  text-align: center;
}
.sz-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-s); border-color: var(--accent); color: var(--accent-deep); }
.sz-btn:active { transform: translateY(0); }
.sz-btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff; border-color: transparent; box-shadow: var(--shadow-m);
}
.sz-btn-primary:hover { color: #fff; filter: brightness(1.06); border-color: transparent; }
.sz-btn-ghost { background: transparent; }
.sz-btn-danger { color: var(--err); border-color: color-mix(in srgb, var(--err) 40%, var(--border)); }
.sz-btn-danger:hover { background: var(--err); color: #fff; border-color: var(--err); }
.sz-btn-sm { padding: 5px 12px; font-size: .82rem; }
.sz-btn-lg { padding: 13px 30px; font-size: 1.02rem; }
.sz-btn-block { width: 100%; }
.sz-btn[disabled] { opacity: .55; pointer-events: none; }

.sz-input, .sz-select, .sz-textarea {
  width: 100%; padding: 10px 14px; border-radius: var(--radius-s);
  border: 1px solid var(--border); background: var(--card-2); color: var(--text);
  font-family: inherit; font-size: .95rem; outline: none; transition: border-color .18s, box-shadow .18s;
}
.sz-input:focus, .sz-select:focus, .sz-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.sz-textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.sz-field { margin-bottom: 16px; }
.sz-field label { display: block; font-size: .88rem; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.sz-field .hint { font-size: .8rem; color: var(--muted); margin-top: 5px; }
.sz-row { display: flex; gap: 14px; flex-wrap: wrap; }
.sz-row > * { flex: 1; min-width: 200px; }

.sz-alert {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--accent-soft); border: 1px solid var(--border);
  border-radius: var(--radius-s); padding: 12px 16px; margin-bottom: 16px; font-size: .92rem;
}
.sz-alert-icon { flex-shrink: 0; }
.sz-alert-ok { background: color-mix(in srgb, var(--ok) 12%, var(--card)); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.sz-alert-warn { background: color-mix(in srgb, var(--warn) 14%, var(--card)); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.sz-alert-err { background: color-mix(in srgb, var(--err) 12%, var(--card)); border-color: color-mix(in srgb, var(--err) 40%, transparent); }

.sz-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.sz-empty-emoji { font-size: 3rem; margin-bottom: 12px; animation: sz-float 3.4s ease-in-out infinite; }
.sz-empty p { font-size: .98rem; margin-bottom: 16px; }
@keyframes sz-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.sz-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: 99px; font-size: .76rem;
  background: var(--accent-soft); color: var(--accent-deep); font-weight: 600;
}
.sz-chip {
  display: inline-block; padding: 1px 8px; border-radius: 99px;
  background: var(--bg-deco); color: var(--text-2); font-size: .74rem;
}
.sz-badge {
  position: absolute; top: 6px; right: 6px; z-index: 2;
  background: rgba(0,0,0,.55); color: #fff; border-radius: 8px;
  font-size: .72rem; padding: 2px 6px; backdrop-filter: blur(4px);
}
.sz-badge-block { background: rgba(255,107,107,.85); right: auto; left: 6px; }

/* 提示气泡 */
.sz-toasts { position: fixed; right: 18px; bottom: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: min(92vw, 380px); }
.sz-toast {
  background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: var(--radius-s); padding: 12px 16px; box-shadow: var(--shadow-l);
  font-size: .9rem; animation: sz-slide-in .26s ease-out; display: flex; gap: 8px; align-items: flex-start;
}
.sz-toast.ok { border-left-color: var(--ok); }
.sz-toast.err { border-left-color: var(--err); }
.sz-toast.warn { border-left-color: var(--warn); }
.sz-toast.hide { animation: sz-slide-out .22s ease-in forwards; }
@keyframes sz-slide-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
@keyframes sz-slide-out { to { opacity: 0; transform: translateX(20px); } }

/* 弹窗 */
.sz-modal-root:empty { display: none; }
.sz-mask {
  position: fixed; inset: 0; z-index: 150; background: rgba(40, 20, 32, .48);
  backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px;
  animation: sz-fade .2s ease-out;
}
@keyframes sz-fade { from { opacity: 0; } to { opacity: 1; } }
.sz-modal {
  width: min(520px, 100%); background: var(--card); border-radius: var(--radius-l);
  border: 1px solid var(--border); box-shadow: var(--shadow-l); overflow: hidden;
  animation: sz-pop .24s cubic-bezier(.2,.9,.3,1.2);
  max-height: 90vh; display: flex; flex-direction: column;
}
@keyframes sz-pop { from { opacity: 0; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: none; } }
.sz-modal-head { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.sz-modal-head h3 { margin: 0; flex: 1; font-size: 1.05rem; }
.sz-modal-body { padding: 20px 22px; overflow: auto; }
.sz-modal-foot { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

/* 复制输入框 */
.sz-copybox { display: flex; gap: 8px; align-items: stretch; margin-bottom: 12px; }
.sz-copybox input {
  flex: 1; min-width: 0; font-family: var(--mono); font-size: .84rem;
  padding: 9px 12px; border-radius: var(--radius-s);
  border: 1px solid var(--border); background: var(--card-2); color: var(--text-2);
}
.sz-copybox .sz-btn { flex-shrink: 0; }
@media (max-width: 520px) { .sz-copybox { flex-direction: column; } }

/* 标签页 */
.sz-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.sz-tab {
  padding: 9px 16px; border: 0; background: none; cursor: pointer; font-family: inherit;
  font-size: .9rem; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap;
}
.sz-tab:hover { color: var(--accent-deep); }
.sz-tab.on { color: var(--accent-deep); border-bottom-color: var(--accent); font-weight: 600; }
.sz-tabpane { display: none; }
.sz-tabpane.on { display: block; animation: sz-fade .22s; }

/* ---------- 5. 首页 / 工具栏 ---------- */
.sz-hero {
  background: linear-gradient(135deg, var(--accent-soft), var(--card) 65%);
  border: 1px solid var(--border); border-radius: var(--radius-l);
  padding: 24px 26px; margin-bottom: 22px; position: relative; overflow: hidden;
}
.sz-hero::after {
  content: "🐾"; position: absolute; right: 18px; bottom: -18px;
  font-size: 6rem; opacity: .13; transform: rotate(-16deg); pointer-events: none;
}
.sz-hero h1 { font-size: 1.5rem; margin-bottom: 6px; }
.sz-hero p { color: var(--text-2); margin: 0; font-size: .94rem; }
.sz-hero-stats { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 16px; }
.sz-hero-stat { display: flex; flex-direction: column; }
.sz-hero-stat b { font-size: 1.24rem; color: var(--accent-deep); }
.sz-hero-stat span { font-size: .78rem; color: var(--muted); }

.sz-toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.sz-toolbar .sz-grow { flex: 1; }
.sz-seg { display: inline-flex; background: var(--card-2); border: 1px solid var(--border); border-radius: 99px; padding: 3px; }
.sz-seg a, .sz-seg button {
  border: 0; background: none; padding: 6px 14px; border-radius: 99px; cursor: pointer;
  font-size: .84rem; color: var(--text-2); font-family: inherit; white-space: nowrap;
}
.sz-seg .on { background: var(--accent); color: #fff; font-weight: 600; }
.sz-sortbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .84rem; color: var(--muted); }
.sz-sortbar a { color: var(--text-2); padding: 4px 8px; border-radius: 8px; }
.sz-sortbar a:hover { background: var(--accent-soft); }
.sz-sortbar a.on { background: var(--accent-soft); color: var(--accent-deep); font-weight: 600; }

.sz-batchbar {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(120%);
  bottom: 22px; z-index: 90; background: var(--card); border: 1px solid var(--border);
  border-radius: 99px; box-shadow: var(--shadow-l); padding: 8px 10px 8px 18px;
  display: flex; align-items: center; gap: 8px; transition: transform .26s cubic-bezier(.2,.9,.3,1.1);
  max-width: 94vw; overflow-x: auto;
}
.sz-batchbar.show { transform: translateX(-50%) translateY(0); }
.sz-batchbar b { color: var(--accent-deep); }

/* 面包屑 */
.sz-crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .9rem; margin-bottom: 16px; color: var(--muted); }
.sz-crumbs a { color: var(--text-2); padding: 3px 9px; border-radius: 99px; background: var(--card-2); border: 1px solid var(--border); }
.sz-crumbs a:hover { background: var(--accent-soft); }

/* 文件夹卡片 */
.sz-folder {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-s); transition: transform .18s, box-shadow .18s;
}
.sz-folder:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); }
.sz-folder-icon { font-size: 1.6rem; }
.sz-folder-name { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sz-folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 20px; }

/* ---------- 6. 文件网格 / 列表 ---------- */
.sz-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 16px; }
@media (max-width: 560px) { .sz-grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; } }

.sz-card {
  position: relative; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-s);
  transition: transform .2s cubic-bezier(.2,.9,.3,1.1), box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column;
}
.sz-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--accent); }
.sz-card.picked { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-m); }
.sz-card-body { display: flex; flex-direction: column; height: 100%; color: inherit; }
.sz-card-body:hover { color: inherit; }
.sz-card-preview {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tint) 22%, var(--card)), var(--card-2));
  overflow: hidden;
}
.sz-card-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sz-card-emoji { font-size: 2.5rem; filter: drop-shadow(0 6px 12px rgba(0,0,0,.14)); }
.sz-card-preview.has-thumb .sz-card-emoji { display: none; }
.sz-card-meta { padding: 12px 13px 6px; flex: 1; }
.sz-card-name {
  font-size: .9rem; font-weight: 600; margin: 0 0 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  word-break: break-all; line-height: 1.45;
}
.sz-card-sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .74rem; color: var(--muted); }
.sz-card-acts {
  display: flex; gap: 6px; padding: 0 13px 12px; opacity: 0; transition: opacity .18s;
}
.sz-card:hover .sz-card-acts, .sz-card.picked .sz-card-acts { opacity: 1; }
@media (hover: none) { .sz-card-acts { opacity: 1; } }
.sz-mini {
  border: 1px solid var(--border); background: var(--card-2); border-radius: 9px;
  padding: 4px 9px; font-size: .82rem; cursor: pointer; color: var(--text-2);
  text-decoration: none; line-height: 1.5;
}
.sz-mini:hover { border-color: var(--accent); color: var(--accent-deep); }
.sz-card-check { position: absolute; top: 8px; left: 8px; z-index: 3; cursor: pointer; }
.sz-card-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.sz-card-check span {
  display: block; width: 20px; height: 20px; border-radius: 7px;
  border: 2px solid var(--border); background: var(--card);
  transition: background .16s, border-color .16s;
}
.sz-card-check input:checked + span { background: var(--accent); border-color: var(--accent); }
.sz-card-check input:checked + span::after { content: "✓"; color: #fff; font-size: .72rem; display: block; text-align: center; line-height: 16px; }
.sz-card-check input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }

/* 列表视图 */
.sz-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-s); }
table.sz-table { width: 100%; border-collapse: collapse; font-size: .89rem; }
table.sz-table th, table.sz-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border-2); }
table.sz-table th { font-weight: 600; color: var(--muted); font-size: .8rem; white-space: nowrap; background: var(--card-2); }
table.sz-table tbody tr:last-child td { border-bottom: 0; }
table.sz-table tbody tr:hover { background: var(--card-2); }
table.sz-table .cell-name { display: flex; align-items: center; gap: 9px; min-width: 0; }
table.sz-table .cell-name a { color: inherit; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.sz-table .cell-name .em { font-size: 1.2rem; }
table.sz-table .ops { display: flex; gap: 8px; white-space: nowrap; }
table.sz-table .ops a, table.sz-table .ops button { font-size: .82rem; }

/* 分页 */
.sz-pager { display: flex; align-items: center; gap: 5px; justify-content: center; margin: 26px 0 8px; flex-wrap: wrap; }
.sz-page-btn {
  min-width: 34px; height: 34px; padding: 0 10px; display: inline-grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--border); background: var(--card);
  color: var(--text-2); font-size: .88rem;
}
.sz-page-btn:hover { border-color: var(--accent); color: var(--accent-deep); }
.sz-page-btn.on { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; border-color: transparent; font-weight: 600; }
.sz-page-btn.disabled { opacity: .4; pointer-events: none; }
.sz-page-gap { color: var(--muted); }

/* ---------- 7. 上传页 ---------- */
.sz-drop {
  border: 2px dashed var(--border); border-radius: var(--radius-l);
  background: var(--card); padding: 40px 24px; text-align: center;
  transition: border-color .2s, background .2s, transform .2s; cursor: pointer;
}
.sz-drop:hover { border-color: var(--accent); }
.sz-drop.over { border-color: var(--accent); background: var(--accent-soft); transform: scale(1.008); }
.sz-drop-emoji { font-size: 3.4rem; margin-bottom: 10px; animation: sz-float 3s ease-in-out infinite; }
.sz-drop h2 { font-size: 1.16rem; margin-bottom: 6px; }
.sz-drop p { color: var(--muted); font-size: .88rem; margin: 0 0 16px; }
.sz-drop-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.sz-uplist { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.sz-upitem {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-s);
}
.sz-upitem-emoji { font-size: 1.4rem; flex-shrink: 0; }
.sz-upitem-main { flex: 1; min-width: 0; }
.sz-upitem-name { font-size: .9rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sz-upitem-sub { font-size: .76rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.sz-progress { height: 7px; border-radius: 99px; background: var(--bg-deco); overflow: hidden; margin-top: 7px; }
.sz-progress > i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  border-radius: 99px; transition: width .2s ease-out;
}
.sz-progress.done > i { background: var(--ok); }
.sz-progress.err > i { background: var(--err); }
.sz-upitem-state { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.sz-upitem.ok .sz-upitem-state { color: var(--ok); }
.sz-upitem.err .sz-upitem-state { color: var(--err); }
.sz-up-summary { display: flex; gap: 16px; flex-wrap: wrap; font-size: .86rem; color: var(--text-2); margin-top: 14px; }

/* 选项区 */
.sz-opts { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; }
.sz-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .88rem; color: var(--text-2); }
.sz-switch input { position: absolute; opacity: 0; }
.sz-switch i {
  width: 40px; height: 22px; border-radius: 99px; background: var(--border); position: relative;
  transition: background .2s; flex-shrink: 0;
}
.sz-switch i::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.sz-switch input:checked + i { background: var(--accent); }
.sz-switch input:checked + i::after { transform: translateX(18px); }

/* ---------- 8. 预览器 ---------- */
.sz-viewer-wrap { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-s); overflow: hidden; }
.sz-viewer-bar {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  border-bottom: 1px solid var(--border); background: var(--card-2); flex-wrap: wrap;
}
.sz-viewer-bar .t { flex: 1; min-width: 0; font-weight: 600; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sz-viewer-main { background: var(--card-2); }
.sz-viewer-img { display: grid; place-items: center; min-height: 320px; padding: 18px; background: repeating-conic-gradient(var(--bg-deco) 0% 25%, transparent 0% 50%) 50% / 22px 22px; overflow: auto; max-height: 78vh; }
.sz-viewer-img img { max-width: 100%; max-height: 74vh; border-radius: 8px; box-shadow: var(--shadow-m); transition: transform .2s; transform-origin: center center; cursor: zoom-in; }
.sz-viewer-img img.zoomed { cursor: zoom-out; }
.sz-viewer-media { padding: 16px; display: grid; place-items: center; background: #0d0a0f; }
.sz-viewer-media video, .sz-viewer-media audio { width: 100%; max-width: 100%; border-radius: 10px; }
.sz-viewer-media audio { width: min(560px, 100%); }

/* 自绘音频播放器 */
.sz-audio { width: min(560px, 100%); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-s); }
.sz-audio-title { font-size: .9rem; font-weight: 600; margin-bottom: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sz-audio-wave { height: 64px; display: flex; align-items: flex-end; gap: 2px; margin-bottom: 12px; }
.sz-audio-wave i { flex: 1; background: var(--border); border-radius: 2px; transition: background .18s; min-height: 3px; }
.sz-audio-wave i.on { background: linear-gradient(180deg, var(--accent), var(--accent-deep)); }
.sz-audio-bar { display: flex; align-items: center; gap: 12px; font-size: .8rem; color: var(--muted); }
.sz-audio-bar .sz-range { flex: 1; }
.sz-range { -webkit-appearance: none; appearance: none; height: 6px; border-radius: 99px; background: var(--border); outline: none; }
.sz-range::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.sz-range::-moz-range-thumb { width: 15px; height: 15px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 2px solid #fff; }
.sz-audio-btns { display: flex; gap: 8px; align-items: center; margin-top: 12px; }

/* 文本 / 代码 */
.sz-textbar { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--border); background: var(--card); flex-wrap: wrap; font-size: .82rem; color: var(--muted); }
.sz-codewrap { position: relative; overflow: auto; max-height: 76vh; background: var(--card-2); }
.sz-textview {
  margin: 0; padding: 18px 20px; font-family: var(--mono); font-size: .86rem; line-height: 1.65;
  white-space: pre; tab-size: 4; color: var(--text); overflow-x: auto;
}
.sz-textview.wrap { white-space: pre-wrap; word-break: break-word; }
.sz-textview.with-ln { padding-left: 0; }
.sz-line { display: flex; }
.sz-line:hover { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.sz-line .ln {
  flex-shrink: 0; width: 58px; text-align: right; padding-right: 14px;
  color: var(--muted); opacity: .65; user-select: none; font-size: .8em;
}
.sz-line .lc { flex: 1; padding-right: 18px; white-space: inherit; }

/* Markdown 渲染 */
.sz-md { padding: 26px 30px; max-width: 900px; margin: 0 auto; line-height: 1.85; font-size: .96rem; }
.sz-md > *:first-child { margin-top: 0; }
.sz-md h1, .sz-md h2, .sz-md h3, .sz-md h4, .sz-md h5, .sz-md h6 { margin: 1.6em 0 .6em; font-weight: 700; line-height: 1.35; }
.sz-md h1 { font-size: 1.72rem; padding-bottom: .3em; border-bottom: 2px solid var(--border); }
.sz-md h2 { font-size: 1.4rem; padding-bottom: .28em; border-bottom: 1px dashed var(--border); }
.sz-md h3 { font-size: 1.16rem; }
.sz-md h4 { font-size: 1.02rem; }
.sz-md h5, .sz-md h6 { font-size: .94rem; color: var(--text-2); }
.sz-md a { border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.sz-md strong { color: var(--text); }
.sz-md blockquote {
  margin: 1.1em 0; padding: 10px 18px; border-left: 4px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 var(--radius-s) var(--radius-s) 0; color: var(--text-2);
}
.sz-md blockquote > *:last-child { margin-bottom: 0; }
.sz-md code {
  background: var(--bg-deco); padding: .16em .42em; border-radius: 6px;
  font-size: .88em; color: var(--accent-deep); word-break: break-word;
}
.sz-md pre {
  background: #f6f8fa; border: 1px solid var(--border); border-radius: var(--radius-s);
  padding: 15px 18px; overflow-x: auto; line-height: 1.6; margin: 1.1em 0;
}
html[data-theme="dark"] .sz-md pre, html.dark .sz-md pre { background: #1c1a20; border-color: #33303a; }
.sz-md pre code { background: none; padding: 0; color: inherit; font-size: .86rem; }
.sz-md ul, .sz-md ol { padding-left: 1.6em; margin: .8em 0; }
.sz-md li { margin: .3em 0; }
.sz-md li > ul, .sz-md li > ol { margin: .3em 0; }
.sz-md .md-task-list { list-style: none; padding-left: .4em; }
.sz-md .md-task-list input { margin-right: .5em; accent-color: var(--accent); }
.sz-md table.md-table, .sz-md table { border-collapse: collapse; width: 100%; margin: 1.1em 0; font-size: .9rem; }
.sz-md table th, .sz-md table td { border: 1px solid var(--border); padding: 8px 12px; }
.sz-md table th { background: var(--card-2); font-weight: 600; }
.sz-md hr { border: none; border-top: 2px dashed var(--border); margin: 1.8em 0; }
.sz-md img.md-img { max-width: 100%; border-radius: var(--radius-s); box-shadow: var(--shadow-s); cursor: zoom-in; display: block; margin: 1em 0; }
.sz-md .md-foot { color: var(--muted); font-size: .84rem; }

/* HTML 沙箱 */
.sz-htmlframe { width: 100%; height: 74vh; border: 0; background: #fff; display: block; }
.sz-html-note { padding: 9px 14px; font-size: .8rem; color: var(--muted); background: var(--card-2); border-top: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }

/* PDF */
.sz-pdfframe { width: 100%; height: 78vh; border: 0; background: #525659; display: block; }

/* ---------- 9. 详情 / 分享 ---------- */
.sz-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
@media (max-width: 940px) { .sz-detail-grid { grid-template-columns: 1fr; } }
.sz-side { display: flex; flex-direction: column; gap: 16px; }
.sz-info-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.sz-info-table th, .sz-info-table td { padding: 8px 4px; border-bottom: 1px dashed var(--border); text-align: left; vertical-align: top; }
.sz-info-table th { color: var(--muted); font-weight: 500; width: 86px; white-space: nowrap; }
.sz-info-table tr:last-child th, .sz-info-table tr:last-child td { border-bottom: 0; }
.sz-qr { text-align: center; }
.sz-qr img { width: 170px; height: 170px; border-radius: 12px; background: #fff; padding: 6px; }

.sz-lockbox { max-width: 420px; margin: 60px auto; text-align: center; }
.sz-lockbox .sz-lock-emoji { font-size: 3rem; margin-bottom: 10px; }

/* 分享页 */
.sz-share-hero { text-align: center; padding: 34px 20px; }
.sz-share-hero .em { font-size: 3.2rem; }
.sz-share-box { max-width: 430px; margin: 0 auto; }
.sz-share-code-input { text-align: center; font-size: 1.4rem; letter-spacing: .34em; font-family: var(--mono); text-transform: uppercase; }

/* 登录页 */
.sz-auth { max-width: 420px; margin: 40px auto; }
.sz-auth .sz-brand-logo { margin: 0 auto 10px; display: grid; place-items: center; }
.sz-auth-tabs { display: flex; gap: 6px; margin-bottom: 18px; justify-content: center; }
.sz-auth-tabs button { border: 0; background: none; font-family: inherit; font-size: .92rem; color: var(--muted); padding: 6px 14px; border-radius: 99px; cursor: pointer; }
.sz-auth-tabs button.on { background: var(--accent-soft); color: var(--accent-deep); font-weight: 600; }

/* ---------- 10. 后台 ---------- */
.sz-admin-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 22px; }
.sz-admin-nav a {
  padding: 8px 16px; border-radius: 99px; background: var(--card);
  border: 1px solid var(--border); font-size: .88rem; color: var(--text-2);
}
.sz-admin-nav a.on { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; border-color: transparent; font-weight: 600; }
.sz-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 24px; }
.sz-stat {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow-s); position: relative; overflow: hidden;
}
.sz-stat b { display: block; font-size: 1.6rem; color: var(--accent-deep); line-height: 1.2; }
.sz-stat span { font-size: .82rem; color: var(--muted); }
.sz-stat .em { position: absolute; right: 12px; top: 8px; font-size: 2.2rem; opacity: .16; }
.sz-bars { display: flex; align-items: flex-end; gap: 4px; height: 130px; padding: 10px 0; }
.sz-bars > div { flex: 1; background: linear-gradient(180deg, var(--accent), var(--accent-deep)); border-radius: 4px 4px 0 0; min-height: 3px; position: relative; }
.sz-bars > div:hover::after {
  content: attr(data-tip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  background: var(--text); color: var(--card); font-size: .72rem; padding: 3px 8px; border-radius: 6px; white-space: nowrap;
}
.sz-table-form .sz-input { padding: 7px 11px; font-size: .88rem; }

/* ---------- 11. 脚注 / 其它 ---------- */
.sz-footer { border-top: 1px solid var(--border); padding: 26px 0 34px; margin-top: 40px; color: var(--muted); font-size: .84rem; }
.sz-footer-inner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; text-align: center; }
.sz-footer-paw { animation: sz-float 3.6s ease-in-out infinite; }
.sz-totop {
  position: fixed; right: 20px; bottom: 22px; z-index: 80;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--card); color: var(--accent-deep); cursor: pointer; font-size: 1.1rem;
  box-shadow: var(--shadow-m); opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s;
}
.sz-totop.show { opacity: 1; pointer-events: auto; }
.sz-totop:hover { transform: translateY(-3px); }

.sz-spin { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: sz-rot .7s linear infinite; vertical-align: -3px; }
@keyframes sz-rot { to { transform: rotate(360deg); } }

.sz-loading-line { height: 3px; background: var(--accent-soft); overflow: hidden; position: fixed; top: 0; left: 0; right: 0; z-index: 300; }
.sz-loading-line::after { content: ""; display: block; width: 34%; height: 100%; background: var(--accent); animation: sz-slide 1.1s ease-in-out infinite; }
@keyframes sz-slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }

@media print {
  .sz-header, .sz-footer, .sz-totop, .sz-nav, .sz-toolbar, .sz-viewer-bar { display: none !important; }
}

/* =====================================================================
 * 12. 自定义外观（背景图 / 底部栏 / 网易云音乐挂件）
 * ===================================================================== */

/* 背景图层：用负 z-index 压在内容下面、页面底色上面 */
.sz-bg-layer {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity .35s ease;
}
.sz-bg-layer.sz-bg-fixed { background-attachment: fixed; }

/* 页脚自定义导航（图标 + 文字 + 链接） */
.sz-footer-links {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 14px;
}
.sz-footer-links a, .sz-footer-links span {
  font-size: .85rem; color: var(--text-2);
  padding: 5px 14px; border-radius: 99px;
  background: var(--card-2); border: 1px solid var(--border);
  transition: border-color .18s, color .18s, transform .18s;
}
.sz-footer-links a:hover { border-color: var(--accent); color: var(--accent-deep); transform: translateY(-1px); }

/* 音乐播放器挂件（小雫播放器 / 网易云官方 iframe 两种模式） */
.sz-music {
  position: fixed; z-index: 95; bottom: 18px;
  width: var(--mw, 330px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-l);
  overflow: hidden;
  font-size: .86rem;
}
.sz-music-bottom-right { right: 18px; }
.sz-music-bottom-left  { left: 18px; }

/* 头部：封面 + 歌名歌手 + 一排按钮 */
.sz-music-bar {
  display: flex; align-items: center; gap: 5px;
  padding: 7px 10px;
  background: linear-gradient(135deg, var(--accent-soft), var(--card));
}
.sz-music-cover {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  background: var(--bg-deco); overflow: hidden; display: grid; place-items: center;
  font-size: .9rem;
}
.sz-music-cover::before { content: "🎵"; }
.sz-music-cover img { width: 100%; height: 100%; object-fit: cover; display: none; }
.sz-music-cover img[src]:not([src=""]) { display: block; }
.sz-music-titles { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.28; cursor: pointer; }
.sz-music-title {
  font-size: .82rem; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sz-music-titles:hover .sz-music-title { color: var(--accent-deep); }
.sz-music-artist {
  font-style: normal; font-size: .7rem; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sz-music-idx { font-size: .7rem; color: var(--muted); flex-shrink: 0; }
.sz-music-btn {
  border: 0; background: transparent; cursor: pointer; flex-shrink: 0;
  font-size: .82rem; line-height: 1; color: var(--text-2);
  padding: 5px 5px; border-radius: 8px; transition: background .16s, color .16s;
  font-family: inherit;
}
.sz-music-btn:hover { background: var(--accent-soft); color: var(--accent-deep); }
.sz-music-btn.on { background: var(--accent-soft); color: var(--accent-deep); font-weight: 700; }
.sz-music-play { font-size: 1rem; color: var(--accent-deep); }

/* 进度条 */
.sz-music-progress {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 12px 8px; font-size: .7rem; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.sz-music-seeker { flex: 1; min-width: 40px; }
.sz-music-cur, .sz-music-dur { flex-shrink: 0; }
.sz-music-volwrap { display: flex; align-items: center; gap: 3px; flex-shrink: 0; }
.sz-music-vol { width: 52px; }
@media (max-width: 400px) { .sz-music-volwrap { display: none; } }

/* 歌词 / 歌单两个面板 */
.sz-music-body {
  max-height: 196px; overflow: hidden;
  border-top: 1px solid var(--border);
  transition: max-height .3s ease;
}
.sz-music-lyric, .sz-music-list { display: none; max-height: 196px; overflow-y: auto; }
.sz-music[data-panel="lyric"] .sz-music-lyric { display: block; }
.sz-music[data-panel="list"]  .sz-music-list  { display: block; }

.sz-music-lyric { padding: 6px 0; }
.sz-music-lyric .sz-ml-line {
  margin: 0; padding: 4px 14px; color: var(--muted);
  font-size: .79rem; line-height: 1.5;
  transition: color .2s ease, transform .2s ease;
  transform-origin: left center;
}
.sz-music-lyric .sz-ml-line i { display: block; font-style: normal; font-size: .71rem; opacity: .72; }
.sz-music-lyric .sz-ml-line.on { color: var(--accent-deep); font-weight: 600; transform: scale(1.02); }

.sz-music-list { padding: 5px 0; }
.sz-ml-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  border: 0; background: none; cursor: pointer; text-align: left;
  padding: 6px 14px; font-family: inherit; font-size: .8rem; color: var(--text-2);
  transition: background .16s;
}
.sz-ml-item:hover { background: var(--accent-soft); }
.sz-ml-item.on { color: var(--accent-deep); font-weight: 600; }
.sz-ml-no { width: 14px; text-align: center; color: var(--muted); font-size: .72rem; flex-shrink: 0; }
.sz-ml-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sz-ml-artist { color: var(--muted); font-size: .72rem; max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sz-ml-dur { color: var(--muted); font-size: .7rem; flex-shrink: 0; }
.sz-music-empty { padding: 18px 14px; text-align: center; color: var(--muted); font-size: .8rem; margin: 0; }

/* 播放器本体（audio 或官方 iframe） */
.sz-music-player { border-top: 1px solid var(--border); background: var(--card-2); }
.sz-music-frame { display: block; border: 0; }
.sz-music[data-mode-now="native"] .sz-music-player { display: none; }   /* audio 本身不需要占位 */

/* 折叠 */
.sz-music.folded .sz-music-body,
.sz-music.folded .sz-music-progress,
.sz-music.folded .sz-music-player { display: none; }

@media (max-width: 560px) {
  .sz-music { width: min(94vw, var(--mw, 330px)); }
  .sz-music-frame { width: 100% !important; }
}

/* 播放器存在时，让回到顶部按钮往上让一让 */
body:has(.sz-music-bottom-right) .sz-totop { bottom: 126px; }
body:has(.sz-music-bottom-left)  .sz-totop { bottom: 24px; }

/* ---------- 后台歌单编辑 ---------- */
.sz-pl-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; margin-bottom: 6px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--card-2); font-size: .86rem;
}
.sz-pl-no { width: 20px; color: var(--muted); font-size: .78rem; text-align: center; flex-shrink: 0; }
.sz-pl-name {
  flex: 1; min-width: 0; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sz-pl-artist { color: var(--muted); max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sz-pl-dur { color: var(--muted); font-variant-numeric: tabular-nums; flex-shrink: 0; }
