/* css/list.css */
.list-pane { 
    width: 320px; 
    min-width: 200px;
    background: var(--bg-panel); 
    display: flex; flex-direction: column; 
    position: relative; 
}

/* Search */
.search-box { 
    padding: 15px; border-bottom: 1px solid var(--border); background: var(--bg-panel);
    position: relative; 
}
input[type="text"] { 
    width: 100%; box-sizing: border-box; padding: 8px 30px 8px 12px;
    background: #333; border: 1px solid #555; color: white; 
    border-radius: 4px; outline: none;
}
input[type="text"]:focus { border-color: var(--accent); }

#search-clear {
    position: absolute; right: 25px; top: 50%; transform: translateY(-50%);
    color: #888; cursor: pointer; font-size: 14px; display: none;
}
#search-clear:hover { color: #fff; }

/* Bulk Toolbar */
#bulk-toolbar {
    padding: 10px 15px; background: #2d2d30; border-bottom: 1px solid var(--border);
    display: none; align-items: center; justify-content: space-between;
}
#bulk-toolbar.visible { display: flex; }

.bulk-btn {
    background: #333; border: 1px solid #555; color: #ddd;
    padding: 5px 10px; cursor: pointer; border-radius: 3px; font-size: 13px;
    display: flex; align-items: center; gap: 6px;
}
.bulk-btn:hover { background: #444; }

/* Dropdown */
#label-dropdown {
    position: absolute; top: 105px; left: 15px;
    background: #252526; border: 1px solid #454545;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5); z-index: 100;
    width: 220px; display: none; flex-direction: column;
}
#label-dropdown-list { max-height: 250px; overflow-y: auto; }
.dropdown-item {
    padding: 8px 15px; display: flex; align-items: center;
    cursor: pointer; color: #ccc; font-size: 13px; border-bottom: 1px solid #303030;
}
.dropdown-item:hover { background: #3a3d41; color: white; } 
.dropdown-item input { margin-right: 10px; pointer-events: none; }
.dropdown-footer {
    padding: 8px; background: #2d2d30; border-top: 1px solid #454545;
    display: flex; justify-content: flex-end; gap: 8px;
}

/* Song List Items */
#song-list { flex: 1; overflow-y: auto; }

.song-item { 
    padding: 10px 15px; border-bottom: 1px solid #303030; 
    cursor: pointer; transition: background 0.1s;
    display: flex; align-items: center; gap: 12px; position: relative;
}
.song-item:hover { background: var(--bg-hover); }
.song-item.active { background: var(--bg-active); border-left: 4px solid var(--accent); padding-left: 11px; }

.song-checkbox { margin-top: 5px; cursor: pointer; width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; }

.song-info { flex: 1; min-width: 0; pointer-events: none; display: flex; flex-direction: column; gap: 3px; }
.info-top { display: flex; justify-content: space-between; align-items: center; }
.song-title { margin: 0; font-size: 15px; font-weight: 500; color: #e0e0e0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: 8px; }
.song-key { font-size: 12px; font-weight: bold; color: var(--accent); background: #1a1a1a; border: 1px solid #3e3e42; padding: 1px 6px; border-radius: 4px; white-space: nowrap; flex-shrink: 0; }

.info-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-muted); }
.song-artist { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: 8px; }
.song-rhythm { font-size: 11px; font-style: italic; color: #666; white-space: nowrap; flex-shrink: 0; }
.song-composer { font-size: 11px; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.song-item[draggable="true"] { cursor: grab; }
.song-item.dragging { opacity: 0.5; background: #333; border: 1px dashed #666; }
.song-item.drag-over { border-top: 2px solid var(--accent); }

.list-play-btn {
    width: 24px; height: 24px; border-radius: 50%; background: #2d2d30;
    border: 1px solid #555; color: #e0e0e0; display: flex; align-items: center; justify-content: center;
    font-size: 10px; cursor: pointer; flex-shrink: 0; opacity: 0.6; transition: all 0.2s;
}
.list-play-btn:hover { background: var(--accent); border-color: var(--accent); color: white; opacity: 1; }