/* ===== Player Card ===== */

.smp-player {
  max-width: 560px;
  background: linear-gradient(180deg, #0b0b0b, #0f0f0f);
  padding: 16px;
  border-radius: 16px;
  box-shadow:
    0 12px 30px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.03);
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  color: #fff;
}

/* ===== Header ===== */

.smp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.smp-title {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
}

.smp-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #e5e7eb;
  text-decoration: none;
  font-size: 12px;
}

.smp-download:hover {
  background: rgba(255,255,255,.15);
}

/* ===== Headless Audio ===== */

.smp-audio {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

/* ===== Visualization ===== */

.smp-viz {
  display: flex;
  gap: 4px;
  height: 22px;
  margin-top: 8px;
  padding-left: 6px;
  align-items: flex-end;
  opacity: 0.65;
}

.smp-viz span {
  width: 6px;
  height: 6px;
  background: linear-gradient(180deg, #34d399, #22c55e);
  border-radius: 4px;
  animation: smp-idle 1.8s ease-in-out infinite;
}

.smp-viz span:nth-child(odd) { animation-delay: .3s; }
.smp-viz span:nth-child(3n)  { animation-delay: .6s; }
.smp-viz span:nth-child(5n)  { animation-delay: .9s; }

@keyframes smp-idle {
  0%, 100% { height: 6px; opacity: .5; }
  50%      { height: 22px; opacity: 1; }
}

.smp-player.is-playing .smp-viz {
  opacity: 0.95;
}

.smp-player.is-playing .smp-viz span {
  animation-duration: .9s;
  opacity: 1;
}

/* ===== Controls + Progress + Time ===== */

.smp-controls {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 8px 12px;
  align-items: center;
  margin: 12px 0 8px;
}

.smp-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;

  background: linear-gradient(180deg, #22c55e, #16a34a);
  color: #052e16;
  font-size: 22px;
  font-weight: 700;

  box-shadow:
    0 6px 18px rgba(34,197,94,.35),
    inset 0 1px 0 rgba(255,255,255,.4);

  transition:
    transform .15s ease,
    box-shadow .15s ease,
    filter .15s ease;

  grid-row: span 2;
}

.smp-play:hover {
  filter: brightness(1.05);
}

.smp-play:active {
  transform: scale(0.96);
  box-shadow:
    0 4px 12px rgba(34,197,94,.3),
    inset 0 1px 0 rgba(255,255,255,.25);
}

.smp-time {
  font-size: 12px;
  opacity: 0.85;
  letter-spacing: 0.3px;
}

.smp-progress {
  grid-column: 2;
  width: 100%;
}
