/* =========================================================
   Q你一下 · 曲库 —— 简约清新主题 v2
   白卡片 + 浅灰底 + 青碧点缀，轻量圆角、柔和阴影
   底部导航：手机端 Tab 栏 / 电脑端悬浮胶囊 Dock（自适应）
   ========================================================= */

:root {
    --brand:        #0d9488;
    --brand-600:    #0f766e;
    --brand-400:    #2dd4bf;
    --brand-grad:   linear-gradient(135deg, #14b8a6 0%, #0ea5e9 60%, #6366f1 100%);
    --brand-soft:   #ccfbf1;
    --brand-ghost:  #f0fdfa;
    --sky:          #0ea5e9;

    --bg:           #f7f8fa;
    --bg-grad:      linear-gradient(180deg, #eefbf7 0%, #f8fafb 240px, #f7f8fa 560px);
    --card:         #ffffff;
    --line:         #e4e7ec;
    --line-soft:    #f2f4f7;

    --text:         #101828;
    --text-2:       #475467;
    --muted:        #667085;
    --muted-2:      #98a2b3;

    --danger:       #e5484d;
    --warn:         #d97706;
    --ok:           #0d9488;
    --gold:         #d97706;

    --r-s:          10px;
    --r-m:          12px;
    --r-l:          16px;
    --r-xl:         20px;

    --sh-1:         0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .04);
    --sh-2:         0 4px 14px rgba(16, 24, 40, .08), 0 2px 6px rgba(16, 24, 40, .04);
    --sh-3:         0 16px 44px rgba(16, 24, 40, .12);

    --nav-h:        64px;
    --maxw:         1120px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background-color: #f6f8fb;
    background-image:
        radial-gradient(1000px 520px at 10% -6%, rgba(20, 184, 166, .16), transparent 60%),
        radial-gradient(900px 480px at 92% 0%, rgba(99, 102, 241, .13), transparent 62%),
        radial-gradient(820px 520px at 50% 112%, rgba(14, 165, 233, .12), transparent 65%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; line-height: 1.3; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--brand-soft); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #d3dee6; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #bfcdd8; }
::-webkit-scrollbar-track { background: transparent; }

:focus-visible { outline: 2px solid rgba(13, 148, 136, .45); outline-offset: 2px; }

/* ================= 布局 ================= */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 16px; }
/* 注意：只设置上下内边距，左右内边距由 .wrap / .wrap-narrow 提供 */
/* 底部导航悬浮，需要留出安全距离，避免内容被 Dock 遮挡 */
.page { padding-top: 20px; padding-bottom: 28px; }
.page-admin { padding-top: 22px; padding-bottom: 60px; }

.grid { display: grid; gap: 16px; }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* 歌单广场：搜索居中 */
.discover-search {
    display: flex; justify-content: center; gap: 8px; margin: 6px auto 22px;
    max-width: 520px;
}
.discover-search .input { flex: 1; min-width: 0; height: 44px; }
.discover-search .btn { height: 44px; padding: 0 24px; flex: 0 0 auto; white-space: nowrap; }
.discover-grid { padding: 0 2px; }

.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row-wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

.mt-4 { margin-top: 4px; }  .mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; } .mt-28 { margin-top: 28px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; } .mb-20 { margin-bottom: 20px; }

.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.bold { font-weight: 700; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp-2 {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.hidden { display: none !important; }

/* ================= 顶部导航 ================= */
.nav {
    position: sticky; top: 0; z-index: 60;
    height: var(--nav-h);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 0;
}
.nav::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(20, 184, 166, .35) 30%, rgba(99, 102, 241, .3) 70%, transparent);
}
.nav-inner {
    position: relative;
    max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
    height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.nav-guest { display: flex; align-items: center; gap: 8px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: .2px; color: var(--text); }
.brand-logo {
    width: 36px; height: 36px; border-radius: 11px; flex: 0 0 auto;
    background: var(--brand-grad); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; box-shadow: 0 4px 12px rgba(13, 148, 136, .28);
}
.brand-sub { font-size: 12px; color: var(--muted); font-weight: 500; }

.nav-search { flex: 1; max-width: 420px; position: relative; }
.nav-search input {
    width: 100%; height: 42px; padding: 0 14px 0 40px;
    border: 1px solid var(--line); border-radius: 999px;
    background: #fff; outline: none;
    transition: border-color .18s, box-shadow .18s;
}
.nav-search input:focus { border-color: var(--brand-400); box-shadow: 0 0 0 3px rgba(13, 148, 136, .12); }
.nav-search .ico {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    color: var(--muted-2); font-size: 14px; pointer-events: none;
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
    padding: 9px 13px; border-radius: 10px; font-size: 14px; font-weight: 600;
    color: var(--text-2); transition: background .18s, color .18s; white-space: nowrap;
}
.nav-link:hover { color: var(--brand-600); background: var(--brand-ghost); }
.nav-link.active { color: var(--brand-600); background: var(--brand-ghost); }

.nav-user { position: relative; }
.nav-avatar {
    width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
    background: var(--brand-ghost); border: 1px solid var(--line); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--brand-600); font-weight: 700; font-size: 14px; overflow: hidden;
    transition: box-shadow .18s, border-color .18s;
}
.nav-avatar:hover { border-color: var(--brand-400); box-shadow: 0 0 0 3px rgba(13, 148, 136, .1); }
.nav-menu {
    position: absolute; right: 0; top: calc(100% + 12px); min-width: 176px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-m);
    box-shadow: var(--sh-3); padding: 8px; z-index: 70; display: none;
}
.nav-menu.open { display: block; animation: pop .16s ease; }
.nav-menu a {
    display: flex; align-items: center; gap: 9px;
    padding: 10px 12px; border-radius: 10px; font-size: 14px; color: var(--text-2);
    transition: background .18s, color .18s;
}
.nav-menu a:hover { color: var(--brand-600); background: var(--brand-ghost); }
.nav-menu .sep { height: 1px; background: var(--line); margin: 6px 6px; }

.nav-toggle {
    display: none; width: 38px; height: 38px; border: 1px solid var(--line); background: #fff;
    border-radius: 11px;
    font-size: 19px; cursor: pointer; color: var(--text-2);
    align-items: center; justify-content: center;
}
.nav-toggle:hover { background: var(--brand-ghost); color: var(--brand-600); }

