/* ============================================
   冰冷绪 - 音乐播放器
   奶油风 / 软萌治愈系 UI
   粉橘渐变 · 莫兰迪色系 · 毛玻璃质感
   ============================================ */

/* ===== 基础设置 ===== */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}

:root {
    /* 莫兰迪色系 - 低饱和度 */
    --cream:        #F5E6D3;
    --peach:        #F0D5C3;
    --light-orange: #F2C4B3;
    --dusty-pink:   #E8B4A2;
    --rose:         #D4917A;
    --mauve:        #C4846E;
    --brown:        #8B5E4C;
    --dark-brown:   #5C3D2E;
    --deep-brown:   #3E2723;

    /* UI 用色 */
    --bg-start:     #F5D5C3;
    --bg-mid:       #F0C4B8;
    --bg-end:       #D4A594;

    --text-light:   #FFF5EF;
    --text-mid:     #E8D0C0;
    --text-dark:    #6B3A2E;
    --text-soft:    #C4A090;

    --card-bg:      rgba(255, 240, 230, 0.35);
    --card-border:  rgba(255, 240, 230, 0.25);
    --glass-bg:     rgba(255, 235, 225, 0.20);
    --glass-border: rgba(255, 235, 225, 0.18);

    --radius-sm:    10px;
    --radius-md:    16px;
    --radius-lg:    22px;
    --radius-xl:    28px;
    --radius-full:  50px;

    --font-main:    'Quicksand', 'PingFang SC', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(180deg, #F5D5C3 0%, #F0C4B8 35%, #E0B0A0 65%, #C49585 100%);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    /* 柔和背景纹理 */
    background-attachment: fixed;
}

/* 背景柔光效果 */
body::before {
    content: '';
    position: fixed;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(255,220,200,0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(255,200,180,0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 90%, rgba(180,120,100,0.2) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* ===== 主容器 ===== */
.app-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg,
        rgba(245, 213, 195, 0.6) 0%,
        rgba(240, 196, 184, 0.5) 30%,
        rgba(220, 175, 158, 0.55) 60%,
        rgba(200, 150, 135, 0.6) 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    box-shadow: 0 0 60px rgba(180, 130, 110, 0.15);
}

/* ==========================================
   导航栏
   ========================================== */
.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: transparent;
}

.nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 240, 230, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn:active {
    transform: scale(0.92);
    background: rgba(255, 240, 230, 0.4);
}

.nav-title {
    color: rgba(255, 245, 238, 0.5);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* ==========================================
   3. 歌曲信息栏 (圆角卡片)
   ========================================== */
.song-info-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 6px 14px;
    padding: 12px 16px;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    gap: 10px;
}

.song-info-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.avatar-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 240, 230, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 240, 230, 0.7);
    flex-shrink: 0;
}

.song-info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.artist-name {
    color: rgba(255, 240, 230, 0.6);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.song-title {
    color: #8B4A3A;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-meta {
    color: rgba(180, 130, 110, 0.7);
    font-size: 10px;
    font-weight: 500;
}

.song-info-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.action-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 240, 230, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255, 245, 238, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:active {
    transform: scale(0.9);
    background: rgba(255, 240, 230, 0.4);
}

.play-btn-circle {
    width: 38px;
    height: 38px;
    background: rgba(255, 240, 230, 0.4);
    color: #fff;
}

/* ==========================================
   4. 封面展示区
   ========================================== */
.cover-section {
    margin: 10px 14px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    flex: 1;
    min-height: 220px;
    max-height: 320px;
    box-shadow: 0 8px 30px rgba(180, 130, 110, 0.2),
                0 2px 8px rgba(180, 130, 110, 0.1);
}

.cover-image-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(135deg, #F5ECD7 0%, #F0E0D0 40%, #E8D5C8 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg);
}

.cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(245, 213, 195, 0.1) 40%,
        rgba(220, 175, 158, 0.2) 100%);
    border-radius: var(--radius-lg);
    pointer-events: none;
}

/* 没有封面图片时的占位 */
.cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(180, 140, 120, 0.5);
    gap: 8px;
}

