:root {
    --bg-dark: #09090b;
    --bg-card: #18181b;
    --primary: #14B8A6;
    --primary-hover: #0d9488;
    --text-dim: #a1a1aa;
    --text-light: #f4f4f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow: hidden;
    height: 100vh;
}

.app-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    grid-template-rows: 1fr 90px;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    background-color: #000;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.nav-group h4 {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: color 0.2s;
    cursor: pointer;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-light);
}

.nav-link i {
    font-size: 18px;
}

/* Main Content */
.main-content {
    background: linear-gradient(to bottom, #111827, var(--bg-dark));
    overflow-y: auto;
    padding: 32px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.song-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
}

.song-card {
    background-color: var(--bg-card);
    padding: 16px;
    border-radius: 8px;
    transition: background-color 0.3s;
    cursor: pointer;
    position: relative;
    group: hover;
}

.song-card:hover {
    background-color: #27272a;
}

.song-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.song-card .play-btn {
    position: absolute;
    bottom: 80px;
    right: 24px;
    width: 48px;
    height: 48px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.song-card:hover .play-btn {
    opacity: 1;
    transform: translateY(0);
}

.song-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    font-size: 14px;
    color: var(--text-dim);
}

/* Player Bar */
.player-bar {
    grid-column: span 2;
    background-color: #18181b;
    border-top: 1px solid #27272a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.current-track {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
}

.current-track img {
    width: 56px;
    height: 56px;
    border-radius: 4px;
}

.player-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 600px;
}

.control-btns {
    display: flex;
    align-items: center;
    gap: 24px;
}

.control-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.1s;
}

.control-btn:hover {
    color: var(--text-light);
}

.control-btn.play-pause {
    width: 32px;
    height: 32px;
    background-color: var(--text-light);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background-color: #3f3f46;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary);
    border-radius: 2px;
    width: 30%;
}

.time {
    font-size: 11px;
    color: var(--text-dim);
    min-width: 35px;
}

.volume-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 180px;
    justify-content: flex-end;
}

/* Modal */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bg-card);
    padding: 32px;
    border-radius: 12px;
    z-index: 100;
    display: none;
    width: 400px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.modal.active {
    display: block;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    z-index: 90;
}

.modal-overlay.active {
    display: block;
}

.form-input {
    width: 100%;
    padding: 12px;
    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 4px;
    color: #fff;
    margin-bottom: 20px;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}
