html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.pcast {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 280px;
  padding: 12px;
  border-radius: 16px;
  background: #201d29;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
}

.pcast__play {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  background: #4cd4a6;
  color: #17141a;
  cursor: pointer;
}

.pcast__play svg {
  transform: translateX(1px);
}

.pcast__play:hover {
  filter: brightness(1.08);
}

.pcast__body {
  flex: 1 1 auto;
  min-width: 0;
}

.pcast__title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pcast__meta {
  margin: 4px 0 8px;
  font-size: 11px;
  color: #9491a3;
}

.pcast__wave {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 20px;
}

.pcast__wave span {
  display: block;
  width: 3px;
  height: 6px;
  border-radius: 4px;
  background: #4cd4a6;
  transform-origin: bottom;
}

.pcast__wave span:nth-child(1) {
  animation-delay: 80ms;
}

.pcast__wave span:nth-child(2) {
  animation-delay: 160ms;
}

.pcast__wave span:nth-child(3) {
  animation-delay: 240ms;
}

.pcast__wave span:nth-child(4) {
  animation-delay: 320ms;
}

.pcast__wave span:nth-child(5) {
  animation-delay: 400ms;
}

.pcast__wave span:nth-child(6) {
  animation-delay: 480ms;
}

.pcast__wave span:nth-child(7) {
  animation-delay: 560ms;
}

.pcast__wave span:nth-child(8) {
  animation-delay: 640ms;
}

.stage.is-demo .pcast__wave span {
  animation: pcast-bar 900ms ease-out infinite alternate;
}

.pcast__wave.is-paused span {
  animation-play-state: paused;
  height: 6px;
}

@keyframes pcast-bar {
  from {
    transform: scaleY(0.3);
  }
  to {
    transform: scaleY(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .stage.is-demo .pcast__wave span {
    animation: none;
    transform: scaleY(0.6);
  }
}
