nakama/frontend/src/components/FullPlayer.css

309 lines
5.5 KiB
CSS

.full-player {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: var(--bg-primary);
z-index: 100;
display: flex;
flex-direction: column;
animation: slideUp 0.3s ease-out;
}
.full-player-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px;
background: var(--bg-secondary);
border-bottom: 1px solid var(--divider-color);
}
.full-player-close {
background: none;
border: none;
color: var(--text-primary);
cursor: pointer;
padding: 8px;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.2s;
}
.full-player-close:active {
transform: scale(0.9);
}
.full-player-queue-info {
font-size: 14px;
color: var(--text-secondary);
}
.full-player-content {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 24px;
gap: 24px;
overflow-y: auto;
}
.full-player-cover {
width: 280px;
height: 280px;
border-radius: 16px;
background: var(--bg-secondary);
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
box-shadow: 0 8px 24px var(--shadow-lg);
}
.full-player-cover img {
width: 100%;
height: 100%;
object-fit: cover;
}
.full-player-cover svg {
color: var(--text-secondary);
}
.full-player-info {
text-align: center;
width: 100%;
max-width: 400px;
}
.full-player-title {
font-size: 24px;
font-weight: 600;
color: var(--text-primary);
margin: 0 0 8px 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.full-player-artist {
font-size: 18px;
color: var(--text-secondary);
margin: 0 0 4px 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.full-player-album {
font-size: 14px;
color: var(--text-secondary);
margin: 0;
opacity: 0.7;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.full-player-progress-section {
width: 100%;
max-width: 400px;
}
.full-player-progress-bar {
width: 100%;
height: 6px;
background: var(--divider-color);
border-radius: 3px;
cursor: pointer;
position: relative;
overflow: hidden;
}
.full-player-progress-fill {
height: 100%;
background: #9b59b6;
border-radius: 3px;
transition: width 0.1s linear;
}
.full-player-time {
display: flex;
justify-content: space-between;
margin-top: 8px;
font-size: 12px;
color: var(--text-secondary);
}
.full-player-controls {
display: flex;
align-items: center;
justify-content: center;
gap: 24px;
}
.full-player-control-btn {
background: none;
border: none;
color: var(--text-primary);
cursor: pointer;
padding: 12px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
transition: all 0.2s;
}
.full-player-control-btn:hover {
background: var(--bg-secondary);
}
.full-player-control-btn:active {
transform: scale(0.9);
}
.full-player-control-btn:disabled {
cursor: not-allowed;
}
.full-player-play-btn {
background: #9b59b6;
border: none;
color: white;
cursor: pointer;
width: 72px;
height: 72px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 4px 16px rgba(155, 89, 182, 0.4);
transition: all 0.2s;
}
.full-player-play-btn:hover {
transform: scale(1.05);
box-shadow: 0 6px 20px rgba(155, 89, 182, 0.5);
}
.full-player-play-btn:active {
transform: scale(0.95);
}
.full-player-actions {
display: flex;
gap: 16px;
justify-content: center;
}
.full-player-action-btn {
background: none;
border: none;
color: var(--text-secondary);
cursor: pointer;
padding: 12px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
transition: all 0.2s;
}
.full-player-action-btn:hover {
background: var(--bg-secondary);
color: var(--text-primary);
}
.full-player-action-btn:active {
transform: scale(0.9);
}
.full-player-action-btn.active {
color: #e74c3c;
}
.full-player-volume {
display: flex;
align-items: center;
gap: 12px;
padding: 16px;
background: var(--bg-secondary);
border-radius: 12px;
width: 100%;
max-width: 300px;
}
.full-player-volume button {
background: none;
border: none;
color: var(--text-primary);
cursor: pointer;
padding: 8px;
display: flex;
align-items: center;
justify-content: center;
}
.volume-slider {
flex: 1;
-webkit-appearance: none;
appearance: none;
height: 6px;
background: var(--divider-color);
border-radius: 3px;
outline: none;
}
.volume-slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 16px;
height: 16px;
background: #9b59b6;
border-radius: 50%;
cursor: pointer;
}
.volume-slider::-moz-range-thumb {
width: 16px;
height: 16px;
background: #9b59b6;
border-radius: 50%;
cursor: pointer;
border: none;
}
.full-player-volume span {
font-size: 14px;
color: var(--text-secondary);
min-width: 40px;
text-align: right;
}
/* Адаптив */
@media (max-width: 400px) {
.full-player-cover {
width: 240px;
height: 240px;
}
.full-player-title {
font-size: 20px;
}
.full-player-artist {
font-size: 16px;
}
.full-player-play-btn {
width: 64px;
height: 64px;
}
}