/* ============================================================
   KZ 桌面增强  kz-desk-plus.css
   —— 任务栏时间位天气胶囊 / 本地音乐播放器 / 天气特效
   —— 全部选择器以 kz-tray、kz-music、kz-fx 开头，纯新增
   ============================================================ */

/* ==================== 一、任务栏时间位胶囊 ==================== */
.kz-tray {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 28px;
    padding: 0 9px;
    margin-right: 6px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .26);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .28);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    color: #fff;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
    user-select: none;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
    position: relative;
    overflow: hidden;
    flex: none;
}
.kz-tray:hover {
    background: rgba(255, 255, 255, .26);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .34);
}
.kz-tray:active { transform: scale(.97); }
.kz-tray-t {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: .3px;
    font-size: 12px;
}
.kz-tray-sep {
    width: 1px;
    height: 13px;
    background: rgba(255, 255, 255, .32);
    flex: none;
}
.kz-tray-ic { width: 16px; height: 16px; flex: none; display: flex; }
.kz-tray-ic svg { width: 100%; height: 100%; }
.kz-tray-temp {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-size: 12px;
}
.kz-tray-desc {
    opacity: .82;
    max-width: 62px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.kz-tray-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    flex: none;
}
.kz-tray[data-state="loading"] .kz-tray-dot { background: #fbbf24; box-shadow: 0 0 8px #fbbf24; }
.kz-tray[data-state="error"] .kz-tray-dot { background: #f87171; box-shadow: 0 0 8px #f87171; }

/* Windows 桌面模拟器：胶囊和系统时/日保持同一行，靠右 */
#windowsDesktopSystem .taskbar > .kz-tray {
    margin-left: auto;
    margin-right: 4px;
}
#windowsDesktopSystem .taskbar > .kz-tray .kz-tray-desc { max-width: 74px; }

/* 隐藏系统自带的纯时间文字（可逆，设置里一个开关） */
body.kz-hide-sysclock #desktopTime,
body.kz-hide-sysclock #desktopDate,
body.kz-hide-sysclock #windowsDesktopSystem .system-tray #clock,
body.kz-hide-sysclock #windowsDesktopSystem .system-tray #date {
    display: none !important;
}

/* 夜间/深色下的胶囊 */
.night-mode .kz-tray {
    background: rgba(30, 41, 59, .42);
    border-color: rgba(255, 255, 255, .16);
}

/* ==================== 二、本地音乐播放器 ==================== */
.kz-music {
    position: fixed;
    left: 50%;
    top: auto;
    bottom: 78px;
    width: 300px;
    z-index: 90;   /* 低于 Windows 窗口(100)，不再挡住设置等窗口 */
    border-radius: 22px;
    padding: 12px;
    color: #fff;
    font-family: inherit;
    background: linear-gradient(155deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .10));
    border: 1px solid rgba(255, 255, 255, .34);
    box-shadow: 0 18px 48px rgba(2, 6, 23, .38), inset 0 1px 0 rgba(255, 255, 255, .45);
    backdrop-filter: blur(26px) saturate(170%);
    -webkit-backdrop-filter: blur(26px) saturate(170%);
    transition: width .2s ease, opacity .25s ease, transform .25s ease;
    touch-action: none;
}
.kz-music.kz-music-hide {
    opacity: 0;
    transform: translateY(14px) scale(.96);
    pointer-events: none;
}
.kz-music::before {
    content: '';
    position: absolute;
    inset: -40% -20% auto -20%;
    height: 70%;
    background: radial-gradient(60% 100% at 30% 0%, rgba(255, 255, 255, .42), transparent 70%);
    pointer-events: none;
}

.kz-music-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    cursor: grab;
}
.kz-music-bar:active { cursor: grabbing; }
.kz-music-brand {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1.4px;
    opacity: .9;
    text-transform: uppercase;
}
.kz-music-sc {
    margin-left: auto;
    display: flex;
    gap: 4px;
}
.kz-music-ib {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .18s ease;
}
.kz-music-ib:hover { background: rgba(255, 255, 255, .34); }

.kz-music-main { display: flex; gap: 11px; align-items: center; }
.kz-music-cover {
    width: 62px;
    height: 62px;
    border-radius: 14px;
    flex: none;
    position: relative;
    overflow: hidden;
    background: linear-gradient(140deg, #6366f1, #22d3ee);
    box-shadow: 0 8px 22px rgba(2, 6, 23, .35), inset 0 1px 0 rgba(255, 255, 255, .4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.kz-music-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .55), transparent 55%);
    mix-blend-mode: soft-light;
}
.kz-music-cover.kz-spin::after { animation: kzMusicSpin 6s linear infinite; }
@keyframes kzMusicSpin {
    from { transform: rotate(0deg) scale(1.6); }
    to { transform: rotate(360deg) scale(1.6); }
}