.cover-placeholder svg {
    width: 64px;
    height: 64px;
    opacity: 0.5;
}

.cover-placeholder span {
    font-size: 13px;
    font-weight: 500;
}

/* ==========================================
   5. 进度条与歌词区
   ========================================== */
.progress-section {
    padding: 10px 18px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.lyric-text {
    color: #9B6050;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.time-text {
    color: rgba(180, 140, 120, 0.8);
    font-size: 10px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    font-family: 'SF Mono', 'Consolas', 'Quicksand', monospace;
    min-width: 36px;
}

.time-text:first-child {
    text-align: right;
}

.time-text:last-child {
    text-align: left;
}

.progress-bar {
    flex: 1;
    cursor: pointer;
    padding: 12px 0;  /* 增大触摸区域 */
    position: relative;
}

.progress-track {
    position: relative;
    height: 5px;
    background: rgba(220, 180, 165, 0.4);
    border-radius: 3px;
    overflow: visible;
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #D4917A, #B87060);
    border-radius: 3px;
    transition: width 0.05s linear;
}

.progress-thumb {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(150, 100, 70, 0.35);
    transition: left 0.05s linear, transform 0.15s ease;
    pointer-events: none;
    cursor: grab;
}

/* 拖动时拇指变大 */
.progress-bar:active .progress-thumb,
.progress-bar._dragging .progress-thumb {
    transform: translate(-50%, -50%) scale(1.4);
    box-shadow: 0 4px 16px rgba(150, 100, 70, 0.45);
}

.progress-sub-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 4px;
}

.sub-text {
    color: rgba(180, 140, 120, 0.5);
    font-size: 9px;
    font-weight: 500;
}

