demucs-riz / src /components /AudioPlayer.css
rizwarrior's picture
Initial commit - Demucs Docker app
5de5922
.player-container {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-radius: 20px;
padding: 2rem;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
max-width: 900px;
width: 100%;
}
.player-header {
text-align: center;
margin-bottom: 2rem;
padding-bottom: 1.5rem;
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.player-header h2 {
color: #333;
font-size: 1.75rem;
font-weight: 600;
margin-bottom: 0.5rem;
}
.player-header p {
color: #666;
font-size: 1rem;
margin-bottom: 1.5rem;
}
.reset-button {
background: rgba(102, 126, 234, 0.1);
color: #667eea;
border: 1px solid rgba(102, 126, 234, 0.3);
padding: 0.75rem 1.5rem;
border-radius: 10px;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
display: inline-flex;
align-items: center;
gap: 0.5rem;
}
.reset-button:hover {
background: rgba(102, 126, 234, 0.2);
transform: translateY(-2px);
}
.main-controls {
display: flex;
align-items: center;
gap: 1.5rem;
margin-bottom: 2rem;
padding: 1.5rem;
background: rgba(0, 0, 0, 0.05);
border-radius: 15px;
}
.play-button {
width: 60px;
height: 60px;
border-radius: 50%;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
flex-shrink: 0;
}
.play-button:hover {
transform: scale(1.05);
box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}
.progress-container {
display: flex;
align-items: center;
gap: 1rem;
flex: 1;
}
.progress-bar {
flex: 1;
height: 8px;
background: rgba(0, 0, 0, 0.1);
border-radius: 4px;
cursor: pointer;
overflow: hidden;
}
.progress-fill {
height: 100%;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
border-radius: 4px;
transition: width 0.1s ease;
}
.time-display {
color: #666;
font-size: 0.9rem;
font-weight: 500;
min-width: 40px;
}
.tracks-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1.5rem;
margin-bottom: 2rem;
}
.track-card {
background: rgba(0, 0, 0, 0.03);
border-radius: 15px;
padding: 1.5rem;
transition: all 0.3s ease;
border: 1px solid rgba(0, 0, 0, 0.05);
}
.track-card:hover {
background: rgba(0, 0, 0, 0.05);
transform: translateY(-2px);
}
.track-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 1rem;
}
.track-info {
display: flex;
align-items: center;
gap: 0.75rem;
}
.track-icon {
font-size: 1.5rem;
}
.track-card h3 {
font-size: 1.1rem;
font-weight: 600;
margin: 0;
}
.track-actions {
display: flex;
gap: 0.5rem;
}
.mute-button,
.download-button {
width: 36px;
height: 36px;
border-radius: 8px;
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
background: rgba(0, 0, 0, 0.1);
color: #666;
}
.mute-button:hover,
.download-button:hover {
background: rgba(0, 0, 0, 0.15);
transform: scale(1.05);
}
.mute-button.muted {
background: rgba(231, 76, 60, 0.1);
color: #e74c3c;
}
.volume-control {
display: flex;
align-items: center;
gap: 1rem;
}
.volume-slider {
flex: 1;
height: 6px;
border-radius: 3px;
outline: none;
cursor: pointer;
-webkit-appearance: none;
appearance: none;
}
.volume-slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 18px;
height: 18px;
border-radius: 50%;
background: white;
cursor: pointer;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
border: 2px solid currentColor;
}
.volume-slider::-moz-range-thumb {
width: 18px;
height: 18px;
border-radius: 50%;
background: white;
cursor: pointer;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
border: 2px solid currentColor;
}
.volume-label {
font-size: 0.8rem;
color: #666;
font-weight: 500;
min-width: 35px;
text-align: right;
}
.download-all {
text-align: center;
padding-top: 1.5rem;
border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.download-all-button {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
border: none;
padding: 1rem 2rem;
border-radius: 12px;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
display: inline-flex;
align-items: center;
gap: 0.75rem;
box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}
.download-all-button:hover {
transform: translateY(-2px);
box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}
@media (max-width: 768px) {
.player-container {
padding: 1.5rem;
margin: 1rem;
}
.main-controls {
flex-direction: column;
gap: 1rem;
}
.progress-container {
width: 100%;
}
.tracks-grid {
grid-template-columns: 1fr;
gap: 1rem;
}
.track-card {
padding: 1rem;
}
.player-header h2 {
font-size: 1.5rem;
}
}
@media (max-width: 480px) {
.track-header {
flex-direction: column;
align-items: flex-start;
gap: 1rem;
}
.track-actions {
align-self: flex-end;
}
}