.kz-music-info { flex: 1; min-width: 0; }
.kz-music-title {
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .35);
}
.kz-music-artist {
    font-size: 10.5px;
    opacity: .72;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kz-music-prog {
    height: 5px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .22);
    margin: 11px 0 5px;
    cursor: pointer;
    position: relative;
}
.kz-music-prog > i {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    border-radius: 99px;
    background: linear-gradient(90deg, #67e8f9, #a78bfa);
    box-shadow: 0 0 10px rgba(103, 232, 249, .7);
}
.kz-music-time {
    display: flex;
    justify-content: space-between;
    font-size: 9.5px;
    opacity: .7;
    font-variant-numeric: tabular-nums;
}

.kz-music-ctrl {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 9px;
}
.kz-music-b {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .18s ease;
    font-size: 12px;
}
.kz-music-b:hover { background: rgba(255, 255, 255, .3); transform: translateY(-1px); }
.kz-music-b.kz-play {
    width: 40px;
    height: 40px;
    font-size: 15px;
    background: linear-gradient(140deg, #22d3ee, #6366f1);
    box-shadow: 0 8px 20px rgba(34, 211, 238, .42), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.kz-music-b.kz-on { background: rgba(255, 255, 255, .42); color: #0f172a; }

.kz-music-vol {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 9px;
    font-size: 10px;
    opacity: .9;
}
.kz-music-vol input[type=range] {
    flex: 1;
    height: 3px;
    accent-color: #67e8f9;
}

.kz-music-list {
    margin-top: 10px;
    max-height: 152px;
    overflow-y: auto;
    display: none;
    border-top: 1px solid rgba(255, 255, 255, .2);
    padding-top: 8px;
    scrollbar-width: thin;
}
.kz-music-list.kz-open { display: block; }
.kz-music-list::-webkit-scrollbar { width: 4px; }
.kz-music-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .3); border-radius: 9px; }
.kz-music-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 7px;
    border-radius: 9px;
    font-size: 11px;
    cursor: pointer;
    transition: background .15s ease;
}
.kz-music-item:hover { background: rgba(255, 255, 255, .16); }
.kz-music-item.kz-cur { background: rgba(255, 255, 255, .26); font-weight: 700; }
.kz-music-item span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.kz-music-item b {
    font-size: 9px;
    opacity: .6;
    font-weight: 500;
    flex: none;
}
.kz-music-item i {
    flex: none;
    opacity: .55;
    font-style: normal;
    font-size: 10px;
    padding: 0 3px;
}
.kz-music-item i:hover { opacity: 1; color: #fca5a5; }

.kz-music-upload {
    display: flex;
    gap: 6px;
    margin-top: 9px;
}
.kz-music-up {
    flex: 1;
    height: 28px;
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, .45);
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 10.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background .18s ease;
}
.kz-music-up:hover { background: rgba(255, 255, 255, .24); }
.kz-music-empty {
    font-size: 10.5px;
    opacity: .72;
    text-align: center;
    padding: 14px 6px;
    line-height: 1.7;
}

/* 浅色桌面下的可读性增强 */
body.kz-wall-light .kz-music {
    background: linear-gradient(155deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .34));
    border-color: rgba(255, 255, 255, .8);
    color: #0f172a;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .18), inset 0 1px 0 rgba(255, 255, 255, .9);
}
body.kz-wall-light .kz-music .kz-music-b,
body.kz-wall-light .kz-music .kz-music-ib { background: rgba(15, 23, 42, .1); color: #0f172a; }
body.kz-wall-light .kz-music .kz-music-b.kz-play { color: #fff; }
body.kz-wall-light .kz-music .kz-music-up { color: #0f172a; border-color: rgba(15, 23, 42, .28); }
body.kz-wall-light .kz-music .kz-music-prog { background: rgba(15, 23, 42, .16); }
body.kz-wall-light .kz-music .kz-music-list { border-color: rgba(15, 23, 42, .14); }

/* ==================== 三、天气特效层 ==================== */
.kz-tw-weather { position: relative; overflow: hidden; }
/* 让原有内容浮在特效之上（只给原本就是静态定位的这 5 个块加层，不影响其它样式） */
#kzTwRoot .kz-tw-weather > .kz-tw-bar,
#kzTwRoot .kz-tw-weather > .kz-w-head,
#kzTwRoot .kz-tw-weather > .kz-w-main,
#kzTwRoot .kz-tw-weather > .kz-w-meta,
#kzTwRoot .kz-tw-weather > .kz-w-note {
    position: relative;
    z-index: 1;
}
.kz-fx {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: inherit;
    z-index: 0;
    opacity: 0;
    transition: opacity .6s ease;
}
.kz-fx.kz-fx-on { opacity: 1; }
.kz-fx > * { position: absolute; }

/* 底部极光 */
.kz-fx-aurora {
    left: -30%;
    bottom: -46%;
    width: 160%;
    height: 90%;
    background: radial-gradient(50% 60% at 30% 60%, var(--kz-fx-a, rgba(56, 189, 248, .55)), transparent 70%),
                radial-gradient(50% 60% at 72% 50%, var(--kz-fx-b, rgba(167, 139, 250, .48)), transparent 72%);
    filter: blur(18px);
    animation: kzFxAurora 14s ease-in-out infinite alternate;
}
@keyframes kzFxAurora {
    0% { transform: translate3d(-4%, 4%, 0) scale(1); opacity: .72; }
    50% { transform: translate3d(3%, -2%, 0) scale(1.08); opacity: .95; }
    100% { transform: translate3d(-2%, 3%, 0) scale(1.02); opacity: .8; }
}
body.kz-wall-light .kz-fx-aurora { opacity: .38; }

/* 光斑漂浮 */
.kz-fx-orb {
    border-radius: 50%;
    background: radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .12) 62%, transparent 72%);
    filter: blur(.4px);
    animation: kzFxOrb 9s ease-in-out infinite alternate;
}
@keyframes kzFxOrb {
    0% { transform: translate3d(0, 0, 0) scale(.85); opacity: .18; }
    50% { opacity: .5; }
    100% { transform: translate3d(6px, -12px, 0) scale(1.15); opacity: .2; }
}

/* 雨 */
.kz-fx-rain i {
    position: absolute;
    top: -14%;
    width: 1.2px;
    height: 26px;
    background: linear-gradient(180deg, transparent, rgba(191, 232, 255, .9));
    border-radius: 2px;
    animation: kzFxRain linear infinite;
}
@keyframes kzFxRain {
    0% { transform: translate3d(0, -20%, 0); opacity: 0; }
    12% { opacity: .9; }
    100% { transform: translate3d(-14px, 420%, 0); opacity: 0; }
}

/* 雪 */
.kz-fx-snow i {
    position: absolute;
    top: -10%;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px rgba(255, 255, 255, .9);
    animation: kzFxSnow linear infinite;
}
@keyframes kzFxSnow {
    0% { transform: translate3d(0, -20%, 0); opacity: 0; }
    10% { opacity: .9; }
    100% { transform: translate3d(16px, 460%, 0); opacity: 0; }
}

/* 闪电 */
.kz-fx-flash {
    inset: 0;
    background: linear-gradient(160deg, rgba(191, 219, 254, .9), rgba(255, 255, 255, .35));
    opacity: 0;
    animation: kzFxFlash 7s ease-in-out infinite;
    mix-blend-mode: screen;
}
@keyframes kzFxFlash {
    0%, 92%, 100% { opacity: 0; }
    93% { opacity: .55; }
    94% { opacity: .05; }
    95% { opacity: .42; }
    97% { opacity: 0; }
}

