:root {
    --bg-color: #0b0c10;
    --sidebar-bg: #121318;
    --player-bg: rgba(18, 19, 24, 0.85);
    --text-primary: #ffffff;
    --text-sec: #8b8e98;
    --accent: #1de9b6;
    --accent-hover: #00bfa5;
    --border-color: rgba(255, 255, 255, 0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow: hidden;
}

.app-container {
    display: flex;
    height: calc(100vh - 90px);
}

.sidebar {
    width: 250px;
    background-color: var(--sidebar-bg);
    padding: 2.5rem 0;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.sidebar-footer {
    margin-top: auto;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.nav-home {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #0b0c10;
    text-decoration: none;
    font-weight: 800;
    font-size: 1rem;
    padding: 1rem;
    margin: 1rem;
    border-radius: 12px;
    background: var(--accent);
    transition: all 0.2s;
    box-shadow: 0 0 15px rgba(29, 233, 182, 0.4);
}

.nav-home svg { width: 1.4rem; height: 1.4rem; }

.nav-home:hover {
    background: #fff;
    transform: scale(1.05);
}

.nav-links { list-style: none; }
.nav-links li {
    padding: 1.2rem 2rem;
    color: var(--text-sec);
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}
.nav-links li:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.02); }
.nav-links li.active {
    color: var(--accent);
    background: linear-gradient(90deg, rgba(29, 233, 182, 0) 0%, rgba(29, 233, 182, 0.08) 100%);
}
.nav-links li.active::after {
    content: ''; position: absolute; right: 0; top: 0; height: 100%; width: 4px;
    background-color: var(--accent); border-radius: 4px 0 0 4px;
}

.content {
    flex: 1;
    padding: 3rem 4rem;
    overflow-y: auto;
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}
.search-bar input {
    flex: 1;
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    color: white;
    font-size: 1.05rem;
    transition: all 0.2s;
}
.search-bar input:focus { outline: none; border-color: var(--accent); background: rgba(29, 233, 182, 0.03); }
.search-bar button {
    padding: 0 2.5rem;
    border-radius: 12px;
    border: none;
    background: var(--accent);
    color: #0b0c10;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.search-bar button:hover { background: var(--accent-hover); }
.search-bar button:active { transform: scale(0.97); }

.results-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.results-table th, .results-table td {
    padding: 1.2rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.results-table th { color: var(--text-sec); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; padding-bottom: 1.5rem; }
.results-table td { font-size: 0.95rem; }
.results-table tbody tr { transition: background 0.2s, transform 0.1s; border-radius: 8px; }
.results-table tbody tr:hover { background: rgba(255,255,255,0.03); }

.results-table tbody tr.playing td:first-child {
    box-shadow: inset 4px 0 0 var(--accent);
}
.results-table tbody tr.playing {
    background: rgba(29, 233, 182, 0.08) !important;
}
.results-table tbody tr.playing strong {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(29, 233, 182, 0.5);
}
.results-table tbody tr.playing button[title="Play"],
.results-table tbody tr.playing button[title="Play Track"],
.results-table tbody tr.playing button[title="Play Full Album"] {
    color: var(--accent);
}

.action-btn {
    background: transparent; border: none; font-size: 1.3rem; cursor: pointer;
    color: var(--text-sec); transition: color 0.2s, transform 0.2s; padding: 0 0.6rem;
}
.action-btn:hover { color: var(--accent); transform: scale(1.1); }
.action-btn.fav { font-size: 1.1rem; }
.action-btn.fav:hover { color: #ff5252; }
.action-btn.fav.active { color: #ff3b3b; }

.thumbnail { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; box-shadow: 0 4px 6px rgba(0,0,0,0.3); }

/* Bottom Player */
.bottom-player {
    position: fixed;
    bottom: 0; width: 100%; height: 90px;
    background: var(--player-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3rem;
    z-index: 100;
}
.now-playing { flex: 1; display: flex; flex-direction: column; justify-content: center; }
#playing-title { font-weight: 700; font-size: 1.15rem; color: var(--text-primary); margin-bottom: 0.3rem; }
.meta { font-size: 0.85rem; color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 500px; font-weight: 500; }

.player-controls { flex: 0.5; display: flex; justify-content: center; }
.play-btn {
    padding: 0.8rem 1.5rem; border-radius: 30px;
    background: var(--text-primary); color: #000; border: none;
    font-size: 1rem; font-weight: 800; cursor: pointer; transition: transform 0.1s, background 0.2s;
    letter-spacing: 0.5px;
}
.play-btn:hover { background: var(--accent); }
.play-btn:active { transform: scale(0.95); }

.player-settings { flex: 1; display: flex; justify-content: flex-end; gap: 2rem; align-items: center; }
.setting-item { display: flex; align-items: center; gap: 0.8rem; color: var(--text-sec); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
#output-select {
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-color); color: var(--text-primary);
    padding: 0.4rem 0.6rem; border-radius: 6px; outline: none; font-family: 'Inter', sans-serif; cursor: pointer; transition: all 0.2s ease;
    max-width: 150px; text-overflow: ellipsis; font-size: 0.85rem;
}
#output-select option {
    background: var(--bg-color);
    color: var(--text-primary);
}
#output-select:hover { border-color: var(--accent); box-shadow: 0 0 8px rgba(29, 233, 182, 0.2); }
/* VU Meters */
.vu-meters {
    user-select: none;
}
.vu-bar-container {
    background: #000;
    box-shadow: inset 0 0 5px rgba(0,255,0,0.1);
}
.vu-fill {
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.4);
}
#vu-left, #vu-right {
    background: linear-gradient(90deg, #4caf50 0%, #4caf50 70%, #ffeb3b 85%, #f44336 100%);
}
