﻿        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

        :root {
            --bg-primary: #0ea5e9;
            --bg-secondary: #0284c7;
            --bg-card: rgba(255, 255, 255, 0.15);
            --bg-card-hover: rgba(255, 255, 255, 0.25);
            --bg-input: rgba(0, 0, 0, 0.15);
            --border: rgba(255, 255, 255, 0.3);
            --border-hover: rgba(255, 255, 255, 0.5);
            --text-primary: #ffffff;
            --text-secondary: rgba(255, 255, 255, 0.95);
            --text-muted: rgba(255, 255, 255, 0.8);
            --accent: #fde047;
            --accent-glow: rgba(253, 224, 71, 0.4);
            --accent-soft: rgba(253, 224, 71, 0.2);
            --success: #86efac;
            --error: #fca5a5;
            --warning: #fde047;
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --radius-xl: 24px;
            --shadow-card: 0 12px 40px rgba(2, 132, 199, 0.3);
            --transition: 0.25s ease-out;
        }
        
        * { margin: 0; padding: 0; box-sizing: border-box; }
        
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
            background: var(--bg-secondary);
            color: var(--text-primary);
            min-height: 100vh;
            line-height: 1.5;
            -webkit-font-smoothing: antialiased;
        }
        
        /* 背景装饰 */
        body::before {
            content: '';
            position: fixed;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle at 10% 10%, rgba(56, 189, 248, 0.12) 0%, transparent 40%),
                        radial-gradient(circle at 90% 90%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
            z-index: 0;
            pointer-events: none;
        }
        
        .app {
            position: relative;
            z-index: 1;
            max-width: 1280px;
            margin: 0 auto;
            padding: 24px;
            min-height: 100vh;
        }
        
        /* ====== 头部 ====== */
        .header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 0 32px;
        }
        
        .header-left {
            display: flex;
            align-items: center;
            gap: 14px;
        }
        
        .header-logo {
            width: 44px;
            height: 44px;
            background: linear-gradient(135deg, #fde047, #f43f5e);
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
            box-shadow: 0 4px 16px var(--accent-glow);
        }
        
        .header-title {
            font-size: 1.5rem;
            font-weight: 700;
            letter-spacing: -0.02em;
        }
        
        .header-title span {
            color: var(--text-primary);
        }
        
        .header-status {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.85rem;
            color: var(--text-muted);
        }
        
        .status-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--success);
            box-shadow: 0 0 8px rgba(34,197,94,0.5);
        }
        
        /* 搜索框 */
        .header-search {
            display: flex;
            gap: 10px;
            align-items: center;
        }
        
        .search-input {
            width: 280px;
            padding: 10px 16px;
            background: var(--bg-input);
            border: 1px solid var(--border);
            border-radius: var(--radius-md);
            color: var(--text-primary);
            font-size: 0.9rem;
            outline: none;
            transition: var(--transition);
        }
        
        .search-input:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-soft);
        }
        
        .search-input::placeholder {
            color: var(--text-muted);
        }
        
        .search-btn {
            background: var(--accent);
            color: #1f2937;
            border: none;
            border-radius: var(--radius-md);
            padding: 10px 16px;
            font-size: 0.9rem;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .search-btn:hover {
            background: linear-gradient(135deg, #f43f5e, #fb923c);
            transform: translateY(-1px);
            box-shadow: 0 4px 16px rgba(244, 63, 94, 0.4);
            border-color: transparent;
            color: white;
        }
        
        .search-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }
        
        /* ====== 播放器顶部 ====== */
        .player-card {
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border-radius: var(--radius-xl);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-top: 1px solid rgba(255, 255, 255, 0.5);
            overflow: hidden;
            margin-bottom: 24px;
            box-shadow: 0 16px 40px rgba(2, 132, 199, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4);
            transition: box-shadow 0.3s ease, transform 0.3s ease;
        }
        
        .player-card:hover {
            box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
            transform: translateY(-2px);
        }
        
        .player-inner {
            display: flex;
            min-height: 320px;
        }
        
        .player-left {
            flex: 6;
            padding: 32px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            gap: 24px;
            border-right: 1px solid var(--border);
        }
        
        .player-right {
            flex: 4;
            padding: 24px;
            display: flex;
            flex-direction: column;
        }
        
        /* 封面和信息 */
        .now-playing {
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .album-art {
            width: 120px;
            height: 120px;
            min-width: 120px;
            border-radius: var(--radius-lg);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.5rem;
            color: var(--accent);
            box-shadow: 0 8px 32px rgba(0,0,0,0.3);
            overflow: hidden;
            transition: border-radius 0.5s ease, transform 0.5s ease;
            position: relative;
        }

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

        .album-art.no-cover {
            background: linear-gradient(135deg, #38bdf8, #818cf8);
        }

        .album-art.no-cover i {
            filter: drop-shadow(0 0 8px var(--accent));
        }

        .album-art.spinning {
            animation: spin 8s linear infinite;
            border-radius: 50%;
        }

        .album-art.spinning img {
            border-radius: 50%;
        }
        
        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        
        .track-info {
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
        }

        .track-info h2 {
            font-size: 1.6rem;
            font-weight: 700;
            letter-spacing: -0.01em;
            line-height: 1.3;
        }
        
        .track-info .artist {
            font-size: 1rem;
            color: var(--text-secondary);
        }
        
        .track-info .meta {
            display: none;
        }
        
        /* 播放控件 */
        .controls {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 20px;
            padding: 12px 18px;
            border-radius: 999px;
            background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.05));
            border: 1px solid rgba(255,255,255,0.18);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 10px 24px rgba(14,165,233,0.14);
            align-self: center;
        }
        
        .ctrl-btn {
            background: rgba(255,255,255,0.08);
            border: 1px solid rgba(255,255,255,0.14);
            color: var(--text-secondary);
            font-size: 1.2rem;
            cursor: pointer;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }
        
        .ctrl-btn:hover {
            color: #fde047;
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px) scale(1.06);
            box-shadow: 0 8px 18px rgba(14,165,233,0.16);
        }
        
        .ctrl-btn.play {
            width: 68px;
            height: 68px;
            background: linear-gradient(135deg, #f43f5e, #fb923c);
            color: white;
            font-size: 1.45rem;
            box-shadow: 0 14px 32px rgba(244, 63, 94, 0.35), 0 0 0 8px rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.2);
            position: relative;
        }
        
        .ctrl-btn.play:hover {
            transform: translateY(-2px) scale(1.05);
            background: linear-gradient(135deg, #e11d48, #ea580c);
            box-shadow: 0 18px 36px rgba(244, 63, 94, 0.42), 0 0 0 10px rgba(255,255,255,0.07);
        }

        .ctrl-btn.play::after {
            content: '';
            position: absolute;
            inset: 6px;
            border-radius: 50%;
            border: 1px solid rgba(255,255,255,0.16);
            pointer-events: none;
        }
        
        /* 进度条 */
        .progress-section {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 18px;
            border-radius: 18px;
            background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
            border: 1px solid rgba(255,255,255,0.12);
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
        }
        
        .time {
            font-size: 0.78rem;
            color: var(--text-muted);
            min-width: 38px;
            font-variant-numeric: tabular-nums;
        }
        
        .time:last-child { text-align: right; }
        
        .progress-track {
            flex: 1;
            height: 16px;
            background: rgba(255,255,255,0.1);
            border-radius: 999px;
            cursor: pointer;
            position: relative;
            display: flex;
            align-items: center;
            overflow: hidden;
            box-shadow: inset 0 2px 6px rgba(0,0,0,0.2);
        }
        
        .progress-track:hover {
            background: rgba(255,255,255,0.12);
        }
        
        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #fde047, #f43f5e, #fde047);
            background-size: 200% 100%;
            border-radius: 999px;
            position: relative;
            transition: width 0.05s linear;
            animation: progressGlow 3s linear infinite;
            box-shadow: 0 0 16px rgba(253,224,71,0.35);
        }

        .progress-fill::after {
            content: '';
            position: absolute;
            right: -7px;
            top: 50%;
            transform: translateY(-50%);
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: #fff7ed;
            box-shadow: 0 0 0 3px rgba(255,255,255,0.14), 0 0 14px rgba(253,224,71,0.55);
        }
        
        @keyframes progressGlow {
            0% { background-position: 0% 50%; }
            100% { background-position: 200% 50%; }
        }
        
        .progress-track.dragging .progress-fill {
            transition: none;
        }
        
        /* 移除hover的圆点效果，避免干扰 */
        /* .progress-track:hover .progress-fill::after {
            content: '';
            position: absolute;
            right: -6px;
            top: 50%;
            transform: translateY(-50%);
            width: 12px;
            height: 12px;
            background: white;
            border-radius: 50%;
            box-shadow: 0 0 6px rgba(0,0,0,0.3);
        } */
        
        /* 音量 */
        .volume-row {
            display: flex;
            align-items: center;
            gap: 10px;
            justify-content: center;
            padding: 10px 14px;
            border-radius: 999px;
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.1);
            align-self: center;
        }
        
        .volume-row i {
            font-size: 0.9rem;
            color: var(--text-muted);
            cursor: pointer;
        }
        
        .volume-row input[type=range] {
            width: 120px;
            height: 6px;
            -webkit-appearance: none;
            appearance: none;
            background: rgba(255,255,255,0.12);
            border-radius: 999px;
            outline: none;
        }
        
        .volume-row input[type=range]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: #fff7ed;
            box-shadow: 0 0 0 3px rgba(253,224,71,0.2), 0 0 8px rgba(251, 191, 36, 0.6);
            cursor: pointer;
        }
        
        /* 歌词区 */
        .lyrics-header {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .lyrics-body {
            flex: 1;
            overflow-y: auto;
            scroll-behavior: smooth;
            max-height: 460px;
            padding: 8px 12px;
            border-radius: var(--radius-md);
            background: rgba(255,255,255,0.02);
        }
        
        .lyrics-body::-webkit-scrollbar { width: 4px; }
        .lyrics-body::-webkit-scrollbar-track { background: transparent; }
        .lyrics-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
        .lyrics-body::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }
        
        .lyric-line {
            font-size: 0.95rem;
            line-height: 2;
            color: rgba(255,255,255,0.25);
            transition: all 0.3s;
            padding: 2px 0;
            opacity: 0.3;
            max-height: 0;
            overflow: hidden;
        }
        
        .lyric-line.visible {
            opacity: 1;
            max-height: 120px;
        }
        
        .lyric-line.hidden {
            opacity: 0;
            max-height: 0;
            padding: 0;
        }
        
        .lyric-line.active {
            color: white;
            font-weight: 600;
            font-size: 1.05rem;
            opacity: 1;
        }
        
        .lyric-line.prev, .lyric-line.next {
            color: rgba(255,255,255,0.45);
            opacity: 0.8;
        }
        
        .lyrics-empty {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100%;
            color: var(--text-muted);
            gap: 12px;
        }
        
        .lyrics-empty i { font-size: 2rem; opacity: 0.4; }
        .lyrics-empty span { font-size: 0.9rem; }
        
        /* ====== 下方两栏 ====== */
        .content-grid {
            display: grid;
            grid-template-columns: 3fr 2fr;
            gap: 24px;
        }
        
        /* 音乐库 */
        .card {
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
            border-radius: var(--radius-xl);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-top: 1px solid rgba(255, 255, 255, 0.4);
            overflow: hidden;
            box-shadow: 0 12px 32px rgba(2, 132, 199, 0.2);
        }
        
        .card-header {
            display: flex;
            align-items: center;
            padding: 20px 24px 16px;
            gap: 12px;
        }
        
        .card-title {
            font-size: 1.1rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .card-title i {
            color: var(--accent);
            font-size: 1rem;
        }
        
        .card-badge {
            font-size: 0.78rem;
            color: var(--text-muted);
            background: rgba(255,255,255,0.04);
            padding: 3px 10px;
            border-radius: 20px;
        }
        
        .card-action {
            margin-left: auto;
            background: none;
            border: 1px solid var(--border);
            color: var(--text-secondary);
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 0.8rem;
            cursor: pointer;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .card-action:hover {
            border-color: var(--border-hover);
            color: var(--text-primary);
            background: rgba(255,255,255,0.03);
        }

        .card-action.active {
            border-color: rgba(138, 180, 248, 0.35);
            background: rgba(255, 255, 255, 0.2);
            color: var(--accent);
        }
        
        /* 歌曲列表 */
        .song-list {
            max-height: 420px;
            overflow-y: auto;
            padding: 0 12px 12px;
        }
        
        .song-list::-webkit-scrollbar { width: 4px; }
        .song-list::-webkit-scrollbar-track { background: transparent; }
        .song-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }
        
        .song-item {
            display: flex;
            align-items: center;
            padding: 12px;
            border-radius: var(--radius-md);
            cursor: pointer;
            transition: var(--transition);
            gap: 14px;
        }
        
        .song-item:hover {
            background: rgba(255,255,255,0.04);
        }
        
        .song-item.active {
            background: var(--accent-soft);
        }
        
        .song-num {
            font-size: 0.82rem;
            color: var(--text-muted);
            min-width: 24px;
            text-align: center;
            font-variant-numeric: tabular-nums;
        }
        
        .song-item.active .song-num {
            color: var(--accent);
        }
        
        .song-item.active .song-num::after {
            content: '♫';
        }
        
        .song-item.active .song-num span { display: none; }
        
        .song-meta {
            flex: 1;
            min-width: 0;
        }

        .song-cover {
            width: 42px;
            height: 42px;
            min-width: 42px;
            border-radius: 10px;
            overflow: hidden;
            background: rgba(255, 255, 255, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--accent);
            box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
        }

        .song-cover img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .song-cover.no-cover i {
            font-size: 0.9rem;
            opacity: 0.9;
        }
        
        .song-name {
            font-size: 0.92rem;
            font-weight: 500;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .song-sub {
            font-size: 0.8rem;
            color: var(--text-muted);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .song-source {
            font-size: 0.7rem;
            padding: 3px 8px;
            background: rgba(138, 180, 248, 0.2);
            border-radius: 10px;
            color: var(--accent);
            font-weight: 500;
            min-width: 60px;
            text-align: center;
        }
        
        .song-dur {
            font-size: 0.8rem;
            color: var(--text-muted);
            font-variant-numeric: tabular-nums;
        }
        
        .song-empty {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 60px 20px;
            color: var(--text-muted);
            gap: 12px;
        }
        
        .song-empty i { font-size: 2.5rem; opacity: 0.3; }
        .song-empty p { font-size: 0.9rem; }
        
        /* 上传区 */
        .upload-area {
            padding: 24px;
        }
        
        .upload-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .upload-title i { color: var(--accent); font-size: 1rem; }
        
        .upload-group {
            margin-bottom: 16px;
        }
        
        .upload-group label {
            display: block;
            font-size: 0.78rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.05em;
            margin-bottom: 8px;
            font-weight: 500;
        }
        
        .upload-row {
            display: flex;
            gap: 10px;
            align-items: center;
        }
        
        .btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 9px 18px;
            border-radius: var(--radius-sm);
            font-size: 0.85rem;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            border: none;
            white-space: nowrap;
        }
        
        .btn-primary {
            background: var(--accent);
            color: white;
        }
        
        .btn-primary:hover {
            background: #5d8eec;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px var(--accent-glow);
        }
        
        .btn-secondary {
            background: rgba(255,255,255,0.06);
            color: var(--text-secondary);
            border: 1px solid var(--border);
        }
        
        .btn-secondary:hover {
            background: rgba(255,255,255,0.1);
            color: var(--text-primary);
        }
        
        .upload-hint {
            font-size: 0.78rem;
            color: var(--text-muted);
        }
        
        .select-wrapper {
            flex: 1;
        }
        
        .select-wrapper select {
            width: 100%;
            padding: 11px 14px;
            background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
            border: 1px solid rgba(255,255,255,0.18);
            border-top: 1px solid rgba(255,255,255,0.28);
            border-radius: 14px;
            color: var(--text-primary);
            font-size: 0.88rem;
            outline: none;
            cursor: pointer;
            appearance: none;
            -webkit-appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='rgba(255,255,255,0.4)' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 14px center;
            padding-right: 34px;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 6px 18px rgba(2,132,199,0.08);
            transition: var(--transition);
        }
        
        .select-wrapper select:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(253,224,71,0.16), inset 0 1px 0 rgba(255,255,255,0.1);
        }
        
        .select-wrapper select option {
            background: #1f2937;
            color: var(--text-primary);
        }
        
        .drag-hint {
            margin-top: 16px;
            padding: 12px 16px;
            background: rgba(255,255,255,0.02);
            border: 1px dashed rgba(255,255,255,0.08);
            border-radius: var(--radius-md);
            text-align: center;
            font-size: 0.8rem;
            color: var(--text-muted);
        }
        
        .drag-hint i { margin-right: 6px; }
        
        /* 快捷键 */
        .shortcuts {
            display: flex;
            justify-content: center;
            gap: 24px;
            padding: 24px;
            flex-wrap: wrap;
        }
        
        .shortcut {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.8rem;
            color: var(--text-muted);
        }
        
        .shortcut kbd {
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 6px;
            padding: 3px 8px;
            font-size: 0.75rem;
            font-family: inherit;
            color: var(--text-secondary);
        }
        
        /* 底部 */
        .footer {
            text-align: center;
            padding: 32px 0 16px;
            color: var(--text-muted);
            font-size: 0.8rem;
        }
        
        .footer .cat {
            font-size: 1.2rem;
            margin-bottom: 6px;
        }
        
        /* 登录按钮 */
        .btn-login {
            background: rgba(255,255,255,0.06);
            border: 1px solid var(--border);
            color: var(--text-muted);
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
            font-size: 0.8rem;
        }
        
        .btn-login:hover {
            background: rgba(255,255,255,0.1);
            color: var(--text-primary);
            border-color: var(--border-hover);
        }
        
        .btn-login.logged-in {
            background: var(--accent-soft);
            color: var(--accent);
            border-color: rgba(138, 180, 248, 0.2);
        }
        
        /* 弹窗 */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.6);
            backdrop-filter: blur(4px);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 1000;
        }
        
        .modal-overlay.show { display: flex; }
        
        .modal-card {
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.1));
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-top: 1px solid rgba(255, 255, 255, 0.5);
            border-radius: var(--radius-xl);
            width: 380px;
            max-width: 90vw;
            box-shadow: 0 24px 64px rgba(2, 132, 199, 0.35);
            animation: modalIn 0.2s ease;
        }
        
        .modal-sm { width: 320px; }
        
        @keyframes modalIn {
            from { transform: scale(0.95); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }
        
        .modal-header {
            padding: 24px 24px 0;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .modal-header i {
            font-size: 1.2rem;
            color: var(--accent);
        }
        
        .modal-header h3 {
            font-size: 1.1rem;
            font-weight: 600;
        }
        
        .modal-body {
            padding: 20px 24px;
        }
        
        .modal-body input {
            width: 100%;
            padding: 12px 14px;
            background: var(--bg-input);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            color: var(--text-primary);
            font-size: 0.95rem;
            outline: none;
            transition: var(--transition);
        }
        
        .modal-body input:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-soft);
        }
        
        .login-error {
            margin-top: 12px;
            padding: 10px 14px;
            background: rgba(239, 68, 68, 0.15);
            border: 1px solid rgba(239, 68, 68, 0.4);
            border-radius: var(--radius-sm);
            color: #f87171;
            font-size: 0.85rem;
            text-align: center;
        }
        
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            20% { transform: translateX(-8px); }
            40% { transform: translateX(8px); }
            60% { transform: translateX(-6px); }
            80% { transform: translateX(6px); }
        }
        .shake { animation: shake 0.4s ease; }
        
        .modal-body p {
            color: var(--text-secondary);
            font-size: 0.92rem;
            line-height: 1.6;
        }
        
        .modal-footer {
            padding: 0 24px 20px;
            display: flex;
            gap: 10px;
            justify-content: flex-end;
        }
        
        .btn-danger {
            background: var(--error);
            color: white;
            border: none;
        }
        
        .btn-danger:hover {
            background: #dc2626;
            transform: translateY(-1px);
        }
        
        /* 歌曲删除按钮 */
        .song-del {
            background: none;
            border: none;
            color: var(--text-muted);
            cursor: pointer;
            padding: 6px;
            border-radius: 50%;
            transition: var(--transition);
            font-size: 0.8rem;
            opacity: 0;
        }
        
        .song-item:hover .song-del { opacity: 1; }
        
        .song-del:hover {
            color: var(--error);
            background: rgba(239,68,68,0.1);
        }
        
        /* 来源标签 */
        .song-source {
            font-size: 0.75rem;
            padding: 3px 8px;
            background: rgba(255, 215, 0, 0.15);
            border-radius: 10px;
            color: #FFD700;
            border: 1px solid rgba(255, 215, 0, 0.3);
            min-width: 60px;
            text-align: center;
            font-weight: 500;
        }
        
        /* 音源状态指示器 */
        .source-status {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 6px 10px;
            background: rgba(255,255,255,0.03);
            border-radius: var(--radius-md);
            border: 1px solid var(--border);
            font-size: 0.8rem;
        }
        
        .source-status.available { background: rgba(34,197,94,0.05); border-color: rgba(34,197,94,0.2); }
        .source-status.unavailable { opacity: 0.4; }
        
        .source-status-dot {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--text-muted);
        }
        
        .source-status.available .source-status-dot { background: var(--success); }
        
        /* 搜索中状态 */
        .song-item.loading {
            opacity: 0.7;
            position: relative;
        }
        
        .song-item.loading::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 16px;
            height: 16px;
            margin: -8px 0 0 -8px;
            border: 2px solid var(--accent-soft);
            border-top: 2px solid var(--accent);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        /* 未登录时隐藏上传区 */
        .upload-area.auth-required {
            display: none;
        }
        
        .upload-locked {
            padding: 40px 24px;
            text-align: center;
            color: var(--text-muted);
        }
        
        .upload-locked i { font-size: 2rem; margin-bottom: 12px; opacity: 0.4; }
        .upload-locked p { font-size: 0.9rem; margin-bottom: 4px; }
        .upload-locked small { font-size: 0.78rem; }
        
        /* 通知 */
        .toast {
            position: fixed;
            top: 24px;
            right: 24px;
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.4);
            border-top: 1px solid rgba(255, 255, 255, 0.5);
            border-radius: var(--radius-md);
            padding: 14px 20px;
            display: flex;
            align-items: flex-start;
            gap: 12px;
            box-shadow: 0 12px 32px rgba(2, 132, 199, 0.25);
            z-index: 1000;
            transform: translateX(120%);
            transition: transform 0.3s ease;
            max-width: 360px;
        }
        
        .toast.show { transform: translateX(0); }
        
        .toast.success .toast-icon { color: var(--success); }
        .toast.error .toast-icon { color: var(--error); }
        .toast.info .toast-icon { color: var(--accent); }
        
        .toast-icon { font-size: 1.1rem; margin-top: 1px; }
        .toast-title { font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
        .toast-msg { font-size: 0.82rem; color: var(--text-secondary); }
        
        /* 拖放时的边框高亮 */
        .app.drag-over::after {
            content: '';
            position: fixed;
            inset: 0;
            border: 3px dashed var(--accent);
            border-radius: 0;
            pointer-events: none;
            z-index: 999;
            animation: pulse-border 1s ease infinite;
        }
        
        @keyframes pulse-border {
            0%, 100% { opacity: 0.5; }
            50% { opacity: 1; }
        }
        
        /* 响应式 */
        @media (max-width: 900px) {
            .app { padding: 16px; }
            .player-inner { flex-direction: column; }
            .player-left { border-right: none; border-bottom: 1px solid var(--border); }
            .content-grid { grid-template-columns: 1fr; }
            .album-art { width: 80px; height: 80px; min-width: 80px; }
            .track-info h2 { font-size: 1.2rem; }
        }
        
        @media (max-width: 600px) {
            .header { flex-direction: column; gap: 12px; text-align: center; }
            .now-playing { flex-direction: column; text-align: center; }
            .controls { gap: 12px; }
            .header-search { flex-direction: column !important; gap: 8px !important; }
            .search-input { width: 100% !important; min-width: 150px; }
            .search-btn { white-space: nowrap; }
        }
