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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #000000;
    color: #ffffff;
    overflow-x: hidden;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background-color: #0a0a0a;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #1a1a1a;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1000;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #ffffff;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-toggle .icon {
    width: 24px;
    height: 24px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu {
    flex: 1;
}

.nav-menu ul {
    list-style: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: #b3b3b3;
    cursor: pointer;
    transition: color 0.2s ease;
    margin-bottom: 4px;
}

.nav-item:hover {
    color: #ffffff;
}

.nav-item.separator {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #1a1a1a;
}

.icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.nav-item span {
    font-size: 14px;
    font-weight: 400;
}

.bottom-menu {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid #1a1a1a;
}

.copyright {
    margin-top: auto;
    padding-top: 24px;
    font-size: 12px;
    color: #666666;
    text-align: center;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 24px 32px;
    background-color: #000000;
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 32px;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notification-icon {
    width: 24px;
    height: 24px;
    fill: #ffffff;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.notification-icon:hover {
    opacity: 0.7;
}

.profile-mini {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
}

.profile-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Profile Section */
.profile-section {
    margin-bottom: 32px;
}

.profile-info {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.profile-picture {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-details {
    padding-top: 16px;
}

.profile-name {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.edit-profile-btn {
    background-color: #333333;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 16px;
}

.edit-profile-btn:hover {
    background-color: #404040;
}

.profile-stats {
    font-size: 14px;
    color: #b3b3b3;
}

/* Separator */
.separator {
    border: none;
    height: 1px;
    background-color: #1a1a1a;
    margin: 32px 0;
}

/* Playlists Section */
.playlists-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 24px;
    width: 100%;
}

.playlists-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    flex: 1;
}

.filter-tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 200px;
    margin-left: auto;
}

.tab {
    font-size: 14px;
    color: #b3b3b3;
    cursor: pointer;
    transition: color 0.2s ease;
}

.tab:hover {
    color: #ffffff;
}

/* Playlists List */
.playlists-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.playlist-item:hover {
    background-color: #0a0a0a;
}

.playlist-cover {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
}

.playlist-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.playlist-cover:hover .play-overlay {
    opacity: 1;
}

.playlist-cover:hover img {
    filter: brightness(0.7);
}

.play-overlay .play-icon {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

.playlist-info {
    flex: 1;
}

.playlist-info h4 {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 2px;
}

.playlist-info p {
    font-size: 12px;
    color: #b3b3b3;
}

.chevron {
    width: 18px;
    height: 18px;
    fill: #666666;
    transition: fill 0.2s ease;
}

.playlist-item:hover .chevron {
    fill: #ffffff;
}

/* Lecteur Audio */
.music-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background-color: #181818;
    border-top: 1px solid #282828;
    display: none;
    z-index: 1001;
    padding: 0 16px;
}

.music-player.active {
    display: block;
}

.player-content {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.track-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    flex: 1;
}

.track-cover {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.track-details h4 {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 2px;
}

.track-details p {
    font-size: 12px;
    color: #b3b3b3;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    justify-content: center;
}

.control-btn {
    background: none;
    border: none;
    color: #b3b3b3;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: color 0.2s ease, transform 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    color: #ffffff;
    transform: scale(1.05);
}

.control-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.play-pause-btn {
    background-color: #1db954;
    color: #000000;
    width: 40px;
    height: 40px;
}

.play-pause-btn:hover {
    background-color: #1ed760;
    color: #000000;
    transform: scale(1.05);
}

.play-pause-btn svg {
    width: 16px;
    height: 16px;
}

.progress-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 300px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: #404040;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress-fill {
    height: 100%;
    background-color: #1db954;
    border-radius: 2px;
    width: 30%;
    transition: width 0.1s ease;
}

.time-info {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #b3b3b3;
}

.volume-section {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    flex: 1;
    justify-content: flex-end;
}

.volume-icon {
    width: 16px;
    height: 16px;
    fill: #b3b3b3;
    cursor: pointer;
}

.volume-bar {
    width: 80px;
    height: 4px;
    background-color: #404040;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.volume-fill {
    height: 100%;
    background-color: #1db954;
    border-radius: 2px;
    width: 70%;
}
.user-icons {
    display: flex;
    align-items: center;
}

.user-icons a {
    color: #ffffff;
    font-size: 20px;
    margin-left: 20px;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        padding: 16px 20px;
        width: 100%;
        padding-bottom: 96px;
    }
    
    .profile-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }
    
    .profile-picture {
        width: 96px;
        height: 96px;
    }
    
    .profile-name {
        font-size: 24px;
    }
    
    .playlists-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .top-bar {
        justify-content: flex-start;
        gap: 16px;
    }
    
    .player-content {
        gap: 16px;
        padding: 0 8px;
    }
    
    .track-info {
        min-width: 150px;
    }
    
    .progress-section {
        max-width: 200px;
    }
    
    .volume-section {
        display: none;
    }
}

@media (max-width: 480px) {
    .profile-name {
        font-size: 20px;
    }
    
    .profile-picture {
        width: 80px;
        height: 80px;
    }
    
    .main-content {
        padding: 12px 16px;
    }
    
    .filter-tabs {
        gap: 24px;
    }
    
    .main-content {
        padding-bottom: 96px;
    }
    
    .track-info {
        min-width: 120px;
    }
    
    .track-details h4 {
        font-size: 12px;
    }
    
    .track-details p {
        font-size: 11px;
    }
    
    .player-controls {
        gap: 12px;
    }
    
    .progress-section {
        max-width: 150px;
    }
}
