* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 20%, rgba(236,72,153,0.16), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(99,102,241,0.18), transparent 30%),
    radial-gradient(circle at 50% 80%, rgba(168,85,247,0.12), transparent 35%),
    linear-gradient(180deg, #0b1020 0%, #111827 45%, #050816 100%);
  color: white;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  overflow-x: hidden;
}

.app {
  width: 100%;
  max-width: 430px;
  min-height: 92vh;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 30px;
  padding: 20px;
  box-shadow: 0 25px 80px rgba(0,0,0,0.45);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.glow {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236,72,153,0.22), transparent 70%);
  top: -70px;
  right: -60px;
  pointer-events: none;
  animation: floatGlow 5s ease-in-out infinite;
}

@keyframes floatGlow {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(12px) scale(1.06); }
}

.mini {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
  position: relative;
  z-index: 2;
}

h1 {
  margin: 8px 0 8px;
  font-size: 36px;
  line-height: 1.05;
  font-weight: 800;
  position: relative;
  z-index: 2;
}

.sub {
  margin: 0;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  line-height: 1.5;
  position: relative;
  z-index: 2;
}

.hero {
  margin-top: 20px;
  border-radius: 24px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(99,102,241,0.22), rgba(236,72,153,0.14));
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 2;
}

.big-btn {
  width: 100%;
  margin-top: 12px;
  border: none;
  border-radius: 22px;
  padding: 18px;
  font-size: 18px;
  font-weight: 800;
  color: white;
  cursor: pointer;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  box-shadow: 0 14px 34px rgba(236,72,153,0.28);
}

.row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.btn {
  flex: 1;
  border: none;
  border-radius: 16px;
  padding: 12px;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
}

.soft {
  background: rgba(255,255,255,0.08);
  color: white;
}

.pink {
  background: #ec4899;
  color: white;
}

.section-title {
  margin: 18px 0 10px;
  font-size: 13px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 2;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.card {
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.card:active {
  transform: scale(0.98);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.card span {
  font-size: 12px;
  opacity: 0.72;
}

.slider-wrap {
  margin-top: 12px;
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 2;
}

input[type="range"] {
  width: 100%;
  margin-top: 6px;
  margin-bottom: 8px;
}

.visual-wrap {
  margin-top: 16px;
  border-radius: 20px;
  padding: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.visual-label {
  font-size: 12px;
  opacity: 0.7;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pulse-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236,72,153,0.35), rgba(139,92,246,0.15));
  box-shadow: 0 0 0 0 rgba(236,72,153,0.35);
  transform: scale(1);
}

.pulse-ring.active {
  animation: pulseGlow 1.1s infinite ease-in-out;
}

@keyframes pulseGlow {
  0% {
    transform: scale(0.96);
    box-shadow: 0 0 0 0 rgba(236,72,153,0.35);
  }
  70% {
    transform: scale(1.08);
    box-shadow: 0 0 0 18px rgba(236,72,153,0);
  }
  100% {
    transform: scale(0.96);
    box-shadow: 0 0 0 0 rgba(236,72,153,0);
  }
}

.status {
  margin-top: 14px;
  min-height: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.86);
  position: relative;
  z-index: 2;
}

.spacer {
  flex: 1;
  min-height: 16px;
}

.track-footer {
  position: relative;
  z-index: 2;
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.track-box {
  text-align: right;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  max-width: 70%;
}

.track-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  opacity: 0.5;
  margin-bottom: 4px;
}

.track-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
  opacity: 0.95;
}

.artist-link {
  color: #f9a8d4;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}

.artist-link:hover {
  text-decoration: underline;
}

.tiny-note {
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.45;
  line-height: 1.3;
}