/* ============================================
   NS音乐搜索 - 暗黑液态毛玻璃风格
   Dark Liquid Glassmorphism Theme
   ============================================ */

:root {
    --bg-deep: #06060d;
    --bg-base: #0a0a16;
    --glass-bg: rgba(255, 255, 255, 0.045);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-border-bright: rgba(255, 255, 255, 0.22);
    --accent-1: #A855F7;
    --accent-2: #EC4899;
    --accent-glow: rgba(168, 85, 247, 0.4);
    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --blur-strength: blur(12px);
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    outline: none;
}

input, select, textarea {
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ============================================
   液态背景 - 深色渐变 + 流动光球
   ============================================ */
.glass-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(76, 29, 149, 0.25), transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(190, 24, 93, 0.2), transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(30, 27, 75, 0.3), transparent 70%),
        var(--bg-deep);
    z-index: -3;
}

.bubble-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
    will-change: transform;
}

.bubble:nth-child(1) {
    width: 280px;
    height: 280px;
    top: 10%;
    left: 5%;
    background: radial-gradient(circle at 35% 35%, rgba(168, 85, 247, 0.5), rgba(168, 85, 247, 0.05) 70%);
    animation-delay: 0s;
    animation-duration: 25s;
}

.bubble:nth-child(2) {
    width: 350px;
    height: 350px;
    top: 50%;
    right: 5%;
    background: radial-gradient(circle at 35% 35%, rgba(236, 72, 153, 0.4), rgba(236, 72, 153, 0.05) 70%);
    animation-delay: 5s;
    animation-duration: 30s;
}

.bubble:nth-child(3) {
    width: 200px;
    height: 200px;
    bottom: 15%;
    left: 15%;
    background: radial-gradient(circle at 35% 35%, rgba(99, 102, 241, 0.45), rgba(99, 102, 241, 0.05) 70%);
    animation-delay: 10s;
    animation-duration: 22s;
}

.bubble:nth-child(5) {
    display: none;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translate(60px, -40px) scale(1.1);
        opacity: 0.55;
    }
    50% {
        transform: translate(-30px, 50px) scale(0.95);
        opacity: 0.45;
    }
    75% {
        transform: translate(40px, 30px) scale(1.05);
        opacity: 0.5;
    }
}

/* ============================================
   玻璃混合层 - 已移除全屏backdrop-filter以提升性能
   ============================================ */

/* ============================================
   应用主体框架
   ============================================ */
.app-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ============================================
   顶部导航 - 液态玻璃栏
   ============================================ */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(10, 10, 22, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 50;
}

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

