Add pulsing music player
Some checks failed
On Push Deploy / deploy (push) Has been cancelled

This commit is contained in:
Johnny322
2026-02-08 15:33:31 +01:00
parent c4046c9d18
commit 9e95f847b1
2 changed files with 222 additions and 9 deletions

View File

@@ -368,15 +368,81 @@ button {
min-height: 220px;
}
audio.hidden-audio {
display: none;
}
audio {
width: 100%;
max-height: 320px;
border-radius: 12px;
border: 1px solid rgba(255, 255, 255, 0.1);
background: #000;
.custom-player {
width: min(420px, 100%);
min-height: 200px;
border-radius: 20px;
border: 1px solid rgba(255, 255, 255, 0.12);
background: radial-gradient(circle at top, rgba(61, 214, 255, 0.2), rgba(8, 12, 26, 0.9) 70%);
display: grid;
place-items: center;
gap: 16px;
padding: 20px;
position: relative;
z-index: 30;
overflow: hidden;
}
.custom-player::after {
content: '';
position: absolute;
inset: 12px;
border-radius: 18px;
border: 1px solid rgba(255, 255, 255, 0.08);
pointer-events: none;
}
.pulse-orb {
width: 96px;
height: 96px;
border-radius: 50%;
background: radial-gradient(circle at 30% 30%, #fbd72b, #f58b2b 60%, #1d3b8b);
transform: scale(calc(1 + var(--pulse, 0) * 0.22));
box-shadow: 0 0 calc(20px + var(--pulse, 0) * 60px) rgba(251, 215, 43, 0.35);
transition: transform 0.08s ease-out;
}
.pulse-orb.active {
animation: pulseGlow 1.6s ease-in-out infinite;
}
.player-controls {
display: grid;
gap: 12px;
place-items: center;
}
.player-meta {
text-align: center;
font-size: 0.85rem;
color: rgba(255, 255, 255, 0.7);
}
.player-meta .label {
text-transform: uppercase;
letter-spacing: 0.2em;
font-size: 0.65rem;
display: block;
}
.player-meta .value {
display: block;
color: #f6f4ef;
font-weight: 600;
margin-top: 4px;
}
@keyframes pulseGlow {
0%,
100% {
box-shadow: 0 0 24px rgba(61, 214, 255, 0.25);
}
50% {
box-shadow: 0 0 48px rgba(251, 215, 43, 0.35);
}
}
.player-empty {