/* 幻境手机 - 主样式文件 */
:root {
    /* Day Theme - 清爽风格配色 */
    --bg-color: #fff9fb;
    --panel-bg-color: #ffffff;
    --border-color: #fde8ef;
    --text-color: #4B4453;
    --text-color-muted: #8D8996;
    --accent-color: #D988B9;
    --accent-hover-color: #C978A9;
    --error-color: #e74c3c;
    --subtle-bg-color: #faf8fb;
    --card-bg: #ffffff;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    --font-size-xs: 0.75rem; 
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --border-radius: 8px;
    /* 备注：底部Dock固定高度变量，避免魔法数字 */
    --dock-height: 42px;
}

/* iOS 文本缩放与输入放大防护 */
html { -webkit-text-size-adjust: 100%; }
/* 本页面的所有输入类控件强制16px，避免iOS聚焦自动放大 */
input, textarea, select { font-size: 16px; }
/* 再次明确小手机聊天输入框 */
.wx-input input { font-size: 16px; }

html, body { overflow-x: hidden; }
html {
    height: 100vh;
    height: 100svh;
    overflow: hidden;
}
body {
    font-family: var(--font-family);
    background: linear-gradient(160deg, #fef6f9, #ffffff);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    /* 使用调整后的高度，整个容器向上移动 */
    height: calc(var(--app-vh, 1vh) * 100);
    overflow: hidden;
    /* 整个页面向上移动到顶部，底部自然留出空间 */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.app-view, .app-content { overflow-x: hidden; }

/* 状态栏样式 */
.status-bar {
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color-muted);
    font-size: 11px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    position: relative;
    padding-top: env(safe-area-inset-top, 0px);
}
#power-off-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-color-muted);
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#power-off-btn svg {
    width: 16px;
    height: 16px;
}
#power-off-btn:hover {
    color: #ff6b6b;
}

/* Dock栏样式 */
.dock {
    height: var(--dock-height);
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
#home-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
#home-btn:hover {
    border-color: var(--accent-color);
    transform: scale(1.05);
}
#home-btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.1);
}

/* App头部样式 */
.app-header {
    height: 38px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 0 12px; 
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color); 
}
.app-title { 
    font-size: 13px;
    color: var(--text-color); 
    font-weight: 600; 
    flex: 1; 
    min-width: 0; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}
.app-actions button {
    background: none; 
    border: 1px solid var(--border-color); 
    color: var(--text-color); 
    padding: 3px 8px;
    border-radius: 12px; 
    font-size: 11px;
    cursor: pointer; 
    transition: all 0.2s ease; 
}
.header-btn {
    color: var(--accent-color);
}
.header-btn:hover {
    background-color: rgba(0,0,0,0.05);
}

/* 滚动条样式 */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background-color: #d3cddb; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background-color: #b9b2c4; }

/* 桌面样式 */
.desktop {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 90px;
    gap: 12px 8px;
    padding: 16px 12px;
    place-content: start center;
    min-height: 0; /* 允许在flex容器内正确计算滚动高度 */
    overflow-y: auto; /* 图标过多时可滚动 */
    /* 预留底部空间避免被 .dock 遮挡 */
    padding-bottom: 16px;
}
.app {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
}
.app-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    position: relative;
}
.app-icon svg { width: 28px; height: 28px; fill: white; }
.app-label { font-size: 12px; color: var(--text-color); text-align: center; }

/* 小红点通知样式 */
.app-notification {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    background: #ff3b30;
    border-radius: 50%;
    border: 2px solid var(--bg-color);
    display: none;
    animation: pulse 2s infinite;
}

