/* =========================================================
   Q你一下 · 曲库 —— 浅色清新主题
   ========================================================= */

:root {
    --brand:        #0d9488;
    --brand-600:    #0f766e;
    --brand-400:    #2dd4bf;
    --sky:          #38bdf8;
    --brand-grad:   linear-gradient(135deg, #2dd4bf 0%, #38bdf8 100%);
    --brand-soft:   #ccfbf1;
    --brand-ghost:  #f0fdfa;

    --bg:           #f6faf9;
    --bg-grad:      linear-gradient(180deg, #eefbf7 0%, #f7fbfd 240px, #f6faf9 520px);
    --card:         #ffffff;
    --line:         #e8eef0;
    --line-soft:    #f1f5f5;

    --text:         #10221f;
    --text-2:       #44605c;
    --muted:        #8ba3a0;
    --muted-2:      #a9bcb9;

    --danger:       #f43f5e;
    --warn:         #f59e0b;
    --ok:           #10b981;
    --gold:         #f59e0b;

    --r-s:          10px;
    --r-m:          14px;
    --r-l:          20px;
    --r-xl:         26px;

    --sh-1:         0 1px 2px rgba(16, 34, 31, .04);
    --sh-2:         0 2px 8px rgba(16, 34, 31, .05), 0 10px 28px rgba(16, 34, 31, .05);
    --sh-3:         0 8px 30px rgba(13, 148, 136, .16);

    --nav-h:        62px;
    --maxw:         1180px;
}

* { 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: var(--bg-grad);
    background-color: var(--bg);
    background-attachment: fixed;
}

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: #d3e3e1; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #bfd6d4; }
::-webkit-scrollbar-track { background: transparent; }

/* ================= 布局 ================= */
.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 提供，
   不能用 padding 简写整体覆盖，否则会清掉左右留白 */
.page { padding-top: 20px; padding-bottom: 120px; }
.page-admin { padding-top: 22px; padding-bottom: 60px; }

.grid { display: grid; gap: 14px; }
.grid-cards { grid-template-columns: repeat(auto-fill, minmax(168px, 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, .82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line-soft);
}
.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: 9px; font-weight: 800; font-size: 17px; letter-spacing: .3px; }
.brand-logo {
    width: 32px; height: 32px; border-radius: 10px; flex: 0 0 auto;
    background: var(--brand-grad); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; box-shadow: 0 4px 12px rgba(45, 212, 191, .35);
}
.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: 40px; padding: 0 14px 0 38px;
    border: 1px solid var(--line); border-radius: 999px;
    background: #fbfefd; outline: none; transition: border-color .15s, box-shadow .15s;
}
.nav-search input:focus { border-color: var(--brand-400); box-shadow: 0 0 0 3px rgba(45, 212, 191, .14); }
.nav-search .ico {
    position: absolute; left: 13px; 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: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 600;
    color: var(--text-2); transition: background .15s, color .15s; white-space: nowrap;
}
.nav-link:hover { background: var(--brand-ghost); color: var(--brand); }
.nav-link.active { background: var(--brand-ghost); color: var(--brand-600); }

.nav-user { position: relative; }
.nav-avatar {
    width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
    background: var(--brand-soft); border: 2px solid #fff; cursor: pointer;
    box-shadow: var(--sh-1); display: flex; align-items: center; justify-content: center;
    color: var(--brand-600); font-weight: 700; font-size: 14px; overflow: hidden;
}
.nav-menu {
    position: absolute; right: 0; top: calc(100% + 10px); min-width: 168px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-m);
    box-shadow: var(--sh-2); padding: 6px; z-index: 70; display: none;
}
.nav-menu.open { display: block; }
.nav-menu a {
    display: flex; align-items: center; gap: 9px;
    padding: 9px 11px; border-radius: 9px; font-size: 14px; color: var(--text-2);
}
.nav-menu a:hover { background: var(--brand-ghost); color: var(--brand-600); }
.nav-menu .sep { height: 1px; background: var(--line-soft); margin: 5px 4px; }

.nav-toggle {
    display: none; width: 36px; height: 36px; border: 0; background: transparent;
    font-size: 20px; cursor: pointer; color: var(--text-2);
}

/* ================= 底部 Tab（移动端） ================= */
.tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: none;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line-soft);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.tabbar-inner { display: flex; }
.tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 5px 0; font-size: 11px; color: var(--muted); font-weight: 600;
}
.tabbar a .ti { font-size: 19px; line-height: 1; }
.tabbar a.active { color: var(--brand); }

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