/* ================= 底部导航（全端可见） ================= */
.tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: block;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid var(--line);
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
}
.tabbar-inner { display: flex; max-width: 520px; margin: 0 auto; }
.tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 7px 0; font-size: 11px; color: var(--muted); font-weight: 600;
    border-radius: 12px; margin: 0 2px; transition: color .16s, background .16s;
}
.tabbar a .ti { font-size: 20px; line-height: 1; transition: transform .18s; }
.tabbar a.active { color: var(--brand-600); }
.tabbar a.active .ti { transform: translateY(-1px) scale(1.08); }

/* 电脑端：悬浮胶囊 Dock */
@media (min-width: 768px) {
    .tabbar {
        left: 50%; right: auto; bottom: 20px; transform: translateX(-50%);
        width: auto;
        border: 1px solid rgba(255, 255, 255, .8);
        border-radius: 999px;
        padding: 8px 10px;
        background: rgba(255, 255, 255, .88);
        box-shadow: 0 12px 36px rgba(16, 24, 40, .14), 0 2px 8px rgba(16, 24, 40, .06), inset 0 1px 0 rgba(255,255,255,.9);
    }
    .tabbar-inner { max-width: none; gap: 2px; }
    .tabbar a {
        flex: 0 0 auto; min-width: 104px;
        flex-direction: row; justify-content: center; gap: 8px;
        padding: 9px 16px; font-size: 13.5px; margin: 0;
        border-radius: 999px;
    }
    .tabbar a .ti { font-size: 17px; }
    .tabbar a:hover { color: var(--brand-600); background: var(--brand-ghost); }
    .tabbar a.active {
        color: #fff; background: var(--brand-grad);
        box-shadow: 0 4px 14px rgba(13, 148, 136, .32);
    }
    .tabbar a.active .ti { transform: none; }
    .tabbar a.active:hover { color: #fff; background: var(--brand-grad); }
}

/* ================= 卡片 ================= */
.card {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--r-l); padding: 20px; box-shadow: var(--sh-1);
}
.card-pad-sm { padding: 15px; }
.card-hover { transition: transform .2s, box-shadow .2s, border-color .2s; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: #dbe6e4; }

.card-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; margin-bottom: 14px;
}
.card-title {
    font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 7px;
    padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line-soft);
}

.sec-title {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin: 26px 0 14px;
}
.sec-title h2 {
    font-size: 19px; font-weight: 800; letter-spacing: .2px;
    position: relative; padding-left: 14px;
}
.sec-title h2::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 4px; height: 18px; border-radius: 4px; background: var(--brand-grad);
}
.sec-title .sub { font-size: 13px; color: var(--muted); font-weight: 500; flex: 0 0 auto; }

/* ================= 按钮 ================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 42px; padding: 0 20px; border: 0; border-radius: 11px;
    background: var(--brand-grad); color: #fff; font-weight: 600; font-size: 14.5px;
    cursor: pointer; transition: filter .18s, box-shadow .18s, transform .1s, background .18s;
    box-shadow: 0 1px 2px rgba(13, 148, 136, .22), 0 3px 10px rgba(13, 148, 136, .14);
    white-space: nowrap;
}
.btn:hover { filter: brightness(1.04); box-shadow: 0 2px 4px rgba(13, 148, 136, .22), 0 6px 16px rgba(13, 148, 136, .18); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 2px rgba(13, 148, 136, .2); }
.btn[disabled], .btn.loading { opacity: .55; pointer-events: none; box-shadow: none; }

.btn-ghost {
    background: #fff; color: var(--text-2); box-shadow: none; border: 1px solid var(--line);
}
.btn-ghost:hover { color: var(--brand-600); border-color: var(--brand-400); background: var(--brand-ghost); box-shadow: none; filter: none; }
.btn-ghost:active { transform: translateY(1px); }
.btn-soft { background: var(--brand-ghost); color: var(--brand-600); box-shadow: none; border: 1px solid #d3f2ec; }
.btn-soft:hover { background: var(--brand-soft); border-color: var(--brand-400); box-shadow: none; filter: none; }
.btn-danger { background: #fff; color: var(--danger); border: 1px solid #f3d3d5; box-shadow: none; }
.btn-danger:hover { background: #fef4f4; border-color: #ea9fa2; box-shadow: none; filter: none; }
.btn-sm { height: 36px; padding: 0 15px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { height: 50px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-icon {
    width: 38px; height: 38px; padding: 0; border-radius: 11px;
    background: #fff; border: 1px solid var(--line); color: var(--text-2);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; transition: color .18s, border-color .18s, background .18s;
}
.btn-icon:hover { color: var(--brand-600); border-color: var(--brand-400); background: var(--brand-ghost); }

/* ================= 表单 ================= */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.input, .select, .textarea {
    width: 100%; height: 44px; padding: 0 15px;
    border: 1px solid var(--line); border-radius: 11px; background: #fff;
    outline: none; transition: border-color .18s, box-shadow .18s;
}
.textarea { height: auto; min-height: 92px; padding: 13px 16px; resize: vertical; line-height: 1.6; }
.select { appearance: none; -webkit-appearance: none; padding-right: 38px;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237a8b9a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 15px center;
}
.input:focus, .select:focus, .textarea:focus {
    border-color: var(--brand-400); box-shadow: 0 0 0 3px rgba(13, 148, 136, .12);
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input-group { display: flex; gap: 10px; }
.input-group .input { flex: 1; }

.checkbox { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--brand); cursor: pointer; }

/* 开关 */
.switch { position: relative; display: inline-block; width: 52px; height: 30px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
    position: absolute; inset: 0; cursor: pointer; background: #e3eaef;
    border-radius: 999px; transition: background .2s;
}
.switch .slider::before {
    content: ''; position: absolute; width: 22px; height: 22px; left: 4px; top: 4px;
    background: #fff; border-radius: 50%; transition: transform .2s;
    box-shadow: 0 2px 6px rgba(16, 24, 40, .18);
}
.switch input:checked + .slider { background: var(--brand-grad); }
.switch input:checked + .slider::before { transform: translateX(22px); }

.form-hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.form-error { font-size: 12.5px; color: var(--danger); margin-top: 5px; }

