body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
    font-family: Arial, sans-serif;
}

.music-player {
    background-color: rgba(255, 79, 79, 0.8);
    border: 1px solid #ccc;
    padding: 20px;
    max-width: 600px;
    width: 100%;
    text-align: left;
    position: relative;
}

.top-bar {
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.share-playlist {
    color: white;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.top-bar-icons {
    display: none;
    position: absolute;
    left: -100px;
    top: 0;
    width: 100px;
    justify-content: space-between;
}

.top-bar-icons i {
    color: white;
    cursor: pointer;
}

.share-playlist:hover + .top-bar-icons,
.top-bar-icons:hover {
    display: flex;
    animation: slideIn 0.5s forwards;
}

@keyframes slideIn {
    from {left: 0;}
    to {left: -100px;}
}

.main-image {
    width: 100%;
    margin: 10px 0;
}

.song-info {
    margin: 10px 0;
}

.song-title {
    display: block;
    font-size: 1.2em;
}

.album-name {
    font-size: 0.8em;
    color: #555;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0;
}

.progress-bar-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    margin: 0 10px;
}

.progress-bar {
    height: 5px;
    background: #555;
    flex-grow: 1;
    margin: 0 10px;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    width: 0;
    height: 100%;
    background: #000;
}

.song-list {
    list-style-type: none;
    padding: 0;
}

.song-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ccc;
    padding: 5px 0;
}

.list-icon {
    margin-right: 10px;
}

.list-song-title {
    flex-grow: 1;
}

.share-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.song-list li:hover .social-icons {
    display: flex;
    animation: slideInLeft 0.5s forwards;
}

@keyframes slideInLeft {
    from {right: 0;}
    to {right: -100px;}
}
