214 lines
3.3 KiB
CSS
214 lines
3.3 KiB
CSS
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
background: #1a1a2e;
|
|
color: #e0e0e0;
|
|
font-family: 'Segoe UI', system-ui, sans-serif;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 1rem;
|
|
}
|
|
|
|
.player-container {
|
|
background: #16213e;
|
|
border-radius: 16px;
|
|
padding: 2rem;
|
|
width: 100%;
|
|
max-width: 480px;
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
.player-header h1 {
|
|
text-align: center;
|
|
font-size: 1.8rem;
|
|
color: #e94560;
|
|
margin-bottom: 1.5rem;
|
|
letter-spacing: 2px;
|
|
}
|
|
|
|
.now-playing {
|
|
background: #0f3460;
|
|
border-radius: 12px;
|
|
padding: 1rem 1.2rem;
|
|
margin-bottom: 1.2rem;
|
|
min-height: 64px;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.track-title {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.track-index {
|
|
font-size: 0.75rem;
|
|
color: #7a8ba0;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.progress-container {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.6rem;
|
|
margin-bottom: 1.2rem;
|
|
font-size: 0.8rem;
|
|
color: #7a8ba0;
|
|
}
|
|
|
|
.progress-container input[type="range"] {
|
|
flex: 1;
|
|
}
|
|
|
|
.controls {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 0.8rem;
|
|
margin-bottom: 1.2rem;
|
|
}
|
|
|
|
.controls button {
|
|
background: #0f3460;
|
|
border: none;
|
|
border-radius: 50%;
|
|
color: #e0e0e0;
|
|
cursor: pointer;
|
|
font-size: 1.1rem;
|
|
width: 48px;
|
|
height: 48px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: background 0.2s, transform 0.1s;
|
|
}
|
|
|
|
.controls button:hover {
|
|
background: #e94560;
|
|
color: #fff;
|
|
}
|
|
|
|
.controls button:active {
|
|
transform: scale(0.93);
|
|
}
|
|
|
|
#btn-play {
|
|
background: #e94560;
|
|
width: 60px;
|
|
height: 60px;
|
|
font-size: 1.4rem;
|
|
}
|
|
|
|
#btn-play:hover {
|
|
background: #c73652;
|
|
}
|
|
|
|
.controls button.toggle.active {
|
|
background: #e94560;
|
|
color: #fff;
|
|
}
|
|
|
|
.volume-container {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.6rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.volume-container span {
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.volume-container input[type="range"] {
|
|
flex: 1;
|
|
}
|
|
|
|
input[type="range"] {
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
height: 4px;
|
|
background: #0f3460;
|
|
border-radius: 2px;
|
|
outline: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
input[type="range"]::-webkit-slider-thumb {
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
width: 14px;
|
|
height: 14px;
|
|
background: #e94560;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
input[type="range"]::-moz-range-thumb {
|
|
width: 14px;
|
|
height: 14px;
|
|
background: #e94560;
|
|
border-radius: 50%;
|
|
border: none;
|
|
}
|
|
|
|
.playlist-container {
|
|
background: #0f3460;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
max-height: 280px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.playlist-header {
|
|
padding: 0.6rem 1rem;
|
|
font-size: 0.8rem;
|
|
color: #7a8ba0;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
border-bottom: 1px solid #16213e;
|
|
}
|
|
|
|
#playlist {
|
|
list-style: none;
|
|
overflow-y: auto;
|
|
flex: 1;
|
|
}
|
|
|
|
#playlist::-webkit-scrollbar {
|
|
width: 4px;
|
|
}
|
|
|
|
#playlist::-webkit-scrollbar-thumb {
|
|
background: #e94560;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
#playlist li {
|
|
padding: 0.6rem 1rem;
|
|
cursor: pointer;
|
|
font-size: 0.88rem;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
border-bottom: 1px solid #16213e;
|
|
transition: background 0.15s;
|
|
}
|
|
|
|
#playlist li:hover {
|
|
background: #16213e;
|
|
}
|
|
|
|
#playlist li.active {
|
|
background: #1a1a2e;
|
|
color: #e94560;
|
|
font-weight: 600;
|
|
}
|