rescored / frontend /src /components /PlaybackControls.css
calebhan's picture
updated source separation
0dfd298
.playback-controls {
display: flex;
align-items: center;
gap: 1rem;
padding: 1.25rem;
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
border-radius: 12px;
margin: 1.5rem 0;
flex-wrap: wrap;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
border: 1px solid #dee2e6;
}
.playback-controls button {
padding: 0.6rem 1.25rem;
font-size: 0.95rem;
font-weight: 500;
border: 2px solid #dee2e6;
background: white;
border-radius: 8px;
cursor: pointer;
transition: all 0.2s ease;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.playback-controls button:hover:not(:disabled) {
background: #007bff;
border-color: #007bff;
color: white;
transform: translateY(-1px);
box-shadow: 0 3px 6px rgba(0, 123, 255, 0.2);
}
.playback-controls button:active:not(:disabled) {
transform: translateY(0);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.playback-controls button:disabled {
opacity: 0.4;
cursor: not-allowed;
background: #f8f9fa;
}
.playback-controls button.active {
background: #007bff;
border-color: #007bff;
color: white;
}
.tempo-control {
display: flex;
align-items: center;
gap: 0.75rem;
background: white;
padding: 0.5rem 0.75rem;
border-radius: 8px;
border: 1px solid #dee2e6;
}
.tempo-control label {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.9rem;
font-weight: 500;
color: #495057;
}
.tempo-control input[type="range"] {
width: 150px;
height: 6px;
border-radius: 3px;
background: #dee2e6;
outline: none;
-webkit-appearance: none;
}
.tempo-control input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 16px;
height: 16px;
border-radius: 50%;
background: #007bff;
cursor: pointer;
box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
transition: all 0.2s ease;
}
.tempo-control input[type="range"]::-webkit-slider-thumb:hover {
background: #0056b3;
transform: scale(1.1);
box-shadow: 0 3px 6px rgba(0, 123, 255, 0.4);
}
.tempo-control input[type="range"]::-moz-range-thumb {
width: 16px;
height: 16px;
border-radius: 50%;
background: #007bff;
cursor: pointer;
border: none;
box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
transition: all 0.2s ease;
}
.tempo-control input[type="range"]::-moz-range-thumb:hover {
background: #0056b3;
transform: scale(1.1);
box-shadow: 0 3px 6px rgba(0, 123, 255, 0.4);
}
.tempo-control span {
font-weight: 600;
color: #007bff;
min-width: 40px;
text-align: center;
}
.time-display {
font-size: 0.95rem;
color: #495057;
font-family: 'Courier New', monospace;
font-weight: 500;
background: white;
padding: 0.5rem 0.75rem;
border-radius: 6px;
border: 1px solid #dee2e6;
}
.volume-control {
display: flex;
align-items: center;
gap: 0.5rem;
}
.volume-control label {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.9rem;
color: #495057;
}
.volume-control input[type="range"] {
width: 100px;
}
/* Responsive adjustments */
@media (max-width: 768px) {
.playback-controls {
justify-content: center;
gap: 0.75rem;
padding: 1rem;
}
.playback-controls button {
padding: 0.5rem 1rem;
font-size: 0.9rem;
}
.tempo-control {
width: 100%;
justify-content: space-between;
}
.time-display {
width: 100%;
text-align: center;
}
}