/* ================= 徽章 / 标签 ================= */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700;
    background: var(--brand-ghost); color: var(--brand-600); line-height: 1.7;
}
.badge-gold { background: #fff7ed; color: #b45309; }
.badge-gray { background: #f2f4f7; color: #667085; }
.badge-red  { background: #fef2f2; color: #b42318; }
.badge-blue { background: #f0f9ff; color: #0369a1; }
.badge-purple { background: #f5f3ff; color: #6d28d9; }

.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }

/* ================= 歌单卡片 ================= */
.pl-card {
    position: relative; background: var(--card); border: 1px solid var(--line);
    border-radius: var(--r-l); overflow: hidden; box-shadow: var(--sh-1);
    transition: transform .25s cubic-bezier(.2,.9,.3,1), box-shadow .25s, border-color .25s;
}
.pl-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(16, 24, 40, .12), 0 4px 10px rgba(16, 24, 40, .05); border-color: #cfe4e0; }
.pl-cover {
    position: relative; aspect-ratio: 1 / 1;
    background: var(--cover-grad, linear-gradient(150deg, #ccfbf1, #dbeafe));
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.pl-cover::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(120% 90% at 18% -10%, rgba(255,255,255,.5), transparent 55%),
        radial-gradient(90% 70% at 108% 108%, rgba(255,255,255,.25), transparent 60%);
    pointer-events: none;
}
.pl-cover img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.pl-cover .ph { font-size: 44px; opacity: .95; filter: drop-shadow(0 4px 10px rgba(0,0,0,.16)); position: relative; z-index: 1; }
.pl-cover .count {
    position: absolute; right: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px;
    background: rgba(16, 24, 40, .5); color: #fff; font-size: 11.5px; font-weight: 600;
    backdrop-filter: blur(6px); display: flex; align-items: center; gap: 3px; z-index: 2;
}
.pl-body { padding: 12px 14px 15px; }
.pl-import { margin-top: 9px; width: 100%; }
.pl-title { font-weight: 700; font-size: 14.5px; line-height: 1.4; }
.pl-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.pl-lock {
    position: absolute; left: 10px; top: 10px; padding: 3px 9px; border-radius: 999px;
    background: rgba(255, 255, 255, .92); font-size: 11px; font-weight: 700; color: var(--text-2);
    box-shadow: 0 2px 8px rgba(16, 24, 40, .12); z-index: 2;
}

/* ================= 歌曲行 ================= */
.song-list { display: flex; flex-direction: column; }
.song-row {
    position: relative;
    display: flex; align-items: center; gap: 10px; padding: 13px 15px;
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--r-m); margin-bottom: 12px;
    box-shadow: var(--sh-1);
    transition: box-shadow .18s, transform .18s, border-color .18s;
}
.song-row:last-child { margin-bottom: 0; }
.song-row:hover { box-shadow: var(--sh-2); border-color: #dbe6e4; transform: translateY(-1px); }
.song-row.playing { border-color: var(--brand-400); box-shadow: 0 0 0 3px rgba(13, 148, 136, .12); }
.song-idx {
    width: 28px; flex: 0 0 auto; text-align: center; font-size: 13px;
    color: var(--muted-2); font-variant-numeric: tabular-nums;
}
.song-pic {
    width: 46px; height: 46px; flex: 0 0 auto; border-radius: 12px; overflow: hidden;
    background: linear-gradient(150deg, #f0fdfa, #eef6ff);
    border: 1px solid var(--line-soft);
    display: flex; align-items: center; justify-content: center; color: var(--muted-2);
}
.song-pic img { width: 100%; height: 100%; object-fit: cover; }
.song-main { flex: 1 1 auto; min-width: 0; }
.song-head {
    display: flex; align-items: center; gap: 8px;
    padding-right: 34px; /* 让位右上角 ⚙ */
}
.song-name { font-weight: 600; font-size: 14.5px; flex: 1; min-width: 0; }
.song-tags { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.song-sub { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.song-ops { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
/* 歌单内每首歌下方的小歌词框（始终显示，可下滑查看） */
.song-lyric-mini {
    margin: 0 12px 10px 52px; padding: 8px 10px;
    background: var(--brand-ghost);
    border: 1px solid #d9f4ee; border-radius: 10px;
    max-height: 76px; overflow-y: auto;
    font-size: 12.5px; line-height: 1.7; color: #3f5a56;
}
.song-lyric-mini .lyric-line { padding: 1px 0; word-break: break-word; }
.song-lyric-empty { padding: 2px 0; font-size: 12.5px; color: var(--muted); }
.song-play {
    width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer; flex: 0 0 auto;
    background: #fff; color: var(--brand-600); font-size: 13px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: transform .12s, border-color .15s, background .15s;
}
.song-play:hover { border-color: var(--brand-400); background: var(--brand-ghost); }
.song-play:active { transform: scale(.92); }
.song-play.is-playing { color: #fff; background: var(--brand-grad); border-color: transparent; }
.song-dur { font-size: 12.5px; color: var(--muted-2); font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.song-seg {
    flex: 0 0 auto; font-size: 11.5px; color: var(--brand-600); background: var(--brand-ghost);
    border: 1px solid #d9f4ee; border-radius: 999px; padding: 2px 10px; font-variant-numeric: tabular-nums;
}
/* 剪辑歌词（每首歌卡片内显示的片段歌词） */
.song-clip-lyric {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 8; overflow: hidden;
    margin-top: 6px; font-size: 12.5px; line-height: 1.7; color: var(--brand-600);
    background: var(--brand-ghost); border-radius: var(--r-s); padding: 9px 13px;
    border: 1px solid #e2f5f0;
    width: 100%;
    box-sizing: border-box;
}

/* 片段选择弹窗 */
.seg-song { font-weight: 700; font-size: 15px; margin-bottom: 12px; }

.seg-preview { margin-top: 10px; }
.seg-preview-label { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.seg-preview-text {
    font-size: 13.5px; line-height: 1.6; color: var(--text); padding: 10px 12px;
    background: var(--brand-ghost); border-radius: var(--r-s);
    border: 1px solid #d9f4ee; border-left: 3px solid var(--brand-400);
}

.seg-lyric {
    margin-top: 10px; max-height: 260px; overflow: auto;
    border: 1px solid var(--line); border-radius: var(--r-m); padding: 6px; background: #fff;
}
.seg-line {
    display: flex; align-items: center; gap: 10px; padding: 8px 11px; border-radius: 10px;
    font-size: 13.5px; color: var(--text-2); cursor: pointer; transition: background .14s, color .14s;
}
.seg-line:hover { color: var(--brand-600); background: var(--brand-ghost); }
.seg-line.sel { color: var(--brand-600); font-weight: 600; background: var(--brand-ghost); }
.seg-t { flex: 0 0 auto; width: 44px; text-align: right; color: #94a3b8; font-variant-numeric: tabular-nums; font-size: 12px; }
.seg-line.sel .seg-t, .seg-line.head .seg-t, .seg-line.tail .seg-t { color: var(--brand-600); }
.seg-text { flex: 1 1 auto; min-width: 0; }
.seg-flag {
    flex: 0 0 auto; min-width: 20px; height: 18px; line-height: 18px; text-align: center;
    font-size: 11px; font-weight: 700; border-radius: 6px; color: #fff; opacity: 0;
}
.seg-line.head { background: #e7f6ef; color: #1f8a5b; }
.seg-line.head .seg-flag { opacity: 1; background: #1f8a5b; }
.seg-line.tail { background: #fdeede; color: #c2720c; }
.seg-line.tail .seg-flag { opacity: 1; background: #e08a16; }

/* 拖动排序手柄 */
.drag-handle, .seg-handle { cursor: grab; color: var(--muted); }

/* ================= 播放器 ================= */
.player {
    display: none !important; /* 底部播放框已按要求隐藏，播放直接在列表行内按钮控制 */
}
.player-bar { max-width: var(--maxw); margin: 0 auto; padding: 9px 16px; display: flex; align-items: center; gap: 12px; }
.player-pic {
    width: 46px; height: 46px; border-radius: 12px; overflow: hidden; flex: 0 0 auto;
    background: linear-gradient(135deg, #d9fbf4, #e0f2fe);
    display: flex; align-items: center; justify-content: center; color: var(--muted-2); cursor: pointer;
}
.player-pic img { width: 100%; height: 100%; object-fit: cover; }
.player-info { flex: 1; min-width: 0; }
.player-name { font-weight: 700; font-size: 14px; }
.player-artist { font-size: 12.5px; color: var(--muted); }
.player-ctrls { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.pbtn {
    width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--brand-grad); color: #fff; display: flex; align-items: center;
    justify-content: center; font-size: 14px; box-shadow: 0 3px 10px rgba(13, 148, 136, .3);
    transition: transform .12s;
}
.pbtn:active { transform: scale(.94); }
.pbtn.plain { background: #fff; color: var(--text-2); border: 1px solid var(--line); box-shadow: none; }
.player-progress { height: 3px; background: var(--line-soft); cursor: pointer; }
.player-progress .fill { height: 100%; width: 0; background: var(--brand-grad); transition: width .12s linear; }

/* 歌词面板 */
.lyric-panel {
    position: fixed; inset: 0; z-index: 90; display: none;
    background: linear-gradient(170deg, #f2fdfa, #f4f9ff 60%, #f7f4ff);
}
.lyric-panel.show { display: flex; flex-direction: column; }
.lyric-head {
    display: flex; align-items: center; gap: 12px; padding: 16px 18px;
}
.lyric-body {
    flex: 1; overflow-y: auto; padding: 16px 22px 40px; text-align: center;
    -webkit-overflow-scrolling: touch;
}
.lyric-line {
    padding: 13px 16px; font-size: 18px; line-height: 1.9; color: #3f5c58;
    border-radius: 12px; cursor: pointer;
    transition: color .2s, background .2s, transform .2s, font-size .2s;
}
.lyric-line:hover { color: #0f766e; }
.lyric-line.active {
    color: #0b5e57; font-weight: 800; font-size: 21px;
    background: linear-gradient(135deg, #d7fbf4, #dbeefe);
    transform: scale(1.04);
    box-shadow: 0 6px 20px rgba(45, 212, 191, .18);
}
.lyric-empty { color: var(--muted); padding: 40px 0; }

/* ================= 表格（后台） ================= */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-m); }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
table.table th, table.table td { padding: 11px 12px; text-align: left; }
table.table th {
    background: #f8fafb; color: var(--text-2); font-weight: 700; font-size: 13px;
    white-space: nowrap; border-bottom: 1px solid var(--line);
}
table.table td { border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.table tbody tr:hover { background: #fafcfc; }
table.table td.nowrap, table.table th.nowrap { white-space: nowrap; }

/* ================= 统计卡片 ================= */
.stat-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m);
    padding: 17px 18px; box-shadow: var(--sh-1);
}
.stat .label { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.stat .value { font-size: 24px; font-weight: 800; margin-top: 4px; line-height: 1.2; }
.stat .value small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 3px; }
.stat.accent .value { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 地区分布条 */
.dist-item { margin-bottom: 12px; }
.dist-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.dist-track { height: 10px; background: #eef2f5; border-radius: 999px; overflow: hidden; }
.dist-fill { height: 100%; background: var(--brand-grad); border-radius: 999px; min-width: 2px; }

/* ================= 套餐卡 ================= */
.plan {
    position: relative; display: flex; flex-direction: column; gap: 8px;
    border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px;
    background: var(--card); box-shadow: var(--sh-1); cursor: pointer;
    transition: box-shadow .18s, transform .14s, border-color .18s; overflow: hidden;
}
.plan:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: #dbe6e4; }
.plan.active { border-color: var(--brand-400); box-shadow: 0 0 0 3px rgba(13, 148, 136, .12); }
.plan-badge {
    position: absolute; right: 0; top: 0; background: linear-gradient(135deg, #fbbf24, #fb7185);
    color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 0 0 0 12px;
}
.plan-name { font-size: 16px; font-weight: 800; }
.plan-desc { font-size: 12.5px; color: var(--muted); }
.plan-price { font-size: 26px; font-weight: 800; color: var(--brand-600); line-height: 1.1; margin-top: auto; }
.plan-price small { font-size: 13px; font-weight: 600; color: var(--muted); }
.plan-check {
    position: absolute; left: 16px; top: 16px; width: 22px; height: 22px; border-radius: 50%;
    background: #eef2f5;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; color: transparent;
}
.plan.active .plan-check { background: var(--brand-grad); color: #fff; }
.plan-with-check { padding-left: 46px; }

/* ================= 模态框 ================= */
.modal {
    position: fixed; inset: 0; z-index: 100; display: none;
    align-items: center; justify-content: center; padding: 16px;
    background: rgba(15, 23, 42, .4); backdrop-filter: blur(4px);
}
.modal.show { display: flex; }
.modal-box {
    background: #fff; border-radius: var(--r-xl); width: 100%; max-width: 440px;
    max-height: 86vh; overflow-y: auto; box-shadow: var(--sh-3);
    animation: pop .22s cubic-bezier(.2, .9, .3, 1);
}
@keyframes pop { from { transform: translateY(16px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head {
    padding: 20px 22px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.modal-head h3 { font-size: 17px; }
.modal-body { padding: 16px 22px; }
.modal-foot {
    padding: 0 22px 22px; display: flex; gap: 10px; justify-content: flex-end;
}
.modal-close {
    width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
    color: var(--text-2); cursor: pointer; font-size: 15px; line-height: 1;
}
.modal-close:hover { color: var(--danger); border-color: #f3d3d5; }

/* ================= Toast ================= */
.toast-box {
    position: fixed; left: 50%; transform: translateX(-50%); bottom: 96px; z-index: 200;
    display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none;
}
.toast {
    padding: 11px 20px; border-radius: 12px; background: rgba(19, 33, 46, .88); color: #fff;
    font-size: 14px; font-weight: 600; box-shadow: var(--sh-2);
    animation: toastIn .24s ease; max-width: 88vw; text-align: center;
    backdrop-filter: blur(6px);
}
.toast.ok { color: #a7f3d0; }
.toast.err { color: #fecdd3; }
.toast.warn { color: #fde68a; }
@keyframes toastIn { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

/* 顶部横幅提示（后台保存成功等） */
.alert {
    padding: 13px 17px; border-radius: var(--r-m); font-size: 14px; margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px; background: #fff;
    border: 1px solid var(--line); border-left: 4px solid var(--brand);
}
.alert-ok { color: #047857; border-left-color: #10b981; background: #f6fefa; border-color: #d8f3e6; }
.alert-err { color: #b42318; border-left-color: #f43f5e; background: #fffafa; border-color: #f6d9dd; }
.alert-warn { color: #b45309; border-left-color: #f59e0b; background: #fffcf5; border-color: #f8e7c8; }
.alert-info { color: #0f766e; border-left-color: #14b8a6; background: #f5fdfb; border-color: #d3f2ec; }
.alert-danger { color: #b42318; border-left-color: #f43f5e; background: #fffafa; border-color: #f6d9dd; }
.alert-success { color: #047857; border-left-color: #10b981; background: #f6fefa; border-color: #d8f3e6; }

/* ================= 空状态 ================= */
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .emo {
    width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 24px;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px;
    background: linear-gradient(135deg, #e8fbf7 0%, #e9f2ff 55%, #f3efff 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 8px 20px rgba(99, 102, 241, .1);
}
.empty p { font-size: 14px; }

/* ================= 加载 ================= */
.spinner {
    width: 26px; height: 26px; border: 3px solid var(--brand-soft);
    border-top-color: var(--brand-400); border-radius: 50%;
    animation: spin .7s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-box { padding: 34px; text-align: center; }

/* ================= 分页 ================= */
.pager { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.pager a, .pager span {
    min-width: 38px; height: 38px; padding: 0 12px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); font-weight: 600;
}
.pager a:hover { color: var(--brand-600); border-color: var(--brand-400); background: var(--brand-ghost); }
.pager .current { background: var(--brand-grad); color: #fff; border-color: transparent; }

/* ================= Hero ================= */
.hero {
    position: relative; overflow: hidden; border-radius: var(--r-xl);
    padding: 38px 32px; margin-bottom: 6px; color: #fff;
    background: linear-gradient(135deg, #14b8a6 0%, #0ea5e9 55%, #6366f1 120%);
    border: 0; box-shadow: 0 18px 44px rgba(13, 148, 136, .28);
}
.hero::after {
    content: ''; position: absolute; right: -60px; top: -70px; width: 260px; height: 260px;
    border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.32), transparent 68%);
}
.hero::before {
    content: ''; position: absolute; left: -40px; bottom: -100px; width: 200px; height: 200px;
    border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%);
}
.hero h1 { font-size: 27px; letter-spacing: .3px; position: relative; color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.12); }
.hero p { margin-top: 8px; color: rgba(255,255,255,.92); position: relative; max-width: 520px; }
.hero-actions { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; position: relative; }

/* ================= 公告 ================= */
.announce {
    display: flex; align-items: center; gap: 10px; padding: 13px 16px;
    background: #fffbeb; border: 1px solid #f8e7c8; border-left: 4px solid #f59e0b;
    border-radius: var(--r-m); font-size: 13.5px; color: #9a3412; margin-bottom: 18px;
}

/* ================= 后台布局 ================= */
.admin-shell { display: flex; min-height: 100vh; }
.admin-side {
    width: 218px; flex: 0 0 auto; background: #fff; border-right: 1px solid var(--line);
    padding: 20px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-brand { display: flex; align-items: center; gap: 9px; padding: 0 8px 18px; font-weight: 800; color: var(--text); }
.admin-nav { display: flex; flex-direction: column; gap: 3px; }
.admin-nav .group-title { font-size: 11.5px; color: var(--muted-2); padding: 14px 10px 5px; font-weight: 700; letter-spacing: .5px; }
.admin-nav a {
    display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 10px;
    font-size: 14px; color: var(--text-2); font-weight: 600;
    transition: background .18s, color .18s;
}
.admin-nav a:hover { color: var(--brand-600); background: var(--brand-ghost); }
.admin-nav a.active { color: var(--brand-600); background: var(--brand-ghost); }
.admin-nav a .ic { width: 18px; text-align: center; font-size: 14px; }
.admin-main { flex: 1; min-width: 0; }
.admin-top {
    height: 60px; background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
    display: flex; align-items: center; gap: 12px; padding: 0 20px;
    position: sticky; top: 0; z-index: 40;
}
.admin-content { padding: 20px; }
.admin-title { font-size: 19px; font-weight: 800; }
.admin-sub { font-size: 13px; color: var(--muted); }

/* ================= 登录页 ================= */
.auth-shell {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 24px 16px 60px;
    background-color: #f6f8fb;
    background-image:
        radial-gradient(900px 480px at 12% -4%, rgba(20, 184, 166, .18), transparent 60%),
        radial-gradient(800px 440px at 90% 4%, rgba(99, 102, 241, .15), transparent 62%),
        radial-gradient(760px 480px at 50% 112%, rgba(14, 165, 233, .13), transparent 65%);
}
.auth-box { width: 100%; max-width: 400px; }
.auth-card {
    background: rgba(255, 255, 255, .92); border-radius: var(--r-xl); padding: 32px 28px;
    box-shadow: 0 24px 60px rgba(16, 24, 40, .14), 0 4px 12px rgba(16, 24, 40, .05);
    border: 1px solid rgba(255, 255, 255, .85);
    backdrop-filter: blur(12px);
}
.auth-head { text-align: center; margin-bottom: 24px; }
.auth-head .logo {
    width: 58px; height: 58px; border-radius: 17px; margin: 0 auto 14px;
    background: var(--brand-grad); color: #fff; display: flex; align-items: center;
    justify-content: center; font-size: 26px; box-shadow: 0 10px 26px rgba(13, 148, 136, .34);
}
.auth-head h1 { font-size: 21px; }
.auth-head p { color: var(--muted); font-size: 13.5px; margin-top: 5px; }
.tabs { display: flex; gap: 5px; background: #f2f5f7; padding: 5px; border-radius: 12px; margin-bottom: 20px; }
.tabs button {
    flex: 1; height: 38px; border: 0; background: transparent; border-radius: 9px;
    font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; transition: all .18s;
}
.tabs button.active { background: #fff; color: var(--brand-600); box-shadow: var(--sh-1); }
.auth-links { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-top: 16px; color: var(--muted); }
.auth-links a:hover { color: var(--brand); }
.auth-tip { text-align: center; font-size: 12.5px; color: var(--muted-2); margin-top: 20px; }

/* 验证码倒计时 */
.btn-code {
    height: 44px; padding: 0 16px; border-radius: 11px; border: 1px solid #d3f2ec;
    background: var(--brand-ghost); color: var(--brand-600); font-weight: 700; font-size: 13.5px;
    cursor: pointer; white-space: nowrap; flex: 0 0 auto;
}
.btn-code:hover { background: var(--brand-soft); }
.btn-code:disabled { color: var(--muted-2); border-color: var(--line); background: #f6f8f9; cursor: not-allowed; }

/* ================= 分享页 ================= */
.share-hero {
    border-radius: var(--r-xl); padding: 28px; color: #fff; position: relative; overflow: hidden;
    background: linear-gradient(135deg, #14b8a6, #0d9488 60%, #0f766e);
    box-shadow: 0 18px 44px rgba(11, 94, 89, .28);
}
.share-hero h1 { font-size: 24px; position: relative; }
.share-hero p { opacity: .92; margin-top: 6px; font-size: 13.5px; position: relative; }
.share-hero::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(120% 80% at 85% -10%, rgba(255,255,255,.25), transparent 60%);
}

/* 头像 */
.avatar {
    width: 42px; height: 42px; border-radius: 50%; object-fit: cover;
    background: var(--brand-ghost); border: 1px solid var(--line); display: inline-flex; align-items: center;
    justify-content: center; color: var(--brand-600); font-weight: 700; flex: 0 0 auto; overflow: hidden;
}
.avatar-lg { width: 68px; height: 68px; font-size: 22px; border-radius: 22px; }
.avatar-sm { width: 30px; height: 30px; font-size: 12px; }

/* ===== 首页：居中搜索 ===== */
.home-search {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 34px 20px 8px;
    text-align: center;
}
.home-hero-head { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 6px; }
.home-hero-logo {
    width: 64px; height: 64px; border-radius: 20px; margin-bottom: 6px;
    background: var(--brand-grad); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; box-shadow: 0 10px 26px rgba(13, 148, 136, .28);
}
.home-hero-head h1 { font-size: 24px; letter-spacing: .3px; }
.home-hero-head p { font-size: 14px; }
.home-search-box {
    width: 100%;
    max-width: 560px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 9px 9px 9px 18px;
    box-shadow: var(--sh-2);
    transition: border-color .18s, box-shadow .18s;
}
.home-search-box:focus-within { border-color: var(--brand-400); box-shadow: 0 0 0 4px rgba(13, 148, 136, .1); }
.home-search-icon { font-size: 18px; opacity: .6; }
.home-search-input {
    flex: 1;
    min-width: 0;
    border: 0 !important;
    background: transparent !important;
    height: 46px;
    padding: 0 !important;
    box-shadow: none !important;
}
.home-search-btn { height: 46px; padding: 0 24px; border-radius: 12px; white-space: nowrap; flex: 0 0 auto; }
.home-search-extra { display: flex; gap: 16px; align-items: center; font-size: 13.5px; }
.home-search-extra a { color: var(--brand-600); text-decoration: none; font-weight: 600; }
.home-search-extra .btn { font-weight: 600; }

/* 首页搜索结果（歌单列表） */
.home-results { width: 100%; max-width: 560px; margin-top: 4px; }
.home-results .empty { padding: 28px 0; box-shadow: none; }
.pl-row {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 12px 15px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-top: 12px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--sh-1);
    transition: box-shadow .18s, transform .18s, border-color .18s;
}
.pl-row:hover { box-shadow: var(--sh-2); border-color: #dbe6e4; transform: translateY(-1px); }
.pl-row-thumb {
    width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #ccfbf1, #dbeafe); font-size: 20px;
}
/* 首页搜索结果缩略图彩色渐变（按歌单 id 取模，共 10 组） */
.pl-row-thumb.ph { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.18); }
.pl-row-thumb.g0 { background: linear-gradient(135deg, #2dd4bf, #0ea5e9); }
.pl-row-thumb.g1 { background: linear-gradient(135deg, #fbbf24, #f472b6); }
.pl-row-thumb.g2 { background: linear-gradient(135deg, #a78bfa, #6366f1); }
.pl-row-thumb.g3 { background: linear-gradient(135deg, #34d399, #0d9488); }
.pl-row-thumb.g4 { background: linear-gradient(135deg, #f472b6, #8b5cf6); }
.pl-row-thumb.g5 { background: linear-gradient(135deg, #38bdf8, #2563eb); }
.pl-row-thumb.g6 { background: linear-gradient(135deg, #fb923c, #f43f5e); }
.pl-row-thumb.g7 { background: linear-gradient(135deg, #4ade80, #16a34a); }
.pl-row-thumb.g8 { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.pl-row-thumb.g9 { background: linear-gradient(135deg, #e879f9, #a855f7); }
.pl-row-main { flex: 1; min-width: 0; }
.pl-row-title { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-row-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.pl-row-go { font-size: 22px; color: var(--muted); flex: 0 0 auto; }

/* ===== 用户中心（渐变横幅资料卡） ===== */
.uc-head {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-xl);
    padding: 28px 26px;
    color: #fff;
    background: linear-gradient(135deg, #14b8a6 0%, #0ea5e9 52%, #6366f1 100%);
    border: 0;
    box-shadow: 0 18px 44px rgba(13, 148, 136, .26);
}
.uc-head::after {
    content: "";
    position: absolute; right: -70px; top: -90px;
    width: 260px; height: 260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.32), transparent 68%);
}
.uc-head::before {
    content: "";
    position: absolute; left: -50px; bottom: -110px;
    width: 220px; height: 220px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.16), transparent 70%);
}
.uc-head .uc-top { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; }
.uc-head .uc-info { flex: 1; min-width: 0; }
.uc-head .uc-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.uc-head .uc-name { font-size: 21px; font-weight: 800; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.12); }
.uc-head .uc-sub { font-size: 13px; color: rgba(255,255,255,.85); margin-top: 4px; }
.uc-head .uc-edit {
    margin-left: auto; position: relative; z-index: 1;
    background: rgba(255,255,255,.2); color: #fff;
    border: 1px solid rgba(255,255,255,.4); border-radius: 999px;
    padding: 9px 16px; font-size: 13px; text-decoration: none; font-weight: 700;
    backdrop-filter: blur(8px); transition: background .18s, border-color .18s;
}
.uc-head .uc-edit:hover { background: rgba(255,255,255,.32); border-color: rgba(255,255,255,.6); }
.uc-head .badge {
    background: rgba(255,255,255,.22) !important; color: #fff !important;
    border: 1px solid rgba(255,255,255,.35) !important;
    backdrop-filter: blur(6px);
}
.uc-avatar-lg {
    width: 66px; height: 66px; border-radius: 20px; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; font-weight: 800; color: #fff;
    background: rgba(255,255,255,.22);
    border: 2px solid rgba(255,255,255,.65);
    box-shadow: 0 8px 22px rgba(0,0,0,.16);
    overflow: hidden; backdrop-filter: blur(8px);
}
.uc-stats { margin-top: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; position: relative; z-index: 1; }
.uc-stat {
    background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
    border-radius: 12px; padding: 12px 14px;
    backdrop-filter: blur(8px);
}
.uc-stat .v { font-size: 20px; font-weight: 800; color: #fff; }
.uc-stat .l { font-size: 12px; color: rgba(255,255,255,.82); margin-top: 2px; }

/* 资料卡下方的快捷按钮（开通会员 / 设备管理 等） */
.uc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.uc-action {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 16px 12px; border-radius: 14px; text-decoration: none;
    font-weight: 700; font-size: 14.5px; color: var(--brand-600);
    background: #fff; border: 1px solid var(--line);
    transition: transform .14s, box-shadow .18s, border-color .18s, background .18s;
}
.uc-action .ic { font-size: 18px; }
.uc-action:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--brand-400); background: var(--brand-ghost); }
.uc-action:active { transform: translateY(0); }

/* ===== 添加歌曲：双库弹窗 ===== */
.lib-tabs { display: flex; gap: 8px; }
.lib-tab {
    flex: 1; padding: 11px 0; border: 1px solid var(--line); background: #fff;
    border-radius: 12px; font-weight: 700; font-size: 14px; color: var(--muted);
    cursor: pointer; transition: all .18s;
}
.lib-tab.active {
    background: var(--brand-grad); color: #fff; border-color: transparent;
    box-shadow: 0 4px 12px rgba(13, 148, 136, .22);
}
.lib-hint { margin-top: 10px; }
.lib-count {
    display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 4px;
    border-radius: 999px; background: rgba(255,255,255,.3); font-size: 12px; font-weight: 700;
}
.lib-tab:not(.active) .lib-count { background: var(--brand-ghost); color: var(--brand-600); }
.lib-tip {
    margin-top: 10px; padding: 12px 14px; border-radius: 12px;
    background: var(--brand-ghost); color: var(--brand-600); border: 1px solid #d9f4ee;
}
.lib-tip a { color: var(--brand-600); font-weight: 700; text-decoration: underline; }
#addResult { max-height: 46vh; overflow-y: auto; margin-top: 4px; }
.add-row { cursor: pointer; transition: box-shadow .15s, border-color .15s; }
.add-row:hover { border-color: var(--brand-400); box-shadow: var(--sh-1); }

/* 内部库列表项（复选批量） */
.lib-check { flex: 0 0 auto; display: flex; align-items: center; }
.lib-cb { width: 19px; height: 19px; accent-color: var(--brand); cursor: pointer; }
.lib-row { cursor: pointer; }
.lib-row.selected { border-color: var(--brand-400); background: var(--brand-ghost); }
.lib-row.selected .song-name { color: var(--brand-600); }
.lib-row.selected .lib-cb { accent-color: var(--brand-600); }

/* 加载更多 */
.lib-more { display: flex; justify-content: center; padding: 12px 0 4px; }

/* 内部库批量确认栏（吸底） */
.lib-batch-bar {
    position: sticky; bottom: 0; margin-top: 12px;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px 14px; border-radius: 13px;
    background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-2);
}
.lib-batch-bar .small { color: var(--muted); }
.lib-batch-bar #libSelCount { color: var(--brand-600); font-weight: 700; }

/* 歌词 / 片段详情 */
.lyric-pre {
    margin: 10px 0 0; padding: 14px 16px; max-height: 52vh; overflow: auto;
    background: #f8fafb; border: 1px solid var(--line); border-radius: 13px;
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Courier New", monospace;
    font-size: 13px; line-height: 1.7; color: var(--text-2); white-space: pre-wrap; word-break: break-word;
}

/* 歌曲卡片：升降调 / 快慢速 控件 */
.ps-btn { width: 30px; height: 30px; border: 1px solid var(--line); background: #fff; border-radius: 9px; font-size: 16px; line-height: 1; cursor: pointer; color: var(--text-2); display: flex; align-items: center; justify-content: center; padding: 0; }
.ps-btn:hover { color: var(--brand-600); border-color: var(--brand-400); background: var(--brand-ghost); }
.ps-val { min-width: 40px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14px; }
.song-set {
    position: absolute; top: 8px; right: 10px; z-index: 3;
    width: 27px; height: 27px; border-radius: 50%; border: 1px solid var(--line);
    cursor: pointer; flex: 0 0 auto; background: #fff; color: var(--muted);
    font-size: 14px; line-height: 1; display: flex; align-items: center; justify-content: center;
    transition: transform .12s, color .12s, border-color .15s, box-shadow .15s;
}
.song-row:hover .song-set { box-shadow: var(--sh-1); }
.song-set:hover { color: var(--brand-600); border-color: var(--brand-400); background: var(--brand-ghost); }
.song-set:active { transform: scale(.9); }
.ps-song { color: var(--text); }
.ps-block { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.ps-block:last-child { border-bottom: 0; }
.ps-block-label { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.ps-row { display: flex; align-items: center; gap: 10px; }
.ps-unit { font-size: 12px; color: var(--muted-2); margin-left: 4px; }

/* 首页版权声明提示框 */
.copyright-notice {
    display: flex; gap: 12px; align-items: flex-start;
    margin: 16px 0 6px; padding: 16px 18px;
    background: #fffbeb;
    border: 1px solid #f8e7c8; border-left: 4px solid #f59e0b;
    border-radius: 14px; color: #7c5a14; font-size: 13px; line-height: 1.65;
}
.copyright-notice .cn-icon { font-size: 20px; line-height: 1.4; flex: 0 0 auto; }
.copyright-notice .cn-body { flex: 1; min-width: 0; }
.copyright-notice .cn-title { font-weight: 700; color: #b45309; margin-bottom: 2px; }
.copyright-notice p { margin: 0; }
.copyright-notice a { color: #d97706; font-weight: 600; text-decoration: none; }
.copyright-notice a:hover { text-decoration: underline; }

/* ================= 响应式 ================= */
@media (max-width: 980px) {
    .admin-side { display: none; }
    .admin-side.open {
        display: block; position: fixed; left: 0; top: 0; bottom: 0; z-index: 90;
        width: 230px; box-shadow: 0 0 40px rgba(16, 34, 31, .18);
    }
    .admin-content { padding: 16px; }
}

@media (max-width: 760px) {
    body { font-size: 14.5px; }
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column; align-items: stretch; gap: 2px;
        position: absolute; top: var(--nav-h); left: 0; right: 0; z-index: 65;
        background: #fff; padding: 8px 12px 12px;
        border-bottom: 1px solid var(--line); box-shadow: var(--sh-2);
    }
    .nav-links.open .nav-link { padding: 11px 12px; font-size: 15px; }
    .nav-toggle { display: flex; align-items: center; justify-content: center; }
    .nav-search { max-width: none; }
    .page { padding-top: 16px; padding-bottom: 24px; }
    .uc-stats { grid-template-columns: repeat(2, 1fr); }
    .home-search { padding-top: 18px; }
    .home-hero-logo { width: 54px; height: 54px; font-size: 25px; border-radius: 16px; }
    .home-hero-head h1 { font-size: 21px; }
    .hero { padding: 26px 20px; border-radius: var(--r-l); }
    .hero h1 { font-size: 21px; }
    .grid-cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    .song-dur { display: none; }
    .song-seg.seg-time { display: none; }
    .song-clip-lyric { display: -webkit-box; }
    /* 没有剪辑歌词文本（老数据）时，手机端仍显示时间段徽标 */
    .song-row.no-seglyric .song-seg.seg-time { display: inline-block; }
    .song-row.no-seglyric .song-clip-lyric { display: none; }
    /* 剪辑弹窗在手机上改为底部抽屉，更好操作 */
    .modal { align-items: flex-end; padding: 0; }
    .modal-box { width: 100%; max-width: 100%; border-radius: 20px 20px 0 0; max-height: 92vh; }
    .player-bar { padding: 8px 12px; gap: 10px; }
    .player-pic { width: 40px; height: 40px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .sec-title h2 { font-size: 16.5px; }
    .discover-search { margin-top: 2px; }
    .uc-actions { gap: 10px; }
    .uc-action { padding: 13px 10px; font-size: 14px; }
    .uc-head { padding: 20px 18px; }
    .uc-head .uc-name { font-size: 20px; }
    .card { padding: 15px; border-radius: var(--r-m); }
    .admin-content { padding: 13px; }
    .admin-title { font-size: 17px; }
    .modal-box { max-height: 90vh; border-radius: 20px; }
    .toast-box { bottom: 88px; }
}

@media (max-width: 420px) {
    .grid-cards { grid-template-columns: repeat(2, 1fr); }
    .hero-actions .btn { flex: 1; }
    .stat .value { font-size: 21px; }
}

/* 电脑端（≥1100px）弹性留白，内容更舒展 */
@media (min-width: 1100px) {
    .wrap { padding: 0 28px; }
}

/* ===== 悬浮返回按钮（无底部 Tab 的独立流程页使用） ===== */
.float-back {
    position: fixed;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .72);
    background: rgba(255, 255, 255, .84);
    -webkit-backdrop-filter: blur(14px) saturate(1.5);
    backdrop-filter: blur(14px) saturate(1.5);
    box-shadow: var(--sh-2);
    color: var(--brand-600);
    cursor: pointer;
    z-index: 70;
    padding: 0;
    transition: transform .22s ease, box-shadow .22s ease, color .22s ease;
}
.float-back::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    background: var(--brand-grad);
    opacity: 0;
    transition: opacity .22s ease;
    z-index: -1;
}
.float-back:hover {
    transform: translateY(-3px);
    box-shadow: var(--sh-3);
    color: #fff;
    background: var(--brand-grad);
    border-color: transparent;
}
.float-back:active { transform: scale(.93); }
.float-back svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2.2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
@media (max-width: 520px) {
    .float-back { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: 48px; height: 48px; }
    .float-back svg { width: 20px; height: 20px; }
}

/* ===== 云盘片段标识（pan.zgyw.top） ===== */
.song-seg.pan-badge {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff; border-color: transparent;
    font-size: 11px; padding: 1px 6px; border-radius: 10px; margin-left: 4px; line-height: 1.6;
}
.lib-pan-tag {
    background: #3b82f6; color: #fff; font-size: 10px; padding: 0 5px;
    border-radius: 8px; margin-left: 4px; vertical-align: middle;
}
.lib-row-pan { border-left: 3px solid #3b82f6; }

/* ===== 裁剪上传遮罩（剪辑后推送云盘切片） ===== */
.clip-mask {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    background: rgba(8, 12, 24, .72);
}
.clip-mask-box { text-align: center; color: #fff; }
.clip-spinner {
    width: 46px; height: 46px; margin: 0 auto 16px; border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, .25); border-top-color: #3b82f6;
    animation: clipspin .9s linear infinite;
}
@keyframes clipspin { to { transform: rotate(360deg); } }
.clip-mask-text { font-size: 17px; font-weight: 600; }
.clip-mask-sub { margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.clip-progress { width: 240px; max-width: 70vw; height: 6px; margin: 16px auto 10px; background: rgba(255,255,255,.15); border-radius: 999px; overflow: hidden; }
.clip-progress-bar { width: 42%; height: 100%; border-radius: 999px; background: linear-gradient(90deg,#5b8cff,#36d399); animation: clipSlide 1.1s ease-in-out infinite; }
@keyframes clipSlide { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }

.lyric-box { background: rgba(91,140,255,.08); border-left: 3px solid #5b8cff; border-radius: 8px; padding: 10px 12px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }


/* ========== 歌曲卡片紧凑模式（无歌词）布局修正 ========== */
.song-row.no-seglyric .song-head { padding-right: 0; }
.song-row.no-seglyric .song-play { width: 32px; height: 32px; font-size: 12px; }
.song-row.no-seglyric .song-set {
    top: 50%; right: auto; transform: translateY(-50%);
    left: 36px; /* 序号右侧、▶ 左侧的空档，彻底分离 */
}
@media (max-width: 760px) {
    .song-row.no-seglyric .song-set { left: 30px; }
}