.app-notification.show {
    display: block;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* App视图样式 */
.app-view { display: none; flex: 1; flex-direction: column; padding: 0 4px; min-height: 0; }
.app-view.active { display: flex; }
.app-actions { display: flex; gap: 8px; align-items: center; }
#app-specific-actions { display: flex; gap: 8px; }
.app-actions button:hover:not(:disabled) { border-color: var(--accent-color); color: var(--accent-color); background: rgba(255,255,255,0.05); }
.app-actions button:disabled { opacity: 0.5; cursor: not-allowed; }
.app-content { 
    flex: 1; 
    padding: 12px; 
    /* 预留底部空间，避免滚动内容被 .dock 遮挡 */
    padding-bottom: 12px;
    overflow-y: auto; 
    color: var(--text-color-muted); 
}
.placeholder-card { background: rgba(255,255,255,0.03); border: 1px solid var(--border-color); border-radius: 12px; padding: 14px; color: var(--text-color); }
.muted { color: var(--text-color-muted); font-size: 12px; }

/* 关系状态显示 */
.relationship-status { position: fixed; top: 40px; right: 20px; background: rgba(0,0,0,0.85); border: 1px solid var(--border-color); border-radius: 8px; padding: 12px; max-width: 300px; z-index: 5000; display: none; backdrop-filter: blur(4px); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.relationship-status.show { display: block; }
.relationship-status h4 { margin: 0 0 8px 0; font-size: 14px; color: var(--text-color); }
.relationship-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 12px; }
.relationship-name { color: var(--text-color); }
.relationship-values { display: flex; gap: 8px; }
.relationship-value { padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: 500; }
.affinity { background: rgba(255,107,107,0.2); color: #ff6b6b; }
.trust { background: rgba(217, 136, 185, 0.2); color: #D988B9; }
.respect { background: rgba(46,204,113,0.2); color: #2ecc71; }
.status { background: rgba(155,89,182,0.2); color: #9b59b6; }

/* Toast通知（与主游戏统一风格） */
#phone-toast-container {
  position: fixed;
  left: 50%;
  bottom: calc(16px + var(--dock-height));
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.phone-toast {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  background: rgba(255,255,255,0.72) !important;
  border: 1px solid rgba(0,0,0,0.08);
  color: var(--text-color);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.4;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.20);
  pointer-events: auto;
  position: relative;
}
.phone-toast.show { opacity: 1; transform: translateY(0); }
.phone-toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  background: var(--border-color);
  opacity: 0.9;
}
.phone-toast.success { border-color: rgba(76, 175, 80, 0.35); }
.phone-toast.success::before { background: #4CAF50; }
.phone-toast.error { border-color: rgba(244, 67, 54, 0.4); }
.phone-toast.error::before { background: #F44336; }
.phone-toast.info { border-color: rgba(0,0,0,0.16); }
.phone-toast.info::before { background: var(--border-color); }
/* 新增：warning 类型 */
.phone-toast.warning { border-color: rgba(255, 193, 7, 0.35); }
.phone-toast.warning::before { background: #FFC107; }

/* 回退动画（如需渐隐） */
@keyframes phone-toast-fade {
  0%, 100% { opacity: 0; transform: translateY(6px); }
  10%, 80% { opacity: 1; transform: translateY(0); }
}

/* Music App Styles */
#music-player-app {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 16px;
}

.music-player-card {
    background: var(--panel-bg-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.album-art-container {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#album-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-info {
    text-align: center;
}

#track-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
    position: relative;
}

#track-artist {
    font-size: var(--font-size-sm);
    color: var(--text-color-muted);
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
    position: relative;
}

/* 只有不滚动的文本才显示省略号 */
.no-scroll {
    text-overflow: ellipsis;
}

/* 滚动动画 - 修复：文字在固定容器内滚动，而不是整个容器移动 */
.scrolling-text {
    position: relative;
    overflow: hidden;
    color: transparent; /* 隐藏原始文字 */
}

.scrolling-text::before {
    content: attr(data-text) " \00a0\00a0•\00a0\00a0" attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    animation: phone-text-scroll 12s linear infinite;
    will-change: transform;
}

/* 确保滚动文字颜色正确显示 */
.song-title.scrolling-text::before {
    color: var(--text-color);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.song-artist.scrolling-text::before {
    color: var(--text-color-muted);
    font-size: var(--font-size-xs);
}

#track-title.scrolling-text::before {
    color: var(--text-color);
    font-size: var(--font-size-sm);
}

#track-artist.scrolling-text::before {
    color: var(--text-color-muted);
    font-size: var(--font-size-xs);
}

/* 通用滚动文字样式，继承父元素的颜色和字体大小 */
.scrolling-text:not(.song-title):not(.song-artist):not(#track-title):not(#track-artist)::before {
    color: var(--text-color);
    font-size: inherit;
    font-weight: inherit;
}

/* 鼠标悬停时暂停滚动 */
.scrolling-text:hover::before {
    animation-play-state: paused;
}

@keyframes phone-text-scroll {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(0);
    }
    75% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* 当文本不需要滚动时，不应用动画 */
.no-scroll {
    animation: none;
}

.progress-container {
    width: 100%;
}

#progress-bar {
    width: 100%;
    height: 4px;
    background-color: var(--border-color);
    border-radius: 2px;
    cursor: pointer;
}

#progress-bar-fill {
    height: 100%;
    width: 0;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.time-stamps {
    display: flex;
    justify-content: space-between;
    font-size: var(--font-size-xs);
    color: var(--text-color-muted);
    margin-top: 4px;
}

.controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-btn {
    background: none;
    border: none;
    color: var(--text-color-muted);
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.control-btn:hover {
    color: var(--accent-color);
}

.control-btn.play-btn {
    font-size: 24px;
    color: var(--accent-color);
}

.control-btn.play-btn:hover {
    color: var(--accent-hover-color);
}

.library-container {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.library-container h4 {
    margin: 0 0 8px 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
}

#music-library-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    flex: 1;
}

#music-library-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#music-library-list li:hover {
    background-color: #fde8ef;
}

#music-library-list li.active {
    background-color: var(--accent-color);
    color: white;
}

#music-library-list li.active .song-artist {
    color: rgba(255, 255, 255, 0.8);
}

.song-title {
    font-size: var(--font-size-sm);
    font-weight: 500;
}

.song-artist {
    font-size: var(--font-size-xs);
    color: var(--text-color-muted);
}

/* Music App compact header and elements */
#music-player-app #track-title { font-size: var(--font-size-sm); }
#music-player-app #track-artist { font-size: var(--font-size-xs); }

#music-player-app .music-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--subtle-bg-color);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 8px;
    border: 1px solid var(--border-color);
}

