/* ============================================================
   css/panels/panels-nest-music.css — 一起听歌
   梦幻星球播放器 + 三种模式 + 弹幕层
   遵循 DESIGN-SYSTEM.md / 暖米韩系法式花艺风格
   ============================================================ */

/* ===== Header ===== */
.music-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: 16px 16px 8px;
}
.music-header-titles {
    display: flex; flex-direction: column; gap: 2px;
    /* ★ 2026-10：头部新增「上传歌曲」按钮（原来这套弹层没有任何入口）→ 窄屏 360px 下标题块让位并省略，
       绝不把头部撑破 / 横向溢出 */
    min-width: 0; flex: 1 1 auto;
}
.music-header-title {
    font: italic 16px var(--font-decorative);
    color: var(--text-primary);
    letter-spacing: 0.04em;
}
.music-header-subtitle {
    font-size: 10px; color: var(--text-muted);
    font-style: italic; letter-spacing: 0.03em;
    opacity: 0.7;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.music-header-actions { display: flex; gap: 6px; align-items: center; flex: 0 0 auto; }
.music-btn-icon {
    width: 32px; height: 32px; border: none; background: none;
    cursor: pointer; padding: 0; display: flex; align-items: center;
    justify-content: center; color: var(--text-secondary);
    border-radius: 50%; transition: background 0.15s, color 0.15s;
}
.music-btn-icon:hover { background: var(--rose-light); color: var(--rose); }
.music-btn-to-gramophone {
    border: 0.5px solid var(--divider); border-radius: 16px;
    width: auto; padding: 0 10px; gap: 4px; font-size: 10px;
    color: var(--rose); letter-spacing: 0.02em;
}
.music-btn-to-gramophone::after { content: '留声机'; }
.music-btn-to-gramophone:hover { background: var(--rose-light); border-color: var(--rose); }

/* ===== Planet Area ===== */
.music-planet-area {
    position: relative; height: 200px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.music-planet-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 60%, rgba(200,184,180,0.12) 0%, transparent 70%),
                radial-gradient(ellipse at 50% 50%, var(--bg-chat) 0%, var(--bg-primary) 100%);
}
.music-planet-globe {
    width: 110px; height: 110px; border-radius: 50%; z-index: 2;
    background: radial-gradient(circle at 35% 30%, rgba(245,235,230,0.9) 0%, rgba(210,185,180,0.7) 25%, rgba(180,150,155,0.8) 55%, rgba(130,110,120,0.9) 80%, rgba(80,70,80,0.95) 100%);
    box-shadow: 0 0 30px rgba(200,160,160,0.25), 0 0 60px rgba(190,160,180,0.12), inset 0 -8px 16px rgba(80,60,70,0.2);
    animation: planetBreath 6s ease-in-out infinite;
    overflow: visible; transition: box-shadow 0.8s;
}
/* 播放时加旋转 */
.music-planet-globe.playing-spin { animation: planetBreathAndSpin 6s ease-in-out infinite; }
/* 在一起时暖光 */
.music-planet-globe.together-warm {
    box-shadow: 0 0 40px rgba(200,150,150,0.4), 0 0 80px rgba(200,160,170,0.2), inset 0 -8px 16px rgba(80,60,70,0.2);
}
@keyframes planetBreath {
    0%, 100% { transform: scale(1); box-shadow: 0 0 30px rgba(200,160,160,0.25), 0 0 60px rgba(190,160,180,0.12); }
    50% { transform: scale(1.06); box-shadow: 0 0 45px rgba(200,160,160,0.35), 0 0 80px rgba(190,160,180,0.18); }
}
@keyframes planetBreathAndSpin {
    0%, 100% { transform: scale(1) rotate(0deg); box-shadow: 0 0 30px rgba(200,160,160,0.25), 0 0 60px rgba(190,160,180,0.12); }
    50% { transform: scale(1.06) rotate(180deg); box-shadow: 0 0 45px rgba(200,160,160,0.35), 0 0 80px rgba(190,160,180,0.18); }
}

/* ===== Star Particles (碎星) ===== */
.music-stars { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.music-star {
    position: absolute; border-radius: 50%;
    background: var(--gold); opacity: 0;
    animation: starTwinkle 3s ease-in-out infinite;
    box-shadow: 0 0 2px var(--gold), 0 0 4px rgba(200,160,160,0.3);
}
.music-star.s1 { width: 2px; height: 2px; top: 25%; left: 18%; animation-delay: 0s; }
.music-star.s2 { width: 3px; height: 3px; top: 15%; left: 72%; animation-delay: 0.8s; }
.music-star.s3 { width: 1.5px; height: 1.5px; top: 35%; left: 30%; animation-delay: 1.5s; }
.music-star.s4 { width: 2px; height: 2px; top: 20%; left: 55%; animation-delay: 2.1s; }
.music-star.s5 { width: 2.5px; height: 2.5px; top: 30%; left: 80%; animation-delay: 0.4s; }
.music-star.s6 { width: 1.5px; height: 1.5px; top: 40%; left: 12%; animation-delay: 1.1s; }
.music-star.s7 { width: 2px; height: 2px; top: 10%; left: 42%; animation-delay: 2.5s; }
.music-star.s8 { width: 1.8px; height: 1.8px; top: 22%; left: 65%; animation-delay: 0.6s; }
.music-star.s9 { width: 2.2px; height: 2.2px; top: 38%; left: 48%; animation-delay: 1.8s; }
.music-star.s10 { width: 1.5px; height: 1.5px; top: 18%; left: 88%; animation-delay: 2.8s; }
.music-star.s11 { width: 2px; height: 2px; top: 42%; left: 22%; animation-delay: 0.3s; }
.music-star.s12 { width: 1.8px; height: 1.8px; top: 8%; left: 52%; animation-delay: 1.6s; }
.music-star.s13 { width: 2.3px; height: 2.3px; top: 28%; left: 35%; animation-delay: 0.9s; }
.music-star.s14 { width: 1.5px; height: 1.5px; top: 45%; left: 68%; animation-delay: 2.2s; }
.music-star.s15 { width: 2px; height: 2px; top: 14%; left: 78%; animation-delay: 1.3s; }
.music-star.s16 { width: 1.8px; height: 1.8px; top: 32%; left: 8%; animation-delay: 0.7s; }
@keyframes starTwinkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    30% { opacity: 0.7; transform: scale(1.3); }
    60% { opacity: 0.15; transform: scale(0.8); }
    85% { opacity: 0.55; transform: scale(1.1); }
}

/* Orbit rings */
.music-planet-orbit {
    position: absolute; border-radius: 50%; z-index: 1;
    border: 0.5px solid var(--gold); opacity: 0.18;
    pointer-events: none;
}
.orbit-1 { width: 140px; height: 50px; top: 50%; left: 50%; transform: translate(-50%, -50%) rotateX(75deg); animation: orbitSpin1 20s linear infinite; }
.orbit-2 { width: 170px; height: 60px; top: 50%; left: 50%; transform: translate(-50%, -50%) rotateX(72deg) rotateY(15deg); animation: orbitSpin2 25s linear infinite; }
.orbit-3 { width: 155px; height: 55px; top: 50%; left: 50%; transform: translate(-50%, -50%) rotateX(78deg) rotateY(-10deg); animation: orbitSpin3 22s linear infinite; }
@keyframes orbitSpin1 { from { transform: translate(-50%, -50%) rotateX(75deg) rotate(0deg); } to { transform: translate(-50%, -50%) rotateX(75deg) rotate(360deg); } }
@keyframes orbitSpin2 { from { transform: translate(-50%, -50%) rotateX(72deg) rotateY(15deg) rotate(0deg); } to { transform: translate(-50%, -50%) rotateX(72deg) rotateY(15deg) rotate(-360deg); } }
@keyframes orbitSpin3 { from { transform: translate(-50%, -50%) rotateX(78deg) rotateY(-10deg) rotate(0deg); } to { transform: translate(-50%, -50%) rotateX(78deg) rotateY(-10deg) rotate(360deg); } }

/* Floating notes */
.music-planet-note { position: absolute; z-index: 3; pointer-events: none; }
.note-1 { left: 55%; top: 45%; animation: noteFloat1 5s ease-in-out infinite; }
.note-2 { left: 25%; top: 55%; animation: noteFloat2 4.5s ease-in-out infinite 1.5s; }
.note-3 { left: 70%; top: 60%; animation: noteFloat3 6s ease-in-out infinite 2.5s; }
.music-planet-note::before {
    content: ''; display: block;
    width: 3px; height: 3px; border-radius: 50%;
    background: var(--rose); opacity: 0.55;
    box-shadow: 5px 0 0 0 var(--rose);
}
.music-planet-note::after {
    content: ''; display: block;
    width: 1px; height: 6px; background: var(--rose);
    margin-left: 5px; margin-top: -3px; opacity: 0.45;
}
@keyframes noteFloat1 {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    15% { opacity: 0.5; }
    85% { opacity: 0.5; }
    100% { transform: translateY(-30px) rotate(15deg); opacity: 0; }
}
@keyframes noteFloat2 {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    15% { opacity: 0.4; }
    85% { opacity: 0.4; }
    100% { transform: translateY(-25px) rotate(-10deg); opacity: 0; }
}
@keyframes noteFloat3 {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    18% { opacity: 0.45; }
    82% { opacity: 0.45; }
    100% { transform: translateY(-35px) rotate(20deg); opacity: 0; }
}

