/* ================= 全局 ================= */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'HarmonyOS Sans', 'Microsoft YaHei', sans-serif;
    color: #f1f5f9;
    min-height: 100vh;
    overflow-x: hidden;
    background: #0b1023;
}

/* ================= 动态极光背景 ================= */
.bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: linear-gradient(160deg, #0b1023 0%, #101b3c 45%, #1a1040 100%); }
.aurora {
    position: absolute; border-radius: 50%;
    filter: blur(90px); opacity: .55;
    animation: drift 18s ease-in-out infinite alternate;
}
.a1 { width: 55vw; height: 55vw; left: -15vw; top: -18vw;
      background: radial-gradient(circle, #6366f1 0%, transparent 65%); }
.a2 { width: 48vw; height: 48vw; right: -12vw; top: 8vh;
      background: radial-gradient(circle, #8b5cf6 0%, transparent 65%);
      animation-delay: -6s; }
.a3 { width: 42vw; height: 42vw; left: 28vw; bottom: -16vw;
      background: radial-gradient(circle, #06b6d4 0%, transparent 65%);
      animation-delay: -12s; }
@keyframes drift {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(4vw, 3vh) scale(1.12); }
    100% { transform: translate(-3vw, -4vh) scale(.94); }
}
.spark {
    position: absolute; border-radius: 50%; background: #fff;
    animation: floaty 9s ease-in-out infinite;
    box-shadow: 0 0 12px 2px rgba(255,255,255,.6);
}
.s1 { width: 6px; height: 6px; left: 8%; top: 22%; }
.s2 { width: 4px; height: 4px; left: 22%; top: 66%;  animation-delay: -2s; }
.s3 { width: 5px; height: 5px; left: 72%; top: 18%;  animation-delay: -4s; }
.s4 { width: 7px; height: 7px; left: 86%; top: 60%;  animation-delay: -1s; }
.s5 { width: 4px; height: 4px; left: 46%; top: 8%;   animation-delay: -5.5s; }
.s6 { width: 5px; height: 5px; left: 60%; top: 84%;  animation-delay: -3s; }
@keyframes floaty {
    0%, 100% { transform: translateY(0) translateX(0); opacity: .25; }
    50%      { transform: translateY(-26px) translateX(14px); opacity: .9; }
}

/* ================= 顶栏 ================= */
.top {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    max-width: 900px; margin: 0 auto; padding: 20px 18px 14px;
    position: sticky; top: 0; z-index: 40;
    background: linear-gradient(180deg, rgba(11,16,35,.78) 0%, rgba(11,16,35,.42) 70%, rgba(11,16,35,0) 100%);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.top-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.logo { font-size: 22px; font-weight: 800; letter-spacing: .5px;
        background: linear-gradient(90deg, #e0e7ff, #a5b4fc 35%, #818cf8 60%, #67e8f9);
        -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
        white-space: nowrap; }
.user-area { display: flex; align-items: center; gap: 8px; }
.user-area .u-name { max-width: 90px; font-size: 13px; color: #c7d2fe; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-btn {
    border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08);
    color: #e2e8f0; font-size: 13px; padding: 6px 12px; border-radius: 999px;
    cursor: pointer; transition: background .15s;
}
.link-btn:hover { background: rgba(255,255,255,.16); }
.link-btn.ghost { background: none; border-color: transparent; color: #8b9bb8; font-size: 12px; padding: 4px 8px; }

.search { position: relative; flex: 1; max-width: 340px; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; opacity: .7; }
.search input {
    width: 100%; padding: 10px 14px 10px 34px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.07);
    color: #fff; font-size: 14px; outline: none; backdrop-filter: blur(8px);
    transition: border-color .2s;
}
.search input:focus { border-color: #818cf8; }
.search input::placeholder { color: #8b9bb8; }

/* ================= 视图 Tab ================= */
.tabs {
    max-width: 900px; margin: 12px auto 4px; padding: 0 12px;
    display: flex; align-items: center; gap: 8px;
    overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
    flex: 1; min-width: 0;               /* 等分 + 允许压缩，任何宽度都完整显示 */
    display: flex; align-items: center; justify-content: center; gap: 5px;
    padding: 9px 6px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.05); color: #cbd5e1; font-size: 13px; cursor: pointer;
    transition: all .15s; white-space: nowrap;
}
.tab i { font-style: normal; flex: none; }
.tab span { overflow: hidden; text-overflow: ellipsis; }
.tab:hover { background: rgba(255,255,255,.12); }
.tab.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff;
    border-color: transparent; box-shadow: 0 4px 14px rgba(99,102,241,.4);
}
/* 圆形「投稿新歌」按钮：固定尺寸不参与等分，永远完整显示 */
.tab-add {
    flex: none; width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; color: #fff; cursor: pointer;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none; box-shadow: 0 4px 14px rgba(99,102,241,.45);
    transition: transform .15s, opacity .15s;
}
.tab-add:hover { transform: scale(1.08); }
.tab-add:active { transform: scale(.92); }
/* 超小屏：隐藏 emoji，只留文字，进一步腾空间 */
@media (max-width: 420px) {
    .tab i { display: none; }
    .tab { font-size: 12px; padding: 9px 4px; }
}

/* ================= 公告栏 ================= */
.notice-bar {
    max-width: 900px; margin: 8px auto 4px; padding: 10px 14px;
    display: flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, rgba(251,191,36,.14), rgba(249,115,22,.10));
    border: 1px solid rgba(251,191,36,.35); border-radius: 12px;
    font-size: 13px; color: #fde68a;
    box-shadow: 0 4px 16px rgba(251,191,36,.10);
}
.notice-ico { flex: none; font-size: 15px; }
.notice-text {
    flex: 1; min-width: 0; overflow: hidden; white-space: nowrap;
    line-height: 1.5;
}
/* 长文字跑马灯：两份副本无缝循环，只有文字超宽时由 JS 加 .marquee-on */
.notice-text .marquee {
    display: inline-block; white-space: nowrap;
    animation: marquee 18s linear infinite;
    will-change: transform;
}
.notice-text .marquee span { padding-right: 48px; }
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.notice-close {
    flex: none; width: 24px; height: 24px; border-radius: 50%; border: 0;
    background: rgba(255,255,255,.12); color: #fde68a; font-size: 14px;
    cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0;
    transition: background .15s;
}
.notice-close:hover { background: rgba(255,255,255,.24); }

/* ================= 榜单横滑栏 ================= */
.ranks {
    max-width: 900px; margin: 2px auto 6px; padding: 0 12px;
    display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.ranks::-webkit-scrollbar { display: none; }
.rank {
    flex: none; padding: 8px 15px; border-radius: 999px; cursor: pointer;
    border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05);
    color: #cbd5e1; font-size: 13px; white-space: nowrap;
    transition: all .15s;
}
.rank:hover { background: rgba(255,255,255,.12); }
.rank.active {
    background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff;
    border-color: transparent; box-shadow: 0 4px 14px rgba(245,158,11,.35);
}

/* ================= 歌曲列表（紧凑行式） ================= */
main { max-width: 900px; margin: 0 auto; padding: 18px 8px 100px; }
.list-head { display: flex; align-items: baseline; justify-content: space-between; padding: 6px 12px 10px; }
.list-title { font-size: 16px; font-weight: 700; color: #e2e8f0; }
.list-count { font-size: 12px; color: #8b9bb8; }

.song-list { list-style: none; display: flex; flex-direction: column; gap: 8px; padding: 0 4px; }
.song-row {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 12px; border-radius: 14px; cursor: pointer;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.075);
    box-shadow: 0 2px 12px rgba(0,0,0,.12);
    transition: background .15s, border-color .15s, transform .12s;
    position: relative;
}
.song-row:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.14); }
.song-row:active { background: rgba(255,255,255,.12); transform: scale(.99); }
.song-row.active {
    background: linear-gradient(90deg, rgba(99,102,241,.30), rgba(99,102,241,.10) 55%, rgba(99,102,241,.03));
    border-color: rgba(129,140,248,.42);
    box-shadow: 0 4px 20px rgba(99,102,241,.24);
}
.song-row.active::before {
    content: ''; position: absolute; left: 0; top: 30%; bottom: 30%; width: 3px;
    border-radius: 3px; background: linear-gradient(180deg, #818cf8, #c084fc);
}
.row-num {
    width: 22px; flex: none; text-align: center;
    font-size: 13px; color: #8b9bb8; font-variant-numeric: tabular-nums;
}
/* 榜单前三名徽章 */
.rank-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; border-radius: 6px;
    font-size: 11px; font-weight: 800; font-style: normal; color: #fff;
}
.rank-badge.r1 { background: linear-gradient(135deg, #f59e0b, #fbbf24); box-shadow: 0 2px 6px rgba(245,158,11,.4); }
.rank-badge.r2 { background: linear-gradient(135deg, #94a3b8, #cbd5e1); box-shadow: 0 2px 6px rgba(148,163,184,.35); }
.rank-badge.r3 { background: linear-gradient(135deg, #b45309, #d97706); box-shadow: 0 2px 6px rgba(180,83,9,.4); }
/* 收藏榜 / 热度榜行尾计数 */
.row-count {
    flex: none; font-size: 11px; color: #8b9bb8; font-variant-numeric: tabular-nums;
    background: rgba(255,255,255,.06); padding: 3px 8px; border-radius: 999px;
}
.row-num .eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; }
.row-num .eq span {
    width: 3px; border-radius: 2px;
    background: linear-gradient(180deg, #818cf8, #c084fc);
    animation: eqb 1s ease-in-out infinite;
}
.row-num .eq span:nth-child(1) { height: 60%; }
.row-num .eq span:nth-child(2) { height: 100%; animation-delay: .2s; }
.row-num .eq span:nth-child(3) { height: 45%; animation-delay: .4s; }
@keyframes eqb { 0%,100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }

.row-main { flex: 1; min-width: 0; }
.row-main h3 { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-main p  { font-size: 12px; color: #8b9bb8; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-row.active .row-main h3 { color: #c7d2fe; }

.row-fav {
    flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0;
    background: transparent; color: #64748b; font-size: 17px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; padding: 0;
    transition: all .15s;
}
.row-fav:hover { background: rgba(255,255,255,.1); color: #f472b6; }
.row-fav.on { color: #f43f5e; }

.row-icon {
    width: 34px; height: 34px; flex: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; color: #cbd5e1;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
}
.song-row.active .row-icon { color: #fff; border-color: rgba(165,180,252,.5); background: rgba(99,102,241,.35); }

.mine-tag { flex: none; font-size: 11px; padding: 3px 10px; border-radius: 999px; }
.mine-tag.ok   { background: rgba(16,185,129,.18); color: #6ee7b7; }
.mine-tag.warn { background: rgba(251,191,36,.16); color: #fde68a; }
.mine-tag.no   { background: rgba(148,163,184,.15); color: #94a3b8; }
.mine-note {
    margin: -6px 4px 0; padding: 9px 14px 11px; font-size: 12px; color: #fca5a5;
    background: rgba(244,63,94,.08); border: 1px solid rgba(244,63,94,.22); border-top: 0;
    border-radius: 0 0 14px 14px;
}

.empty {
    text-align: center; color: #8b9bb8; padding: 54px 0; font-size: 14px;
    background: rgba(255,255,255,.03); border: 1px dashed rgba(255,255,255,.12);
    border-radius: 16px; margin: 8px 4px 0;
}

/* ================= 弹窗 ================= */
.mask {
    position: fixed; inset: 0; z-index: 80; display: none;
    align-items: center; justify-content: center; padding: 20px;
    background: rgba(2,6,23,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.mask.show { display: flex; }
.modal {
    width: min(380px, 94vw); border-radius: 20px; padding: 24px;
    background: linear-gradient(165deg, rgba(43,52,94,.96), rgba(18,23,53,.98));
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 24px 60px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08);
    animation: pop .25s ease;
    max-height: 86vh; overflow-y: auto;             /* 手机端弹窗内容超高时可滚动 */
    -webkit-overflow-scrolling: touch;
}
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-head h3 { font-size: 17px; }
.modal-close {
    width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255,255,255,.08); color: #cbd5e1; font-size: 16px;
}
.modal-close:hover { background: rgba(255,255,255,.18); }
.switch-tabs { display: flex; gap: 6px; margin-bottom: 14px; background: rgba(255,255,255,.06); padding: 4px; border-radius: 10px; }
.switch-tabs .st {
    flex: 1; padding: 8px 0; border: 0; border-radius: 8px; cursor: pointer;
    background: transparent; color: #94a3b8; font-size: 14px; transition: all .15s;
}
.switch-tabs .st.on { background: rgba(99,102,241,.85); color: #fff; }
.form { display: flex; flex-direction: column; gap: 10px; }
.form input {
    width: 100%; padding: 11px 13px; border-radius: 10px; outline: none;
    border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.07);
    color: #fff; font-size: 14px; transition: border-color .2s;
}
.form input:focus { border-color: #818cf8; }
.form-msg { min-height: 18px; font-size: 12px; color: #f87171; }
.form-msg.ok { color: #6ee7b7; }
.btn-primary {
    border: 0; border-radius: 12px; padding: 12px; cursor: pointer;
    background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff;
    font-size: 15px; font-weight: 600; transition: opacity .15s, transform .12s;
    box-shadow: 0 6px 16px rgba(99,102,241,.35);
}
.btn-primary:hover { opacity: .92; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.modal-tip { margin-top: 12px; font-size: 11px; color: #64748b; text-align: center; }

/* 会员中心 */
.profile-avatar {
    width: 64px; height: 64px; margin: 4px auto 8px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 6px 18px rgba(99,102,241,.45);
}
.profile-name { text-align: center; font-size: 17px; font-weight: 700; }
.profile-badge { text-align: center; margin-top: 4px; }
.profile-badge .tag-vip { display:inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12px; background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #1f2937; font-weight: 700; }
.profile-badge .tag-free { display:inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12px; background: rgba(148,163,184,.2); color: #94a3b8; }
.profile-stats { display: flex; justify-content: center; gap: 28px; margin-top: 12px; }
.ps-item { text-align: center; }
.ps-item b { display: block; font-size: 20px; color: #c7d2fe; }
.ps-item span { font-size: 11px; color: #8b9bb8; }
.vip-line { font-size: 12px; color: #94a3b8; margin: 5px 0; }
.vip-line b { color: #fbbf24; }
.vip-redeem { display: flex; gap: 8px; margin-top: 10px; }
.vip-redeem input {
    flex: 1; padding: 11px 13px; border-radius: 10px; outline: none;
    border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.07);
    color: #fff; font-size: 14px; letter-spacing: 1px; text-transform: uppercase;
}
.vip-redeem input:focus { border-color: #fbbf24; }

/* 失效歌曲（前台一般不可见，仅防御） */
.song-row.dead { opacity: .5; }

/* 全屏页收藏按钮 */
#fullFav { color: #64748b; font-size: 20px; }
#fullFav.on { color: #f43f5e; border-color: rgba(244,63,94,.45); }

/* ================= 底部迷你播放条 ================= */
.mini-player {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: rgba(15,23,42,.88);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 -8px 30px rgba(0,0,0,.35);
    transform: translateY(110%); transition: transform .3s ease;
    padding-bottom: env(safe-area-inset-bottom);
}
.mini-player.show { transform: translateY(0); }
.mini-progress { height: 3px; background: rgba(255,255,255,.12); }
.mini-fill { height: 100%; width: 0; background: linear-gradient(90deg, #818cf8, #c084fc, #67e8f9); }
.mini-main { display: flex; align-items: center; gap: 12px; padding: 9px 16px; max-width: 900px; margin: 0 auto; }
.mini-disc {
    width: 42px; height: 42px; flex: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 19px; color: rgba(255,255,255,.9);
    background: radial-gradient(circle at 30% 30%, #3b4a6b, #1e293b);
    border: 2px solid rgba(255,255,255,.25);
    box-shadow: 0 4px 12px rgba(0,0,0,.4);
}
.mini-disc.playing { animation: spin 10s linear infinite; }
.mini-info { flex: 1; min-width: 0; }
.mini-info h4 { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-info p  { font-size: 11px; color: #8b9bb8; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-ctl {
    width: 38px; height: 38px; flex: none; border-radius: 50%; border: 0;
    background: rgba(255,255,255,.08); color: #e2e8f0; font-size: 15px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; padding: 0;
    transition: background .15s, transform .1s;
}
.mini-ctl:hover { background: rgba(255,255,255,.18); }
.mini-ctl:active { transform: scale(.92); }
#miniPlay { background: rgba(99,102,241,.9); color: #fff; font-size: 17px; }

/* ================= 全屏播放页 ================= */
.player-full {
    position: fixed; inset: 0; z-index: 60;
    display: flex; flex-direction: column;
    background: linear-gradient(180deg, #161c3a 0%, #0d1228 55%, #0b1023 100%);
    transform: translateY(100%); transition: transform .38s cubic-bezier(.32,.72,.28,1);
    visibility: hidden;
}
.player-full.show { transform: translateY(0); visibility: visible; }

.pf-top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px calc(14px + env(safe-area-inset-top));
}
.pf-title { font-size: 13px; color: #a5b4fc; letter-spacing: 1px; }
.pf-ctl {
    width: 40px; height: 40px; border-radius: 50%; border: 0;
    background: rgba(255,255,255,.07); color: #cbd5e1; font-size: 16px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; padding: 0;
    transition: background .15s;
}
.pf-ctl:hover { background: rgba(255,255,255,.15); }

.pf-body {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 26px; padding: 10px 24px 30px; position: relative; overflow: hidden;
}
/* —— DJ 动态背景层（频谱画布 + 能量光晕） —— */
.dj-canvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 0;
}
.dj-glow {
    position: absolute; left: 50%; top: 42%; width: 130vw; height: 130vw;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, hsla(255, 90%, 65%, .20), transparent 62%);
    filter: blur(34px); pointer-events: none; z-index: 1;
    animation: glowmove 6s ease-in-out infinite;
}
@keyframes glowmove {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .85; }
    50%      { transform: translate(-50%, -50%) scale(1.18); opacity: 1; }
}
.pf-disc-wrap { position: relative; z-index: 2; }
.disc {
    width: 250px; height: 250px; border-radius: 50%;
    background: conic-gradient(#1e293b, #334155, #1e293b, #334155, #1e293b);
    display: flex; align-items: center; justify-content: center;
    border: 8px solid #0f172a;
    box-shadow: 0 0 54px hsla(250, 90%, 62%, .4), 0 24px 60px rgba(0,0,0,.55);
    transition: transform .5s ease; will-change: transform; position: relative;
}
/* 盘面外圈旋转彩环（DJ 灯效） */
.disc::before {
    content: ''; position: absolute; inset: -14px; border-radius: 50%;
    background: conic-gradient(from 0deg,
        rgba(129,140,248,0), rgba(129,140,248,.6), rgba(232,121,249,0),
        rgba(56,189,248,.6), rgba(129,140,248,0));
    filter: blur(7px); z-index: -1; opacity: .85;
    animation: djspin 9s linear infinite;
}
.disc::after {
    content: ''; position: absolute; inset: -40px; border-radius: 50%;
    border: 1px dashed rgba(165,180,252,.3); opacity: .6;
    animation: djspin 24s linear infinite reverse;
}
@keyframes djspin { to { transform: rotate(360deg); } }
.disc .disc-note {
    width: 62%; height: 62%; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 72px; color: rgba(255,255,255,.9);
    background: radial-gradient(circle at 30% 30%, #3b4a6b, #1e293b);
    box-shadow: inset 0 0 24px rgba(0,0,0,.5), 0 0 26px hsla(250, 90%, 70%, .35);
    user-select: none;
}
.disc.playing { animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* 中央字母/音符的呼吸光 */
.disc.playing .disc-note { animation: notebreathe 3s ease-in-out infinite; }
@keyframes notebreathe {
    0%, 100% { text-shadow: 0 0 12px hsla(250,90%,75%,.6); }
    50%      { text-shadow: 0 0 34px hsla(250,90%,75%,1); }
}

/* —— 声波节奏字幕 —— */
.dj-lyric { text-align: center; position: relative; z-index: 3; will-change: transform; }
.dj-tag {
    display: inline-block; font-size: 11px; letter-spacing: 3px; font-weight: 700;
    color: #e0e7ff; background: linear-gradient(135deg, rgba(99,102,241,.45), rgba(236,72,153,.45));
    padding: 4px 14px; border-radius: 999px; margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,.22);
    animation: djtag 2.6s ease-in-out infinite;
}
@keyframes djtag { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
.dj-lyric h2 {
    font-size: 24px; font-weight: 800; color: #fff; line-height: 1.35;
    max-width: 86vw; letter-spacing: 1px;
    transition: text-shadow .1s linear;
}
.dj-lyric p { font-size: 13px; color: #94a3b8; margin-top: 6px; }

/* 底部能量流动条 */
.dj-energy {
    position: absolute; left: 10%; right: 10%; bottom: 108px; height: 4px; z-index: 3;
    background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden;
}
.dj-energy span {
    display: block; height: 100%; width: 0%;
    background: linear-gradient(90deg, #818cf8, #f0abfc, #67e8f9);
    border-radius: 999px; transition: width .09s linear;
}

.pf-progress { position: relative; z-index: 3; width: 86vw; }

.buffering {
    position: absolute; inset: -10px; display: none; align-items: center; justify-content: center; gap: 6px;
}
.buffering span {
    width: 9px; height: 9px; border-radius: 50%; background: #a5b4fc;
    animation: bounce 1s ease-in-out infinite;
}
.buffering span:nth-child(2) { animation-delay: .15s; background: #67e8f9; }
.buffering span:nth-child(3) { animation-delay: .3s; background: #f0abfc; }
.buffering.show { display: flex; }
@keyframes bounce {
    0%, 100% { transform: translateY(0); opacity: .4; }
    50%      { transform: translateY(-12px); opacity: 1; }
}

.pf-meta { text-align: center; max-width: 86vw; }
.pf-meta h2 { font-size: 21px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-meta p  { font-size: 13px; color: #8b9bb8; margin-top: 6px; }

.pf-progress { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 560px; }
.pf-progress .time { font-size: 11px; color: #8b9bb8; font-variant-numeric: tabular-nums; }
.pf-progress .bar {
    flex: 1; height: 5px; border-radius: 99px; cursor: pointer;
    background: rgba(255,255,255,.14); position: relative; touch-action: none;
}
.bar .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 99px;
             background: linear-gradient(90deg, #818cf8, #c084fc, #67e8f9); }
.bar .thumb {
    position: absolute; top: 50%; width: 13px; height: 13px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.4);
    transform: translate(-50%, -50%) scale(0); transition: transform .15s; left: 0;
}
.bar:hover .thumb, .bar.active .thumb { transform: translate(-50%, -50%) scale(1); }

.pf-controls { display: flex; align-items: center; justify-content: center; gap: 26px; padding: 4px 0 22px; }
.ctl {
    width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.08); color: #e2e8f0; font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; padding: 0;
    transition: transform .15s, background .2s;
}
.ctl:hover { background: rgba(255,255,255,.18); transform: scale(1.06); }
.ctl:active { transform: scale(.94); }
.ctl.on { color: #a5b4fc; border-color: #818cf8; }
.play-btn {
    width: 66px; height: 66px; font-size: 26px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none; box-shadow: 0 10px 28px rgba(99,102,241,.5); color: #fff;
}
.pf-extra { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 24px 20px; }
.pf-extra input { width: 110px; accent-color: #818cf8; cursor: pointer; }

/* ================= Toast ================= */
.toast {
    position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%) translateY(80px);
    background: rgba(15,23,42,.92); border: 1px solid rgba(255,255,255,.2);
    padding: 11px 20px; border-radius: 999px; font-size: 13px; z-index: 99;
    opacity: 0; transition: transform .3s, opacity .3s; pointer-events: none;
    max-width: 86vw; text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ================= 移动端适配 ================= */
@media (max-width: 720px) {
    .top { flex-direction: column; align-items: stretch; padding-top: 16px; position: static; }
    .top-left { justify-content: space-between; }
    .logo { text-align: left; }
    .search { max-width: none; }
    .disc { width: 200px; height: 200px; }
    .disc .disc-note { font-size: 68px; }
    .pf-controls { gap: 20px; }
    .row-fav { font-size: 18px; }
}
@media (max-width: 380px) {
    .disc { width: 170px; height: 170px; }
    .disc .disc-note { font-size: 58px; }
}

/* 禁用动画偏好 */
@media (prefers-reduced-motion: reduce) {
    .aurora, .spark, .disc.playing, .mini-disc.playing, .notice-text .marquee { animation: none !important; }
    .notice-text.marquee-on { overflow: hidden; text-overflow: ellipsis; }
}