#music-player-app .music-header-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#music-player-app .music-header-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#music-player-app .music-header-count {
    color: var(--text-color-muted);
    font-size: 12px;
}

#music-player-app .music-header-actions {
    display: flex;
    gap: 6px;
}

#music-player-app .music-compact-btn {
    padding: 4px 8px;
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-color);
}

#music-player-app #music-mode-btn.music-compact {
    width: 32px;
    height: 28px;
    padding: 0;
}

#music-player-app #music-mode-badge {
    font-size: 9px;
    line-height: 14px;
    height: 14px;
}

/* ===== Music App: Unified Theme for Tabs / Lists / Albums ===== */
/* 备注：用户需求——重新设计标签栏和操作按钮区域的视觉样式，使其更美观统一 */

/* Tabs - 重新设计的标签栏 */
#music-player-app .tabs {
    display: flex;
    background: var(--panel-bg-color);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--border-color);
}
#music-player-app .tab-item {
    flex: 1;
    padding: 10px 12px;
    cursor: pointer;
    color: var(--text-color-muted);
    border: none;
    background: transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    position: relative;
}
#music-player-app .tab-item:hover {
    background: rgba(217, 136, 185, 0.1);
    color: var(--text-color);
    transform: translateY(-1px);
}
#music-player-app .tab-item i {
    margin-right: 6px;
    font-size: 12px;
}
#music-player-app .tab-item.active {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 2px 6px rgba(217, 136, 185, 0.3);
    transform: translateY(-1px);
}
#music-player-app .tab-content { display: none; }
#music-player-app .tab-content.active { display: block; }