/* 播放模式按钮 */
.play-mode-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 240, 230, 0.2);
    color: rgba(200, 150, 130, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.play-mode-btn:active {
    transform: scale(0.88);
    background: rgba(255, 240, 230, 0.4);
}
.play-mode-btn.active {
    color: #B87060;
    background: rgba(255, 200, 180, 0.3);
}

/* ==========================================
   6. 播放控制栏
   ========================================== */
.playback-controls {
    padding: 8px 12px 12px;
    background: transparent;
}

.controls-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ctrl-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 240, 230, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: rgba(255, 245, 238, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.ctrl-btn:active {
    transform: scale(0.88);
    background: rgba(255, 240, 230, 0.4);
}

.ctrl-btn.liked {
    color: #F5A0A0;
    background: rgba(255, 200, 200, 0.25);
}

.pause-btn-main {
    width: 54px;
    height: 54px;
    background: rgba(255, 245, 238, 0.85);
    color: #B87060;
    box-shadow: 0 4px 16px rgba(180, 130, 110, 0.3);
    margin: 0 2px;
}

.pause-btn-main:active {
    transform: scale(0.9);
    background: rgba(255, 245, 238, 0.95);
}

/* 历史列表按钮 - 加大加粗 */
.history-list-btn {
    width: 40px !important;
    height: 40px !important;
    background: rgba(255, 240, 230, 0.3) !important;
    border-radius: 50% !important;
    color: rgba(255, 245, 238, 0.9) !important;
}

.history-list-btn:active {
    transform: scale(0.85) !important;
    background: rgba(255, 240, 230, 0.55) !important;
}

/* ==========================================
   7. 底部导航栏
   ========================================== */
.bottom-nav {
    background: rgba(62, 39, 35, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 4px 12px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin-top: auto;
}

.bottom-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px 6px;
    border: none;
    background: transparent;
    color: rgba(220, 200, 185, 0.5);
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: var(--radius-sm);
    min-width: 44px;
}

.bottom-nav-btn span {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.bottom-nav-btn.active {
    color: #F0C4B8;
}

.bottom-nav-btn:active {
    transform: scale(0.9);
}

/* ==========================================
   搜索弹窗
   ========================================== */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: linear-gradient(180deg,
        rgba(245, 213, 195, 0.98) 0%,
        rgba(240, 196, 184, 0.97) 35%,
        rgba(200, 150, 135, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

.search-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 430px;
    margin: 0 auto;
    width: 100%;
}

.search-header {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    gap: 12px;
}

.search-tabs {
    display: flex;
    gap: 4px;
    background: rgba(255, 240, 230, 0.2);
    border-radius: var(--radius-full);
    padding: 3px;
    flex: 1;
}

.search-tab {
    flex: 1;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-full);
    background: transparent;
    color: rgba(255, 245, 238, 0.7);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.search-tab.active {
    background: rgba(255, 240, 230, 0.4);
    color: #8B4A3A;
}

.search-input-row {
    display: flex;
    gap: 8px;
    padding: 8px 14px 12px;
}

.search-input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid rgba(255, 240, 230, 0.3);
    border-radius: var(--radius-full);
    background: rgba(255, 240, 230, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #8B4A3A;
    font-size: 14px;
    font-family: var(--font-main);
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease;
}

.search-input::placeholder {
    color: rgba(180, 140, 120, 0.5);
}

.search-input:focus {
    border-color: rgba(200, 140, 120, 0.5);
    background: rgba(255, 240, 230, 0.35);
}

.search-submit-btn {
    padding: 10px 18px;
    border: none;
    border-radius: var(--radius-full);
    background: rgba(255, 240, 230, 0.35);
    color: #8B4A3A;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-main);
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.search-submit-btn:active {
    transform: scale(0.94);
    background: rgba(255, 240, 230, 0.5);
}

.search-results {
    flex: 1;
    overflow-y: auto;
    padding: 4px 14px 20px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

.search-placeholder {
    text-align: center;
    color: rgba(180, 140, 120, 0.5);
    font-size: 14px;
    font-weight: 500;
    padding-top: 40px;
}

/* 搜索结果项 */
.result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 6px;
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.result-item:active {
    transform: scale(0.97);
    background: rgba(255, 240, 230, 0.45);
}

.result-cover {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: rgba(255, 240, 230, 0.3);
    flex-shrink: 0;
}

.result-cover-placeholder {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(255, 240, 230, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(180, 140, 120, 0.5);
    flex-shrink: 0;
}

.result-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.result-title {
    color: #7B4030;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-artist {
    color: rgba(160, 120, 100, 0.8);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-play-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 240, 230, 0.3);
    color: #B87060;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.result-play-btn:active {
    transform: scale(0.9);
    background: rgba(255, 240, 230, 0.5);
}

/* 本地音乐列表 */
.local-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    margin-bottom: 6px;
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.local-file-item:active {
    transform: scale(0.97);
}

.local-file-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(255, 240, 230, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(180, 140, 120, 0.6);
    flex-shrink: 0;
}

.local-file-name {
    flex: 1;
    color: #7B4030;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 播放中标识 */
.playing-indicator {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #D4917A;
    border-radius: 50%;
    margin-left: 6px;
    animation: pulse 1.2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

/* ==========================================
   滚动条美化
   ========================================== */
.search-results::-webkit-scrollbar {
    width: 3px;
}

.search-results::-webkit-scrollbar-track {
    background: transparent;
}

.search-results::-webkit-scrollbar-thumb {
    background: rgba(200, 150, 130, 0.3);
    border-radius: 3px;
}

/* ==========================================
   响应式适配
   ========================================== */
@media (min-width: 431px) {
    .app-container {
        border-radius: var(--radius-xl);
        margin: 12px 0;
        min-height: calc(100vh - 24px);
        min-height: calc(100dvh - 24px);
    }
}

@media (max-width: 380px) {
    .controls-row {
        gap: 3px;
    }

    .ctrl-btn {
        width: 30px;
        height: 30px;
    }

    .pause-btn-main {
        width: 46px;
        height: 46px;
    }

    .bottom-nav-btn {
        min-width: 36px;
        padding: 4px 3px;
    }

    .bottom-nav-btn span {
        font-size: 8px;
    }
}

/* ==========================================
   触摸优化
   ========================================== */
@media (hover: none) and (pointer: coarse) {
    .ctrl-btn, .action-btn, .nav-btn, .bottom-nav-btn,
    .search-tab, .search-submit-btn, .result-item {
        min-height: 44px;
        min-width: 44px;
    }

    .ctrl-btn {
        min-width: 36px;
        min-height: 36px;
    }
}

/* ==========================================
   页面视图系统
   ========================================== */
.page-view {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: linear-gradient(180deg, #F5D5C3 0%, #F0C4B8 35%, #E0B0A0 65%, #C49585 100%);
    display: flex;
    flex-direction: column;
    max-width: 430px;
    margin: 0 auto;
    animation: slideIn 0.3s ease;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: rgba(62, 39, 35, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.page-title {
    color: #F0C4B8;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.page-close-btn {
    background: rgba(255, 240, 230, 0.2);
    color: rgba(255, 240, 230, 0.8);
}

.page-content {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

/* 热门标签 */
.section-title {
    color: #7B4030;
    font-size: 15px;
    font-weight: 700;
    margin: 14px 0 10px;
}

.hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hot-tag {
    padding: 8px 16px;
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-full);
    color: #8B4A3A;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-main);
}

.hot-tag:active {
    transform: scale(0.94);
    background: rgba(255, 240, 230, 0.5);
}

/* 推荐列表 */
.recommend-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.rec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 10px;
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-main);
}

.rec-item:active {
    transform: scale(0.95);
    background: rgba(255, 240, 230, 0.45);
}

.rec-cover {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(255, 240, 230, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.rec-item span {
    font-size: 12px;
    font-weight: 600;
    color: #8B4A3A;
}

/* 本地音乐页面 */
.local-add-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 30px;
    margin-bottom: 14px;
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px dashed rgba(200, 150, 130, 0.3);
    border-radius: var(--radius-md);
    color: #B87060;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-main);
    width: 100%;
    transition: all 0.2s ease;
}

.local-add-btn:active {
    background: rgba(255, 240, 230, 0.4);
    transform: scale(0.97);
}

/* 个人中心 */
.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 16px;
    margin-bottom: 14px;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    gap: 10px;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 240, 230, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.profile-name {
    color: #7B4030;
    font-size: 16px;
    font-weight: 700;
}

.profile-stats {
    display: flex;
    gap: 24px;
    margin-top: 4px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-num {
    color: #B87060;
    font-size: 18px;
    font-weight: 700;
}

.stat-label {
    color: rgba(160, 130, 110, 0.7);
    font-size: 10px;
    font-weight: 500;
}

/* 菜单列表 */
.menu-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #7B4030;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-main);
    border-bottom: 1px solid rgba(255, 240, 230, 0.2);
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:active {
    background: rgba(255, 240, 230, 0.3);
}

.menu-arrow {
    margin-left: auto;
    color: rgba(180, 140, 120, 0.5);
    font-size: 20px;
    font-weight: 300;
}

/* 搜索关闭按钮 */
.search-close-btn {
    margin-left: auto;
}

/* 收藏按钮动画 */
.result-fav-btn {
    transition: all 0.2s ease;
}

.result-fav-btn:active {
    transform: scale(1.3);
}

/* Toast */
.toast-msg {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(100, 50, 30, 0.85);
    color: #fff;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    z-index: 9999;
    pointer-events: none;
    transition: all 0.25s ease;
    opacity: 0;
    font-family: var(--font-main);
    white-space: nowrap;
}

/* 页面内容滚动条 */
.page-content::-webkit-scrollbar {
    width: 3px;
}
.page-content::-webkit-scrollbar-track {
    background: transparent;
}
.page-content::-webkit-scrollbar-thumb {
    background: rgba(200, 150, 130, 0.3);
    border-radius: 3px;
}

/* ==========================================
   历史列表面板
   ========================================== */
.history-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 95;
    max-width: 430px;
    margin: 0 auto;
    max-height: 55vh;
    background: linear-gradient(180deg, rgba(245,213,195,0.98) 0%, rgba(240,196,184,0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -8px 30px rgba(150, 100, 70, 0.15);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.history-header {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    gap: 10px;
    border-bottom: 1px solid rgba(200, 160, 140, 0.15);
}

.history-title {
    color: #7B4030;
    font-size: 15px;
    font-weight: 700;
    flex: 1;
}

.history-clear-btn {
    padding: 5px 12px;
    border: none;
    border-radius: 20px;
    background: rgba(200, 150, 130, 0.2);
    color: #B87060;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-main);
}

.history-close-btn {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.history-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px 14px 20px;
    -webkit-overflow-scrolling: touch;
}

.history-list .result-item {
    cursor: pointer;
}

.history-list .result-item:active {
    transform: scale(0.97);
}

.history-empty {
    text-align: center;
    color: rgba(180, 140, 120, 0.5);
    font-size: 13px;
    font-weight: 500;
    padding: 30px;
}

/* ==========================================
   歌单弹窗（···按钮）
   ========================================== */
.playlist-popup {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    max-width: 430px;
    margin: 0 auto;
}

.popup-mask {
    position: absolute;
    inset: 0;
    background: rgba(60, 30, 20, 0.4);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.popup-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: 65vh;
    background: linear-gradient(180deg, rgba(245,213,195,0.98), rgba(235,190,175,0.98));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 16px;
    overflow-y: auto;
    box-shadow: 0 -8px 30px rgba(150, 100, 70, 0.2);
    animation: slideUp 0.3s ease;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.popup-header span {
    color: #7B4030;
    font-size: 16px;
    font-weight: 700;
}

.popup-create-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.popup-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(200, 150, 130, 0.3);
    border-radius: 25px;
    background: rgba(255, 240, 230, 0.3);
    color: #8B4A3A;
    font-size: 13px;
    font-family: var(--font-main);
    outline: none;
}

.popup-create-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    background: rgba(139, 74, 58, 0.15);
    color: #7B4030;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-main);
    white-space: nowrap;
}

.popup-create-btn:active {
    background: rgba(139, 74, 58, 0.3);
}

.popup-playlist-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.popup-playlist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: rgba(255, 240, 230, 0.25);
    border-radius: 14px;
    color: #7B4030;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-main);
}

.popup-playlist-item:active {
    background: rgba(255, 240, 230, 0.45);
}

.popup-playlist-item .pl-count {
    color: rgba(160, 130, 110, 0.6);
    font-size: 11px;
    font-weight: 500;
}

.popup-current-song {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(200, 160, 140, 0.2);
}

.popup-song-name {
    color: #B87060;
    font-size: 12px;
    font-weight: 600;
}

/* ==========================================
   歌单详情页
   ========================================== */
.playlist-detail-header {
    padding: 8px 0 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(200, 160, 140, 0.2);
}

.playlist-detail-title {
    color: #7B4030;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.playlist-detail-info {
    color: rgba(160, 130, 110, 0.6);
    font-size: 11px;
    margin-bottom: 12px;
}

.playlist-detail-actions {
    display: flex;
    gap: 8px;
}

.pl-action-btn {
    flex: 1;
    padding: 10px 0;
    border: none;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font-main);
    transition: all 0.2s ease;
}

.pl-play-all {
    background: rgba(139, 74, 58, 0.2);
    color: #7B4030;
}

.pl-shuffle-all {
    background: rgba(200, 150, 130, 0.2);
    color: #B87060;
}

.pl-action-btn:active {
    transform: scale(0.95);
    opacity: 0.8;
}

/* 加载更多按钮 */
.load-more-btn {
    width: 100%;
    padding: 14px 0;
    border: 2px dashed rgba(200, 150, 130, 0.3);
    border-radius: var(--radius-md);
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #B87060;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.2s ease;
}

.load-more-btn:active {
    transform: scale(0.97);
    background: rgba(255, 240, 230, 0.5);
    border-color: rgba(200, 150, 130, 0.5);
}

/* 双击下拉刷新提示条 */
.pull-refresh-hint {
    text-align: center;
    color: #B87060;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-main);
    transition: all 0.3s ease;
    overflow: hidden;
}
