* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-deep: #0c0620;
  --bg-card: rgba(60, 30, 120, 0.15);
  --border-glass: rgba(180, 136, 255, 0.18);
  --text-primary: #ede8f5;
  --text-muted: #8a80a8;
  --accent: #b488ff;
  --accent-dim: rgba(180, 136, 255, 0.12);
  --glow: rgba(140, 80, 255, 0.2);
}

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
}

.page {
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
}

/* Gradient mesh background */
.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}
.bg-mesh::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -30%;
  width: 80%;
  height: 60%;
  background: radial-gradient(
    ellipse,
    rgba(90, 40, 180, 0.25) 0%,
    transparent 70%
  );
}
.bg-mesh::after {
  content: "";
  position: absolute;
  bottom: -10%;
  right: -20%;
  width: 70%;
  height: 50%;
  background: radial-gradient(
    ellipse,
    rgba(140, 60, 200, 0.15) 0%,
    transparent 70%
  );
}

.content {
  position: relative;
  z-index: 1;
  padding: 20px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}
.wordmark {
  font-size: 18px;
  letter-spacing: 3px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
}
.waitlist-btn {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-glass);
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.waitlist-btn:hover {
  background: rgba(180, 136, 255, 0.22);
  border-color: rgba(180, 136, 255, 0.35);
}

.tagline {
  color: var(--text-muted);
  font-size: 15px;
  text-align: center;
  padding-bottom: 4px;
}

/* Audio cards */
.card {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px var(--glow);
  cursor: pointer;
  transition: all 0.3s ease;
}
.card:hover {
  border-color: rgba(180, 136, 255, 0.35);
  box-shadow: 0 8px 40px rgba(140, 80, 255, 0.3);
  transform: translateY(-2px);
}
.card:active {
  transform: translateY(0);
}

.card-visual {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.card-visual::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to top, var(--bg-deep), transparent);
  opacity: 0.5;
}
.card-visual-placeholder {
  font-family: "DM Sans", monospace;
  font-size: 12px;
  color: rgba(180, 136, 255, 0.4);
  letter-spacing: 1px;
  z-index: 1;
}

.card-body {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(180, 136, 255, 0.35);
  background: rgba(140, 80, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.play-btn:hover {
  background: rgba(140, 80, 255, 0.25);
  border-color: var(--accent);
}
.play-icon {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 14px solid var(--accent);
  margin-left: 3px;
}

.card-info {
  flex: 1;
}
.card-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 3px;
}
.card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}
.card-duration {
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.7;
}

/* Footer */
.footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
}

.app-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.badge {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid rgba(180, 136, 255, 0.12);
  background: rgba(40, 20, 80, 0.2);
  color: var(--text-muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.font-sora {
  font-family: "Sora", sans-serif;
}

/* Audio Player */
.player-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  justify-content: center;
}
.player-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 2, 18, 0.6);
  transition: opacity 0.4s ease;
}
.player-sheet {
  position: absolute;
  bottom: 0;
  width: 100%;
  max-width: 430px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
}
.player-sheet.entering {
  transform: translateY(100%);
}
.player-sheet.visible {
  transform: translateY(0);
}
.player-sheet.exiting {
  transform: translateY(100%);
}

.player-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}
.player-bg-base {
  position: absolute;
  inset: 0;
  background: var(--bg-deep);
}
.player-bg-gradient {
  position: absolute;
  inset: 0;
  opacity: 0.7;
}
@keyframes cosmicDrift1 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -40px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}
@keyframes cosmicDrift2 {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-40px, 30px) scale(1.05);
  }
  66% {
    transform: translate(25px, -25px) scale(1.1);
  }
}
@keyframes cosmicDrift3 {
  0%,
  100% {
    transform: translate(0, 0) scale(1.05);
  }
  50% {
    transform: translate(15px, 15px) scale(0.95);
  }
}
.player-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}
.player-orb-1 {
  width: 300px;
  height: 300px;
  top: -50px;
  left: -60px;
  background: rgba(120, 50, 220, 0.5);
  animation: cosmicDrift1 8s ease-in-out infinite;
}
.player-orb-2 {
  width: 250px;
  height: 250px;
  top: 30%;
  right: -40px;
  background: rgba(180, 80, 255, 0.3);
  animation: cosmicDrift2 10s ease-in-out infinite;
}
.player-orb-3 {
  width: 200px;
  height: 200px;
  bottom: 20%;
  left: 20%;
  background: rgba(100, 40, 200, 0.35);
  animation: cosmicDrift3 12s ease-in-out infinite;
}

.player-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 28px 40px;
}

.player-handle-area {
  display: flex;
  justify-content: center;
  padding: 12px 0 8px;
  cursor: grab;
}
.player-handle {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(180, 136, 255, 0.3);
}

.player-close {
  align-self: flex-start;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(180, 136, 255, 0.15);
  background: rgba(40, 20, 80, 0.3);
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-family: inherit;
  margin-bottom: 8px;
}
.player-close:hover {
  background: rgba(40, 20, 80, 0.5);
  color: var(--text-primary);
}

.player-visual-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 0;
}

.player-title {
  font-size: 28px;
  font-weight: 500;
  text-align: center;
}
.player-about {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
  max-width: 280px;
}

.player-controls-area {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 24px;
}

/* Progress bar */
.progress-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(180, 136, 255, 0.12);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  position: relative;
  transition: width 0.1s linear;
}
.progress-handle {
  position: absolute;
  right: -7px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 8px rgba(180, 136, 255, 0.5);
}
.progress-times {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

/* Transport controls */
.transport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.skip-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(180, 136, 255, 0.1);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: all 0.2s;
  font-family: inherit;
  line-height: 1;
  gap: 1px;
}
.skip-btn:hover {
  background: rgba(180, 136, 255, 0.2);
  color: var(--text-primary);
}
.skip-btn .skip-arrow {
  font-size: 16px;
}

.play-btn-large {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(140, 80, 255, 0.4);
}
.play-btn-large:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(140, 80, 255, 0.5);
}
.play-btn-large:active {
  transform: scale(0.97);
}
.play-icon-large {
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 20px solid white;
  margin-left: 4px;
}
.pause-icon-large {
  display: flex;
  gap: 6px;
}
.pause-bar {
  width: 5px;
  height: 22px;
  background: white;
  border-radius: 2px;
}
