/* ── Reset & base ─────────────────────────────────────────────── */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } :root { --bg: #0f1117; --surface: #1a1d27; --surface2: #222636; --border: #2a2d3e; --accent: #6c63ff; --accent-dk: #5248d4; --danger: #ef4444; --success: #22c55e; --text: #e8eaf0; --text-sub: #9195a8; --sidebar-w: 190px; font-family: 'Inter', system-ui, sans-serif; font-size: 14px; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; } body { margin: 0; } a { color: inherit; text-decoration: none; } button { font-family: inherit; cursor: pointer; } @keyframes spin { to { transform: rotate(360deg); } } .spin { animation: spin 0.8s linear infinite; } /* ── Layout ───────────────────────────────────────────────────── */ .app-shell { display: flex; height: 100vh; overflow: hidden; } /* ── Sidebar ──────────────────────────────────────────────────── */ .sidebar { width: var(--sidebar-w); min-width: var(--sidebar-w); background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; padding: 20px 12px; } .sidebar-logo { display: flex; align-items: center; gap: 10px; padding: 8px 10px 20px; color: var(--accent); font-weight: 700; font-size: 13px; line-height: 1.3; } .nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; border: none; background: transparent; color: var(--text-sub); font-size: 13px; font-weight: 500; transition: background 0.15s, color 0.15s; text-align: left; } .nav-item:hover { background: var(--surface2); color: var(--text); } .nav-item.active { background: var(--accent); color: #fff; } /* ── Main content ─────────────────────────────────────────────── */ .main-content { flex: 1; overflow-y: auto; padding: 24px; background: var(--bg); } .search-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; } @media (max-width: 900px) { .search-layout { grid-template-columns: 1fr; } } /* ── Panels ───────────────────────────────────────────────────── */ .panel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; } .panel-full { width: 100%; } .panel-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; color: var(--text); } /* ── Search form ──────────────────────────────────────────────── */ .search-form { display: flex; gap: 8px; margin-bottom: 16px; } .search-input-wrap { flex: 1; position: relative; display: flex; align-items: center; } .search-icon { position: absolute; left: 10px; color: var(--text-sub); pointer-events: none; } .search-input { width: 100%; padding: 9px 12px 9px 36px; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 13px; outline: none; transition: border-color 0.15s; } .search-input:focus { border-color: var(--accent); } .source-select { padding: 9px 10px; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 13px; outline: none; transition: border-color 0.15s; } .source-select:focus { border-color: var(--accent); } /* ── Buttons ──────────────────────────────────────────────────── */ .btn-primary { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; background: var(--accent); color: #fff; border: none; border-radius: 8px; font-size: 13px; font-weight: 600; transition: background 0.15s; white-space: nowrap; } .btn-primary:hover:not(:disabled) { background: var(--accent-dk); } .btn-primary:disabled { opacity: 0.55; cursor: not-allowed; } .btn-download { width: 100%; justify-content: center; margin-top: 12px; } .icon-btn { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 1px solid var(--border); border-radius: 6px; padding: 5px; color: var(--text-sub); transition: background 0.15s, color 0.15s, border-color 0.15s; } .icon-btn:hover { background: var(--surface2); color: var(--text); } .icon-btn.danger:hover { border-color: var(--danger); color: var(--danger); } .icon-btn:disabled { opacity: 0.4; cursor: not-allowed; } /* ── Result lists (music search) ──────────────────────────────── */ .result-list { list-style: none; display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow-y: auto; padding-right: 4px; } .result-card { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; transition: background 0.12s, border-color 0.12s; } .result-card:hover { background: var(--surface2); border-color: var(--border); } .artwork-thumb { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex-shrink: 0; } .artwork-placeholder { background: var(--surface2); display: flex; align-items: center; justify-content: center; color: var(--text-sub); } .result-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .result-title { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .result-sub { font-size: 11px; color: var(--text-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .track-num { margin-left: auto; font-size: 11px; color: var(--text-sub); flex-shrink: 0; } /* ── YouTube panel ────────────────────────────────────────────── */ .yt-panel { display: flex; flex-direction: column; gap: 14px; } .selected-track-header { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--surface2); border-radius: 8px; } .artwork-md { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; flex-shrink: 0; } .selected-track-name { font-weight: 700; font-size: 13px; } .selected-track-sub { font-size: 11px; color: var(--text-sub); margin-top: 2px; } .section-label { font-size: 11px; font-weight: 600; color: var(--text-sub); text-transform: uppercase; letter-spacing: 0.05em; } .yt-result-list { list-style: none; display: flex; flex-direction: column; gap: 6px; } .yt-result-card { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; border: 1px solid var(--border); cursor: pointer; transition: border-color 0.12s, background 0.12s; } .yt-result-card:hover { background: var(--surface2); } .yt-result-card.selected { border-color: var(--accent); background: rgba(108,99,255,0.08); } .yt-thumb-wrap { position: relative; flex-shrink: 0; } .yt-thumb { width: 80px; height: 45px; object-fit: cover; border-radius: 4px; display: block; } .yt-play-overlay { position: absolute; inset: 0; margin: auto; color: rgba(255,255,255,0.85); filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5)); pointer-events: none; } .yt-info { flex: 1; min-width: 0; } .yt-title { display: block; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .yt-sub { display: block; font-size: 11px; color: var(--text-sub); margin-top: 2px; } .check-icon { color: var(--accent); flex-shrink: 0; } .yt-player-wrap { width: 100%; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); } .yt-player { width: 100%; height: 100%; border: none; display: block; } .download-controls { display: flex; flex-direction: column; gap: 10px; } .progress-wrap { display: flex; flex-direction: column; gap: 4px; } .progress-bar { height: 6px; background: var(--surface2); border-radius: 99px; overflow: hidden; } .progress-fill { height: 100%; background: var(--accent); border-radius: 99px; transition: width 0.4s ease; } .progress-label { font-size: 11px; color: var(--text-sub); } /* ── Status messages ──────────────────────────────────────────── */ .error-msg { font-size: 12px; color: var(--danger); padding: 8px 10px; background: rgba(239,68,68,0.1); border-radius: 6px; } .success-msg { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--success); padding: 10px 12px; background: rgba(34,197,94,0.1); border-radius: 6px; } .panel-loading { display: flex; align-items: center; gap: 10px; padding: 24px; color: var(--text-sub); font-size: 13px; } /* ── Library ──────────────────────────────────────────────────── */ .library-layout { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; min-height: 400px; } .lib-col { background: var(--surface); display: flex; flex-direction: column; } .lib-col-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-sub); } .lib-list { list-style: none; overflow-y: auto; flex: 1; } .lib-item { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.1s; min-width: 0; } .lib-item:hover { background: var(--surface2); } .lib-item.active { background: rgba(108,99,255,0.12); } .lib-item-icon { color: var(--text-sub); flex-shrink: 0; } .lib-item-label { flex: 1; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; } .lib-chevron { color: var(--text-sub); flex-shrink: 0; } .lib-item-actions { display: flex; align-items: center; gap: 4px; flex-shrink: 0; } .lib-track { cursor: default; } .lib-track-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; } .lib-track-size { font-size: 10px; color: var(--text-sub); } .lib-empty-col { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 100%; color: var(--text-sub); font-size: 12px; padding: 24px; text-align: center; } .library-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 60px 24px; color: var(--text-sub); text-align: center; } .muted-icon { color: var(--border); } .muted-text { font-size: 12px; } /* ── Scrollbar styling ────────────────────────────────────────── */ ::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; } ::-webkit-scrollbar-thumb:hover { background: var(--text-sub); }