body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    padding: 20px;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.music-player {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    padding: 30px;
    text-align: center;
    color: white;
}

.logo {
    width: 60px;
    margin: 0 auto 20px;
}
.logo img {
    width: 100%;
    display: block;
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg);
}

.album-art {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    margin: 0 auto 25px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: rotateAlbum 20s linear infinite;
    animation-play-state: paused;
}
.album-art.playing {
    animation-play-state: running;
}
@keyframes rotateAlbum {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.album-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.song-info { margin-bottom: 25px; }
.song-info h2 {
    font-size: 24px;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.song-info p {
    color: #e0e0e0;
    font-size: 16px;
}

.progress-container { margin-bottom: 20px; }
.progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 5px;
}
.progress-bar {
    height: 100%;
    width: 0%;
    background: #ff4e50;
    border-radius: 3px;
    transition: width 0.1s linear;
}
.time {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #e0e0e0;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-bottom: 25px;
}
.btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s;
}
.btn:hover { transform: scale(1.1); }
.btn-play {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #ff4e50;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn.active-repeat { color: #ff4e50; }

.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
.volume {
    width: 100px;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
}
.volume-level {
    height: 100%;
    width: 100%;
    background: white;
    border-radius: 3px;
}

.playlist {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 20px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
}
.playlist-item {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 5px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.playlist-item:hover { background: rgba(255, 255, 255, 0.1); }
.playlist-item.active { background: rgba(255, 78, 80, 0.3); }
.playlist-item img {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    object-fit: cover;
}
.playlist-item-info {
    flex: 1;
    text-align: left;
}
.playlist-item-info h4 {
    font-size: 14px;
    margin-bottom: 3px;
}
.playlist-item-info p {
    font-size: 12px;
    color: #aaa;
}
.playlist::-webkit-scrollbar { width: 8px; }
.playlist::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}
.playlist::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}
