feat(player): add explicit detection, inline audio preview, seeking scrubber, and stream endpoint

This commit is contained in:
Antigravity committed 2026-10-12 14:03:57 +03:00
1 parent 49bd123a03
commit 30ba67c707
5 files changed
+382 -20

No files matched your search

+188
View File
@@ -420,3 +420,191 @@ input[type="text"]:focus {
color: var(--accent-color);
text-decoration: none;
}
/* Explicit & Clean Badges */
.badge-explicit {
background-color: #ef4444;
color: #ffffff;
font-weight: 700;
font-size: 0.72rem;
padding: 0.15rem 0.45rem;
border-radius: 4px;
display: inline-flex;
align-items: center;
gap: 0.2rem;
letter-spacing: 0.02em;
}
.badge-clean {
background-color: #eab308;
color: #0f172a;
font-weight: 700;
font-size: 0.72rem;
padding: 0.15rem 0.45rem;
border-radius: 4px;
display: inline-flex;
align-items: center;
gap: 0.2rem;
}
.badge-version {
background-color: #334155;
color: #cbd5e1;
font-size: 0.72rem;
padding: 0.15rem 0.45rem;
border-radius: 4px;
}
/* Play Preview Button */
.btn-play-preview {
background-color: #10b981;
color: white;
border: none;
font-size: 0.78rem;
font-weight: 600;
padding: 0.35rem 0.65rem;
border-radius: 6px;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 0.3rem;
transition: all 0.15s ease;
}
.btn-play-preview:hover {
background-color: #059669;
transform: translateY(-1px);
}
.btn-play-preview.is-playing {
background-color: #f59e0b;
color: #0f172a;
}
/* Floating Audio Player Bar */
.audio-player-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background-color: rgba(15, 23, 42, 0.96);
backdrop-filter: blur(12px);
border-top: 1px solid var(--border-color);
box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.6);
padding: 0.75rem 1.5rem;
display: flex;
align-items: center;
justify-content: space-between;
gap: 1.25rem;
z-index: 1000;
animation: slideUp 0.25s ease-out;
}
@keyframes slideUp {
from { transform: translateY(100%); }
to { transform: translateY(0); }
}
.player-track-info {
display: flex;
align-items: center;
gap: 0.75rem;
min-width: 220px;
max-width: 320px;
}
.player-cover {
width: 48px;
height: 48px;
border-radius: 6px;
object-fit: cover;
background-color: #334155;
flex-shrink: 0;
}
.player-meta {
display: flex;
flex-direction: column;
gap: 0.15rem;
overflow: hidden;
}
.player-title-row {
display: flex;
align-items: center;
gap: 0.4rem;
overflow: hidden;
}
.player-title {
font-size: 0.88rem;
font-weight: 600;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.player-artist {
font-size: 0.75rem;
color: var(--text-secondary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.player-controls-container {
flex: 1;
max-width: 640px;
display: flex;
align-items: center;
}
.player-controls-container audio {
width: 100%;
height: 38px;
outline: none;
}
.player-actions {
display: flex;
align-items: center;
gap: 0.5rem;
flex-shrink: 0;
}
.btn-player-close {
background: none;
border: none;
color: var(--text-secondary);
font-size: 1.4rem;
line-height: 1;
cursor: pointer;
padding: 0.2rem 0.4rem;
border-radius: 4px;
margin-left: 0.3rem;
}
.btn-player-close:hover {
color: #fff;
background-color: rgba(255, 255, 255, 0.1);
}
@media (max-width: 820px) {
.audio-player-bar {
flex-direction: column;
padding: 0.75rem 1rem;
gap: 0.6rem;
}
.player-track-info {
max-width: 100%;
width: 100%;
}
.player-controls-container {
width: 100%;
max-width: 100%;
}
.player-actions {
width: 100%;
justify-content: flex-end;
}
}