/* 太阳光芒 */
.kz-fx-ray {
    top: -55%;
    right: -35%;
    width: 120%;
    height: 120%;
    background: conic-gradient(from 0deg, transparent 0 8deg, rgba(255, 236, 179, .30) 8deg 14deg, transparent 14deg 26deg);
    filter: blur(3px);
    animation: kzFxRay 26s linear infinite;
    mix-blend-mode: screen;
    opacity: .8;
}
@keyframes kzFxRay { to { transform: rotate(360deg); } }

/* 雾 / 云带 */
.kz-fx-fog i {
    left: -40%;
    width: 180%;
    height: 26px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .42), transparent);
    filter: blur(7px);
    animation: kzFxFog linear infinite;
}
@keyframes kzFxFog {
    0% { transform: translate3d(-18%, 0, 0); opacity: 0; }
    25% { opacity: .8; }
    75% { opacity: .8; }
    100% { transform: translate3d(18%, 0, 0); opacity: 0; }
}

/* 强度档位 */
.kz-fx[data-lv="1"] { --kzFxA: .55; }
.kz-fx[data-lv="2"] { --kzFx-: 1; }
.kz-fx[data-lv="1"] .kz-fx-aurora { filter: blur(22px); opacity: .5; }
.kz-fx[data-lv="3"] .kz-fx-aurora { filter: blur(14px); opacity: 1; }

/* ==================== 四、设置面板内的小节 ==================== */
.kz-dp-sec {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed rgba(100, 116, 139, .30);
}
.kz-dp-sec h4 {
    font-size: 13px;
    font-weight: 800;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.kz-dp-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: 12.5px;
}
.kz-dp-row > label { flex: 1; color: inherit; opacity: .9; }
.kz-dp-row select,
.kz-dp-row input[type=range] { accent-color: #6366f1; }
.kz-dp-row select {
    padding: 4px 8px;
    border-radius: 8px;
    border: 1px solid rgba(100, 116, 139, .35);
    background: rgba(255, 255, 255, .8);
    color: #0f172a;
    font-size: 12px;
}
.night-mode .kz-dp-row select { background: rgba(30, 41, 59, .8); color: #e2e8f0; }

.kz-dp-sw {
    flex: none;
    width: 40px;
    height: 22px;
    border-radius: 99px;
    background: rgba(100, 116, 139, .35);
    border: 0;
    position: relative;
    cursor: pointer;
    transition: background .2s ease;
}
.kz-dp-sw i {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .28);
    transition: transform .2s cubic-bezier(.2, .8, .2, 1);
}
.kz-dp-sw.kz-on { background: linear-gradient(90deg, #22d3ee, #6366f1); }
.kz-dp-sw.kz-on i { transform: translateX(18px); }

/* 移动端状态栏里的紧凑版 */
.status-left .kz-tray,
.status-bar .kz-tray {
    height: 20px;
    padding: 0 6px;
    margin-right: 4px;
    font-size: 9.5px;
    border-radius: 7px;
    gap: 4px;
}
.status-left .kz-tray .kz-tray-desc,
.status-bar .kz-tray .kz-tray-desc { display: none; }
.status-left .kz-tray .kz-tray-t,
.status-bar .kz-tray .kz-tray-t { font-size: 10px; }
.status-left .kz-tray .kz-tray-ic,
.status-bar .kz-tray .kz-tray-ic { width: 13px; height: 13px; }
.status-left .kz-tray .kz-tray-sep { display: none; }

/* 手机端：底部抽屉，全宽，可滚动 */
@media (max-width: 560px) {
    .kz-music {
        width: auto !important;
        left: 8px !important;
        right: 8px !important;
        bottom: 8px;
        top: auto !important;
        max-height: 72vh;
        overflow-y: auto;
        border-radius: 20px;
    }
    .kz-music.kz-mini { left: auto !important; right: 10px !important; bottom: 10px; }
    .kz-tray-desc { display: none; }
}

/* 迷你模式：缩成一个小球，点一下展开 */
.kz-music.kz-mini {
    width: 64px !important;
    padding: 8px;
    border-radius: 22px;
    cursor: pointer;
}
.kz-music.kz-mini .kz-music-bar,
.kz-music.kz-mini .kz-music-info,
.kz-music.kz-mini .kz-music-prog,
.kz-music.kz-mini .kz-music-time,
.kz-music.kz-mini .kz-music-ctrl,
.kz-music.kz-mini .kz-music-vol,
.kz-music.kz-mini .kz-music-list,
.kz-music.kz-mini .kz-music-url,
.kz-music.kz-mini .kz-music-upload { display: none; }
.kz-music.kz-mini .kz-music-main { gap: 0; }
.kz-music.kz-mini .kz-music-cover { width: 48px; height: 48px; border-radius: 14px; }

/* 右下角拖拽改宽度 */
.kz-music-resize {
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 16px;
    height: 16px;
    cursor: nwse-resize;
    opacity: 0;
    transition: opacity .15s ease;
    z-index: 3;
}
.kz-music:hover .kz-music-resize { opacity: .7; }
.kz-music-resize::after {
    content: '';
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(255,255,255,.8);
    border-bottom: 2px solid rgba(255,255,255,.8);
    border-radius: 0 0 3px 0;
}

/* 网络音乐直链输入 */
.kz-music-url {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}
.kz-music-url input {
    flex: 1;
    min-width: 0;
    height: 28px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, .32);
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 10.5px;
    padding: 0 8px;
    outline: none;
}
.kz-music-url input::placeholder { color: rgba(255, 255, 255, .6); }
.kz-music-url input:focus { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .22); }
.kz-music-go {
    flex: none;
    height: 28px;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(140deg, #22d3ee, #6366f1);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(34, 211, 238, .35);
}
.kz-music-go:hover { filter: brightness(1.08); }
body.kz-wall-light .kz-music-url input {
    border-color: rgba(15, 23, 42, .2);
    background: rgba(15, 23, 42, .06);
    color: #0f172a;
}
body.kz-wall-light .kz-music-url input::placeholder { color: rgba(15, 23, 42, .45); }

/* ============================================================
   KZADJ.1DJmix2026 · 随音乐变色的播放器
   ============================================================ */
.kz-music .kz-music-brand {
    font-size: 10px;
    letter-spacing: .6px;
    font-weight: 800;
    background: linear-gradient(90deg, #67e8f9, #a78bfa, #f472b6, #67e8f9);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: kzdjTitle 6s linear infinite;
}
@keyframes kzdjTitle {
    to { background-position: 300% 0; }
}

/* 流动渐变 */
.kz-music[data-fx="gradient"] {
    background: linear-gradient(135deg,
        rgba(103, 232, 249, .30), rgba(167, 139, 250, .28) 45%, rgba(244, 114, 182, .26));
    background-size: 220% 220%;
    animation: kzdjFlow 9s ease infinite;
    border-color: rgba(255, 255, 255, .45);
    box-shadow: 0 18px 48px rgba(2, 6, 23, .38), 0 0 34px rgba(139, 92, 246, .30);
}
@keyframes kzdjFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 霓虹脉冲 */
.kz-music[data-fx="neon"] {
    border-color: rgba(103, 232, 249, .85);
    box-shadow: 0 18px 48px rgba(2, 6, 23, .38), 0 0 0 1px rgba(103, 232, 249, .5), 0 0 42px rgba(34, 211, 238, .55);
    animation: kzdjNeon 2.4s ease-in-out infinite;
}
@keyframes kzdjNeon {
    0%, 100% { box-shadow: 0 18px 48px rgba(2,6,23,.38), 0 0 0 1px rgba(103,232,249,.45), 0 0 30px rgba(34,211,238,.42); }
    50% { box-shadow: 0 18px 48px rgba(2,6,23,.38), 0 0 0 1px rgba(167,139,250,.75), 0 0 54px rgba(167,139,250,.72); }
}

/* 电流扫描 */
.kz-music[data-fx="electric"]::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 48%, transparent 62%);
    background-size: 260% 100%;
    animation: kzdjScan 3.4s linear infinite;
    mix-blend-mode: screen;
    opacity: .7;
}
@keyframes kzdjScan {
    0% { background-position: 180% 0; }
    100% { background-position: -80% 0; }
}
.kz-music[data-fx="electric"] {
    border-color: rgba(56, 189, 248, .8);
    box-shadow: 0 18px 48px rgba(2, 6, 23, .4), 0 0 40px rgba(56, 189, 248, .45);
}

/* DJ 闪烁 */
.kz-music[data-fx="dj"] {
    border-color: rgba(244, 114, 182, .8);
    animation: kzdjFlash 1.1s steps(1, end) infinite;
}
@keyframes kzdjFlash {
    0%   { box-shadow: 0 18px 48px rgba(2,6,23,.4), 0 0 38px rgba(244,114,182,.75); }
    25%  { box-shadow: 0 18px 48px rgba(2,6,23,.4), 0 0 26px rgba(103,232,249,.65); }
    50%  { box-shadow: 0 18px 48px rgba(2,6,23,.4), 0 0 46px rgba(251,191,36,.72); }
    75%  { box-shadow: 0 18px 48px rgba(2,6,23,.4), 0 0 30px rgba(167,139,250,.7); }
}

/* 播放时才动，暂停就停下 */
.kz-music.kz-paused[data-fx] { animation: none !important; }
.kz-music.kz-paused::after { animation: none !important; opacity: .2; }

/* 歌单搜索框 */
.kz-music-search {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 2px;
    height: 28px;
    padding: 0 8px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .28);
}
.kz-music-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: inherit;
    font-size: 11px;
}
.kz-music-search input::placeholder { color: rgba(255, 255, 255, .6); }
body.kz-wall-light .kz-music-search { background: rgba(15, 23, 42, .06); border-color: rgba(15, 23, 42, .12); }
body.kz-wall-light .kz-music-search input::placeholder { color: rgba(15, 23, 42, .45); }