/* Song list - 重新设计的歌曲列表 */
#music-player-app .music-list-item {
    display: flex;
    align-items: center;
    padding: 12px 8px;
    border-bottom: 1px solid var(--border-color);
    gap: 12px;
    border-radius: 8px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}
#music-player-app .music-list-item:last-child { border-bottom: none; }
#music-player-app .music-list-item:hover {
    background: var(--subtle-bg-color);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
#music-player-app .music-list-item img { 
    width: 44px; 
    height: 44px; 
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
#music-player-app .music-list-item:hover img {
    transform: scale(1.05);
}
#music-player-app .music-list-item .info { flex-grow: 1; min-width: 0; }
#music-player-app .music-list-item .title { 
    font-weight: 600; 
    color: var(--text-color);
    margin-bottom: 2px;
    font-size: 14px;
}
#music-player-app .music-list-item .artist { 
    font-size: var(--font-size-xs); 
    color: var(--text-color-muted);
    line-height: 1.2;
}
#music-player-app .music-list-item .play-btn {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--panel-bg-color);
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}
#music-player-app .music-list-item .play-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.4s ease;
}
#music-player-app .music-list-item .play-btn:hover::before {
    left: 100%;
}
#music-player-app .music-list-item .play-btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(217, 136, 185, 0.3);
}

/* Header compact buttons - 重新设计的操作按钮 */
#music-player-app .music-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
#music-player-app .music-header-actions .music-compact-btn {
    background: linear-gradient(135deg, var(--panel-bg-color) 0%, rgba(217, 136, 185, 0.05) 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(217, 136, 185, 0.15);
    position: relative;
    overflow: hidden;
}
#music-player-app .music-header-actions .music-compact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}
#music-player-app .music-header-actions .music-compact-btn:hover::before {
    left: 100%;
}
#music-player-app .music-header-actions .music-compact-btn:hover {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover-color) 100%);
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 136, 185, 0.3);
}
#music-player-app .music-header-actions .music-compact-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(217, 136, 185, 0.2);
}
/* Cancel default button - use error tone, not orange */
#music-player-app .music-header-actions .music-compact-btn.cancel-default-btn {
    background-color: #fff0f0;
    color: var(--error-color);
    border-color: #ffd6d9;
}
#music-player-app .music-header-actions .music-compact-btn.cancel-default-btn:hover {
    background-color: var(--error-color);
    color: #fff;
    border-color: var(--error-color);
}

/* Albums section - 重新设计的专辑卡片 */
#albums-list .album-item {
    background: var(--card-bg);
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
#albums-list .album-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-color: var(--accent-color);
}
#albums-list .album-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
#albums-list .album-title { font-weight: 700; color: var(--text-color); }
.default-badge {
    font-size: 10px;
    background: var(--accent-color);
    color: #fff;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 8px;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(217, 136, 185, 0.3);
    display: inline-block;
    vertical-align: middle;
}
#albums-list .album-actions { display: inline-flex; gap: 6px; }
#albums-list .album-actions button { padding: 3px 6px; font-size: 11px; border-radius: 6px; }
#albums-list .album-actions .delete-btn {
    background: #ffe8e8;
    color: var(--error-color);
    border-color: #ffc2c5;
}
#albums-list .album-actions .delete-btn:hover {
    background: var(--error-color);
    color: #fff;
    border-color: var(--error-color);
}

/* ===== Music App: Generic Buttons & Album Selection Modal (主题统一) ===== */
/* 备注：用户需求——移除 apps/music.js 中旧的内联样式与硬编码颜色，改用统一主题类；本区块提供新类样式承接。 */

/* 通用按钮 */
.btn {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    background: var(--panel-bg-color);
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}
.btn-primary:hover {
    background: var(--accent-hover-color);
    border-color: var(--accent-hover-color);
    color: #fff;
}

/* 专辑选择弹窗 */
.album-selection-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.album-selection-dialog {
    background: var(--panel-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    width: min(420px, 92vw);
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}
.album-selection-header { margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border-color); }
.album-selection-header h3 { margin: 0; font-size: 14px; color: var(--text-color); }
.album-selection-header p { margin: 6px 0 0 0; font-size: 12px; color: var(--text-color-muted); }

