.np-widget {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 56px;
  height: 56px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: width 0.3s ease, height 0.3s ease, padding 0.3s ease, border-radius 0.3s ease, box-shadow 0.3s ease, opacity 0.2s ease;
  cursor: pointer;
  z-index: 1000;
  overflow: hidden;
  font-family: 'STIX Two Text', 'Times New Roman', serif;
  opacity: 1;
}

.np-widget.hidden {
  opacity: 0;
  pointer-events: none;
}



.np-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  transition: opacity 0.3s ease 0.05s;
  flex: 0 0 56px;
  position: absolute;
  left: 0;
}

.np-equalizer {
  display: flex;
  width: 28px;
  align-items: center;
  justify-content: center;
  gap: 2px;
  filter: brightness(1.1);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.np-widget:hover .np-equalizer {
  transform: scale(1.25);
  filter: blur(3.5px) brightness(1.25) saturate(1.5);
}

.np-bar {
  --bar-color-1: #333;
  --bar-color-2: #1a1a1a;
  width: 3px;
  height: 3px;
  max-height: 28px;
  border-radius: 1px;
  background: linear-gradient(to bottom, var(--bar-color-1), var(--bar-color-2));
  transition: all 0.5s ease, --bar-color-1 0.8s ease, --bar-color-2 0.8s ease;
}

@media (prefers-color-scheme: dark) {
  .np-bar {
    --bar-color-1: #e8e8e8;
    --bar-color-2: #a0a0a0;
  }
}

@property --bar-color-1 {
  syntax: '<color>';
  inherits: false;
  initial-value: #333;
}

@property --bar-color-2 {
  syntax: '<color>';
  inherits: false;
  initial-value: #1a1a1a;
}

.np-bar:nth-child(1) {
  animation: playing 0.95s ease infinite;
}

.np-bar:nth-child(2) {
  animation: playing 1.46s ease infinite;
}

.np-bar:nth-child(3) {
  animation: playing 0.82s ease infinite;
}

.np-bar:nth-child(4) {
  animation: playing 1.24s ease infinite;
}

.np-bar.paused {
  max-height: 2px !important;
  animation-play-state: paused !important;
}

@keyframes playing {
  from, to {
    height: 4px;
  }
  50% {
    height: 18px;
  }
}

.np-expanded {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  opacity: 0;
  transition: opacity 0.3s ease 0.1s;
  pointer-events: none;
  white-space: nowrap;
  width: 100%;
  min-width: 0;
}

.np-album-art {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  border: 0.5px solid var(--border-color);
}

.np-album-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.np-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  line-height: 1.25;
  flex: 1;
}

.np-track {
  font-family: 'STIX Two Text', serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0;
}

.np-artist {
  font-family: 'EB Garamond', serif;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.np-widget.is-open {
  height: 64px;
  padding: 0 16px;
  background: var(--bg-secondary);
  border-color: var(--border-color);
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  justify-content: flex-start;
}

.np-widget.is-open .np-circle {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.np-widget.is-open .np-expanded {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .np-widget {
    bottom: 12px;
    left: 50%;
    height: 52px;
    padding: 0 12px;
    border-radius: 12px;
    justify-content: flex-start;
  }
  
  .np-circle {
    opacity: 0;
    pointer-events: none;
  }
  
  .np-expanded {
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  
  .np-album-art { 
    width: 36px; 
    height: 36px; 
  }
  
  .np-track { 
    font-size: clamp(0.8rem, 3.5vw, 0.92rem);
  }
  
  .np-artist { 
    font-size: clamp(0.75rem, 3vw, 0.86rem);
  }
}