/* 封面图标 */
.kz-music-cover svg { width: 62%; height: 62%; display: block; }
.kz-music-cover.kz-cover-b { background: linear-gradient(140deg, #f472b6, #7c3aed); }
.kz-music-cover.kz-cover-c { background: linear-gradient(140deg, #22d3ee, #10b981); }

/* 设置里的封面选择 */
.kz-dp-covers { display: flex; gap: 6px; flex-wrap: wrap; }
.kz-dp-cover {
    height: 26px;
    padding: 0 10px;
    border-radius: 99px;
    border: 1px solid rgba(100, 116, 139, .35);
    background: rgba(255, 255, 255, .7);
    color: #475569;
    font-size: 11.5px;
    cursor: pointer;
}
.kz-dp-cover.kz-on {
    background: linear-gradient(90deg, #22d3ee, #6366f1);
    color: #fff;
    border-color: transparent;
    font-weight: 700;
}
.night-mode .kz-dp-cover { background: rgba(255, 255, 255, .1); color: #cbd5e1; }

/* ============================================================
   变色时：时间、按钮、进度条也跟着变
   ============================================================ */
.kz-music[data-fx]:not([data-fx="none"]) .kz-music-time span {
    background: linear-gradient(90deg, #67e8f9, #a78bfa, #f472b6, #67e8f9);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 1;
    animation: kzdjText 6s linear infinite;
    animation-duration: calc(6s / var(--kzdj-spd, 1));
}
@keyframes kzdjText {
    to { background-position: 300% 0; }
}
.kz-music[data-fx]:not([data-fx="none"]) .kz-music-b {
    background: rgba(255, 255, 255, .2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.kz-music[data-fx]:not([data-fx="none"]) .kz-music-b:hover {
    background: linear-gradient(135deg, #22d3ee, #a78bfa);
    color: #fff;
}
.kz-music[data-fx]:not([data-fx="none"]) .kz-music-b.kz-play {
    background: linear-gradient(135deg, #22d3ee, #a78bfa 55%, #f472b6);
    box-shadow: 0 8px 22px rgba(139, 92, 246, .45), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.kz-music[data-fx]:not([data-fx="none"]) .kz-music-prog > i {
    background: linear-gradient(90deg, #67e8f9, #a78bfa, #f472b6);
    box-shadow: 0 0 12px rgba(167, 139, 250, .75);
}
.kz-music[data-fx]:not([data-fx="none"]) .kz-music-vol input[type=range] { accent-color: #a78bfa; }

/* 速度：--kzdj-spd 越大越快 */
.kz-music[data-fx="gradient"] { animation-duration: calc(9s / var(--kzdj-spd, 1)) !important; }
.kz-music[data-fx="neon"] { animation-duration: calc(2.4s / var(--kzdj-spd, 1)) !important; }
.kz-music[data-fx="dj"] { animation-duration: calc(1.1s / var(--kzdj-spd, 1)) !important; }
.kz-music[data-fx="electric"]::after { animation-duration: calc(3.4s / var(--kzdj-spd, 1)) !important; }
.kz-music .kz-music-brand {
    animation-duration: calc(6s / var(--kzdj-spd, 1)) !important;
    animation-iteration-count: infinite;
}

/* 海报封面 */
.kz-music-cover.kz-cover-poster {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.kz-music-cover.kz-cover-poster svg { display: none; }
.kz-music-cover.kz-cover-poster::after { display: none; }

/* 设置：速度胶囊 */
.kz-dp-speeds { display: flex; gap: 6px; }
.kz-dp-speed {
    height: 26px;
    padding: 0 10px;
    border-radius: 99px;
    border: 1px solid rgba(100, 116, 139, .35);
    background: rgba(255, 255, 255, .7);
    color: #475569;
    font-size: 11.5px;
    cursor: pointer;
}
.kz-dp-speed.kz-on {
    background: linear-gradient(90deg, #22d3ee, #6366f1);
    color: #fff;
    border-color: transparent;
    font-weight: 700;
}
.night-mode .kz-dp-speed { background: rgba(255, 255, 255, .1); color: #cbd5e1; }

/* ============================================================
   封面更大更清楚 + 播放时旋转/发光
   ============================================================ */
.kz-music-cover {
    width: 72px !important;
    height: 72px !important;
    border-radius: 16px !important;
}
.kz-music-cover svg { width: 58%; height: 58%; }
/* 唱片/打碟机/均衡器：播放时缓慢旋转 */
.kz-music-cover.kz-spin:not(.kz-cover-poster) svg {
    animation: kzdjSpin 8s linear infinite;
}
@keyframes kzdjSpin { to { transform: rotate(360deg); } }
/* 海报：不旋转，改为呼吸发光，保证图案清晰 */
.kz-music-cover.kz-cover-poster.kz-spin {
    animation: kzdjPoster 2.6s ease-in-out infinite;
}
@keyframes kzdjPoster {
    0%, 100% { box-shadow: 0 8px 22px rgba(2, 6, 23, .35), 0 0 0 0 rgba(103, 232, 249, .0); }
    50% { box-shadow: 0 8px 22px rgba(2, 6, 23, .35), 0 0 16px 2px rgba(103, 232, 249, .55); }
}
.kz-music-cover.kz-cover-poster {
    background-color: #0b1220 !important;
}

/* 歌名/歌手更清楚 */
.kz-music-title {
    font-size: 13.5px !important;
    line-height: 1.25;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
}
.kz-music-artist {
    font-size: 11px !important;
    opacity: .85 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .4);
}
.kz-music-item span { font-size: 11.5px !important; }
.kzf .kz-music-item span { font-size: 11.5px !important; }
body.kz-wall-light .kz-music-title,
body.kz-wall-light .kz-music-artist { text-shadow: none; }

/* 歌曲自带封面（ID3 内嵌图) */
.kz-music-cover.kz-cover-art {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}
.kz-music-cover.kz-cover-art::after { display: none; }

/* 设置里封面按钮的小预览 */
.kz-dp-cover {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.kz-dp-cico {
    width: 18px; height: 18px;
    border-radius: 5px;
    background: rgba(99, 102, 241, .15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: none;
}
.kz-dp-cico svg { width: 70%; height: 70%; }
.kz-dp-cico svg circle, .kz-dp-cico svg path, .kz-dp-cico svg rect {
    stroke: #4c1d95;
    fill: #4c1d95;
}
.kz-dp-cover.kz-on .kz-dp-cico { background: rgba(255, 255, 255, .28); }
.kz-dp-cover.kz-on .kz-dp-cico svg circle,
.kz-dp-cover.kz-on .kz-dp-cico svg path,
.kz-dp-cover.kz-on .kz-dp-cico svg rect { stroke: #fff; fill: #fff; }

/* 迷你模式：封面必须缩在球里，不能露出来 */
.kz-music.kz-mini {
    width: 76px !important;
    height: 76px;
    padding: 8px !important;
    overflow: hidden !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.kz-music.kz-mini .kz-music-cover {
    width: 60px !important;
    height: 60px !important;
    border-radius: 18px !important;
    flex: none;
}
.kz-music.kz-mini .kz-music-main { gap: 0; width: 60px; }

/* 歌单里不再显示 8.2M 这种体积数字 */
.kz-music-item b { display: none !important; }


/* ============================================================
   迷你播放器重做：封面铺满小方块 + 播放角标
   ============================================================ */
.kz-music.kz-mini {
    width: 72px !important;
    height: 72px !important;
    padding: 0 !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    display: block !important;
    background: linear-gradient(140deg, #6366f1, #22d3ee) !important;
    border: 1px solid rgba(255, 255, 255, .45) !important;
    box-shadow: 0 10px 26px rgba(2, 6, 23, .35) !important;
}
.kz-music.kz-mini .kz-music-main {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    gap: 0 !important;
}
.kz-music.kz-mini .kz-music-cover {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background-size: cover !important;
    background-position: center !important;
}
.kz-music.kz-mini .kz-music-cover svg { width: 52% !important; height: 52% !important; }
/* 播放角标 */
.kz-music-cover .kz-mini-play {
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .45);
    border: 1px solid rgba(255, 255, 255, .6);
    color: #fff;
    font-size: 8px;
    line-height: 17px;
    text-align: center;
    display: none;
    backdrop-filter: blur(4px);
}
.kz-music.kz-mini .kz-music-cover .kz-mini-play { display: block; }
.kz-music.kz-mini:hover .kz-music-cover .kz-mini-play { background: rgba(34, 211, 238, .85); }
/* 迷你时不要旋转（小方块里转了看不清） */
.kz-music.kz-mini .kz-music-cover svg { animation: none !important; }

/* 播放器提示条 */
.kz-dp-toast {
    position: fixed;
    left: 50%;
    bottom: 84px;
    transform: translate(-50%, 12px);
    max-width: min(420px, 86vw);
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(15, 23, 42, .92);
    color: #fff;
    font-size: 12.5px;
    line-height: 1.5;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    z-index: 9999;
    backdrop-filter: blur(8px);
}
.kz-dp-toast.kz-on {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* 音乐回收站 */
.kz-trash-win { width: min(560px, 94vw); }
.kz-trash-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #475569;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
}
.kz-trash-top select {
    height: 28px;
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, .14);
    font-size: 12px;
    padding: 0 6px;
}
.kz-trash-empty { text-align: center; color: #94a3b8; font-size: 12.5px; padding: 26px 0; }
.kz-trash-list { display: flex; flex-direction: column; margin-top: 8px; }
.kz-trash-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 2px;
    border-bottom: 1px dashed rgba(15, 23, 42, .08);
}
.kz-trash-row .n { flex: 1; min-width: 0; }
.kz-trash-row .n b {
    display: block;
    font-size: 12.5px;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.kz-trash-row .n span { font-size: 10.5px; color: #94a3b8; }
.kz-trash-row .kzp-btn { height: 30px; font-size: 11.5px; flex: none; }

/* ============================================================
   音乐卡：新增 11 种变色特效
   极光 / 彩虹 / 脉冲 / 扫描 / 反光 / 液态 / 赛博 / 星尘 / 雪花 / 雨幕 / 全息
   全部只在 data-fx 选中时生效，默认 none 与原样式完全一致
   ============================================================ */
.kz-music[data-fx]:not([data-fx="none"]) > * { position: relative; z-index: 1; }
.kz-music[data-fx]:not([data-fx="none"])::after { z-index: 0; }

/* ---- 1. 极光流动 ---- */
.kz-music[data-fx="aurora"] {
    border-color: rgba(255, 255, 255, .5);
    background-image:
        radial-gradient(120% 110% at 18% 0%, rgba(56, 189, 248, .40), transparent 62%),
        radial-gradient(120% 110% at 82% 100%, rgba(167, 139, 250, .42), transparent 62%),
        radial-gradient(100% 100% at 50% 45%, rgba(52, 211, 153, .26), transparent 66%),
        linear-gradient(155deg, rgba(255, 255, 255, .20), rgba(255, 255, 255, .06));
    background-size: 200% 200%, 200% 200%, 200% 200%, 100% 100%;
    box-shadow: 0 18px 48px rgba(2, 6, 23, .42), 0 0 46px rgba(56, 189, 248, .34);
    animation: kzdjAurora calc(14s / var(--kzdj-spd, 1)) ease-in-out infinite alternate;
}
@keyframes kzdjAurora {
    0%   { background-position: 0% 0%, 100% 100%, 50% 50%, 0 0; }
    50%  { background-position: 100% 40%, 0% 60%, 40% 60%, 0 0; }
    100% { background-position: 30% 100%, 70% 0%, 60% 40%, 0 0; }
}

/* ---- 2. 彩虹循环 ---- */
.kz-music[data-fx="rainbow"] {
    border: 2px solid transparent;
    background-image:
        linear-gradient(155deg, rgba(22, 28, 52, .80), rgba(10, 14, 30, .64)),
        linear-gradient(90deg, #f87171, #fbbf24, #34d399, #22d3ee, #a78bfa, #f472b6, #f87171);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-size: 100% 100%, 300% 100%;
    box-shadow: 0 18px 48px rgba(2, 6, 23, .42), 0 0 36px rgba(167, 139, 250, .45);
    animation: kzdjRainbow calc(6s / var(--kzdj-spd, 1)) linear infinite;
}
@keyframes kzdjRainbow {
    0%   { background-position: 0 0, 0% 0; }
    100% { background-position: 0 0, 300% 0; }
}

/* ---- 3. 心跳脉冲 ---- */
.kz-music[data-fx="pulse"] {
    border-color: rgba(244, 114, 182, .75);
    transform-origin: 50% 100%;
    animation: kzdjPulse calc(1.6s / var(--kzdj-spd, 1)) ease-in-out infinite;
}
@keyframes kzdjPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 18px 48px rgba(2, 6, 23, .42), 0 0 22px rgba(244, 114, 182, .30); }
    16%      { transform: scale(1.02); box-shadow: 0 18px 48px rgba(2, 6, 23, .42), 0 0 48px rgba(244, 114, 182, .62); }
    34%      { transform: scale(1); }
    52%      { transform: scale(1.012); box-shadow: 0 18px 48px rgba(2, 6, 23, .42), 0 0 38px rgba(167, 139, 250, .55); }
}

/* ---- 4. 扫描线 ---- */
.kz-music[data-fx="scan"] {
    border-color: rgba(103, 232, 249, .7);
    box-shadow: 0 18px 48px rgba(2, 6, 23, .42), 0 0 34px rgba(34, 211, 238, .34);
}
.kz-music[data-fx="scan"]::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background-image: repeating-linear-gradient(0deg,
        rgba(103, 232, 249, .22) 0 1px, transparent 1px 5px);
    background-size: 100% 5px;
    animation: kzdjScanLine calc(1.4s / var(--kzdj-spd, 1)) linear infinite;
    opacity: .6;
    mix-blend-mode: screen;
}
@keyframes kzdjScanLine { to { background-position: 0 5px; } }

/* ---- 5. 玻璃反光 ---- */
.kz-music[data-fx="shine"] {
    border-color: rgba(255, 255, 255, .55);
    box-shadow: 0 18px 48px rgba(2, 6, 23, .40), 0 0 30px rgba(255, 255, 255, .22);
}
.kz-music[data-fx="shine"]::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(105deg,
        transparent 34%, rgba(255, 255, 255, .60) 48%, rgba(255, 255, 255, .10) 56%, transparent 66%);
    background-size: 300% 100%;
    animation: kzdjShine calc(4.4s / var(--kzdj-spd, 1)) ease-in-out infinite;
    mix-blend-mode: screen;
    opacity: .85;
}
@keyframes kzdjShine {
    0%        { background-position: 175% 0; }
    55%, 100% { background-position: -110% 0; }
}

/* ---- 6. 液态融化 ---- */
.kz-music[data-fx="liquid"] {
    background: linear-gradient(155deg, rgba(15, 23, 42, .55), rgba(2, 6, 23, .35));
    border-color: rgba(125, 211, 252, .45);
    box-shadow: 0 18px 48px rgba(2, 6, 23, .45), 0 0 40px rgba(56, 189, 248, .30);
}
.kz-music[data-fx="liquid"]::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background-image:
        radial-gradient(42% 46% at 24% 28%, rgba(56, 189, 248, .58), transparent 70%),
        radial-gradient(46% 50% at 76% 66%, rgba(167, 139, 250, .56), transparent 70%),
        radial-gradient(36% 40% at 58% 18%, rgba(52, 211, 153, .44), transparent 70%);
    filter: blur(10px);
    animation: kzdjLiquid calc(9s / var(--kzdj-spd, 1)) ease-in-out infinite alternate;
    opacity: .8;
}
@keyframes kzdjLiquid {
    0%   { transform: translate3d(-5%, -3%, 0) scale(1.06) rotate(-2deg); }
    50%  { transform: translate3d(5%, 4%, 0) scale(1.16) rotate(2deg); }
    100% { transform: translate3d(-3%, 5%, 0) scale(1.02) rotate(-1deg); }
}

/* ---- 7. 赛博网格 ---- */
.kz-music[data-fx="cyber"] {
    border-color: rgba(34, 211, 238, .8);
    background: linear-gradient(155deg, rgba(4, 20, 36, .62), rgba(2, 6, 23, .42));
    box-shadow: 0 18px 48px rgba(2, 6, 23, .5), 0 0 40px rgba(34, 211, 238, .40);
}
.kz-music[data-fx="cyber"]::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(34, 211, 238, .24) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, .24) 1px, transparent 1px);
    background-size: 18px 18px, 18px 18px;
    animation: kzdjCyber calc(2.6s / var(--kzdj-spd, 1)) linear infinite;
    opacity: .55;
}
@keyframes kzdjCyber { to { background-position: 0 18px, 18px 0; } }

/* ---- 8. 星尘闪烁 ---- */
.kz-music[data-fx="star"] {
    background: linear-gradient(155deg, rgba(24, 22, 60, .55), rgba(8, 6, 30, .42));
    border-color: rgba(199, 210, 254, .55);
    box-shadow: 0 18px 48px rgba(2, 6, 23, .5), 0 0 38px rgba(129, 140, 248, .35);
}
.kz-music[data-fx="star"]::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background-image:
        radial-gradient(1.6px 1.6px at 14% 22%, #fff, transparent),
        radial-gradient(1.3px 1.3px at 38% 58%, #c7d2fe, transparent),
        radial-gradient(1.8px 1.8px at 62% 30%, #fff, transparent),
        radial-gradient(1.2px 1.2px at 82% 72%, #a5f3fc, transparent),
        radial-gradient(1.5px 1.5px at 28% 84%, #fbcfe8, transparent),
        radial-gradient(1.4px 1.4px at 72% 12%, #fff, transparent);
    animation: kzdjStar calc(2.8s / var(--kzdj-spd, 1)) ease-in-out infinite alternate;
    opacity: .9;
}
@keyframes kzdjStar {
    0%   { opacity: .28; }
    45%  { opacity: 1; }
    100% { opacity: .45; }
}

/* ---- 9. 雪花飘落 ---- */
.kz-music[data-fx="snow"] {
    background: linear-gradient(155deg, rgba(219, 234, 254, .30), rgba(148, 163, 184, .18));
    border-color: rgba(224, 242, 254, .7);
    box-shadow: 0 18px 48px rgba(2, 6, 23, .34), 0 0 36px rgba(224, 242, 254, .40);
}
.kz-music[data-fx="snow"]::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background-image:
        radial-gradient(2px 2px at 10% 25%, #fff, transparent),
        radial-gradient(2px 2px at 32% 68%, rgba(255, 255, 255, .9), transparent),
        radial-gradient(2.6px 2.6px at 54% 42%, #fff, transparent),
        radial-gradient(1.8px 1.8px at 76% 80%, rgba(224, 242, 254, .95), transparent),
        radial-gradient(2.2px 2.2px at 92% 15%, #fff, transparent);
    background-size: 34px 58px, 46px 76px, 40px 90px, 52px 68px, 38px 82px;
    background-repeat: repeat;
    animation: kzdjSnow calc(6.5s / var(--kzdj-spd, 1)) linear infinite;
    opacity: .85;
}
@keyframes kzdjSnow {
    to {
        background-position: 0 58px, -8px 76px, 6px 90px, 4px 68px, -6px 82px;
    }
}

/* ---- 10. 雨幕 ---- */
.kz-music[data-fx="rain"] {
    background: linear-gradient(155deg, rgba(30, 41, 59, .58), rgba(15, 23, 42, .42));
    border-color: rgba(191, 234, 255, .55);
    box-shadow: 0 18px 48px rgba(2, 6, 23, .5), 0 0 34px rgba(125, 211, 252, .32);
}
.kz-music[data-fx="rain"]::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background-image: repeating-linear-gradient(100deg,
        rgba(191, 234, 255, .55) 0 1px, transparent 1px 10px);
    background-size: 64px 64px;
    animation: kzdjRain calc(0.9s / var(--kzdj-spd, 1)) linear infinite;
    opacity: .45;
}
@keyframes kzdjRain { to { background-position: 64px 64px; } }

/* ---- 11. 全息色散 ---- */
.kz-music[data-fx="holo"] {
    border-color: rgba(255, 255, 255, .6);
    box-shadow: 0 18px 48px rgba(2, 6, 23, .42), 0 0 44px rgba(236, 72, 153, .30);
}
.kz-music[data-fx="holo"]::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: conic-gradient(from 0deg at 50% 50%,
        rgba(255, 0, 128, .40), rgba(255, 196, 0, .34), rgba(0, 255, 170, .34),
        rgba(0, 180, 255, .38), rgba(160, 0, 255, .38), rgba(255, 0, 128, .40));
    animation: kzdjHolo calc(6s / var(--kzdj-spd, 1)) linear infinite;
    mix-blend-mode: color-dodge;
    opacity: .30;
}
@keyframes kzdjHolo {
    0%   { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* ============================================================
   【20261028F】音乐播放器独立页（设置侧边栏 → 音乐播放器）
   ------------------------------------------------------------
   用户 10-28 要求：音乐相关的功能单独一页，选好音乐之后要能
   一眼看到「哪些功能是开着的」。JS 见 kz-desk-plus.js 的
   buildMusicSettings()，这里只管长相。整段新增，老规则没动。

   ⚠ 为什么全用 `#settingsWin #kzMuSec` 双 ID：
   2.css 里有一条 `#windowsDesktopSystem, #windowsDesktopSystem * {margin:0;padding:0}`，
   带 ID 权重，普通类名（.kz-mu-sum）压不住，会被清成 0
   —— 不抬权重的话概览板会挤成一条线。
   ============================================================ */

#settingsWin #kzMuSec {
    margin: 0;
    padding: 0;
    border-top: 0;
}

#settingsWin #kzMuSec h4 {
    margin: 18px 0 6px;
    padding: 0;
}

#settingsWin #kzMuSec .kz-dp-row {
    padding: 8px 0;
}

/* ---------- 顶部「现在开着什么」 ---------- */
#settingsWin #kzMuSec .kz-mu-sum {
    margin: 2px 0 12px;
    padding: 10px 12px 11px;
    border: 1px solid rgba(99, 102, 241, .18);
    border-radius: 12px;
    background: rgba(99, 102, 241, .06);
}

#settingsWin #kzMuSec .kz-mu-sum-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 8px;
    padding: 0;
    font: 700 12.5px/1.4 -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: #4f46e5;
}

#settingsWin #kzMuSec .kz-mu-sum-n {
    font: 500 11.5px/1.4 -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: #64748b;
}

#settingsWin #kzMuSec .kz-mu-sum-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin: 0;
}

#settingsWin #kzMuSec .kz-mu-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    margin: 0;
    border-radius: 999px;
    border: 1px solid transparent;
    font: 500 11.5px/1.5 -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
    white-space: nowrap;
}

/* 开着＝绿色 */
#settingsWin #kzMuSec .kz-mu-chip.kz-mu-on {
    border-color: rgba(34, 197, 94, .30);
    background: rgba(34, 197, 94, .12);
    color: #15803d;
}

/* 关着＝灰色，一眼就能看出没开 */
#settingsWin #kzMuSec .kz-mu-chip.kz-mu-off {
    border-color: rgba(148, 163, 184, .30);
    background: rgba(148, 163, 184, .10);
    color: #94a3b8;
}

/* 参数值（音量 / 宽度 / 图标），不参与开关计数 */
#settingsWin #kzMuSec .kz-mu-chip.kz-mu-neutral {
    border-color: rgba(99, 102, 241, .18);
    background: #ffffff;
    color: #475569;
}

/* ---------- 三个快捷按钮 ---------- */
#settingsWin #kzMuSec .kz-mu-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 6px;
    padding: 0;
}

#settingsWin #kzMuSec .kz-mu-qbtn {
    padding: 4px 12px;
    margin: 0;
    min-height: 28px;
    height: 28px;
    border-radius: 9px;
    border: 1px solid rgba(15, 23, 42, .10);
    background: #ffffff;
    color: #334155;
    font: 500 12px/1.3 -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
    cursor: pointer;
    transition: background .14s ease, border-color .14s ease, color .14s ease;
}

#settingsWin #kzMuSec .kz-mu-qbtn:hover {
    background: rgba(99, 102, 241, .10);
    border-color: rgba(99, 102, 241, .30);
    color: #4f46e5;
}

/* ---------- 开关：恢复成正常的小胶囊 ----------
   通用按钮美化（#settingsWin button:not(...)）会把每个按钮顶成
   34px 高、左右 16px 内边距的丸剂，开关就被撑成一个空圆环。
   这里用双 ID 把它压回 40×22。 */
#settingsWin #kzMuSec .kz-dp-sw {
    flex: 0 0 auto;
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    height: 22px;
    min-height: 22px;
    max-height: 22px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    /* 通用按钮美化里 background 带 !important，这里必须跟着加，不然开关会变成白玻璃 */
    background: rgba(100, 116, 139, .35) !important;
    box-shadow: none !important;
    position: relative;
    cursor: pointer;
    transition: background .2s ease;
}

#settingsWin #kzMuSec .kz-dp-sw.kz-on {
    background: linear-gradient(90deg, #22d3ee, #6366f1) !important;
}

#settingsWin #kzMuSec .kz-dp-sw > i {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    padding: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .28);
    transition: transform .2s cubic-bezier(.2, .8, .2, 1);
}

#settingsWin #kzMuSec .kz-dp-sw.kz-on > i {
    transform: translateX(18px);
}

/* ---------- 深色 / 夜间主题 ---------- */
.night-mode #settingsWin #kzMuSec .kz-mu-sum,
.theme-dark-gold #settingsWin #kzMuSec .kz-mu-sum {
    border-color: rgba(147, 165, 255, .22);
    background: rgba(147, 165, 255, .10);
}

.night-mode #settingsWin #kzMuSec .kz-mu-sum-h,
.theme-dark-gold #settingsWin #kzMuSec .kz-mu-sum-h {
    color: #a9b8ff;
}

.night-mode #settingsWin #kzMuSec .kz-mu-sum-n,
.theme-dark-gold #settingsWin #kzMuSec .kz-mu-sum-n {
    color: #94a3b8;
}

.night-mode #settingsWin #kzMuSec .kz-mu-chip.kz-mu-neutral,
.theme-dark-gold #settingsWin #kzMuSec .kz-mu-chip.kz-mu-neutral {
    border-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
    color: #cbd5e1;
}

.night-mode #settingsWin #kzMuSec .kz-mu-qbtn,
.theme-dark-gold #settingsWin #kzMuSec .kz-mu-qbtn {
    border-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
    color: #cbd5e1;
}

/* 手机窄屏 */
@media (max-width: 640px) {
    #settingsWin #kzMuSec .kz-mu-chip { font-size: 11px; padding: 2px 8px; }
    #settingsWin #kzMuSec .kz-mu-qbtn { flex: 1 1 30%; text-align: center; }
}