.album-selection-create { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.album-selection-input {
    flex: 1; padding: 8px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 12px;
    background: var(--panel-bg-color); color: var(--text-color);
}

.album-selection-list { margin-bottom: 12px; }
.album-selection-item {
    display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--border-color);
    border-radius: 8px; margin-bottom: 8px; cursor: pointer; transition: background-color 0.2s ease, border-color 0.2s ease;
}
.album-selection-item:hover { background: var(--subtle-bg-color); }
.album-selection-item.selected { background: #fde8ef; border-color: var(--accent-color); }
.album-selection-item input { margin: 0; }
.album-selection-item-body { flex: 1; min-width: 0; }
.album-selection-item-body .name { font-size: 13px; font-weight: 500; color: var(--text-color); }
.album-selection-item-body .count { font-size: 11px; color: var(--text-color-muted); }

.album-selection-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* 列表内收藏按钮激活态 - 重新设计 */
#music-player-app .music-list-item .actions { 
    display: flex; 
    gap: 10px; 
    align-items: center;
}
#music-player-app .music-list-item .actions .favorite-btn {
    padding: 8px;
    border: 1px solid var(--border-color);
    background: var(--panel-bg-color);
    color: var(--text-color-muted);
    cursor: pointer;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}
#music-player-app .music-list-item .actions .favorite-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(217, 136, 185, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}
#music-player-app .music-list-item .actions .favorite-btn:hover::before {
    width: 100%;
    height: 100%;
}
#music-player-app .music-list-item .actions .favorite-btn:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    transform: scale(1.1);
}
#music-player-app .music-list-item .actions .favorite-btn.active {
    color: #fff;
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(217, 136, 185, 0.4);
}
#music-player-app .music-list-item .actions .favorite-btn.active:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(217, 136, 185, 0.5);
}

/* 音乐App图标按钮颜色主题化 - 备注：用户需求修改黑色图标按钮颜色 */
/* 播放控制按钮图标 */
#music-player-app .control-btn i {
    color: var(--accent-color);
    transition: color 0.3s ease;
}
#music-player-app .control-btn:hover i {
    color: var(--accent-hover-color);
}
#music-player-app .control-btn.play-btn i {
    color: var(--accent-color);
}

/* 专辑操作按钮图标 */
#music-player-app .album-action i {
    color: var(--accent-color) !important;
    transition: color 0.3s ease;
}
#music-player-app .album-action:hover i {
    color: var(--accent-hover-color) !important;
}

/* 特殊按钮保持原有语义色 */
#music-player-app .album-action[data-action="delete-album"] i {
    color: var(--error-color) !important;
}
/* 取消默认按钮改为主题色 - 备注：用户需求将黑框和红五角星改为#D988B9，移除立体感 */
#music-player-app .album-action.delete-btn {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    box-shadow: none !important;
}
#music-player-app .album-action.delete-btn i {
    color: white !important;
}
#music-player-app .album-action.delete-btn:hover {
    background: var(--accent-hover-color) !important;
    border-color: var(--accent-hover-color) !important;
    box-shadow: none !important;
    transform: none !important;
}
#music-player-app .album-action.batch-toggle-album i {
    color: var(--text-color-muted) !important;
}

/* 专辑操作按钮统一样式 - 备注：清除内联样式后的CSS承接 */
#music-player-app .album-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px solid var(--border-color);
    background: var(--panel-bg-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}
#music-player-app .album-action:hover {
    background: var(--subtle-bg-color);
}
#music-player-app .album-action i {
    font-size: 8px;
}

/* 标签页图标 */
#music-player-app .tab-item i {
    color: inherit;
    opacity: 0.8;
}
#music-player-app .tab-item.active i {
    opacity: 1;
}

/* 搜索按钮图标 */
#music-search-btn i {
    color: var(--accent-color);
}

/* 新建/刷新按钮图标 */
#album-new-btn i,
#album-refresh-btn i {
    color: inherit;
}
