@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&display=swap');

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

/* ─── TOKENS ─── */
:root {
  --purple:    #745ea1;
  --green:     #8ba15e;
  --red:       #e05555;
  --text:      #F2F2F2;
  --muted:     #A0A0B0;
  --border:    rgba(255,255,255,0.07);
  --player-bg: rgba(255,255,255,0.04);
  --card-bg:   #161616;
  --bg:        #0B0B0B;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

/* ─── PAGE ─── */
.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

/* ─── CARD ─── */
.inner {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 28px 32px;
}

/* ─── IDENTITY ─── */
.producer-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(160,160,176,0.45);
  margin-bottom: 24px;
  animation: fadeUp 0.5s ease both;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(116,94,161,0.1);
  border: 1px solid rgba(116,94,161,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
  box-shadow: 0 0 40px rgba(116,94,161,0.15);
  animation: fadeUp 0.5s ease 0.05s both;
}

.genre-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 6px;
  text-align: center;
  animation: fadeUp 0.5s ease 0.1s both;
}

/* ─── CONFIRMED BADGE ─── */
.confirmed {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(139,161,94,0.1);
  border: 1px solid rgba(139,161,94,0.25);
  border-radius: 20px;
  padding: 7px 16px;
  margin-top: 16px;
  margin-bottom: 28px;
  animation: fadeUp 0.5s ease 0.2s both;
}

.confirmed-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.confirmed-text {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--green);
  text-transform: uppercase;
}

/* ─── SECTION LABEL ─── */
.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  align-self: flex-start;
  margin-bottom: 12px;
  animation: fadeUp 0.5s ease 0.25s both;
}

/* ─── DIVIDERS ─── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 4px 0 24px;
  animation: fadeUp 0.5s ease 0.35s both;
}

.section-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
}

/* ─── MINIMAL PREVIEW PLAYER (opt-in page) ─── */
.preview-player {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
  animation: fadeUp 0.5s ease 0.2s both;
}

.preview-play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(116,94,161,0.12);
  border: 1px solid rgba(116,94,161,0.35);
  color: var(--text);
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0 0 0 3px;
  line-height: 1;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.preview-play-btn:active { transform: scale(0.94); }

.preview-player.is-playing .preview-play-btn {
  background: var(--purple);
  border-color: var(--purple);
  padding-left: 0;
  box-shadow: 0 0 18px rgba(116,94,161,0.45), 0 0 40px rgba(116,94,161,0.18);
}

.preview-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple);
  opacity: 0.9;
}

/* ─── FULL AUDIO PLAYERS (preview page) ─── */
.players {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  animation: fadeUp 0.5s ease 0.3s both;
}

.audio-player {
  background: var(--player-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  transition: border-color 0.2s;
}

.audio-player.is-playing {
  border-color: rgba(116,94,161,0.35);
}

.play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(116,94,161,0.15);
  border: 1px solid rgba(116,94,161,0.3);
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
  padding: 0 0 0 2px;
  line-height: 1;
}

.play-btn:active { transform: scale(0.94); }

.audio-player.is-playing .play-btn {
  background: var(--purple);
  border-color: var(--purple);
  padding-left: 0;
}

.track-info { min-width: 0; }

.track-title {
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
}

.progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  cursor: pointer;
  margin-bottom: 8px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--purple);
  border-radius: 3px;
  transition: width 0.1s linear;
}

.player-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.track-time {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(160,160,176,0.5);
  font-variant-numeric: tabular-nums;
}

.restart-btn {
  background: none;
  border: none;
  color: rgba(160,160,176,0.35);
  font-size: 15px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.15s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.restart-btn:hover  { color: var(--muted); }
.restart-btn:active { color: var(--purple); transform: rotate(-30deg); }

audio { display: none; }

/* ─── OPT-IN FORM ─── */
.opt-form {
  width: 100%;
  margin-bottom: 8px;
}

.opt-form input[type="text"],
.opt-form input[type="email"],
.opt-form input[type="tel"] {
  display: block;
  width: 100%;
  background: #2d2d2d;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: #F2F2F2;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 300;
  padding: 13px 14px;
  margin-bottom: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.opt-form input:focus {
  outline: none;
  border-color: rgba(116,94,161,0.6);
  box-shadow: 0 0 0 3px rgba(116,94,161,0.1);
}

.opt-form input::placeholder {
  color: rgba(160,160,176,0.5);
}

.opt-form .submit-btn {
  display: block;
  width: 100%;
  background: var(--purple);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 24px;
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s;
  margin-top: 2px;
  -webkit-tap-highlight-color: transparent;
}

.opt-form .submit-btn:hover {
  opacity: 0.88;
  box-shadow: 0 0 22px rgba(116,94,161,0.45);
}

.opt-form .submit-btn:active { opacity: 0.75; }

/* ─── CONSENT TEXT ─── */
.consent-text {
  font-size: 10px;
  color: rgba(160,160,176,0.35);
  text-align: center;
  line-height: 1.55;
  margin-bottom: 24px;
  padding: 0 4px;
}

/* ─── BUTTONS ─── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.25s;
  -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: scale(0.97); }

/* Smaller button variant */
.btn-sm {
  padding: 10px 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
  gap: 7px;
}

.btn-sm .btn-icon { font-size: 15px; }

/* YouTube — red */
.btn-youtube {
  background: rgba(220,50,50,0.07);
  border-color: rgba(220,50,50,0.25);
  color: #e06060;
}
.btn-youtube:hover {
  box-shadow: 0 0 20px rgba(220,50,50,0.4), 0 0 50px rgba(220,50,50,0.15);
  transform: translateY(-2px);
}

/* Share — purple */
.btn-share {
  background: transparent;
  border-color: rgba(116,94,161,0.35);
  color: var(--purple);
}
.btn-share:hover {
  box-shadow: 0 0 20px rgba(116,94,161,0.5), 0 0 50px rgba(116,94,161,0.2);
  transform: translateY(-2px);
}

/* Skip — green outline */
.btn-skip {
  background: transparent;
  border-color: rgba(139,161,94,0.35);
  color: var(--green);
}
.btn-skip:hover {
  box-shadow: 0 0 20px rgba(139,161,94,0.5), 0 0 50px rgba(139,161,94,0.2);
  transform: translateY(-2px);
}

/* Join the List — green filled */
.btn-joinlist {
  background: rgba(139,161,94,0.09);
  border-color: rgba(139,161,94,0.3);
  color: var(--green);
}
.btn-joinlist:hover {
  box-shadow: 0 0 20px rgba(139,161,94,0.5), 0 0 50px rgba(139,161,94,0.2);
  transform: translateY(-2px);
}

.btn-icon { font-size: 18px; line-height: 1; }

/* ─── CTA LAYOUTS ─── */
.cta-row {
  width: 100%;
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-bottom: 12px;
  animation: fadeUp 0.5s ease 0.4s both;
}
.cta-row .btn { flex: 1; }

.cta-full {
  width: 100%;
  margin-bottom: 24px;
  animation: fadeUp 0.5s ease 0.45s both;
}

/* ─── FOOTER ─── */
.footer-brand {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(160,160,176,0.4);
  text-align: center;
  animation: fadeUp 0.5s ease 0.5s both;
}

/* ─── SPINNER ─── */
.spinner-wrap {
  margin: 20px 0 16px;
  animation: fadeIn 0.6s ease 0.2s both;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(116,94,161,0.2);
  border-top: 2px solid var(--purple);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto;
}

@keyframes spin  { to { transform: rotate(360deg); } }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
