* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
color: white;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
overflow-x: hidden;
}

.container {
width: 100%;
max-width: 900px;
background: rgba(0, 0, 0, 0.8);
border-radius: 20px;
overflow: hidden;
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);
backdrop-filter: blur(12px);
display: flex;
flex-direction: column;
}

.header {
display: flex;
align-items: center;
padding: 25px;
background: rgba(0, 0, 0, 0.4);
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
gap: 25px;
}

.header-content {
flex: 1;
overflow: hidden;
}

.header h1 {
font-size: 1.8rem;
margin-bottom: 5px;
color: #ff6b6b;
text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.header p {
font-size: 1.1rem;
opacity: 0.8;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.album-cover {
width: 140px;
height: 140px;
border-radius: 50%;
border: 4px solid rgba(255, 255, 255, 0.15);
overflow: hidden;
box-shadow: 0 0 30px rgba(0, 0, 0, 0.9);
background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
display: flex;
justify-content: center;
align-items: center;
flex-shrink: 0;
animation-name: spin;
animation-duration: 20s;
animation-iteration-count: infinite;
animation-timing-function: linear; 
transition: all 0.5s ease;
}

.album-cover.playing {
animation-play-state: running;
}

.album-cover.paused {
animation-play-state: paused;
}

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

@keyframes spin {
from {
transform:rotate(0deg);
}
to {
transform:rotate(360deg);
}
}

.player-container {
padding: 20px;
}

.lyrics-container {
height: 300px;
overflow: hidden;
position: relative;
margin: 20px 0;
background: rgba(0, 0, 0, 0.3);
border-radius: 15px;
padding: 10px;
box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
}

#lyricsWrapper {
position: relative;
transition: transform 0.5s ease;
padding: 20px 0;
}

.lyric-line {
font-size: 1.8rem;
text-align: center;
padding: 15px 0;
margin: 5px 0;
opacity: 0.4;
transition: all 0.3s ease;
text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.lyric-line.active {
opacity: 1;
color: #ff6b6b;
font-weight: bold;
transform: scale(1.05);
text-shadow: 0 0 15px rgba(255, 107, 107, 0.8);
}

.progress-container {
margin: 15px 0;
padding: 0 10px;
}

.progress-info {
display: flex;
justify-content: space-between;
margin-bottom: 5px;
font-size: 0.9rem;
opacity: 0.8;
}

#progressBar {
width: 100%;
height: 8px;
background: rgba(255, 255, 255, 0.1);
border-radius: 10px;
cursor: pointer;
position: relative;
overflow: hidden;
}

#progress {
height: 100%;
background: linear-gradient(to right, #ff6b6b, #4ecdc4);
border-radius: 10px;
width: 0%;
transition: width 0.1s linear;
box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.controls {
display: flex;
justify-content: center;
align-items: center;
gap: 15px;
margin-top: 15px;
flex-wrap: wrap;
}

.control-btn {
background: transparent;
border: none;
color: white;
font-size: 1.6rem;
cursor: pointer;
width: 60px;
height: 60px;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
transition: all 0.3s ease;
position: relative;
}

.control-btn:hover {
background: rgba(255, 255, 255, 0.15);
transform: scale(1.1);
}

.control-btn::after {
content: attr(title);
position: absolute;
bottom: -25px;
left: 50%;
transform: translateX(-50%);
font-size: 0.7rem;
opacity: 0.7;
white-space: nowrap;
}

#playBtn {
background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
width: 70px;
height: 70px;
font-size: 2rem;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

#playBtn:hover {
transform: scale(1.05);
box-shadow: 0 5px 20px rgba(255, 107, 107, 0.8);
}

.control-btn.active {
background: rgba(255, 107, 107, 0.3);
box-shadow: 0 0 15px rgba(255, 107, 107, 0.5);
}

.playlist-container {
padding: 15px;
background: rgba(0, 0, 0, 0.3);
border-radius: 15px;
margin-top: 20px;
max-height: 200px;
overflow-y: auto;
box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4);
}

.playlist-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
padding-bottom: 10px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.playlist-header h3 {
font-size: 1.3rem;
color: #ff6b6b;
text-shadow: 0 0 8px rgba(255, 107, 107, 0.5);
}

.playlist-controls {
display: flex;
gap: 10px;
}

.playlist-btn {
background: rgba(255, 255, 255, 0.1);
border: none;
color: white;
padding: 8px 15px;
border-radius: 20px;
cursor: pointer;
font-size: 0.9rem;
transition: all 0.3s ease;
display: flex;
align-items: center;
gap: 5px;
}

.playlist-btn:hover {
background: rgba(255, 255, 255, 0.2);
transform: scale(1.05);
}

.playlist-btn.active {
background: #ff6b6b;
box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

#playlist {
list-style-type: none;
}

.playlist-item {
padding: 12px;
border-radius: 10px;
margin-bottom: 10px;
cursor: pointer;
display: flex;
align-items: center;
transition: all 0.3s ease;
background: rgba(255, 255, 255, 0.05);
}

.playlist-item:hover {
background: rgba(255, 255, 255, 0.1);
transform: translateX(5px);
}

.playlist-item.active {
background: rgba(255, 107, 107, 0.2);
border-left: 4px solid #ff6b6b;
}

.playlist-item .play-icon {
margin-right: 15px;
color: #ff6b6b;
display: none;
font-size: 1.2rem;
}

.playlist-item.active .play-icon {
display: inline-block;
}

.playlist-item .song-info {
flex: 1;
overflow: hidden;
}

.playlist-item .song-title {
font-weight: bold;
margin-bottom: 3px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.playlist-item .song-artist {
font-size: 0.9rem;
opacity: 0.8;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.playlist-item .song-duration {
font-size: 0.8rem;
opacity: 0.7;
margin-left: 10px;
}

/* Scrollbar styling */
.playlist-container::-webkit-scrollbar {
width: 8px;
}

.playlist-container::-webkit-scrollbar-track {
background: rgba(0, 0, 0, 0.2);
border-radius: 10px;
}

.playlist-container::-webkit-scrollbar-thumb {
background: #ff6b6b;
border-radius: 10px;
}

#particles {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: -1;
}

.particle {
position: absolute;
background: rgba(255, 255, 255, 0.5);
border-radius: 50%;
animation: float linear infinite;
}

@keyframes float {
to {
transform: translateY(-100vh) rotate(360deg);
}
}

/* Responsive design */
@media (max-width: 768px) {
.header {
flex-direction: column;
text-align: center;
padding: 20px 15px;
gap: 15px;
}

.album-cover {
width: 160px;
height: 160px;
margin-bottom: 10px;
}

.header h1 {
font-size: 1.6rem;
}

.lyric-line {
font-size: 1.5rem;
}

.controls {
gap: 10px;
}

.control-btn {
width: 50px;
height: 50px;
font-size: 1.4rem;
}

#playBtn {
width: 60px;
height: 60px;
}
}

@media (max-width: 480px) {
.header h1 {
font-size: 1.4rem;
}

.header p {
font-size: 0.95rem;
}

.album-cover {
width: 130px;
height: 130px;
}

.lyric-line {
font-size: 1.3rem;
}

.playlist-header {
flex-direction: column;
gap: 10px;
}

.playlist-controls {
width: 100%;
justify-content: center;
}

.playlist-item {
padding: 10px;
}
}