/* Sound pad play animation — loaded as static CSS (not Tailwind-purged). */

.glow-cyan-sm {
  box-shadow: 0 0 15px -3px rgba(0, 240, 255, 0.35);
}
.glow-cyan-active {
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.65), inset 0 0 15px rgba(0, 240, 255, 0.3);
}

.sound-pad-press:active {
  transform: scale(0.97) translateY(2px);
}

.sb-btn.is-playing {
  animation: sbPadPulse 1.1s ease-in-out infinite;
}

.sb-eq {
  display: none;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 40%;
  width: 42%;
  position: absolute;
  inset: 0;
  margin: auto;
}

.sb-btn.is-playing .sb-eq {
  display: flex !important;
}

.sb-btn-hero.is-playing .sb-eq {
  height: 36%;
  width: 38%;
  gap: 4px;
}

.sb-btn-hero.is-playing .sb-eq span {
  width: 4px;
}

.sb-btn.is-playing .sb-play-icon,
.sb-btn.is-playing .sb-pause-icon {
  display: none !important;
  visibility: hidden !important;
}

.sb-eq span {
  display: block;
  width: 3px;
  border-radius: 9999px;
  background: currentColor;
  height: 35%;
  transform-origin: bottom center;
  animation: sbEqBar 0.85s ease-in-out infinite alternate;
}

.sb-eq span:nth-child(1) {
  animation-duration: 0.7s;
}
.sb-eq span:nth-child(2) {
  animation-duration: 1s;
  animation-delay: 0.08s;
}
.sb-eq span:nth-child(3) {
  animation-duration: 0.75s;
  animation-delay: 0.16s;
}
.sb-eq span:nth-child(4) {
  animation-duration: 0.95s;
  animation-delay: 0.04s;
}

@keyframes sbEqBar {
  from {
    height: 22%;
  }
  to {
    height: 100%;
  }
}

@keyframes sbPadPulse {
  0%,
  100% {
    filter: brightness(1);
    transform: scale(1);
  }
  50% {
    filter: brightness(1.12);
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sb-btn.is-playing,
  .sb-eq span {
    animation: none !important;
  }
  .sb-btn.is-playing .sb-eq span {
    height: 55%;
  }
}

/* Compact pad chrome — keeps SSR HTML short (Tailwind utilities moved here). */
.sb-pad {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--surface-border, rgba(148, 163, 184, 0.2));
  background: color-mix(in srgb, var(--surface-card, #12171f) 90%, transparent);
  transition: background 0.2s, box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}
.sb-pad:hover {
  background: color-mix(in srgb, var(--surface-hover, #1a2230) 90%, transparent);
}
.sb-pad__meta {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  font-size: 11px;
  font-family: ui-monospace, monospace;
}
.sb-pad__chip {
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  background: var(--surface, #0b0f14);
  border: 1px solid var(--surface-border, rgba(148, 163, 184, 0.2));
  font-weight: 700;
  text-decoration: none;
}
.sb-pad__chip:hover {
  border-color: color-mix(in srgb, #00f0ff 50%, transparent);
}
.sb-pad__cat {
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
  max-width: 55%;
}
.sb-pad__cat--hk {
  max-width: 45%;
}
.sb-pad__hk {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
}
.sb-pad__title {
  margin-top: 0.5rem;
  min-height: 32px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #f1f5f9;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sb-pad__title:hover {
  text-decoration: underline;
}
.sb-pad__actions {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  padding-top: 0.625rem;
  border-top: 1px solid color-mix(in srgb, var(--surface-border, rgba(148, 163, 184, 0.2)) 60%, transparent);
}
.sb-pad__tools {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.sb-pad__icon-btn {
  padding: 0.25rem;
  border-radius: 0.375rem;
  border: 0;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
}
.sb-pad__icon-btn:hover {
  color: #fff;
}
.sb-pad__dl {
  padding: 0.25rem;
  border-radius: 0.375rem;
  color: #00f0ff;
  text-decoration: none;
}
.sb-pad__dl:hover {
  background: color-mix(in srgb, #00f0ff 10%, transparent);
}
.sb-heart {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 11px;
  color: #94a3b8;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.sb-heart:hover {
  color: #ff2e93;
}
.sb-play-icon,
.sb-pause-icon {
  width: 1.75rem;
  height: 1.75rem;
}
.sb-play-icon {
  margin-left: 0.25rem;
}
.sb-heart-icon,
.sb-pad__tools svg {
  width: 0.875rem;
  height: 0.875rem;
}
