|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
|
|
background-color: #121212;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
color: #fff;
|
|
}
|
|
|
|
.player-container {
|
|
max-width: 1200px;
|
|
width: 100%;
|
|
margin: 0 auto;
|
|
padding: 24px;
|
|
background-color: #181818;
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 24px;
|
|
padding-bottom: 16px;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
gap: 24px;
|
|
}
|
|
|
|
.search-container {
|
|
position: relative;
|
|
flex: 1;
|
|
max-width: 400px;
|
|
}
|
|
|
|
.search-container input {
|
|
width: 100%;
|
|
padding: 12px 40px 12px 16px;
|
|
background-color: #282828;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
border-radius: 500px;
|
|
color: #fff;
|
|
font-size: 0.9rem;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.search-container input:focus {
|
|
outline: none;
|
|
border-color: #1DB954;
|
|
box-shadow: 0 0 0 2px rgba(29, 185, 84, 0.3);
|
|
}
|
|
|
|
.search-container .search-icon {
|
|
position: absolute;
|
|
right: 16px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
color: #b3b3b3;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.auth-buttons {
|
|
display: flex;
|
|
gap: 16px;
|
|
align-items: center;
|
|
}
|
|
|
|
.auth-link {
|
|
text-decoration: none;
|
|
color: #fff;
|
|
padding: 8px 32px;
|
|
border-radius: 500px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.1em;
|
|
text-transform: uppercase;
|
|
font-size: 0.8rem;
|
|
transition: all 0.3s;
|
|
background-color: transparent;
|
|
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
.auth-link:hover {
|
|
border-color: #fff;
|
|
transform: scale(1.04);
|
|
}
|
|
|
|
.username {
|
|
margin-right: 16px;
|
|
color: #fff;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.auth-container {
|
|
max-width: 450px;
|
|
margin: 0 auto;
|
|
padding: 40px;
|
|
background-color: #181818;
|
|
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.auth-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 24px;
|
|
}
|
|
|
|
.form-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.form-group label {
|
|
color: #b3b3b3;
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.form-group input {
|
|
padding: 12px;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
border-radius: 4px;
|
|
background-color: #282828;
|
|
color: #fff;
|
|
font-size: 1rem;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.form-group input:focus {
|
|
outline: none;
|
|
border-color: #1DB954;
|
|
box-shadow: 0 0 0 2px rgba(29, 185, 84, 0.3);
|
|
}
|
|
|
|
.auth-btn {
|
|
padding: 14px;
|
|
background-color: #1DB954;
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 500px;
|
|
cursor: pointer;
|
|
font-weight: 700;
|
|
font-size: 1rem;
|
|
letter-spacing: 0.1em;
|
|
text-transform: uppercase;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.auth-btn:hover {
|
|
background-color: #1ed760;
|
|
transform: scale(1.04);
|
|
}
|
|
|
|
.alert {
|
|
padding: 12px;
|
|
margin-bottom: 20px;
|
|
background-color: rgba(255, 107, 107, 0.1);
|
|
color: #ff6b6b;
|
|
border: 1px solid rgba(255, 107, 107, 0.2);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.track-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 12px 16px;
|
|
margin: 4px 0;
|
|
background-color: transparent;
|
|
color: #b3b3b3;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.track-item:hover {
|
|
background-color: rgba(255, 255, 255, 0.1);
|
|
color: #fff;
|
|
}
|
|
|
|
.track-item.active {
|
|
background-color: rgba(29, 185, 84, 0.2);
|
|
color: #fff;
|
|
}
|
|
|
|
.favorite-btn {
|
|
background: none;
|
|
border: none;
|
|
color: #b3b3b3;
|
|
cursor: pointer;
|
|
padding: 8px;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.favorite-btn:hover {
|
|
color: #1DB954;
|
|
transform: scale(1.2);
|
|
}
|
|
|
|
.favorite-btn.active {
|
|
color: #1DB954;
|
|
}
|
|
|
|
#shuffle-btn.active {
|
|
color: #1DB954;
|
|
}
|
|
|
|
h1 {
|
|
text-align: center;
|
|
margin-bottom: 32px;
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
background: linear-gradient(to right, #1DB954, #1ed760);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
}
|
|
|
|
.playlist-tabs {
|
|
display: flex;
|
|
gap: 16px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.tab-btn {
|
|
padding: 12px 24px;
|
|
background: transparent;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
border-radius: 500px;
|
|
color: #b3b3b3;
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.tab-btn:hover {
|
|
color: #fff;
|
|
border-color: rgba(255, 255, 255, 0.3);
|
|
}
|
|
|
|
.tab-btn.active {
|
|
background: #1DB954;
|
|
color: #fff;
|
|
border-color: #1DB954;
|
|
}
|
|
|
|
.tab-content {
|
|
display: none;
|
|
}
|
|
|
|
.tab-content.active {
|
|
display: block;
|
|
animation: fadeIn 0.3s ease-in-out;
|
|
}
|
|
|
|
|
|
#upload-container {
|
|
padding: 20px 0;
|
|
}
|
|
|
|
.upload-area {
|
|
border: 2px dashed rgba(255, 255, 255, 0.2);
|
|
border-radius: 8px;
|
|
padding: 40px 20px;
|
|
text-align: center;
|
|
transition: all 0.3s ease;
|
|
background-color: rgba(255, 255, 255, 0.05);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.upload-area.highlight {
|
|
border-color: #3498db;
|
|
background-color: rgba(52, 152, 219, 0.1);
|
|
}
|
|
|
|
.upload-area:hover, .upload-area.dragover {
|
|
border-color: #1DB954;
|
|
background-color: rgba(29, 185, 84, 0.1);
|
|
}
|
|
|
|
.upload-icon {
|
|
font-size: 48px;
|
|
color: rgba(255, 255, 255, 0.6);
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.upload-text {
|
|
margin-bottom: 16px;
|
|
color: rgba(255, 255, 255, 0.8);
|
|
}
|
|
|
|
.upload-button {
|
|
display: inline-block;
|
|
padding: 10px 24px;
|
|
background-color: #1DB954;
|
|
color: white;
|
|
border-radius: 500px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
transition: all 0.3s;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.upload-button:hover {
|
|
transform: scale(1.05);
|
|
background-color: #1ed760;
|
|
}
|
|
|
|
.upload-info {
|
|
font-size: 0.8rem;
|
|
color: rgba(255, 255, 255, 0.5);
|
|
}
|
|
|
|
.upload-progress-container {
|
|
margin-top: 24px;
|
|
}
|
|
|
|
.upload-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.upload-item {
|
|
background-color: rgba(255, 255, 255, 0.05);
|
|
border-radius: 4px;
|
|
padding: 12px 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.upload-item-name {
|
|
flex: 1;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
margin-right: 16px;
|
|
}
|
|
|
|
.upload-item-progress {
|
|
width: 150px;
|
|
height: 6px;
|
|
background-color: rgba(255, 255, 255, 0.1);
|
|
border-radius: 3px;
|
|
overflow: hidden;
|
|
margin-right: 16px;
|
|
}
|
|
|
|
.upload-item-progress-bar {
|
|
height: 100%;
|
|
background-color: #1DB954;
|
|
width: 0%;
|
|
transition: width 0.3s ease;
|
|
}
|
|
|
|
.upload-item-status {
|
|
font-size: 0.8rem;
|
|
color: rgba(255, 255, 255, 0.7);
|
|
width: 80px;
|
|
text-align: right;
|
|
}
|
|
|
|
.upload-item-status.success {
|
|
color: #1DB954;
|
|
}
|
|
|
|
.upload-item-status.error {
|
|
color: #ff5252;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
.current-track {
|
|
margin-bottom: 32px;
|
|
padding: 24px;
|
|
background-color: rgba(255, 255, 255, 0.03);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.track-info {
|
|
text-align: center;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.progress-container {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.progress-bar {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
height: 4px;
|
|
border-radius: 2px;
|
|
cursor: pointer;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.progress {
|
|
background: #1DB954;
|
|
width: 0;
|
|
height: 100%;
|
|
border-radius: 2px;
|
|
transition: width 0.1s linear;
|
|
}
|
|
|
|
.time-info {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 0.8rem;
|
|
color: #b3b3b3;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.controls {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 24px;
|
|
margin-bottom: 32px;
|
|
}
|
|
|
|
.control-btn {
|
|
background: none;
|
|
border: none;
|
|
color: #b3b3b3;
|
|
cursor: pointer;
|
|
font-size: 1.5rem;
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.control-btn:hover {
|
|
color: #fff;
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.control-btn.play-pause {
|
|
background-color: #1DB954;
|
|
color: #fff;
|
|
width: 56px;
|
|
height: 56px;
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.control-btn.play-pause:hover {
|
|
background-color: #1ed760;
|
|
transform: scale(1.08);
|
|
}
|
|
|
|
.volume-control {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
#volume {
|
|
width: 100px;
|
|
cursor: pointer;
|
|
-webkit-appearance: none;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
height: 4px;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
#volume::-webkit-slider-thumb {
|
|
-webkit-appearance: none;
|
|
width: 12px;
|
|
height: 12px;
|
|
border-radius: 50%;
|
|
background: #fff;
|
|
cursor: pointer;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
#volume::-webkit-slider-thumb:hover {
|
|
background: #1DB954;
|
|
transform: scale(1.2);
|
|
}
|
|
|
|
.playlist {
|
|
background-color: rgba(255, 255, 255, 0.03);
|
|
border-radius: 8px;
|
|
padding: 24px;
|
|
}
|
|
|
|
.playlist-tabs {
|
|
display: flex;
|
|
gap: 16px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.tab-btn {
|
|
background: none;
|
|
border: none;
|
|
color: #b3b3b3;
|
|
cursor: pointer;
|
|
font-size: 1rem;
|
|
font-weight: 700;
|
|
padding: 8px 16px;
|
|
border-radius: 500px;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.tab-btn:hover {
|
|
color: #fff;
|
|
}
|
|
|
|
.tab-btn.active {
|
|
background-color: #1DB954;
|
|
color: #fff;
|
|
}
|
|
|
|
.tab-content {
|
|
display: none;
|
|
max-height: 400px;
|
|
overflow-y: auto;
|
|
padding-right: 8px;
|
|
}
|
|
|
|
.tab-content.active {
|
|
display: block;
|
|
}
|
|
|
|
.tab-content::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
|
|
.tab-content::-webkit-scrollbar-track {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.tab-content::-webkit-scrollbar-thumb {
|
|
background: rgba(255, 255, 255, 0.3);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.tab-content::-webkit-scrollbar-thumb:hover {
|
|
background: rgba(255, 255, 255, 0.4);
|
|
}
|
|
|
|
.playlist h2 {
|
|
margin-bottom: 16px;
|
|
font-size: 1.5rem;
|
|
font-weight: 700;
|
|
color: #fff;
|
|
}
|
|
|
|
#track-list {
|
|
list-style: none;
|
|
max-height: 400px;
|
|
overflow-y: auto;
|
|
padding-right: 8px;
|
|
}
|
|
|
|
#track-list::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
|
|
#track-list::-webkit-scrollbar-track {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
#track-list::-webkit-scrollbar-thumb {
|
|
background: rgba(255, 255, 255, 0.3);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
#track-list::-webkit-scrollbar-thumb:hover {
|
|
background: rgba(255, 255, 255, 0.4);
|
|
}
|
|
|
|
|
|
@media screen and (max-width: 768px) {
|
|
.player-container {
|
|
padding: 16px;
|
|
max-width: 100%;
|
|
border-radius: 0;
|
|
}
|
|
|
|
.header {
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.search-container {
|
|
max-width: 100%;
|
|
}
|
|
|
|
.auth-buttons {
|
|
justify-content: center;
|
|
}
|
|
|
|
.auth-link {
|
|
padding: 8px 16px;
|
|
font-size: 0.7rem;
|
|
}
|
|
|
|
.controls {
|
|
gap: 16px;
|
|
}
|
|
|
|
.control-btn {
|
|
width: 36px;
|
|
height: 36px;
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.control-btn.play-pause {
|
|
width: 48px;
|
|
height: 48px;
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.playlist-tabs {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.tab-btn {
|
|
flex: 1;
|
|
text-align: center;
|
|
padding: 8px 12px;
|
|
}
|
|
|
|
.tab-content {
|
|
max-height: 300px;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 480px) {
|
|
h1 {
|
|
font-size: 1.5rem;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.player-container {
|
|
padding: 12px;
|
|
}
|
|
|
|
.current-track {
|
|
padding: 16px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.controls {
|
|
gap: 12px;
|
|
}
|
|
|
|
.control-btn {
|
|
width: 32px;
|
|
height: 32px;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.control-btn.play-pause {
|
|
width: 42px;
|
|
height: 42px;
|
|
font-size: 1.3rem;
|
|
}
|
|
|
|
.volume-control {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
#volume {
|
|
width: 80px;
|
|
}
|
|
|
|
.track-item {
|
|
padding: 10px 12px;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.auth-container {
|
|
padding: 20px;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.auth-form {
|
|
gap: 16px;
|
|
}
|
|
|
|
.form-group input {
|
|
padding: 10px;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.auth-btn {
|
|
padding: 12px;
|
|
font-size: 0.9rem;
|
|
}
|
|
} |