/* ===== Playlist Selector ===== */
.music-playlist-selector {
    display: flex; align-items: center; gap: 6px; padding: 0 16px 8px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.music-playlist-chip {
    padding: 4px 12px; border-radius: 12px; font-size: 11px;
    border: 0.5px solid var(--divider); background: var(--surface);
    color: var(--text-secondary); cursor: pointer; white-space: nowrap;
    flex-shrink: 0; font-family: inherit;
    transition: all 0.15s;
}
.music-playlist-chip:hover { border-color: var(--rose); color: var(--rose); }
.music-playlist-chip.active { background: var(--rose-light); border-color: var(--rose); color: var(--rose); }
.music-playlist-new-chip {
    padding: 4px 8px; border-radius: 12px; font-size: 11px;
    border: 0.5px dashed var(--divider); background: none;
    color: var(--text-muted); cursor: pointer; white-space: nowrap;
    flex-shrink: 0; font-family: inherit; transition: all 0.15s;
}
.music-playlist-new-chip:hover { border-color: var(--rose); color: var(--rose); }

/* ===== Song List ===== */
.music-playlist-view { padding: 0 12px; flex: 1; overflow-y: auto; }
.music-empty { text-align: center; padding: 32px 16px; }
.music-empty-icon { margin-bottom: 12px; }
.music-empty-title {
    font: italic 16px var(--font-decorative); color: var(--text-secondary);
    letter-spacing: 0.04em; margin-bottom: 6px;
}
.music-empty-sub { font-size: 12px; color: var(--text-muted); opacity: 0.7; margin-bottom: 4px; }
.music-empty-cta {
    display: inline-block; margin-top: 14px; padding: 8px 20px;
    border: 0.5px solid var(--rose); border-radius: 20px;
    background: transparent; color: var(--rose); font-size: 12px;
    font-family: inherit; cursor: pointer;
    transition: all 0.25s cubic-bezier(0.22,0.61,0.36,1);
}
.music-empty-cta:hover { background: var(--rose-light); box-shadow: 0 2px 12px rgba(200,160,160,0.25); }

/* ===== Cover Thumbnails ===== */
.song-card-cover {
    width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    box-shadow: var(--shadow-xs);
}
.song-card-cover-placeholder {
    background: linear-gradient(135deg, var(--rose-light), var(--lavender-light));
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: var(--rose); font-family: var(--font-decorative);
    font-style: italic;
}

.music-song-card {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: 10px;
    cursor: pointer; transition: background 0.15s, transform 0.15s;
    border-bottom: 0.5px solid rgba(180,170,160,0.08);
    position: relative; overflow: hidden;
}
.music-song-card:nth-child(even) { background: rgba(200,180,180,0.02); }
.music-song-card:hover { background: var(--rose-light); transform: translateX(2px); }
.music-song-card.playing { background: rgba(201,168,168,0.08); }
/* 正在播放的左侧玫瑰色指示线 */
.song-card-playing-indicator {
    position: absolute; left: 0; top: 8px; bottom: 8px;
    width: 2px; border-radius: 0 1px 1px 0;
    background: var(--rose); opacity: 0.7;
    animation: playingIndFade 2s ease-in-out infinite;
}
@keyframes playingIndFade {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.9; }
}
.song-card-index {
    width: 24px; font-size: 11px; color: var(--text-muted);
    text-align: center; flex-shrink: 0;
}
.song-card-info { flex: 1; min-width: 0; }
.song-card-title {
    font-size: 13px; color: var(--text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.song-card-artist {
    font-size: 11px; color: var(--text-secondary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.song-card-meta { display: flex; gap: 6px; align-items: center; margin-top: 2px; }
.song-card-added-by {
    font-size: 10px; padding: 2px 7px; border-radius: 8px;
}
.song-card-added-by.user { color: var(--sage); background: rgba(168,184,160,0.1); }
.song-card-added-by.ai { color: var(--rose); background: rgba(201,168,168,0.1); }
.song-card-recommended {
    font-size: 9px; color: var(--rose); background: var(--rose-light);
    border: 0.5px solid var(--rose); border-radius: 8px; padding: 1px 6px;
    flex-shrink: 0; letter-spacing: 0.03em;
}
.song-card-note {
    font-size: 10px; color: var(--rose); opacity: 0.6;
    font-style: italic; white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; max-width: 140px;
}
.song-card-pl-count {
    font-size: 9px; color: var(--gold); background: rgba(196,168,106,0.1);
    padding: 0 5px; border-radius: 6px; flex-shrink: 0;
}
.song-card-no-audio {
    font-size: 10px; color: var(--text-muted);
    font-style: italic; letter-spacing: 0.03em; opacity: 0.55;
}
/* ★ 2026-10-13 媒体本地化：歌单上标出「这首歌已经在她本机存了一份」/ 手动存到本机 */
.song-card-local {
    font-size: 9px; color: var(--sage); letter-spacing: 0.03em;
    flex-shrink: 0; display: none;
}
.song-card-local.local-on { display: inline; }
.song-card-store-btn {
    height: 28px; padding: 0 8px; border: 0.5px solid var(--border);
    background: none; border-radius: 14px; cursor: pointer;
    font-size: 10px; color: var(--text-secondary);
    white-space: nowrap; flex-shrink: 0;
    transition: color 0.15s, border-color 0.15s;
}
.song-card-store-btn:hover { color: var(--rose); border-color: var(--rose); }
.song-card-store-btn:disabled { opacity: 0.6; cursor: default; }
.edit-audio-area { text-align: center; padding: 8px 0; }
.edit-audio-hint { font-size: 12px; color: var(--text-muted); font-style: italic; opacity: 0.6; }
.edit-audio-done { font-size: 11px; color: var(--sage); }
.song-card-actions { display: flex; gap: 4px; flex-shrink: 0; }
.song-card-fav-btn {
    width: 28px; height: 28px; border: none; background: none;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); border-radius: 50%; transition: all 0.15s;
    flex-shrink: 0;
}
.song-card-fav-btn:hover, .song-card-fav-btn.faved { color: var(--gold); }
.song-card-fav-btn.faved svg { fill: var(--gold); stroke: var(--gold); }
/* song-card-edit-btn / song-card-del-btn 已删除 —— 编辑/删除移到留声机 */

/* ===== Mini Player Bar ===== */
.music-mini-player {
    position: sticky; bottom: 0; z-index: 10;
    display: flex; align-items: center; gap: 10px;
    padding: 8px 16px; margin: 0 12px 12px;
    background: var(--surface);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-radius: 14px;
    box-shadow: var(--shadow-sm), var(--shadow-xs);
    height: 60px;
    transition: opacity 0.3s, transform 0.3s, border-color 0.4s;
}
/* AI在房时播放器粉色边框辉光 */
.music-mini-player.together-active {
    border: 0.5px solid rgba(200,160,160,0.35);
    box-shadow: var(--shadow-sm), 0 0 16px rgba(200,160,160,0.15);
}
/* 顶部进度条 */
.mini-player-progress {
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--divider); border-radius: 14px 14px 0 0;
    overflow: hidden; opacity: 0; transition: opacity 0.25s;
}
.mini-player-progress.active { opacity: 1; }
.mini-player-progress-fill {
    height: 100%; width: 0%;
    background: var(--rose); border-radius: 14px 0 0 0;
    transition: width 0.3s linear;
}
.mini-player-info { flex: 1; min-width: 0; cursor: pointer; display: flex; flex-direction: column; gap: 1px; }
.mini-player-title {
    display: block; font-size: 13px; color: var(--text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mini-player-artist {
    display: block; font-size: 11px; color: var(--text-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mini-player-status {
    display: block; font-size: 10px; color: var(--rose); opacity: 0.6;
    font-style: italic; letter-spacing: 0.02em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: opacity 0.5s;
}
.mini-player-cover {
    width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
    background-size: cover; background-position: center;
    box-shadow: var(--shadow-xs); font-size: 11px; color: var(--rose);
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--rose-light), var(--lavender-light));
    font-family: var(--font-decorative); font-style: italic;
}
.mini-player-cover.placeholder { background: linear-gradient(135deg, var(--rose-light), var(--lavender-light)); }

.mini-player-btn {
    width: 36px; height: 36px; border: none; background: none;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: var(--text-primary); border-radius: 50%; transition: all 0.15s;
}
.mini-player-btn:hover { background: var(--rose-light); color: var(--rose); }
/* 播放按钮脉冲动画 */
@keyframes miniPlayPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(200,160,160,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(200,160,160,0); }
}
.mini-player-btn.playing-btn { animation: miniPlayPulse 2s ease-in-out infinite; }

/* ===== Expanded Overlay ===== */
.music-expanded-overlay {
    position: fixed; inset: 0; z-index: 500;
    background: #1a1418;
    display: none; flex-direction: column;
    overflow: hidden;
}
.music-expanded-overlay.open { display: flex; }
.music-expanded-back {
    position: absolute; top: 12px; left: 12px; z-index: 10;
    width: 36px; height: 36px; border: none; background: rgba(255,255,255,0.08);
    cursor: pointer; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; color: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    transition: all 0.15s;
    padding-top: env(safe-area-inset-top, 0px);
}
.music-expanded-back:hover { background: rgba(255,255,255,0.15); color: #fff; }

.music-expanded-bg {
    position: absolute; inset: 0; z-index: 0;
    background: radial-gradient(ellipse at 50% 40%, rgba(180,150,160,0.2) 0%, transparent 50%),
                radial-gradient(ellipse at 30% 60%, rgba(140,130,180,0.12) 0%, transparent 40%),
                radial-gradient(ellipse at 70% 50%, rgba(180,160,130,0.1) 0%, transparent 40%),
                linear-gradient(180deg, #1a1418 0%, #1e1820 50%, #18141a 100%);
    animation: auroraShift 20s ease-in-out infinite;
}
/* 极光呼吸动画 */
@keyframes auroraShift {
    0%, 100% { opacity: 1; }
    25% { opacity: 0.85; }
    50% { opacity: 1; }
    75% { opacity: 0.9; }
}
/* bokeh 光斑 */
.music-expanded-bg::before {
    content: ''; position: absolute;
    top: 15%; left: 20%; width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(200,160,170,0.12) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
    animation: bokehFloat1 12s ease-in-out infinite;
}
.music-expanded-bg::after {
    content: ''; position: absolute;
    top: 50%; right: 15%; width: 90px; height: 90px;
    background: radial-gradient(circle, rgba(180,160,200,0.08) 0%, transparent 70%);
    border-radius: 50%; pointer-events: none;
    animation: bokehFloat2 15s ease-in-out infinite;
}
@keyframes bokehFloat1 {
    0%, 100% { transform: translate(0,0); }
    33% { transform: translate(30px,-20px); }
    66% { transform: translate(-15px,25px); }
}
@keyframes bokehFloat2 {
    0%, 100% { transform: translate(0,0); }
    50% { transform: translate(-25px,-15px); }
}

.music-expanded-content {
    position: relative; z-index: 1;
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 20px; padding-top: calc(52px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto; -webkit-overflow-scrolling: touch;
}

/* Together Mode Avatars（双人房：横向排列，独听时他的位置留空） */
.music-together-avatars {
    display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 14px;
    flex-direction: row;
}
.together-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; color: #fff; font-family: var(--font-body);
    box-shadow: 0 0 16px rgba(200,160,160,0.2);
    overflow: hidden; flex-shrink: 0;
}
.together-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.together-avatar-user { background: linear-gradient(135deg, var(--sage), #8a9a82); }
.together-avatar-ai { background: linear-gradient(135deg, var(--rose), #a88890); }
.together-avatar-ai.empty { background: transparent; border: 1px dashed rgba(255,255,255,0.35); box-shadow: none; }
.together-heart-connection { width: 120px; height: 40px; overflow: visible; }

/* Large Planet */
.music-planet-large {
    position: relative; width: 110px; height: 110px;
    margin: 8px 0;
}
.music-planet-large-globe {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 84px; height: 84px; border-radius: 50%; z-index: 2;
    background: radial-gradient(circle at 35% 30%, rgba(245,235,230,0.9) 0%, rgba(210,185,180,0.7) 25%, rgba(180,150,155,0.8) 55%, rgba(130,110,120,0.9) 80%, rgba(80,70,80,0.95) 100%);
    box-shadow: 0 0 50px rgba(200,160,160,0.3), 0 0 100px rgba(190,160,180,0.15), inset 0 -10px 20px rgba(80,60,70,0.25);
    animation: planetBreathLarge 6s ease-in-out infinite;
    overflow: visible;
}
@keyframes planetBreathLarge {
    0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 50px rgba(200,160,160,0.3), 0 0 100px rgba(190,160,180,0.15); }
    50% { transform: translate(-50%, -50%) scale(1.06); box-shadow: 0 0 70px rgba(200,160,160,0.4), 0 0 130px rgba(190,160,180,0.2); }
}
.music-planet-large-orbit {
    position: absolute; border-radius: 50%; z-index: 1;
    border: 0.5px solid var(--gold); opacity: 0.18; pointer-events: none;
}
.orbit-l1 { width: 170px; height: 55px; top: 50%; left: 50%; transform: translate(-50%, -50%) rotateX(75deg); animation: orbitSpin1 20s linear infinite; }
.orbit-l2 { width: 200px; height: 65px; top: 50%; left: 50%; transform: translate(-50%, -50%) rotateX(72deg) rotateY(20deg); animation: orbitSpin2 28s linear infinite; }
.orbit-l3 { width: 185px; height: 60px; top: 50%; left: 50%; transform: translate(-50%, -50%) rotateX(78deg) rotateY(-15deg); animation: orbitSpin3 24s linear infinite; }

/* Danmaku Layer */
.music-danmaku-layer {
    position: absolute; inset: 0; z-index: 5;
    pointer-events: none; overflow: hidden;
}
.music-danmaku-msg {
    position: absolute; bottom: 10%;
    padding: 5px 12px; border-radius: 12px;
    font-size: 12px; line-height: 1.4; max-width: 70%;
    animation: danmakuRise 4s ease-out forwards;
    pointer-events: auto; font-family: var(--font-body);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.music-danmaku-msg.from-ai {
    background: rgba(210,180,185,0.85); color: #3a2025;
    left: 10%;
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.music-danmaku-msg.from-user {
    background: rgba(175,195,170,0.85); color: #1a2a18;
    right: 10%;
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
@keyframes danmakuRise {
    0% { transform: translateY(0); opacity: 0; }
    10% { opacity: 1; }
    70% { opacity: 1; }
    100% { transform: translateY(-200px); opacity: 0; }
}

/* Expanded Info */
.music-expanded-info {
    display: flex; align-items: center; gap: 14px; margin: 12px 0 8px; justify-content: center;
    background: rgba(255,255,255,0.03); border-radius: 14px;
    padding: 10px 18px; backdrop-filter: blur(8px);
    border: 0.5px solid rgba(255,255,255,0.04);
}
.music-expanded-cover {
    width: 56px; height: 56px; border-radius: 10px; flex-shrink: 0;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    box-shadow: 0 0 16px rgba(200,160,160,0.25);
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(210,185,180,0.3), rgba(180,150,155,0.2));
    font-size: 16px; color: rgba(255,255,255,0.5);
    font-family: var(--font-decorative); font-style: italic;
}
.music-expanded-cover.placeholder { background: linear-gradient(135deg, rgba(210,185,180,0.3), rgba(180,150,155,0.2)); }
.music-expanded-text { text-align: left; }
.music-expanded-title {
    display: block; font-size: 18px; color: rgba(255,255,255,0.9);
    font-family: var(--font-decorative); font-style: italic;
    letter-spacing: 0.04em;
}
.music-expanded-artist {
    display: block; font-size: 12px; color: rgba(255,255,255,0.5);
    margin-top: 2px;
}

/* Expanded Progress */
.music-expanded-progress { width: 100%; max-width: 320px; margin: 8px 0; }
.music-expanded-progress-bar {
    height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px;
    position: relative; cursor: pointer;
}
.music-expanded-progress-fill {
    height: 100%; background: var(--rose); border-radius: 2px;
    transition: width 0.3s linear; width: 0%;
}
/* 进度条当前位置圆点 */
.music-expanded-progress-fill::after {
    content: ''; position: absolute; right: -4px; top: -2px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--rose); box-shadow: 0 0 6px rgba(200,160,160,0.6);
}
.music-expanded-time-row {
    display: flex; justify-content: space-between; margin-top: 4px;
}
.music-expanded-time { font-size: 10px; color: rgba(255,255,255,0.4); }

/* Expanded Controls */
.music-expanded-controls {
    display: flex; align-items: center; gap: 16px; margin-top: 12px;
}
.music-ctrl-btn {
    width: 36px; height: 36px; border: none; background: none;
    cursor: pointer; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; color: rgba(255,255,255,0.7); transition: all 0.2s;
}
.music-ctrl-btn:hover { background: rgba(255,255,255,0.1); color: #fff; transform: scale(1.08); }
.music-ctrl-play {
    width: 56px; height: 56px;
    background: rgba(200,170,170,0.2);
    box-shadow: 0 0 20px rgba(200,160,160,0.2);
}
.music-ctrl-play:hover { background: rgba(200,170,170,0.35); transform: scale(1.05); }

/* Danmaku send button（透明小按钮：铅笔图标 + 弹字） */
.music-danmaku-send-btn {
    position: absolute; bottom: 100px; right: 16px; z-index: 10;
    width: 46px; height: 54px; border-radius: 23px;
    border: 0.5px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.06);
    cursor: pointer; color: rgba(255,255,255,0.65);
    display: none; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    transition: all 0.2s; font-family: var(--font-body);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.music-danmaku-send-btn span { font-size: 11px; line-height: 1; letter-spacing: 0.04em; }
.music-danmaku-send-btn:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.45); color: rgba(255,255,255,0.85); }
.music-danmaku-send-btn.show { display: flex; }

/* ===== AI Skip Request ===== */
.music-skip-notify {
    position: fixed; bottom: 140px; left: 50%; transform: translateX(-50%) translateY(10px);
    z-index: 997; width: calc(100% - 40px); max-width: 320px;
    background: var(--surface); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-radius: 14px; padding: 14px 16px;
    box-shadow: var(--shadow-md), var(--shadow-glow);
    border: 0.5px solid var(--border);
    opacity: 0; transition: all 0.3s cubic-bezier(0.22,0.61,0.36,1);
    pointer-events: none;
}
.music-skip-notify.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.msn-text { font-size: 14px; color: var(--text-primary); font-weight: 500; margin-bottom: 4px; }
.msn-reason { font-size: 12px; color: var(--text-secondary); font-style: italic; margin-bottom: 10px; }
.msn-actions { display: flex; gap: 8px; }
.msn-accept { flex: 1; padding: 8px; border: none; border-radius: 10px; background: var(--rose); color: #fff; font-size: 14px; font-family: inherit; cursor: pointer; font-weight: 500; }
.msn-accept:hover { background: var(--rose-hover); }
.msn-refuse { flex: 1; padding: 8px; border: 0.5px solid var(--divider); border-radius: 10px; background: transparent; color: var(--text-muted); font-size: 14px; font-family: inherit; cursor: pointer; }
.msn-refuse:hover { background: var(--rose-light); color: var(--text-secondary); }

/* AI Enter Notification */
.music-ai-enter-notify {
    position: absolute; top: 60px; left: 50%; transform: translateX(-50%); z-index: 15;
    padding: 8px 18px; border-radius: 20px;
    background: rgba(200,170,180,0.85); color: #3a2025;
    font-size: 12px; white-space: nowrap;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    animation: notifyIn 0.4s cubic-bezier(0.22,0.61,0.36,1), notifyOut 0.3s ease-in 3s forwards;
}
@keyframes notifyIn { from { opacity: 0; transform: translateX(-50%) translateY(-10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes notifyOut { from { opacity: 1; } to { opacity: 0; } }

/* ===== Add Song Overlay ===== */
.music-add-overlay {
    position: fixed; inset: 0; z-index: 1700;
    background: rgba(0,0,0,0.45);
    display: flex; align-items: flex-end; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.music-add-overlay.open { opacity: 1; visibility: visible; }
.music-add-panel {
    background: var(--surface-solid); border-radius: 18px 18px 0 0;
    width: 100%; max-width: 480px; padding: 20px 20px 32px;
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
}
.music-add-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    margin-bottom: 16px;
}
.music-add-header-l {
    display: flex; flex-direction: column; gap: 2px;
}
.music-add-title { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.music-add-sub {
    font-size: 11px; color: var(--text-muted);
    font-family: var(--font-decorative); font-style: italic; letter-spacing: 0.04em;
}
.music-add-close {
    width: 28px; height: 28px; border: none; background: none;
    cursor: pointer; color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    transition: color 0.15s;
}
.music-add-close:hover { color: var(--rose); }
/* .music-add-tabs / .music-add-tab 已删除 —— 只保留文件上传，不再需要 tab 切换 */
.music-add-input {
    width: 100%; padding: 10px 12px; border: 1px solid var(--divider);
    border-radius: 10px; font-size: 13px; color: var(--text-primary);
    background: var(--bg-chat); margin-bottom: 10px; font-family: inherit;
    box-sizing: border-box; outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.music-add-input:focus { border-color: var(--rose); box-shadow: 0 0 0 3px var(--rose-light); }
.music-add-submit {
    width: 100%; padding: 11px; border: none; border-radius: 12px;
    background: var(--rose); color: #fff; font-size: 15px; cursor: pointer;
    font-family: inherit; font-weight: 600; margin-top: 8px;
    transition: background 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(200,160,160,0.3);
    letter-spacing: 0.02em;
}
.music-add-submit:hover { background: var(--rose-hover); box-shadow: 0 4px 14px rgba(200,160,160,0.4); }
.music-upload-area {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 24px; border: 1px dashed var(--divider); border-radius: 12px;
    cursor: pointer; margin-bottom: 10px; transition: all 0.15s;
}
.music-upload-area:hover { border-color: var(--rose); background: var(--rose-light); }
/* ★ 2026-10：上传区由 <label> 改成真 <button>（原来靠浏览器把点击转发给隐藏 input，部分机型点了没反应）
   → 抹掉按钮的系统默认外观，并补回 label 天然占满的宽度 */
button.music-upload-area { background:none; font:inherit; color:inherit; width:100%; box-sizing:border-box; -webkit-appearance:none; appearance:none; }

/* ===== Danmaku Input（悬浮泡泡，随键盘上移） ===== */
.music-danmaku-input-overlay {
    position: absolute; bottom: calc(80px + var(--kbd-h, 0px)); left: 16px; right: 16px; z-index: 15;
    opacity: 0; visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
    pointer-events: none;
}
.music-danmaku-input-overlay.show { opacity: 1; visibility: visible; pointer-events: auto; animation: danmakuBubbleIn 0.25s ease; }
@keyframes danmakuBubbleIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.music-danmaku-bubble {
    display: flex; flex-direction: column; gap: 8px;
    padding: 12px 14px; border-radius: 16px;
    background: rgba(30,26,24,0.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 0.5px solid rgba(255,255,255,0.12);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.music-danmaku-bubble-hint {
    font-size: 11px; color: rgba(255,255,255,0.5);
    font-family: var(--font-decorative); font-style: italic; letter-spacing: 0.03em;
}
.music-danmaku-bubble-row { display: flex; gap: 8px; }
.music-danmaku-input {
    flex: 1; padding: 9px 14px; border: 1px solid rgba(255,255,255,0.2);
    border-radius: 18px; background: rgba(255,255,255,0.08); color: #fff;
    font-size: 13px; outline: none; font-family: inherit;
}
.music-danmaku-input:focus { border-color: var(--rose); }
.music-danmaku-input::placeholder { color: rgba(255,255,255,0.35); }
.music-danmaku-submit {
    padding: 8px 16px; border: none; border-radius: 18px;
    background: var(--rose); color: #fff; font-size: 13px;
    cursor: pointer; font-family: inherit; white-space: nowrap;
}

/* ===== Stats Panel ===== */
.music-stats-overlay {
    position: fixed; inset: 0; z-index: 1700;
    background: rgba(0,0,0,0.45);
    display: flex; align-items: flex-end; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.music-stats-overlay.open { opacity: 1; visibility: visible; }
.music-stats-panel {
    background: var(--surface-solid); border-radius: 18px 18px 0 0;
    width: 100%; max-width: 480px; padding: 20px 20px 32px;
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
    max-height: 70vh; overflow-y: auto;
}
.music-stats-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
}
.music-stats-title { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.music-stats-close {
    width: 28px; height: 28px; border: none; background: none;
    cursor: pointer; color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
}
.music-stats-body { display: flex; flex-direction: column; gap: 10px; }
.music-stat-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 0.5px solid var(--divider);
}
.music-stat-label { font-size: 13px; color: var(--text-secondary); }
.music-stat-value {
    font-size: 14px; color: var(--text-primary); font-weight: 500;
}
.music-stat-highlight {
    font-size: 16px; color: var(--rose);
    font-family: var(--font-decorative); font-style: italic;
}

/* ===== Embed Iframe ===== */
.music-iframe-container {
    width: 100%; max-width: 320px; margin: 12px 0;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.music-iframe-container.show { display: flex !important; }
.music-iframe-hint {
    font-size: 10px; color: rgba(255,255,255,0.35);
    font-family: var(--font-body);
}

/* ===== 记忆同步 Toast ===== */
.music-mem-toast {
    position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px);
    z-index: 998; width: calc(100% - 32px); max-width: 380px;
    background: var(--surface);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-radius: 14px; padding: 16px;
    box-shadow: var(--shadow-md), var(--shadow-glow);
    border: 0.5px solid var(--border);
    opacity: 0; transition: all 0.35s cubic-bezier(0.22,0.61,0.36,1);
    pointer-events: none;
}
.music-mem-toast.show {
    opacity: 1; transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.music-mem-toast-glow {
    position: absolute; inset: 0; border-radius: 14px;
    background: radial-gradient(ellipse at 70% 20%, var(--rose-light) 0%, transparent 60%);
    pointer-events: none;
}
.music-mem-toast-head {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 10px; position: relative; z-index: 1;
}
.music-mem-toast-body {
    display: flex; align-items: center; gap: 12px; position: relative; z-index: 1;
}
.music-mem-toast-icon {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    background: var(--rose-light);
    display: flex; align-items: center; justify-content: center;
}
.music-mem-toast-text {
    flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px;
}
.music-mem-toast-title {
    font-family: var(--font-decorative); font-style: italic;
    font-size: 14px; color: var(--text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.music-mem-toast-sub {
    font-size: 12px; color: var(--text-secondary);
}
.music-mem-toast-actions {
    display: flex; gap: 8px; margin-top: 12px; position: relative; z-index: 1;
}
.music-mem-btn {
    flex: 1; padding: 9px 0; border-radius: 10px; font-size: 14px;
    font-family: inherit; cursor: pointer; transition: all 0.15s;
    border: none;
}
.music-mem-btn-primary {
    background: var(--rose); color: #fff;
    box-shadow: 0 2px 8px rgba(200,160,160,0.25);
    font-weight: 500;
}
.music-mem-btn-primary:hover { background: var(--rose-hover); box-shadow: 0 4px 14px rgba(200,160,160,0.35); }
.music-mem-btn:active { transform: scale(0.97); }
.music-mem-btn-secondary {
    background: transparent; color: var(--text-muted);
    border: 0.5px solid var(--divider);
}
.music-mem-btn-secondary:hover {
    background: var(--rose-light); color: var(--text-secondary);
    border-color: var(--border);
}

/* ===== 播放器次级功能按钮（歌词显示/设置/分享/朋友圈） ===== */
.music-expanded-actions {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
    margin: 4px 0 8px; max-width: 320px;
}
.music-action-btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 12px; border: 0.5px solid rgba(255,255,255,0.16); border-radius: 16px;
    background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7);
    font-size: 11px; font-family: inherit; cursor: pointer;
    transition: all 0.2s; letter-spacing: 0.02em;
}
.music-action-btn:hover { color: #fff; border-color: var(--rose); background: rgba(201,168,168,0.12); }
.music-action-btn.active { color: var(--rose); border-color: var(--rose); background: rgba(201,168,168,0.12); }

/* ===== 房间信息条（标题 + 房间号 + 状态） ===== */
.music-room-info {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    margin-bottom: 8px;
}
.music-room-title {
    font-size: 15px; color: rgba(255,255,255,0.9);
    font-family: var(--font-decorative); font-style: italic; letter-spacing: 0.05em;
}
.music-room-code { font-size: 11px; color: var(--gold); opacity: 0.75; letter-spacing: 0.06em; }
.music-room-status { font-size: 11px; color: rgba(255,255,255,0.55); }

/* ===== 邀他进房（右上角角落按钮） ===== */
.music-invite-corner {
    position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 16px; z-index: 15;
    width: 40px; height: 40px; border-radius: 50%;
    border: 0.5px solid rgba(255,255,255,0.25); background: rgba(200,168,168,0.16);
    color: #fff; font-size: 13px; font-family: var(--font-body); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 10px rgba(200,160,160,0.25);
}
.music-invite-corner:hover { background: rgba(200,168,168,0.3); transform: scale(1.05); }
.music-invite-corner.disabled { opacity: 0.4; pointer-events: none; border-style: dashed; }

/* ===== 退出/结束约会（醒目按钮） ===== */
.music-end-btn {
    width: 100%; max-width: 320px; margin-top: 14px;
    padding: 10px; border: 0.5px solid var(--rose); border-radius: 18px;
    background: transparent; color: var(--rose);
    font-size: 13px; font-family: inherit; cursor: pointer;
    transition: all 0.2s; letter-spacing: 0.04em;
}
.music-end-btn:hover { background: var(--rose-light); color: #fff; }

/* ===== 播放器设置面板（底部弹层） ===== */
.music-settings-overlay {
    position: fixed; inset: 0; z-index: 1800;
    background: rgba(0,0,0,0.45);
    display: flex; align-items: flex-end; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.music-settings-overlay.open { opacity: 1; visibility: visible; }
.music-settings-panel {
    background: var(--surface-solid); border-radius: 18px 18px 0 0;
    width: 100%; max-width: 480px; padding: 20px 20px 28px;
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
    animation: slideUp 0.28s cubic-bezier(0.22,0.61,0.36,1);
}
.music-settings-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.music-settings-title { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.music-settings-close {
    width: 30px; height: 30px; border: none; background: none; cursor: pointer;
    color: var(--text-muted); display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: all 0.15s;
}
.music-settings-close:hover { background: var(--rose-light); color: var(--rose); }
.music-settings-body { display: flex; flex-direction: column; gap: 10px; }
.music-setting-row {
    display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
    padding: 12px 14px; border: 0.5px solid var(--border); border-radius: 12px;
    background: var(--bg-primary); text-align: left;
    font-family: inherit; transition: all 0.15s;
}
button.music-setting-row { cursor: pointer; }
button.music-setting-row:hover { border-color: var(--rose); }
.music-setting-label { font-size: 14px; color: var(--text-primary); }
.music-setting-sub { font-size: 11px; color: var(--text-muted); }
.music-lyric-colors { display: flex; gap: 8px; margin-top: 6px; }
.music-lyric-color {
    width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
    border: 1.5px solid transparent; transition: all 0.15s;
}
.music-lyric-color.active { border-color: var(--gold); box-shadow: 0 0 0 2px var(--surface-solid), 0 0 0 4px var(--gold); }

/* ===== 定时关闭（底部弹层） ===== */
.music-schedule-overlay {
    position: fixed; inset: 0; z-index: 1800;
    background: rgba(0,0,0,0.45);
    display: flex; align-items: flex-end; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.music-schedule-overlay.open { opacity: 1; visibility: visible; }
.music-schedule-panel {
    background: var(--surface-solid); border-radius: 18px 18px 0 0;
    width: 100%; max-width: 480px; padding: 20px 20px 28px;
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
    animation: slideUp 0.28s cubic-bezier(0.22,0.61,0.36,1);
}
.music-schedule-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.music-schedule-header-l { display: flex; flex-direction: column; gap: 2px; }
.music-schedule-title { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.music-schedule-sub {
    font-size: 11px; color: var(--text-muted); font-style: italic;
    font-family: var(--font-decorative); letter-spacing: 0.03em;
}
.music-schedule-close {
    width: 30px; height: 30px; border: none; background: none; cursor: pointer;
    color: var(--text-muted); display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: background 0.15s ease, color 0.15s ease;
}
.music-schedule-close:hover { background: var(--rose-light); color: var(--rose); }
.music-schedule-current {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 14px; margin-bottom: 14px;
    border: 0.5px solid var(--rose-light); border-radius: 12px;
    background: var(--rose-light);
}
.music-schedule-current-text { font-size: 12.5px; color: var(--rose); }
.music-schedule-cancel {
    flex-shrink: 0; padding: 5px 12px; border: 0.5px solid var(--rose); border-radius: 999px;
    background: transparent; color: var(--rose); font-size: 11px; cursor: pointer;
    font-family: inherit; transition: background 0.15s ease, color 0.15s ease;
}
.music-schedule-cancel:hover { background: var(--rose); color: #fff; }
.music-schedule-section { margin-bottom: 16px; }
.music-schedule-label { display: block; font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; letter-spacing: 0.04em; }
.music-schedule-pills { display: flex; gap: 8px; }
.music-schedule-pill {
    flex: 1; padding: 9px 0; border: 0.5px solid var(--border); border-radius: 12px;
    background: var(--bg-primary); color: var(--text-primary); font-size: 13px;
    cursor: pointer; font-family: inherit;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.music-schedule-pill:hover { border-color: var(--rose); color: var(--rose); background: var(--rose-light); }
.music-schedule-pill:active { transform: scale(0.97); }
.music-schedule-time { display: flex; align-items: center; gap: 10px; }
.music-schedule-stepper {
    display: flex; align-items: center; gap: 6px; padding: 6px 8px;
    border: 0.5px solid var(--border); border-radius: 12px; background: var(--bg-primary);
}
.music-schedule-step {
    width: 28px; height: 28px; border: none; border-radius: 8px; background: transparent;
    color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}
.music-schedule-step:hover { background: var(--rose-light); color: var(--rose); }
.music-schedule-val {
    min-width: 30px; text-align: center; font-size: 18px; font-weight: 600;
    color: var(--text-primary); font-variant-numeric: tabular-nums; letter-spacing: 0.03em;
}
.music-schedule-colon { font-size: 18px; color: var(--text-muted); font-weight: 600; }
.music-schedule-atnow {
    margin-left: auto; padding: 9px 16px; border: 0.5px solid var(--rose); border-radius: 12px;
    background: var(--rose); color: #fff; font-size: 13px; cursor: pointer; font-family: inherit;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    letter-spacing: 0.02em;
}
.music-schedule-atnow:hover { background: var(--rose-hover); box-shadow: 0 4px 14px rgba(200,160,160,0.4); }
.music-schedule-atnow:active { transform: scale(0.97); }

.music-lyrics-overlay {
    position: fixed; inset: 0; z-index: 1700;
    background: rgba(0,0,0,0.45);
    display: none; align-items: flex-end; justify-content: center;
}
.music-lyrics-overlay.open { display: flex; }
.music-lyrics-panel {
    width: 100%; max-width: 420px;
    background: var(--surface-solid);
    border-radius: 16px 16px 0 0;
    padding: 20px 20px 20px;
    box-shadow: 0 -2px 12px rgba(30,28,26,0.04), 0 -8px 32px rgba(200,160,160,0.08);
    position: relative;
}
.music-lyrics-panel::before {
    content: ''; position: absolute; top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.3;
}
.music-lyrics-header {
    display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px;
}
.music-lyrics-header-left {
    display: flex; align-items: center; gap: 10px;
}
.music-lyrics-header-title {
    display: block; font-size: 16px; color: var(--text-primary); font-weight: 600; line-height: 1.3;
}
.music-lyrics-header-sub {
    display: block; font-size: 10px; color: var(--gold); opacity: 0.6;
    font-family: var(--font-decorative); font-style: italic; letter-spacing: 0.06em; margin-top: -1px;
}
.music-lyrics-close {
    width: 32px; height: 32px; border: none; background: rgba(0,0,0,0.02);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; color: var(--text-secondary); transition: all 0.15s;
}
.music-lyrics-close:hover { background: var(--rose-light); color: var(--rose); }
.music-lyrics-textarea {
    width: 100%; min-height: 150px; padding: 14px; border: 1px solid var(--border);
    border-radius: 10px; background: var(--bg-primary); color: var(--text-primary);
    font-size: 13px; font-family: var(--font-body); line-height: 1.8; resize: vertical;
    box-sizing: border-box; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.music-lyrics-textarea:focus {
    border-color: var(--rose);
    box-shadow: var(--shadow-glow), inset 0 1px 3px rgba(0,0,0,0.02);
}
.music-lyrics-textarea::placeholder {
    color: var(--text-muted); font-size: 12px;
}
.music-lyrics-footer {
    display: flex; align-items: center; justify-content: space-between; margin-top: 10px;
}
.music-lyrics-hint {
    font-size: 10px; color: var(--text-muted); opacity: 0.6;
}
.music-lyrics-save {
    padding: 7px 20px; border: none; border-radius: 10px;
    background: var(--rose); color: #fff; font-size: 13px; font-weight: 500;
    font-family: inherit; cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 6px rgba(200,160,160,0.2);
}
.music-lyrics-save:hover { background: var(--rose-hover); box-shadow: 0 4px 12px rgba(200,160,160,0.3); }
.music-lyrics-save:active { transform: scale(0.97); }

/* ===== Dynamic Island ===== */
.music-dynamic-island {
    position: fixed; top: 10px; left: 50%; transform: translateX(-50%);
    z-index: 999; width: calc(100% - 24px); max-width: 380px;
    display: none; flex-direction: column; pointer-events: none;
}
.music-dynamic-island.show { display: flex; }
.music-dynamic-island.hidden { transform: translateX(-50%) translateY(-120px); opacity: 0; transition: all 0.4s cubic-bezier(0.22,0.61,0.36,1); }
.di-collapsed {
    display: flex; align-items: center; gap: 10px; padding: 8px 14px;
    background: rgba(30,26,24,0.92); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-radius: 22px; pointer-events: auto; cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25), 0 0 0 0.5px rgba(255,255,255,0.08);
    transition: all 0.5s cubic-bezier(0.22,0.61,0.36,1);
    color: #fff;
}
.di-collapsed:hover { background: rgba(40,36,34,0.94); }
.di-cover { width: 28px; height: 28px; border-radius: 50%; background-size: cover; background-position: center; flex-shrink: 0; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; font-size: 10px; color: rgba(255,255,255,0.4); }
.di-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.di-title { font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.di-artist { font-size: 10px; opacity: 0.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.di-wave { display: flex; align-items: flex-end; gap: 2px; height: 16px; }
.di-wave span { width: 2px; background: var(--rose); border-radius: 1px; animation: diWave 0.8s ease-in-out infinite; }
.di-wave span:nth-child(1) { height: 8px; animation-delay: 0s; }
.di-wave span:nth-child(2) { height: 14px; animation-delay: 0.15s; }
.di-wave span:nth-child(3) { height: 6px; animation-delay: 0.3s; }
@keyframes diWave { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(0.4); } }
.di-btn { width: 32px; height: 32px; border: none; background: rgba(255,255,255,0.1); border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; transition: background 0.15s; }
.di-btn:hover { background: rgba(255,255,255,0.2); }

/* 歌词行 */
.di-lyric-line {
    display: none; padding: 2px 12px 4px; font-size: 10px; color: rgba(255,255,255,0.55);
    text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font-style: italic; letter-spacing: 0.03em; max-width: 100%;
}
.di-lyric-line.show { display: block; }

/* 情侣模式 */
.music-dynamic-island.together .di-collapsed {
    background: rgba(40,20,20,0.92);
    box-shadow: 0 0 24px rgba(220,140,140,0.35), 0 4px 20px rgba(0,0,0,0.3), 0 0 0 0.5px rgba(220,160,160,0.3);
}
.music-dynamic-island.together .di-wave span { background: #f0a0a0; }
.music-dynamic-island.together .di-expanded-body {
    box-shadow: 0 4px 20px rgba(0,0,0,0.25), 0 0 30px rgba(220,140,140,0.2);
}

/* Island Expanded Body */
.di-expanded-body {
    margin-top: 8px; background: rgba(30,26,24,0.94); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-radius: 18px; padding: 16px; display: none; flex-direction: column; align-items: center; gap: 12px;
    pointer-events: auto; box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    max-height: 0; overflow: hidden; opacity: 0; transition: all 0.35s cubic-bezier(0.22,0.61,0.36,1);
}
.di-expanded-body.expanded { display: flex; max-height: 300px; opacity: 1; }
.di-exp-cover {
    width: 64px; height: 64px; border-radius: 12px; background-size: cover; background-position: center;
    background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: rgba(255,255,255,0.3); box-shadow: 0 0 16px rgba(200,160,160,0.2);
}
.di-exp-info { text-align: center; color: #fff; }
.di-exp-title { display: block; font-size: 15px; font-weight: 500; }
.di-exp-artist { display: block; font-size: 12px; opacity: 0.5; margin-top: 2px; }
.di-exp-controls { display: flex; align-items: center; gap: 12px; }
.di-exp-btn { width: 36px; height: 36px; border: none; background: transparent; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.7); transition: all 0.15s; }
.di-exp-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.di-exp-play { width: 44px; height: 44px; background: var(--rose); color: #fff; }
.di-exp-play:hover { background: var(--rose-hover); }
.di-skip-btn { color: rgba(255,255,255,0.35); }
.di-skip-btn:hover { color: var(--rose); background: rgba(201,168,168,0.15); }

/* ===== Edit Song Overlay ===== */
.music-edit-overlay {
    position: fixed; inset: 0; z-index: 1700;
    background: rgba(30,28,26,0.35); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
}
.music-edit-panel {
    width: calc(100% - 40px); max-width: 380px; max-height: 85vh; overflow-y: auto;
    background: var(--surface); backdrop-filter: blur(20px);
    border-radius: 16px; padding: 24px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border: 0.5px solid var(--border);
}
.music-edit-header {
    display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px;
}
.music-edit-header-l { display: flex; flex-direction: column; gap: 1px; }
.music-edit-title { font-size: 17px; font-weight: 600; color: var(--text-primary); }
.music-edit-sub {
    font-size: 10px; color: var(--gold); opacity: 0.6;
    font-family: var(--font-decorative); font-style: italic; letter-spacing: 0.06em; text-transform: uppercase;
}
.music-edit-close {
    width: 32px; height: 32px; border: none; background: rgba(0,0,0,0.03);
    cursor: pointer; border-radius: 50%; font-size: 18px; color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center; transition: all 0.15s;
}
.music-edit-close:hover { background: var(--rose-light); color: var(--rose); }

/* Cover row */
.music-edit-cover-row { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 20px; }
.music-edit-cover-label { font-size: 11px; color: var(--text-muted); align-self: flex-start; }
.music-edit-cover-area {
    width: 80px; height: 80px; border-radius: 12px;
    background-size: cover; background-position: center;
    background-color: var(--bg-primary);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-xs), inset 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid var(--border);
}
.edit-cover-placeholder { font-size: 28px; color: var(--rose); opacity: 0.3; }
.edit-cover-input-hidden { display: none; }
.music-edit-cover-btn {
    padding: 5px 14px; border: 0.5px solid var(--rose);
    border-radius: 8px; background: transparent; color: var(--rose);
    font-size: 12px; font-family: inherit; cursor: pointer;
    transition: all 0.15s;
}
.music-edit-cover-btn:hover { background: var(--rose); color: #fff; }

/* Fields */
.music-edit-field { margin-bottom: 14px; }
.music-edit-field label { display: block; font-size: 11px; color: var(--text-muted); margin-bottom: 5px; }
.edit-label-hint { opacity: 0.5; font-weight: 400; }
.music-edit-field input, .music-edit-field textarea {
    width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px;
    background: var(--bg-primary); color: var(--text-primary); font-size: 13px;
    font-family: inherit; box-sizing: border-box; outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
}
.music-edit-field input:focus, .music-edit-field textarea:focus {
    border-color: var(--rose);
    box-shadow: var(--shadow-glow), inset 0 1px 3px rgba(200,160,160,0.06);
}
.music-edit-field input::placeholder, .music-edit-field textarea::placeholder { color: var(--text-muted); opacity: 0.5; }

/* Save button */
.music-edit-save {
    width: 100%; padding: 11px; border: none; border-radius: 12px;
    background: var(--rose); color: #fff; font-size: 15px; font-weight: 600;
    font-family: inherit; cursor: pointer; margin-top: 8px;
    transition: all 0.15s;
    box-shadow: 0 2px 8px rgba(200,160,160,0.25);
    letter-spacing: 0.02em;
}
.music-edit-save:hover { background: var(--rose-hover); box-shadow: 0 4px 16px rgba(200,160,160,0.35); }
.music-edit-save:active { transform: scale(0.98); }

/* ===== LRC Editor ===== */
.lrc-editor-overlay { position:fixed;inset:0;z-index:1700;background:rgba(0,0,0,0.5);display:none;align-items:center;justify-content:center }
.lrc-editor-overlay.open { display:flex }
.lrc-editor-panel { width:calc(100%-32px);max-width:440px;max-height:80vh;background:var(--surface-solid);border-radius:16px;padding:20px;overflow-y:auto;box-shadow:var(--shadow-lg) }
.lrc-editor-header { display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:12px }
.lrc-editor-header-l { display:flex;flex-direction:column }
.lrc-editor-title { font-size:16px;font-weight:600;color:var(--text-primary) }
.lrc-editor-sub { font-size:10px;color:var(--gold);opacity:.6;font-family:var(--font-decorative);font-style:italic;letter-spacing:.06em }
.lrc-editor-close { width:28px;height:28px;border:none;background:none;cursor:pointer;border-radius:50%;font-size:16px;color:var(--text-secondary) }
.lrc-editor-controls { display:flex;gap:8px;margin-bottom:8px }
.lrc-editor-ctrl-btn { padding:5px 12px;border:0.5px solid var(--border);border-radius:8px;background:var(--surface);color:var(--text-primary);font-size:12px;cursor:pointer;font-family:inherit;transition:all .15s }
.lrc-editor-ctrl-btn:hover { border-color:var(--rose);color:var(--rose);background:var(--rose-light) }
.lrc-editor-audio-time { font-size:20px;font-family:var(--font-mono);color:var(--text-primary);text-align:center;margin:8px 0;font-weight:500 }
.lrc-editor-list { max-height:240px;overflow-y:auto }
.lrc-line { display:flex;align-items:center;gap:6px;padding:4px 6px;border-radius:6px;cursor:pointer;transition:background .1s }
.lrc-line:hover { background:var(--rose-light) }
.lrc-line.active { background:var(--rose-light);color:var(--rose) }
.lrc-line.editing { border-left:3px solid var(--rose) }
.lrc-line-ts { font-size:11px;color:var(--text-muted);font-family:var(--font-mono);white-space:nowrap;width:56px }
.lrc-line-text { flex:1;padding:3px 6px;border:1px solid transparent;border-radius:4px;background:transparent;color:var(--text-primary);font-size:13px;font-family:inherit;outline:none }
.lrc-line-text:focus { border-color:var(--rose);background:var(--surface) }
.lrc-line-del { width:20px;height:20px;border:none;background:none;cursor:pointer;color:var(--text-muted);border-radius:50%;font-size:14px;display:flex;align-items:center;justify-content:center }
.lrc-line-del:hover { color:var(--danger) }
.lrc-editor-footer { display:flex;justify-content:space-between;align-items:center;margin-top:12px }
.lrc-editor-hint { font-size:10px;color:var(--text-muted);opacity:.6 }
.lrc-editor-save { padding:7px 20px;border:none;border-radius:10px;background:var(--rose);color:#fff;font-size:13px;font-weight:500;cursor:pointer;font-family:inherit }
.lrc-editor-save:hover { background:var(--rose-hover) }

/* ===== Upload Disclaimer Overlay ===== */
.music-disclaimer-overlay {
    position: fixed; inset: 0; z-index: 1720;
    background: rgba(0,0,0,0.5);
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    opacity: 0; visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.music-disclaimer-overlay.open { opacity: 1; visibility: visible; }
.music-disclaimer-card {
    background: var(--surface-solid); border-radius: 18px;
    width: calc(100% - 48px); max-width: 340px; padding: 28px 24px 20px;
    text-align: center;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border: 0.5px solid var(--border);
    animation: discCardIn 0.4s cubic-bezier(0.22,0.61,0.36,1);
}
@keyframes discCardIn { from { opacity: 0; transform: scale(0.92) translateY(16px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.music-disclaimer-icon { margin-bottom: 12px; }
.music-disclaimer-title {
    font-size: 16px; font-weight: 600; color: var(--text-primary);
    font-family: var(--font-decorative); font-style: italic; letter-spacing: 0.02em;
    margin-bottom: 10px;
}
.music-disclaimer-divider {
    width: 32px; height: 1px; background: var(--rose);
    margin: 0 auto 14px; opacity: 0.5;
}
.music-disclaimer-body {
    font-size: 12px; color: var(--text-secondary); line-height: 1.7;
    text-align: left; margin-bottom: 18px;
    padding: 0 4px;
}
.music-disclaimer-actions {
    display: flex; gap: 10px;
}
.music-disclaimer-btn {
    flex: 1; padding: 10px; border-radius: 12px; border: none;
    font-size: 13px; font-weight: 500; cursor: pointer; font-family: inherit;
    transition: all 0.15s;
}
.music-disclaimer-btn.primary {
    background: var(--rose); color: #fff;
    box-shadow: 0 2px 8px rgba(200,160,160,0.3);
}
.music-disclaimer-btn.primary:hover { background: var(--rose-hover); }
.music-disclaimer-btn.secondary {
    background: transparent; color: var(--text-muted);
    border: 0.5px solid var(--divider);
}
.music-disclaimer-btn.secondary:hover { background: var(--bg-chat); color: var(--text-secondary); }

/* ===== AI Picks (他的推荐) —— 底部弹层 ===== */
.music-ai-picks-overlay {
    position: fixed; inset: 0; z-index: 1700;
    background: rgba(0,0,0,0.45);
    display: flex; align-items: flex-end; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.music-ai-picks-overlay.open { opacity: 1; visibility: visible; }
.music-ai-picks-panel {
    background: var(--surface-solid);
    border-radius: 18px 18px 0 0;
    width: 100%; max-width: 480px; max-height: 70vh;
    padding: 18px 18px calc(24px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
    overflow-y: auto;
    animation: slideUp 0.28s cubic-bezier(0.22,0.61,0.36,1);
}
.music-ai-picks-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    margin-bottom: 14px;
}
.music-ai-picks-header-l { display: flex; flex-direction: column; gap: 2px; }
.music-ai-picks-title {
    font: italic 15px var(--font-decorative); color: var(--rose);
    letter-spacing: 0.03em;
}
.music-ai-picks-sub {
    font-size: 11px; color: var(--text-muted); opacity: 0.7;
    font-style: italic; letter-spacing: 0.03em;
}
.music-ai-picks-close {
    width: 28px; height: 28px; border: none; background: none;
    cursor: pointer; color: var(--text-muted); display: flex;
    align-items: center; justify-content: center; border-radius: 50%;
    transition: color 0.15s, background 0.15s;
}
.music-ai-picks-close:hover { color: var(--rose); background: var(--rose-light); }
.music-ai-picks-list {
    display: flex; flex-direction: column; gap: 8px;
}
.ai-picks-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 24px 16px; min-height: 120px;
}
.ai-picks-empty-icon { margin-bottom: 8px; }

/* ===== AI Picks 两区 + 操作 ===== */
.ai-picks-zone-head {
    display: flex; align-items: baseline; gap: 8px;
    padding: 14px 2px 6px;
}
.ai-picks-zone-head:first-child { padding-top: 2px; }
.ai-picks-zone-title {
    font: italic 13px var(--font-decorative); color: var(--rose); letter-spacing: 0.03em;
}
.ai-picks-zone-en {
    font-size: 10px; color: var(--text-muted); opacity: 0.6; font-style: italic; letter-spacing: 0.05em;
}
.ai-picks-zone-head-heard { border-top: 0.5px solid var(--divider); margin-top: 8px; cursor: pointer; }
.ai-picks-zone-head-heard .ai-picks-zone-title { color: var(--text-secondary); }
.ai-picks-zone-count { font-size: 10px; color: var(--text-muted); font-style: normal; }
.ai-picks-zone-chevron {
    margin-left: auto; width: 8px; height: 8px; flex-shrink: 0;
    border-right: 1.5px solid var(--text-muted); border-bottom: 1.5px solid var(--text-muted);
    transform: rotate(45deg); transition: transform 0.2s ease; opacity: 0.7;
}
.ai-picks-zone-chevron.open { transform: rotate(-135deg); }
.ai-pick-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px; border-radius: 12px;
    background: var(--surface, rgba(255,252,249,0.5));
    border: 0.5px solid rgba(200,180,180,0.12);
    transition: background 0.15s, transform 0.15s;
}
.ai-pick-row-playable { cursor: pointer; }
.ai-pick-row:active { transform: scale(0.98); background: var(--rose-light, rgba(201,168,168,0.06)); }
.ai-pick-row-cover {
    width: 44px; height: 44px; border-radius: 8px; flex-shrink: 0;
    background-size: cover; background-position: center;
}
.ai-pick-cover-ph {
    background: linear-gradient(135deg, var(--rose-light), var(--lavender-light));
    display: flex; align-items: center; justify-content: center;
    color: var(--rose);
}
.ai-pick-row-info { flex: 1; min-width: 0; }
.ai-pick-row-title {
    font-size: 13px; color: var(--text-primary); font-weight: 500;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ai-pick-row-artist {
    font-size: 11px; color: var(--text-secondary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-top: 2px;
}
.ai-pick-row-note {
    font-size: 10px; color: var(--rose); font-style: italic;
    opacity: 0.7; margin-top: 3px; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
    overflow: hidden;
}
.ai-pick-row-meta {
    display: flex; align-items: center; gap: 6px; margin-top: 6px;
}
.ai-pick-recommended-badge {
    display: inline-flex; align-items: center;
    font-size: 9px; color: var(--rose); background: var(--rose-light);
    border: 0.5px solid var(--rose); border-radius: 999px; padding: 2px 7px; letter-spacing: 0.03em;
}
.ai-pick-row-src {
    font-size: 9px; color: var(--text-muted); opacity: 0.7;
}
.ai-pick-row-actions {
    display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; align-items: stretch;
}
.ai-pick-act-btn {
    font-size: 11px; color: var(--text-secondary); background: var(--surface-solid);
    border: 0.5px solid var(--divider); border-radius: 999px; padding: 5px 12px;
    cursor: pointer; transition: color 0.15s, background 0.15s, border-color 0.15s;
    letter-spacing: 0.02em; white-space: nowrap;
}
.ai-pick-act-btn:hover { background: var(--rose-light); color: var(--rose); border-color: var(--rose-light); }
.ai-pick-act-btn.done { color: var(--sage, #7B8A6F); border-color: var(--sage, #A8B8A0); }
.ai-pick-act-btn.done:hover { background: rgba(168,184,160,0.12); color: var(--sage, #7B8A6F); }
.ai-pick-act-btn.danger { color: var(--text-muted); }
.ai-pick-act-btn.danger:hover { background: rgba(201,120,120,0.1); color: #C47878; border-color: rgba(201,120,120,0.3); }

/* ===== 关联弹层（选歌 / 上传） ===== */
.rec-link-overlay {
    position: fixed; inset: 0; z-index: 1800;
    background: rgba(0,0,0,0.45);
    display: flex; align-items: flex-end; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s ease;
}
.rec-link-overlay.open { opacity: 1; visibility: visible; }
.rec-link-panel {
    background: var(--surface-solid); border-radius: 18px 18px 0 0;
    width: 100%; max-width: 480px; max-height: 70vh; overflow-y: auto;
    padding: 18px 18px calc(24px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
    animation: slideUp 0.28s cubic-bezier(0.22,0.61,0.36,1);
}
.rec-link-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-bottom: 14px;
}
.rec-link-title { font-size: 14px; font-weight: 600; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-link-close {
    width: 28px; height: 28px; border: none; background: none; flex-shrink: 0;
    cursor: pointer; color: var(--text-muted); display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: color 0.15s, background 0.15s;
}
.rec-link-close:hover { color: var(--rose); background: var(--rose-light); }
.rec-link-upload-btn {
    width: 100%; padding: 11px; border: 0.5px solid var(--rose); border-radius: 12px;
    background: var(--rose-light); color: var(--rose); font-size: 13px; cursor: pointer;
    transition: background 0.15s; margin-bottom: 12px;
}
.rec-link-upload-btn:hover { background: var(--rose); color: #fff; }
.rec-link-list-head {
    font-size: 11px; color: var(--text-muted); letter-spacing: 0.03em;
    margin-bottom: 8px; padding-left: 2px;
}
.rec-link-song-list { display: flex; flex-direction: column; gap: 8px; }
.rec-link-song {
    display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px;
    background: var(--surface, rgba(255,252,249,0.5)); border: 0.5px solid rgba(200,180,180,0.12);
    cursor: pointer; transition: background 0.15s;
}
.rec-link-song:active { background: var(--rose-light); }
.rec-link-song-cover { width: 38px; height: 38px; border-radius: 8px; flex-shrink: 0; background-size: cover; background-position: center; }
.rec-link-ph {
    background: linear-gradient(135deg, var(--rose-light), var(--lavender-light));
    display: flex; align-items: center; justify-content: center; color: var(--rose);
}
.rec-link-song-info { flex: 1; min-width: 0; }
.rec-link-song-title { font-size: 13px; color: var(--text-primary); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-link-song-artist { font-size: 11px; color: var(--text-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-link-empty { font-size: 12px; color: var(--text-muted); text-align: center; padding: 14px; }


.music-help-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,0.35);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.22s ease;
}
.music-help-overlay.open { opacity: 1; pointer-events: auto; transition: none; animation: musicHelpFadeIn 0.22s ease; }
@keyframes musicHelpFadeIn { from { opacity: 0; } to { opacity: 1; } }
.music-help-card {
    background: var(--bg-primary, #F8F4EF);
    border-radius: 18px;
    width: calc(100% - 40px); max-width: 380px; max-height: 80vh;
    padding: 24px 20px 20px;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(200,160,160,0.12);
    overflow-y: auto;
    animation: popIn 0.35s cubic-bezier(0.22,0.61,0.36,1);
    position: relative;
}
.music-help-card::before {
    content: ''; position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
    width: 180px; height: 80px;
    background: radial-gradient(ellipse, rgba(201,168,168,0.08), transparent 70%);
    pointer-events: none;
}
.music-help-header {
    text-align: center; margin-bottom: 20px;
}
.music-help-title-zh {
    font-size: 16px; font-weight: 600; color: var(--text-primary);
    display: block; margin-bottom: 4px;
}
.music-help-title-en {
    font-size: 12px; color: var(--text-muted);
    font-family: var(--font-decorative), 'Playfair Display', serif;
    font-style: italic; letter-spacing: 0.05em;
    display: block; margin-bottom: 10px;
}
.music-help-gold-line {
    display: block; width: 40px; height: 1px;
    background: var(--gold, #C4A86A); opacity: 0.3;
    margin: 0 auto;
}
.music-help-body { display: flex; flex-direction: column; gap: 14px; }
.music-help-card-item {
    display: flex; gap: 12px;
    padding: 12px; border-radius: 12px;
    background: var(--surface, rgba(255,252,249,0.5));
    transition: background 0.15s;
}
.mh-card-icon {
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    background: var(--rose-light, rgba(201,168,168,0.12));
    color: var(--rose, #C9A8A8);
    display: flex; align-items: center; justify-content: center;
}
.mh-card-content { flex: 1; min-width: 0; }
.mh-card-title { font-size: 13px; font-weight: 500; color: var(--text-primary); margin-bottom: 4px; }
.mh-card-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.65; }
.music-help-footer { margin-top: 20px; text-align: center; }
.music-help-close-btn {
    padding: 10px 32px; border-radius: 999px;
    border: 1px solid var(--rose, #C9A8A8);
    background: transparent; color: var(--rose, #C9A8A8);
    font-size: 13px; cursor: pointer;
    transition: all 0.15s ease;
}
.music-help-close-btn:hover { background: var(--rose-light, rgba(201,168,168,0.12)); }
.music-help-close-btn:active { transform: scale(0.95); }

@keyframes helpSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
/* keep old selector for legacy compatibility, no longer used */

/* ===== Responsive ===== */
@media (min-width: 481px) {
    .music-expanded-overlay { left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; }
    .music-add-overlay, .music-stats-overlay { left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; }
}
@media (max-width: 370px) {
    .music-song-card { padding: 8px 10px; }
    .song-card-cover { width: 44px; height: 44px; }
    .song-card-title { font-size: 13px; }
    .music-playlist-chip { padding: 5px 12px; font-size: 12px; }
    .music-mini-player { padding: 8px 12px; }
    .ai-pick-card { width: 140px; }
    .music-help-card { width: calc(100% - 24px); padding: 20px 16px 16px; }
    .music-header-actions { gap: 4px; }
}
