* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Circular', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: #000;
    color: #fff;
    overflow: hidden;
}

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

/* Sidebar */
.sidebar {
    width: 240px;
    background-color: #000;
    padding: 24px 12px;
    display: flex;
    flex-direction: column;
}

.logo {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
    padding: 0 12px;
}

.logo img {
    width: 32px;
    height: 32px;
    margin-right: 12px;
}

.logo span {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.navigation ul,
.library ul {
    list-style: none;
}

.navigation li,
.library li {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 8px;
}

.navigation li:hover,
.library li:hover {
    background-color: #1a1a1a;
}

.navigation li.active {
    background-color: #1a1a1a;
}

.navigation li i,
.library li i {
    width: 24px;
    margin-right: 16px;
    color: #b3b3b3;
}

.navigation li.active i {
    color: #fff;
}

.navigation li span,
.library li span {
    font-size: 14px;
    font-weight: 500;
    color: #b3b3b3;
}

.navigation li.active span {
    color: #fff;
}

.library {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid #282828;
}

.playlists {
    margin-top: 24px;
    flex: 1;
    overflow-y: auto;
}

.playlists p {
    padding: 8px 12px;
    font-size: 14px;
    color: #b3b3b3;
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.2s;
}

.playlists p:hover {
    color: #fff;
}

/* Main Content */
.main-content {
    flex: 1;
    background: linear-gradient(180deg, #1f1f1f 0%, #121212 100%);
    overflow-y: auto;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-buttons {
    display: flex;
    gap: 16px;
}

.nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.profile-btn {
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.profile-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-profile {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #282828;
    border-radius: 4px;
    box-shadow: 0 16px 24px rgba(0, 0, 0, 0.3);
    min-width: 160px;
    z-index: 1000;
    display: none;
    margin-top: 8px;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    padding: 12px 16px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-item:first-child {
    border-radius: 4px 4px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 4px 4px;
}

.content {
    padding: 0 32px 32px;
}

.playlist-header {
    display: flex;
    align-items: end;
    margin-bottom: 32px;
    padding: 32px 0;
}

.playlist-image {
    width: 232px;
    height: 232px;
    margin-right: 24px;
    box-shadow: 0 4px 60px rgba(0, 0, 0, 0.5);
}

.playlist-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-info {
    flex: 1;
}

.playlist-type {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.playlist-info h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.2;
}

.playlist-description {
    font-size: 14px;
    color: #b3b3b3;
    margin-bottom: 8px;
}

.playlist-meta {
    font-size: 14px;
    color: #b3b3b3;
}

.playlist-controls {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 32px;
}

.play-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #1db954;
    border: none;
    color: #000;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.play-btn:hover {
    transform: scale(1.05);
}

.control-btn {
    background: none;
    border: none;
    color: #b3b3b3;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.control-btn:hover {
    color: #fff;
}

/* Track List */
.track-list {
    margin-top: 24px;
}

.track-header {
    display: grid;
    grid-template-columns: 40px 1fr 1fr 60px;
    gap: 16px;
    padding: 8px 16px;
    border-bottom: 1px solid #282828;
    margin-bottom: 16px;
}

.track-header div {
    font-size: 12px;
    font-weight: 500;
    color: #b3b3b3;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.track-item {
    display: grid;
    grid-template-columns: 40px 1fr 1fr 60px;
    gap: 16px;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.track-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.track-number {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #b3b3b3;
}

.track-info {
    display: flex;
    align-items: center;
}

.track-info img {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    object-fit: cover;
}

.track-details {
    display: flex;
    flex-direction: column;
}

.track-name {
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    margin-bottom: 4px;
}

.track-artist {
    font-size: 14px;
    color: #b3b3b3;
}

.track-album {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #b3b3b3;
}

.track-duration {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #b3b3b3;
}

/* Player */
.player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90px;
    background-color: #181818;
    border-top: 1px solid #282828;
    display: flex;
    align-items: center;
    padding: 0 16px;
    z-index: 100;
}

.player-left {
    display: flex;
    align-items: center;
    width: 30%;
    min-width: 180px;
}

.player-left img {
    width: 56px;
    height: 56px;
    margin-right: 14px;
    object-fit: cover;
}

.player-left .track-info {
    margin-right: 14px;
}

.player-left .track-name {
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    margin-bottom: 4px;
}

.player-left .track-artist {
    font-size: 11px;
    color: #b3b3b3;
}

.like-btn {
    background: none;
    border: none;
    color: #b3b3b3;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s;
}

.like-btn:hover {
    color: #fff;
}

.player-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
    max-width: 722px;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
}

.player-controls .control-btn {
    background: none;
    border: none;
    color: #b3b3b3;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s;
}

.player-controls .control-btn:hover {
    color: #fff;
}

.play-pause-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #fff;
    border: none;
    color: #000;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.play-pause-btn:hover {
    transform: scale(1.06);
}

.progress-container {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
}

.time-current,
.time-total {
    font-size: 11px;
    color: #b3b3b3;
    min-width: 40px;
    text-align: center;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background-color: #4f4f4f;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

#myProgressBar {
    width: 100%;
    height: 4px;
    background: transparent;
    outline: none;
    border: none;
    cursor: pointer;
    -webkit-appearance: none;
}

#myProgressBar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

#myProgressBar:hover::-webkit-slider-thumb {
    opacity: 1;
}

#myProgressBar::-webkit-slider-track {
    height: 4px;
    background: linear-gradient(to right, #1db954 0%, #1db954 var(--progress, 0%), #4f4f4f var(--progress, 0%), #4f4f4f 100%);
    border-radius: 2px;
}

.player-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 30%;
    min-width: 180px;
    gap: 8px;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-bar {
    width: 93px;
    height: 4px;
    background: transparent;
    outline: none;
    border: none;
    cursor: pointer;
    -webkit-appearance: none;
}

.volume-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.volume-bar:hover::-webkit-slider-thumb {
    opacity: 1;
}

.volume-bar::-webkit-slider-track {
    height: 4px;
    background: linear-gradient(to right, #1db954 0%, #1db954 50%, #4f4f4f 50%, #4f4f4f 100%);
    border-radius: 2px;
}

.track-item.playing {
    background-color: rgba(30, 215, 96, 0.1);
    color: #1db954;
}

.track-item.playing .track-name {
    color: #1db954;
}

.track-item:hover .track-number {
    color: #fff;
}

.track-item.playing .track-number i {
    color: #1db954;
}

.control-btn.active {
    color: #1db954;
}

.control-btn.active:hover {
    color: #1ed760;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }
    
    .sidebar span {
        display: none;
    }
    
    .playlist-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .playlist-image {
        margin-right: 0;
        margin-bottom: 24px;
    }
    
    .playlist-info h1 {
        font-size: 32px;
    }
    
    .track-header,
    .track-item {
        grid-template-columns: 40px 1fr 60px;
    }
    
    .track-album {
        display: none;
    }
}