.player-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 20px 0;
}
.player-card {
  width: 260px;
  border: 1px solid #1E1E1E;
  background: #161412;
  padding: 20px;
  position: relative;
  transform: rotate(var(--player-rotate, 0deg));
  transition: transform .3s ease;
}
.player-card::before, .player-card::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
}
.player-card::before {
  top: -1px; right: -1px;
  border-top: 1px solid #E8950C;
  border-right: 1px solid #E8950C;
}
.player-card::after {
  bottom: -1px; left: -1px;
  border-bottom: 1px solid #E8950C;
  border-left: 1px solid #E8950C;
}
.player-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.player-dot {
  width: 6px;
  height: 6px;
  background: #E02D1E;
  border-radius: 50%;
  animation: pdot 1.5s ease-in-out infinite;
}
@keyframes pdot {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:.4; transform:scale(.7); }
}
.player-label {
  font-size: 10px;
  letter-spacing: 3px;
  color: #E8950C;
  font-family: 'IBM Plex Mono', monospace;
}
.facade-controller { width: 100%; cursor: pointer; }
.facade-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}
.facade-thumb {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .7;
  transition: opacity .2s;
}
.facade-controller:hover .facade-thumb { opacity: 1; }
.facade-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  background: rgba(224,45,30,0.9);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.facade-play-btn::after {
  content: '';
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid white;
  margin-left: 4px;
}
.player-footer { margin-top: 12px; }
.player-track {
  font-size: 10px;
  letter-spacing: 1px;
  color: #F0EBE2;
  font-family: 'IBM Plex Mono', monospace;
  margin-bottom: 2px;
}
.player-artist {
  font-size: 10px;
  letter-spacing: 1px;
  color: #888;
  font-family: 'IBM Plex Mono', monospace;
  margin-bottom: 10px;
}
.waveform {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
  overflow: hidden;
}
.waveform span {
  display: block;
  flex: 1;
  background: #E8950C;
  border-radius: 1px;
  opacity: .8;
  animation: pwave 1.2s ease-in-out infinite;
  transform-origin: bottom;
}
@keyframes pwave {
  0%,100% { transform: scaleY(1); }
  50% { transform: scaleY(.2); }
}


/*************************/

#waveform-bars {
  display: flex !important;
  align-items: flex-end !important;
  gap: 3px !important;
  height: 24px !important;
  overflow: hidden !important;
}

#waveform-bars span {
  display: block !important;
  flex: 1 !important;
  background: #E8950C !important;
  border-radius: 1px !important;
  opacity: .8 !important;
  animation: pwave 1.2s ease-in-out infinite !important;
  transform-origin: bottom !important;
}

#waveform-bars span:nth-child(1){height:7px !important;animation-delay:.0s !important}
#waveform-bars span:nth-child(2){height:14px !important;animation-delay:.1s !important}
#waveform-bars span:nth-child(3){height:11px !important;animation-delay:.2s !important}
#waveform-bars span:nth-child(4){height:20px !important;animation-delay:.15s !important}
#waveform-bars span:nth-child(5){height:9px !important;animation-delay:.05s !important}
#waveform-bars span:nth-child(6){height:16px !important;animation-delay:.25s !important}
#waveform-bars span:nth-child(7){height:13px !important;animation-delay:.1s !important}
#waveform-bars span:nth-child(8){height:7px !important;animation-delay:.3s !important}
#waveform-bars span:nth-child(9){height:18px !important;animation-delay:.08s !important}
#waveform-bars span:nth-child(10){height:10px !important;animation-delay:.18s !important}
#waveform-bars span:nth-child(11){height:14px !important;animation-delay:.12s !important}
#waveform-bars span:nth-child(12){height:8px !important;animation-delay:.22s !important}

@keyframes pwave {
  0%,100% { transform: scaleY(1); }
  50% { transform: scaleY(.2); }
}