.app-name {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #C084FC, #F472B6, #818CF8);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 4s linear infinite;
    letter-spacing: 0.5px;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-search button {
    width: 42px;
    height: 42px;
    background: rgba(20, 20, 35, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #CBD5E1;
    transition: all 0.25s ease;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    font-size: 1rem;
    border-radius: var(--radius-sm);
}

.nav-search button:hover {
    background: var(--glass-bg-hover);
    color: var(--accent-1);
    border-color: var(--glass-border-bright);
    box-shadow: 0 0 20px var(--accent-glow), inset 0 1px 1px rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-search button:active {
    transform: scale(0.92);
}

/* ============================================
   内容标签栏
   ============================================ */
.content-tabs {
    display: flex;
    background: rgba(8, 8, 18, 0.8);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 40;
}

.tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: none;
    background: none;
    cursor: pointer;
}

.tab i {
    font-size: 1.25rem;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.tab:hover {
    color: #CBD5E1;
}

.tab:hover i {
    transform: translateY(-2px);
}

.tab.active {
    color: var(--accent-1);
}

.tab.active i {
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #A855F7, #EC4899, transparent);
    border-radius: 3px;
    box-shadow: 0 0 12px var(--accent-glow);
}

/* ============================================
   主内容区
   ============================================ */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 90px;
    -webkit-overflow-scrolling: touch;
}

.tab-content {
    display: none;
    padding: 16px;
}

.tab-content.active {
    display: block;
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   音乐网格
   ============================================ */
.music-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 8px;
}

@media (min-width: 768px) {
    .music-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

@media (min-width: 1024px) {
    .music-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 22px;
    }
}

/* ============================================
   音乐卡片 - 液态玻璃核心组件
   ============================================ */
.music-card {
    position: relative;
    background: rgba(20, 20, 35, 0.65);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-glass);
    content-visibility: auto;
    contain: layout style paint;
}

/* 玻璃高光层 - 模拟液态玻璃顶部反光 */
.music-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.music-card:hover {
    border-color: var(--glass-border-bright);
    background: rgba(30, 30, 50, 0.75);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 30px var(--accent-glow),
        inset 0 1px 1px rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

.card-cover {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.music-card:hover .card-cover img {
    transform: scale(1.08);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(6, 6, 13, 0.3) 0%, rgba(6, 6, 13, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.music-card:hover .play-overlay {
    opacity: 1;
}

.play-btn-circle {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #A855F7, #EC4899);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    box-shadow: 0 4px 20px var(--accent-glow), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.music-card:hover .play-btn-circle {
    transform: scale(1.1);
}

.card-info {
    padding: 12px 14px;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-artist {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.like-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    background: rgba(6, 6, 13, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    z-index: 5;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    border-radius: 50%;
}

.like-btn:hover {
    background: rgba(6, 6, 13, 0.8);
    border-color: var(--glass-border-bright);
    transform: scale(1.1);
}

.like-btn.liked {
    color: #EC4899;
    background: rgba(236, 72, 153, 0.25);
    border-color: rgba(236, 72, 153, 0.5);
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.4);
}

/* ============================================
   迷你播放器 - 底部液态玻璃条
   ============================================ */
.player-mini {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(6, 6, 13, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--glass-border);
    padding: 12px 16px;
    display: none;
    align-items: center;
    gap: 12px;
    z-index: 90;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.06);
}

.player-mini::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.5), rgba(236, 72, 153, 0.5), transparent);
}

.mini-album {
    width: 50px;
    height: 50px;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.mini-album img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.track-info-mini {
    flex: 1;
    min-width: 0;
}

.track-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.control-btn-mini {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #A855F7, #EC4899);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 50%;
    box-shadow: 0 4px 16px var(--accent-glow), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.control-btn-mini:hover {
    box-shadow: 0 6px 24px var(--accent-glow), inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.control-btn-mini:active {
    transform: scale(0.9);
}

/* ============================================
   搜索覆盖层
   ============================================ */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 6, 13, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 200;
    display: none;
    flex-direction: column;
}

.search-overlay.open {
    display: flex;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(8, 8, 18, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    border-color: var(--accent-1);
    background: var(--glass-bg-hover);
    box-shadow: 0 0 20px var(--accent-glow), inset 0 1px 1px rgba(255, 255, 255, 0.06);
}

.search-bar i {
    color: var(--accent-1);
    font-size: 0.95rem;
    flex-shrink: 0;
}

#searchInput {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    padding: 2px 0;
}

#searchInput::placeholder {
    color: var(--text-secondary);
}

.search-clear {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-1);
    flex-shrink: 0;
    border-radius: 50%;
    transition: all 0.2s ease;
    cursor: pointer;
    font-size: 0.8rem;
    border: none;
    background: none;
}

.search-clear:hover {
    background: var(--glass-bg-hover);
    color: var(--text-primary);
}

.close-search {
    color: var(--accent-1);
    font-weight: 600;
    padding: 8px 4px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.close-search:hover {
    color: #C084FC;
}

.search-results {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
}

.search-loading {
    display: none;
    text-align: center;
    padding: 40px;
    color: var(--accent-1);
}

.search-loading i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   音乐详情覆盖层
   ============================================ */
.music-overlay-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 6, 13, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1500;
    display: none;
    align-items: center;
    justify-content: center;
}

.music-overlay-box {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border-bright);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--accent-glow), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.music-overlay-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 100%);
    pointer-events: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.music-overlay-album {
    width: 160px;
    height: 160px;
    overflow: hidden;
    margin-bottom: 25px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border-bright);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 30px var(--accent-glow);
}

.music-overlay-album img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.music-overlay-info {
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.music-overlay-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    word-break: break-word;
}

.music-overlay-artist {
    font-size: 1rem;
    color: var(--accent-1);
    margin-bottom: 6px;
}

.music-overlay-album-name {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.music-overlay-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
    position: relative;
    z-index: 2;
}

