/* sound.korzor.org — pad arcade */

.sound-body {
  --sound-bg: #05050a;
  --sound-panel: rgba(18, 18, 28, 0.92);
  --sound-border: rgba(0, 229, 255, 0.22);
  --sound-cyan: #00e5ff;
  --sound-magenta: #ff2d95;
  --sound-yellow: #ffe566;
  --sound-muted: #94a3b8;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 229, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(255, 45, 149, 0.08), transparent 50%),
    var(--sound-bg);
  color: #e8eef7;
}

.sound-cabinet-glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  z-index: 0;
}

.sound-main {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3.5rem;
}

.sound-hero {
  text-align: center;
  margin-bottom: 1.75rem;
}

.sound-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--sound-cyan);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.45);
}

.sound-title {
  margin: 0;
  line-height: 0.95;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.sound-title-glow {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(2.6rem, 9vw, 4.2rem);
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow:
    0 0 8px rgba(0, 229, 255, 0.8),
    0 0 24px rgba(255, 45, 149, 0.45),
    3px 3px 0 #0a0a12;
}

.sound-title-sub {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(1.4rem, 5vw, 2.1rem);
  letter-spacing: 0.28em;
  color: var(--sound-magenta);
  text-shadow: 0 0 14px rgba(255, 45, 149, 0.5);
}

.sound-lead {
  margin: 0.85rem auto 0;
  max-width: 34rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--sound-muted);
}

.sound-url-chip {
  display: inline-block;
  margin: 0.85rem 0 0;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  background: rgba(0, 229, 255, 0.08);
  color: var(--sound-cyan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sound-panel {
  margin-top: 1.25rem;
  padding: 1.1rem 1rem 1.25rem;
  border-radius: 18px;
  border: 1px solid var(--sound-border);
  background: var(--sound-panel);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 18px 50px rgba(0, 0, 0, 0.45);
}

.sound-panel-ai {
  border-color: rgba(191, 90, 242, 0.28);
  background:
    radial-gradient(ellipse at top right, rgba(191, 90, 242, 0.12), transparent 55%),
    var(--sound-panel);
}

.sound-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.35rem;
}

.sound-panel-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.sound-panel-hint {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: var(--sound-muted);
  line-height: 1.4;
}

.sound-panel-hint code {
  font-size: 0.78em;
  color: #c4b5fd;
}

.sound-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.sound-vol {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--sound-muted);
}

.sound-vol input[type="range"] {
  width: 5.5rem;
  accent-color: var(--sound-cyan);
}

.sound-stop-btn {
  border: 1px solid rgba(255, 69, 58, 0.55);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  background: rgba(255, 69, 58, 0.15);
  color: #ff8a80;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.sound-stop-btn:hover {
  background: rgba(255, 69, 58, 0.28);
  color: #fff;
}

.sound-loading {
  grid-column: 1 / -1;
  margin: 0.5rem 0;
  color: var(--sound-muted);
  font-size: 0.9rem;
}

/* —— Pad arcade —— */
.sound-pad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(6.6rem, 1fr));
  gap: 0.65rem;
}

.sound-pad {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  min-height: 5.6rem;
  padding: 0.55rem 0.35rem;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  color: #0a0a0f;
  font: inherit;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow:
    0 4px 0 color-mix(in srgb, var(--pad-color, #00e5ff) 55%, #000),
    0 8px 20px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 42%),
    var(--pad-color, #00e5ff);
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.12s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.sound-pad:hover {
  filter: brightness(1.08);
}

.sound-pad:active,
.sound-pad.is-pressed {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--pad-color, #00e5ff) 55%, #000),
    0 2px 8px rgba(0, 0, 0, 0.3),
    inset 0 2px 6px rgba(0, 0, 0, 0.25);
}

.sound-pad:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.sound-pad-emoji {
  font-size: 1.55rem;
  line-height: 1;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.35));
}

.sound-pad-label {
  font-size: 0.68rem;
  text-align: center;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sound-pad-badge {
  position: absolute;
  top: 0.28rem;
  right: 0.28rem;
  padding: 0.1rem 0.28rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* —— AI tracks —— */
.sound-ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.85rem;
}

.sound-ai-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(191, 90, 242, 0.28);
  background: rgba(12, 10, 22, 0.85);
}

.sound-ai-top {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.sound-ai-cover {
  flex-shrink: 0;
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(191, 90, 242, 0.35), rgba(0, 229, 255, 0.15));
  font-size: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sound-ai-meta {
  min-width: 0;
  flex: 1;
}

.sound-ai-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
}

.sound-ai-artist {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: #c4b5fd;
}

.sound-ai-note {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--sound-muted);
  line-height: 1.35;
}

.sound-ai-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.sound-ai-tag {
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: rgba(191, 90, 242, 0.15);
  border: 1px solid rgba(191, 90, 242, 0.3);
  font-size: 0.65rem;
  font-weight: 700;
  color: #e9d5ff;
}

.sound-ai-actions {
  display: flex;
  gap: 0.45rem;
  margin-top: auto;
}

.sound-ai-play {
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  background: linear-gradient(90deg, #bf5af2, #5e5ce6);
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.sound-ai-play:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #3a3a4a;
}

.sound-ai-play.is-playing {
  background: linear-gradient(90deg, #ff2d95, #bf5af2);
}

@media (max-width: 520px) {
  .sound-pad-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .sound-pad {
    min-height: 5rem;
  }

  .sound-main {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}
