:root {
  --bg: #12001a;
  --bg-2: #1e0329;
  --card: #241033;
  --magenta: #ff2e88;
  --gold: #ffd23f;
  --text: #f5eefc;
  --muted: #b89dc4;
  --font-display: 'Anton', sans-serif;
  --font-body: 'Work Sans', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at top, var(--bg-2) 0%, var(--bg) 70%);
  color: var(--text);
  font-family: var(--font-body);
  padding-bottom: 4rem;
  position: relative;
  overflow-x: hidden;
}

.stage-glow {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 140vw;
  height: 60vh;
  background: radial-gradient(ellipse, rgba(255,46,136,0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.marquee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 3rem 1rem 0.5rem;
  position: relative;
  z-index: 1;
}

.marquee h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 4rem);
  letter-spacing: 0.08em;
  margin: 0;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(255,210,63,0.6), 0 0 30px rgba(255,46,136,0.35);
}

.bulbs {
  display: flex;
  gap: 8px;
}

.bulbs::before, .bulbs::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: blink 1.4s infinite ease-in-out;
}

.bulbs::after { animation-delay: 0.7s; }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.tagline {
  text-align: center;
  color: var(--muted);
  margin: 0.25rem 0 2rem;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}

.search-wrap { margin-bottom: 1.25rem; }

#searchInput {
  width: 100%;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: var(--card);
  color: var(--text);
  font-family: var(--font-body);
}

#searchInput:focus {
  outline: 2px solid var(--magenta);
  outline-offset: 1px;
}

.song-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.song-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 4px solid var(--magenta);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.song-card:hover, .song-card:focus-visible {
  transform: translateX(2px);
  border-left-color: var(--gold);
}

.song-card .info { min-width: 0; }

.song-card .title {
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.song-card .artist {
  color: var(--muted);
  font-size: 0.85rem;
}

.song-card .request-tag {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 1.5rem 0;
}

.free-text-hint {
  text-align: center;
  color: var(--muted);
  margin-top: 2rem;
  font-size: 0.9rem;
}

.link-btn {
  background: none;
  border: none;
  color: var(--gold);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: var(--font-body);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--magenta);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-body);
  margin-top: 0.5rem;
}

.btn-primary {
  width: 100%;
  background: var(--magenta);
  color: #fff;
  border: none;
  padding: 0.9rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 1.25rem;
  transition: filter 0.12s ease;
}

.btn-primary:hover { filter: brightness(1.1); }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 1rem;
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  background: var(--bg-2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 1.75rem;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 0 40px rgba(255,46,136,0.15);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.modal-eyebrow {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.25rem;
}

.modal h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: normal;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
}

.song-preview {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.modal label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.75rem 0 0.3rem;
}

.modal input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: var(--card);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.modal input:focus {
  outline: 2px solid var(--magenta);
  outline-offset: 1px;
}

.form-message {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.form-message.success { color: #6be3a3; }
.form-message.error { color: #ff6b6b; }

@media (prefers-reduced-motion: reduce) {
  .bulbs::before, .bulbs::after { animation: none; }
}