.music-overlay-play-btn {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #A855F7, #EC4899);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 8px 30px var(--accent-glow), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.music-overlay-play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 40px var(--accent-glow), inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.music-overlay-close-btn {
    width: 64px;
    height: 64px;
    background: rgba(239, 68, 68, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(239, 68, 68, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.music-overlay-close-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: scale(1.08);
}

/* ============================================
   API面板
   ============================================ */
.api-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 6, 13, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.api-panel-overlay.open {
    display: flex;
}

.api-panel {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border-bright);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 440px;
    padding: 28px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

.api-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    pointer-events: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.api-panel h3 {
    color: var(--accent-1);
    margin-bottom: 18px;
    font-size: 1.15rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.api-panel label {
    display: block;
    color: #CBD5E1;
    margin-bottom: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.api-panel input,
.api-panel select {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 14px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.api-panel input:focus,
.api-panel select:focus {
    outline: none;
    border-color: var(--accent-1);
    box-shadow: 0 0 15px var(--accent-glow);
}

.api-panel input::placeholder {
    color: var(--text-secondary);
}

.api-panel select option {
    background: #0a0a16;
    color: var(--text-primary);
}

.api-panel button {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    border: none;
    cursor: pointer;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.btn-save {
    background: linear-gradient(135deg, #A855F7, #EC4899);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-save:hover {
    box-shadow: 0 6px 24px var(--accent-glow);
    transform: translateY(-1px);
}

.btn-cancel {
    background: rgba(239, 68, 68, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-cancel:hover {
    background: rgba(239, 68, 68, 0.35);
}

.api-result {
    margin-top: 16px;
    max-height: 240px;
    overflow-y: auto;
}

.api-result .music-card {
    margin-bottom: 10px;
}

/* ============================================
   启动屏
   ============================================ */
.launch-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at center, rgba(76, 29, 149, 0.3), transparent 60%),
        var(--bg-deep);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

.launch-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.launch-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.launch-logo {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 8px 40px var(--accent-glow), 0 0 60px rgba(168, 85, 247, 0.2);
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 40px var(--accent-glow), 0 0 60px rgba(168, 85, 247, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 50px var(--accent-glow), 0 0 80px rgba(168, 85, 247, 0.35);
    }
}

.launch-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.launch-content h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #C084FC, #F472B6, #818CF8);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 3s linear infinite;
}

.launch-content p {
    color: #CBD5E1;
    font-size: 0.85rem;
}

.progress-bar {
    width: 220px;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #A855F7, #EC4899);
    border-radius: 4px;
    transition: width 0.3s ease;
    box-shadow: 0 0 12px var(--accent-glow);
}

/* ============================================
   无结果 / 关于
   ============================================ */
.no-result {
    text-align: center;
    color: var(--text-secondary);
    padding: 50px 20px;
}

.no-result i {
    font-size: 3rem;
    margin-bottom: 18px;
    display: block;
    color: var(--accent-1);
    opacity: 0.5;
}

.no-result p {
    font-size: 0.9rem;
}

.about-section {
    padding: 24px 20px;
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.9;
}

.about-section h3 {
    color: var(--accent-1);
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.about-section a {
    color: var(--accent-1);
    transition: color 0.2s ease;
}

.about-section a:hover {
    color: #C084FC;
    text-shadow: 0 0 10px var(--accent-glow);
}

/* ============================================
   滚动条
   ============================================ */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.5);
}

* {
    -webkit-user-select: none;
    user-select: none;
}

input, textarea {
    -webkit-user-select: text;
    user-select: text;
}

/* ============================================
   弹窗模态框
   ============================================ */
.alert-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 6, 13, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.alert-box {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border-bright);
    border-radius: var(--radius-md);
    width: 85%;
    max-width: 320px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.08);
    animation: popIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.alert-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.alert-header.error {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.2), transparent);
    color: #ef4444;
}

.alert-header.info {
    background: linear-gradient(90deg, rgba(168, 85, 247, 0.2), transparent);
    color: var(--accent-1);
}

.close-alert {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    margin-left: auto;
}

.alert-content {
    padding: 20px;
    color: #CBD5E1;
    font-size: 15px;
    line-height: 1.5;
}

.alert-footer {
    padding: 15px 20px 20px;
    text-align: right;
}

.alert-btn {
    padding: 10px 28px;
    background: linear-gradient(135deg, #A855F7, #EC4899);
    color: white;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 16px var(--accent-glow);
    transition: all 0.3s ease;
}

.alert-btn:hover {
    box-shadow: 0 6px 24px var(--accent-glow);
    transform: translateY(-1px);
}

/* ============================================
   涟漪效果 - 点击液态波纹
   ============================================ */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ============================================
   音源选择面板样式
   ============================================ */
.source-panel-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.source-panel-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.source-panel {
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 420px;
    background: rgba(15, 15, 28, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 20px 16px 32px;
    z-index: 9999;
    transition: bottom 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.06);
}
.source-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(168,85,247,0.05) 0%, transparent 100%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    pointer-events: none;
}
.source-panel-overlay.open ~ .source-panel {
    bottom: 0;
}

.source-panel h3 {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px;
    position: relative;
}
.source-panel h3 i {
    margin-right: 6px;
    color: var(--accent-1);
}
.source-panel-tip {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0 0 16px;
}

.source-option {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.source-option:hover {
    background: rgba(168,85,247,0.08);
    border-color: rgba(168,85,247,0.3);
    transform: translateX(4px);
}
.source-option > i:first-child {
    font-size: 1.4rem;
    width: 40px;
    text-align: center;
    color: var(--accent-1);
    flex-shrink: 0;
}
.source-option > div {
    flex: 1;
    text-align: left;
    margin-left: 8px;
    display: flex;
    flex-direction: column;
}
.source-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}
.source-desc {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-top: 2px;
}
.source-check {
    color: var(--accent-1);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.25s ease;
    flex-shrink: 0;
}
.source-option.active {
    background: rgba(168,85,247,0.12);
    border-color: rgba(168,85,247,0.4);
    box-shadow: 0 0 20px rgba(168,85,247,0.15);
}
.source-option.active .source-check {
    opacity: 1;
    transform: scale(1);
}

/* 搜索框音源指示器 */
.search-source-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    padding: 0 2px;
}
.source-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: var(--accent-1);
    padding: 4px 10px;
    background: rgba(168,85,247,0.1);
    border: 1px solid rgba(168,85,247,0.25);
    border-radius: 20px;
    font-weight: 500;
}

/* 音源按钮高亮 */
#sourceBtn {
    color: var(--accent-1) !important;
}
#sourceBtn i {
    filter: drop-shadow(0 0 4px var(--accent-glow));
}