.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: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--line-soft);
}

.sec-title {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin: 28px 0 14px;
}
.sec-title h2 {
    font-size: 19px; font-weight: 800; letter-spacing: .2px;
    position: relative; padding-left: 13px;
}
.sec-title h2::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 4px; height: 18px; border-radius: 3px; 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: 40px; padding: 0 18px; border: 0; border-radius: 12px;
    background: var(--brand-grad); color: #fff; font-weight: 700; font-size: 14.5px;
    cursor: pointer; transition: filter .15s, transform .1s, box-shadow .15s;
    box-shadow: 0 4px 14px rgba(45, 212, 191, .3); white-space: nowrap;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.loading { opacity: .55; pointer-events: none; }

.btn-ghost {
    background: #fff; color: var(--text-2); border: 1px solid var(--line); box-shadow: none;
}
.btn-ghost:hover { background: var(--brand-ghost); color: var(--brand-600); border-color: #bfdfdb; }
.btn-soft { background: var(--brand-soft); color: var(--brand-600); box-shadow: none; }
.btn-soft:hover { background: #b8f5ea; }
.btn-danger { background: #fff; color: var(--danger); border: 1px solid #fecdd3; box-shadow: none; }
.btn-danger:hover { background: #fff1f2; }
.btn-sm { height: 34px; padding: 0 13px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { height: 48px; padding: 0 26px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-icon {
    width: 36px; height: 36px; padding: 0; border-radius: 10px;
    background: #fff; border: 1px solid var(--line); color: var(--text-2);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: none; transition: background .15s, color .15s;
}
.btn-icon:hover { background: var(--brand-ghost); color: var(--brand); }

/* ================= 表单 ================= */
.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 14px;
    border: 1px solid var(--line); border-radius: 12px; background: #fbfefd;
    outline: none; transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 88px; padding: 11px 14px; resize: vertical; line-height: 1.6; }
.select { appearance: none; -webkit-appearance: none; padding-right: 34px;
    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='%238ba3a0' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 13px center;
}
.input:focus, .select:focus, .textarea:focus {
    border-color: var(--brand-400); box-shadow: 0 0 0 3px rgba(45, 212, 191, .14);
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }

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

/* 开关 */
.switch { position: relative; display: inline-block; width: 48px; height: 27px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
    position: absolute; inset: 0; cursor: pointer; background: #d7e5e3;
    border-radius: 999px; transition: background .2s;
}
.switch .slider::before {
    content: ''; position: absolute; width: 21px; height: 21px; left: 3px; top: 3px;
    background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: var(--sh-1);
}
.switch input:checked + .slider { background: var(--brand-grad); }
.switch input:checked + .slider::before { transform: translateX(21px); }

.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: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700;
    background: var(--brand-soft); color: var(--brand-600); line-height: 1.7;
}
.badge-gold { background: #fef3c7; color: #b45309; }
.badge-gray { background: #f1f5f5; color: var(--muted); }
.badge-red  { background: #ffe4e6; color: #be123c; }
.badge-blue { background: #e0f2fe; color: #0369a1; }
.badge-purple { background: #ede9fe; color: #6d28d9; }

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

/* ================= 歌单卡片 ================= */
.pl-card {
    position: relative; background: #fff; border: 1px solid var(--line-soft);
    border-radius: var(--r-l); overflow: hidden; box-shadow: var(--sh-1);
    transition: transform .16s, box-shadow .16s;
}
.pl-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.pl-cover {
    position: relative; aspect-ratio: 1 / 1; background: linear-gradient(135deg, #d9fbf4, #e0f2fe);
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.pl-cover img { width: 100%; height: 100%; object-fit: cover; }
.pl-cover .ph { font-size: 34px; opacity: .5; }
.pl-cover .count {
    position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 999px;
    background: rgba(16, 34, 31, .58); color: #fff; font-size: 11.5px; font-weight: 600;
    backdrop-filter: blur(4px); display: flex; align-items: center; gap: 3px;
}
.pl-body { padding: 11px 13px 13px; }
.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: 8px; top: 8px; padding: 2px 7px; border-radius: 999px;
    background: rgba(255, 255, 255, .9); font-size: 11px; font-weight: 700; color: var(--text-2);
}

/* ================= 歌曲行 ================= */
.song-list { display: flex; flex-direction: column; }
.song-row {
    display: flex; align-items: center; gap: 12px; padding: 12px 14px;
    background: #fff; border: 1px solid var(--line-soft, #eef2f1);
    border-radius: var(--r-l, 14px); margin-bottom: 10px;
    transition: box-shadow .14s, border-color .14s;
}
.song-row:last-child { margin-bottom: 0; }
.song-row:hover { box-shadow: 0 4px 16px rgba(20, 40, 35, .07); border-color: var(--brand, #2a7a55); }
.song-row.playing { background: var(--brand-soft); border-color: var(--brand); }
.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: 44px; height: 44px; flex: 0 0 auto; border-radius: 10px; overflow: hidden;
    background: linear-gradient(135deg, #d9fbf4, #e0f2fe);
    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; min-width: 0; }
.song-name { font-weight: 600; font-size: 14.5px; }
.song-sub { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.song-ops { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 0 0 auto; }
/* 歌单内每首歌下方的小歌词框（始终显示，可下滑查看，滚动进视口自动加载） */
.song-lyric-mini {
    margin: 0 12px 10px 52px; padding: 8px 10px;
    background: var(--brand-ghost, #f6fbf9);
    border: 1px solid var(--line-soft, #eef2f1); border-radius: 10px;
    max-height: 76px; overflow-y: auto;
    font-size: 12.5px; line-height: 1.7; color: #4a5a56;
}
.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, #8a9a96); }
.song-play {
    width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; flex: 0 0 auto;
    background: var(--brand-grad); color: #fff; font-size: 13px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(45, 212, 191, .3); transition: transform .12s;
}
.song-play:active { transform: scale(.9); }
.song-play.is-playing { background: #ef6b6b; box-shadow: 0 2px 10px rgba(239, 107, 107, .4); }
.song-dur { font-size: 12.5px; color: var(--muted-2); font-variant-numeric: tabular-nums; min-width: 42px; text-align: right; }
.song-seg {
    flex: 0 0 auto; font-size: 11.5px; color: var(--brand-600); background: var(--brand-ghost);
    border: 1px solid #d7f0ec; border-radius: 999px; padding: 1px 8px; font-variant-numeric: tabular-nums;
}
/* 剪辑歌词（每首歌卡片内显示的片段歌词） */
.song-clip-lyric {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden;
    margin-top: 5px; font-size: 12px; line-height: 1.55; color: var(--brand-600);
    background: var(--brand-ghost, #f6fbf9); border-radius: var(--r-s, 8px); padding: 5px 9px;
}

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

.seg-preview { margin-top: 10px; }
.seg-preview-label { font-size: 12px; color: #94a3b8; margin-bottom: 4px; }
.seg-preview-text {
    font-size: 13.5px; line-height: 1.6; color: var(--text-1); padding: 8px 10px;
    background: #f3fbf8; border-radius: var(--r-s); border-left: 3px solid #34d399;
}

.seg-lyric {
    margin-top: 10px; max-height: 260px; overflow: auto; border: 1px solid var(--line-soft);
    border-radius: var(--r-m); padding: 6px; background: #fcfefd;
}
.seg-line {
    display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px;
    font-size: 13.5px; color: var(--text-2); cursor: pointer; transition: background .12s, color .12s;
}
.seg-line:hover { background: var(--brand-ghost); color: var(--brand-600); }
.seg-line.sel { background: var(--brand-soft); color: var(--brand-600); font-weight: 600; }
.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; }

/* ================= 播放器 ================= */
.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(45, 212, 191, .32);
    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, #eefbf7, #f0f9ff 60%, #fdf6ff);
}
.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, .22);
}
.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: var(--brand-ghost); 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: #fafdfc; }
table.table td.nowrap, table.table th.nowrap { white-space: nowrap; }

/* ================= 统计卡片 ================= */
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stat {
    background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-m);
    padding: 15px 16px; 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: 10px; }
.dist-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.dist-track { height: 8px; background: var(--line-soft); 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: 2px solid var(--line); border-radius: var(--r-l); padding: 18px;
    background: #fff; cursor: pointer; transition: border-color .16s, box-shadow .16s, transform .12s;
    overflow: hidden;
}
.plan:hover { transform: translateY(-2px); }
.plan.active { border-color: var(--brand-400); box-shadow: 0 8px 26px rgba(45, 212, 191, .22); background: linear-gradient(160deg, #fbfffe, #f0fdfa); }
.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: 14px; top: 14px; width: 20px; height: 20px; border-radius: 50%;
    border: 2px solid var(--line); display: flex; align-items: center; justify-content: center;
    font-size: 11px; color: transparent;
}
.plan.active .plan-check { background: var(--brand-grad); border-color: transparent; color: #fff; }
.plan-with-check { padding-left: 44px; }

/* ================= 模态框 ================= */
.modal {
    position: fixed; inset: 0; z-index: 100; display: none;
    align-items: center; justify-content: center; padding: 16px;
    background: rgba(16, 34, 31, .38); backdrop-filter: blur(3px);
}
.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: 0 24px 60px rgba(16, 34, 31, .22);
    animation: pop .2s cubic-bezier(.2, .9, .3, 1);
}
@keyframes pop { from { transform: translateY(14px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head {
    padding: 18px 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.modal-head h3 { font-size: 17px; }
.modal-body { padding: 14px 20px; }
.modal-foot {
    padding: 0 20px 20px; display: flex; gap: 10px; justify-content: flex-end;
}
.modal-close {
    width: 30px; height: 30px; border: 0; border-radius: 8px; background: var(--line-soft);
    color: var(--text-2); cursor: pointer; font-size: 15px; line-height: 1;
}

/* ================= Toast ================= */
.toast-box {
    position: fixed; left: 50%; transform: translateX(-50%); bottom: 88px; z-index: 200;
    display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none;
}
.toast {
    padding: 10px 18px; border-radius: 999px; background: rgba(16, 34, 31, .9); color: #fff;
    font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(16, 34, 31, .26);
    animation: toastIn .22s ease; max-width: 88vw; text-align: center;
}
.toast.ok { background: linear-gradient(135deg, #10b981, #14b8a6); }
.toast.err { background: linear-gradient(135deg, #f43f5e, #fb7185); }
.toast.warn { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
@keyframes toastIn { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* 顶部横幅提示（后台保存成功等） */
.alert {
    padding: 11px 15px; border-radius: var(--r-m); font-size: 14px; margin-bottom: 14px;
    display: flex; align-items: center; gap: 8px;
}
.alert-ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.alert-err { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; }
.alert-warn { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.alert-info { background: #f0fdfa; color: #0f766e; border: 1px solid #99f6e4; }

/* ================= 空状态 ================= */
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .emo { font-size: 42px; opacity: .6; margin-bottom: 10px; }
.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: 36px; height: 36px; padding: 0 10px; 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 { border-color: var(--brand-400); color: var(--brand-600); }
.pager .current { background: var(--brand-grad); color: #fff; border-color: transparent; }

/* ================= Hero ================= */
.hero {
    position: relative; overflow: hidden; border-radius: var(--r-xl);
    padding: 34px 28px; margin-bottom: 6px; color: #0b3b36;
    background: linear-gradient(125deg, #d9fbf4 0%, #e6f7ff 48%, #f3eeff 100%);
}
.hero::after {
    content: ''; position: absolute; right: -60px; top: -70px; width: 240px; height: 240px;
    border-radius: 50%; background: radial-gradient(circle, rgba(56, 189, 248, .16), transparent 68%);
}
.hero h1 { font-size: 26px; letter-spacing: .3px; position: relative; }
.hero p { margin-top: 7px; color: #3d6b66; position: relative; max-width: 520px; }
.hero-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; position: relative; }

/* ================= 公告 ================= */
.announce {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    background: linear-gradient(135deg, #fff7ed, #fef2f2); border: 1px solid #fed7aa;
    border-radius: var(--r-m); font-size: 13.5px; color: #9a3412; margin-bottom: 16px;
}

/* ================= 后台布局 ================= */
.admin-shell { display: flex; min-height: 100vh; }
.admin-side {
    width: 214px; flex: 0 0 auto; background: #fff; border-right: 1px solid var(--line-soft);
    padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-brand { display: flex; align-items: center; gap: 9px; padding: 0 8px 16px; font-weight: 800; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav .group-title { font-size: 11.5px; color: var(--muted-2); padding: 12px 10px 5px; font-weight: 700; letter-spacing: .5px; }
.admin-nav a {
    display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 10px;
    font-size: 14px; color: var(--text-2); font-weight: 600;
}
.admin-nav a:hover { background: var(--brand-ghost); color: var(--brand); }
.admin-nav a.active { background: var(--brand-soft); color: var(--brand-600); }
.admin-nav a .ic { width: 18px; text-align: center; font-size: 14px; }
.admin-main { flex: 1; min-width: 0; background: var(--bg); }
.admin-top {
    height: 58px; background: #fff; border-bottom: 1px solid var(--line-soft);
    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: linear-gradient(160deg, #eefbf7 0%, #eff9ff 45%, #f7f3ff 100%);
}
.auth-box { width: 100%; max-width: 400px; }
.auth-card {
    background: #fff; border-radius: var(--r-xl); padding: 28px 26px;
    box-shadow: 0 20px 50px rgba(16, 34, 31, .09); border: 1px solid rgba(255,255,255,.8);
}
.auth-head { text-align: center; margin-bottom: 22px; }
.auth-head .logo {
    width: 54px; height: 54px; border-radius: 16px; margin: 0 auto 12px;
    background: var(--brand-grad); color: #fff; display: flex; align-items: center;
    justify-content: center; font-size: 25px; box-shadow: 0 8px 22px rgba(45, 212, 191, .38);
}
.auth-head h1 { font-size: 21px; }
.auth-head p { color: var(--muted); font-size: 13.5px; margin-top: 5px; }
.tabs { display: flex; gap: 4px; background: #f4f8f7; padding: 4px; border-radius: 12px; margin-bottom: 18px; }
.tabs button {
    flex: 1; height: 36px; border: 0; background: transparent; border-radius: 9px;
    font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; transition: all .15s;
}
.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: 14px; 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: 18px; }

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

/* ================= 分享页 ================= */
.share-hero {
    border-radius: var(--r-xl); padding: 24px; color: #fff; position: relative; overflow: hidden;
    background: linear-gradient(135deg, #14b8a6, #0ea5e9 60%, #8b5cf6);
}
.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: 40px; height: 40px; border-radius: 50%; object-fit: cover;
    background: var(--brand-soft); 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: 66px; height: 66px; font-size: 22px; border-radius: 22px; }
.avatar-sm { width: 28px; height: 28px; font-size: 12px; }

/* ================= 响应式 ================= */
@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; }
    .tabbar { display: block; }
    body { padding-bottom: 0; }
    .page { padding-bottom: 84px; }
    .hero { padding: 26px 20px; border-radius: var(--r-l); }
    .hero h1 { font-size: 21px; }
    .grid-cards { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 11px; }
    .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: 76px; }
}

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

/* ===== 首页：居中搜索（替代原「我的歌单」网格） ===== */
.home-search {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 10px 20px 0;
    text-align: center;
}
.home-search-box {
    width: 100%;
    max-width: 560px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--line, #e3ece9);
    border-radius: 16px;
    padding: 8px 8px 8px 16px;
    box-shadow: var(--sh-1, 0 6px 20px rgba(31,84,59,.08));
}
.home-search-box:focus-within { border-color: var(--brand, #2a7a55); }
.home-search-icon { font-size: 18px; opacity: .6; }
.home-search-input {
    flex: 1;
    min-width: 0;
    border: 0 !important;
    background: transparent !important;
    height: 44px;
    padding: 0 !important;
    box-shadow: none !important;
}
.home-search-btn { height: 44px; padding: 0 22px; border-radius: 11px; 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, #2a7a55); 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: 12px;
    padding: 11px 13px;
    background: #fff;
    border: 1px solid var(--line, #e3ece9);
    border-radius: 13px;
    margin-top: 10px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--sh-1, 0 4px 14px rgba(31,84,59,.06));
    transition: border-color .15s, transform .15s;
}
.pl-row:hover { border-color: var(--brand, #2a7a55); transform: translateY(-1px); }
.pl-row-thumb {
    width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #d9fbf4, #e0f2fe); font-size: 20px;
}
.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, #7a948d); margin-top: 2px; }
.pl-row-go { font-size: 22px; color: var(--muted, #7a948d); flex: 0 0 auto; }

/* ===== 用户中心美化（清爽浅色资料卡，不使用绿色大底色） ===== */
.uc-head {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-l);
    padding: 24px 22px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--line-soft);
    box-shadow: var(--sh-1);
}
.uc-head::after {
    content: "";
    position: absolute; right: -50px; top: -50px;
    width: 160px; height: 160px; border-radius: 50%;
    background: var(--brand-soft);
    opacity: .55;
}
.uc-head .uc-top { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; }
.uc-head .uc-name { font-size: 22px; font-weight: 800; color: var(--text); }
.uc-head .uc-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.uc-head .uc-edit {
    margin-left: auto; position: relative; z-index: 1;
    background: var(--brand-soft); color: var(--brand-600);
    border: 1px solid #cdeee8; border-radius: 999px;
    padding: 7px 14px; font-size: 13px; text-decoration: none; font-weight: 700;
}
.uc-head .uc-edit:hover { background: #b8f5ea; }
.uc-avatar-lg {
    width: 64px; height: 64px; border-radius: 18px; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 800; color: #fff;
    background: var(--brand-grad);
}
.uc-stats { margin-top: 18px; display: flex; gap: 10px; position: relative; z-index: 1; flex-wrap: wrap; }
.uc-stat { flex: 1; min-width: 90px; background: var(--brand-ghost); border: 1px solid var(--line-soft); border-radius: 12px; padding: 10px 12px; }
.uc-stat .v { font-size: 20px; font-weight: 800; color: var(--text); }
.uc-stat .l { font-size: 12px; color: var(--muted); margin-top: 2px; }
.uc-head .badge { color: var(--brand-600) !important; background: var(--brand-soft) !important; border: 1px solid #cdeee8 !important; }

/* 资料卡下方的快捷按钮（开通会员 / 设备管理 等） */
.uc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.uc-action {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 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-soft); box-shadow: var(--sh-1);
    transition: transform .12s, box-shadow .15s, background .15s;
}
.uc-action .ic { font-size: 18px; }
.uc-action:hover { transform: translateY(-2px); box-shadow: var(--sh-2); background: var(--brand-ghost); }
.uc-action:active { transform: translateY(0); }

/* ===== 添加歌曲：双库弹窗（网络库 / 内部库） ===== */
.lib-tabs { display: flex; gap: 8px; }
.lib-tab {
    flex: 1; padding: 10px 0; border: 1px solid var(--line-soft); background: #fff;
    border-radius: 12px; font-weight: 700; font-size: 14px; color: var(--muted);
    cursor: pointer; transition: all .15s;
}
.lib-tab.active {
    background: var(--brand-grad); color: #fff; border-color: transparent; box-shadow: var(--sh-1);
}
.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,.28); font-size: 12px; font-weight: 700;
}
.lib-tab:not(.active) .lib-count { background: var(--brand-ghost, #f0fdfa); color: var(--brand, #2a7a55); }
.lib-tip {
    margin-top: 10px; padding: 10px 12px; border-radius: 10px;
    background: var(--brand-ghost, #f0fdfa); color: var(--brand, #2a7a55); border: 1px dashed var(--brand, #2a7a55);
}
.lib-tip a { color: var(--brand, #2a7a55); font-weight: 700; text-decoration: underline; }
#addResult { max-height: 46vh; overflow-y: auto; margin-top: 4px; }
.add-row { cursor: pointer; transition: border-color .15s, background .15s; }
.add-row:hover { border-color: var(--brand, #2a7a55); background: var(--brand-ghost, #f0fdfa); }

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

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

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

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

/* 歌曲卡片：升降调 / 快慢速 控件 */
.ps-btn { width: 28px; height: 28px; border: 1px solid var(--line, #e3e7e7); background: #fff; border-radius: 8px; font-size: 16px; line-height: 1; cursor: pointer; color: #33403e; display: flex; align-items: center; justify-content: center; padding: 0; }
.ps-btn:hover { border-color: var(--brand, #2a7a55); color: var(--brand, #2a7a55); }
.ps-btn:active { background: #f0fdfa; }
.ps-val { min-width: 40px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14px; }
.song-set { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line, #e3e7e7); cursor: pointer; flex: 0 0 auto; background: #fff; color: var(--muted, #8a9a96); font-size: 15px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: transform .12s, color .12s, border-color .12s; }
.song-set:hover { color: var(--brand, #2a7a55); border-color: var(--brand, #2a7a55); }
.song-set:active { transform: scale(.9); }
.ps-song { color: var(--ink, #243231); }
.ps-block { padding: 14px 0; border-bottom: 1px solid var(--line-soft, #eef2f1); }
.ps-block:last-child { border-bottom: 0; }
.ps-block-label { font-size: 13px; color: var(--muted, #8a9a96); margin-bottom: 10px; }
.ps-row { display: flex; align-items: center; gap: 10px; }
.ps-unit { font-size: 12px; color: var(--muted-2, #aab5b2); margin-left: 4px; }

/* 首页版权声明提示框 */
.copyright-notice {
    display: flex; gap: 12px; align-items: flex-start;
    margin: 14px 0 6px; padding: 14px 16px;
    background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
    border: 1px solid #fde68a; border-left: 4px solid #f59e0b;
    border-radius: 14px; color: #7c5a14; font-size: 13px; line-height: 1.65;
    box-shadow: 0 6px 18px rgba(245, 158, 11, .08);
}
.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; }
