/* ============================================
   DJscovr – Stylesheet
   ============================================ */

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

body {
  background: #0a0a0a;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: 'DM Sans', sans-serif;
}

/* ============================================
   SCENE & PHONE
   ============================================ */
.scene { display: flex; gap: 48px; align-items: flex-start; padding: 40px; }

.phone {
  width: 340px; height: 720px;
  border-radius: 50px;
  border: 1.5px solid #2a2a2a;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 0 1px #000, 0 40px 100px rgba(0,0,0,0.9);
  flex-shrink: 0;
  background: #000;
}

.bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 100% 70% at 20% 30%, rgba(29,255,158,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 80% 100% at 85% 70%, rgba(100,40,255,0.22) 0%, transparent 55%),
    linear-gradient(160deg, #05050f 0%, #0e0820 40%, #020208 100%);
}

.glow-1 {
  position: absolute; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(29,255,158,0.07) 0%, transparent 70%);
  top: 5%; left: -20%; z-index: 1;
  animation: drift 9s ease-in-out infinite;
}

.glow-2 {
  position: absolute; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(120,60,255,0.1) 0%, transparent 70%);
  top: 20%; right: -15%; z-index: 1;
  animation: drift 12s ease-in-out infinite reverse;
}

@keyframes drift {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(15px, 25px); }
}

/* ============================================
   STATUS BAR & TOP
   ============================================ */
.island {
  position: absolute; top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 30px;
  background: #000; border-radius: 20px; z-index: 100;
}

.status {
  position: absolute; top: 14px; left: 20px; right: 20px;
  display: flex; justify-content: space-between;
  z-index: 99; font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,0.7); font-family: 'DM Mono', monospace;
}

.top-bar {
  position: absolute; top: 50px; left: 0; right: 0;
  padding: 0 20px; z-index: 50;
}

.top-row { display: flex; justify-content: space-between; align-items: center; }

.logo { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -0.03em; }
.logo span { color: #1dff9e; }

.top-icons { display: flex; gap: 10px; }

.icon-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; cursor: pointer;
}

/* ============================================
   NEXT CARD (background peek)
   ============================================ */
.next-card {
  position: absolute; inset: 0; bottom: 72px; z-index: 15;
  opacity: 0.4; transform: scale(0.96); pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(255,100,200,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 70%, rgba(50,100,255,0.15) 0%, transparent 55%),
    linear-gradient(160deg, #0f050a 0%, #0a0a1e 40%, #020208 100%);
}

/* ============================================
   SWIPE CARD
   ============================================ */
.swipe-card {
  position: absolute; inset: 0; bottom: 72px;
  z-index: 20; cursor: grab; will-change: transform;
}
.swipe-card:active { cursor: grabbing; }

.swipe-overlay {
  position: absolute; inset: 0; z-index: 5;
  pointer-events: none; opacity: 0;
  display: flex; align-items: center; justify-content: center;
}
.swipe-overlay.pass { background: linear-gradient(135deg, rgba(255,50,50,0.4) 0%, transparent 70%); }
.swipe-overlay.like { background: linear-gradient(225deg, rgba(29,255,158,0.4) 0%, transparent 70%); }

.swipe-stamp {
  font-size: 48px; font-weight: 800;
  border: 3px solid; border-radius: 10px;
  padding: 6px 18px; font-family: 'DM Mono', monospace;
}
.swipe-overlay.pass .swipe-stamp { color: #ff4646; border-color: #ff4646; transform: rotate(12deg); }
.swipe-overlay.like .swipe-stamp { color: #1dff9e; border-color: #1dff9e; transform: rotate(-12deg); }

/* ============================================
   TRACK INFO
   ============================================ */
.track-info {
  position: absolute; top: 110px;
  left: 20px; right: 20px; z-index: 10; pointer-events: none;
}

.label-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }

.label-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(29,255,158,0.1); border: 1px solid rgba(29,255,158,0.25);
  border-radius: 20px; padding: 6px 14px; backdrop-filter: blur(10px);
}

.label-dot { width: 7px; height: 7px; border-radius: 50%; background: #1dff9e; box-shadow: 0 0 8px #1dff9e; }
.label-text { font-size: 13px; color: #1dff9e; font-family: 'DM Mono', monospace; letter-spacing: 0.04em; }
.release-age { font-size: 13px; color: rgba(255,255,255,0.4); font-family: 'DM Mono', monospace; }

.track-name { font-size: 40px; font-weight: 800; color: #fff; line-height: 1.0; letter-spacing: -0.03em; margin-bottom: 8px; }
.artist-name { font-size: 16px; color: rgba(255,255,255,0.45); font-weight: 400; }

.bottom-fog {
  position: absolute; bottom: 0; left: 0; right: 0; height: 260px;
  background: linear-gradient(to top, rgba(0,0,10,0.98) 0%, rgba(0,0,10,0.9) 30%, rgba(0,0,10,0.5) 60%, transparent 100%);
  z-index: 8; pointer-events: none;
}

/* ============================================
   META TAGS & WAVEFORM
   ============================================ */
.bottom-info {
  position: absolute; bottom: 130px;
  left: 20px; right: 20px; z-index: 10;
}

.meta-tags { display: flex; gap: 6px; margin-bottom: 16px; }

.meta-tag {
  padding: 5px 12px; border-radius: 8px;
  font-size: 11px; font-family: 'DM Mono', monospace;
  font-weight: 500; backdrop-filter: blur(10px);
}
.meta-tag.bpm { background: rgba(29,255,158,0.12); color: #1dff9e; border: 1px solid rgba(29,255,158,0.2); }
.meta-tag.key { background: rgba(160,100,255,0.12); color: #c084fc; border: 1px solid rgba(160,100,255,0.2); }
.meta-tag.genre { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.45); border: 1px solid rgba(255,255,255,0.1); }

.waveform-wrap { position: relative; margin-bottom: 5px; user-select: none; }

.waveform {
  height: 42px; display: flex; align-items: center;
  gap: 2px; cursor: col-resize; overflow: hidden;
}

.wbar { flex-shrink: 0; width: 3px; border-radius: 2px; min-height: 3px; transition: background 0.1s; }
.wbar.p { background: #1dff9e; opacity: 0.9; }
.wbar.u { background: rgba(255,255,255,0.18); }

.wf-time {
  display: flex; justify-content: space-between;
  font-size: 10px; color: rgba(255,255,255,0.25);
  font-family: 'DM Mono', monospace;
}

/* ============================================
   ACTION BUTTONS
   ============================================ */
.action-row {
  position: absolute; bottom: 82px; left: 0; right: 0;
  display: flex; justify-content: center; align-items: center;
  gap: 20px; z-index: 30;
}

.act {
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; transition: transform 0.15s; backdrop-filter: blur(10px);
}
.act:hover { transform: scale(1.1); }
.act:active { transform: scale(0.95); }

.act-undo { width: 52px; height: 52px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.45); font-size: 18px; }
.act-pass { width: 62px; height: 62px; background: rgba(255,60,60,0.12); border: 1.5px solid rgba(255,60,60,0.3); color: #ff4646; font-size: 24px; }
.act-play { width: 52px; height: 52px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.7); font-size: 18px; }
.act-like { width: 72px; height: 72px; background: #1dff9e; box-shadow: 0 0 32px rgba(29,255,158,0.45); color: #000; font-size: 28px; }

/* ============================================
   CRATE VIEW
   ============================================ */
.crate-view {
  position: absolute; inset: 0; z-index: 40;
  background: #05050f; display: none; flex-direction: column;
}
.crate-view.active { display: flex; }

.crate-header {
  padding: 60px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.crate-title { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.crate-count { font-size: 11px; color: rgba(255,255,255,0.3); font-family: 'DM Mono', monospace; margin-top: 2px; }

.crate-list { flex: 1; overflow-y: auto; padding: 8px 0; }
.crate-list::-webkit-scrollbar { display: none; }

.crate-item {
  display: flex; align-items: center;
  padding: 12px 20px; gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.crate-item-num { font-size: 11px; color: rgba(255,255,255,0.2); font-family: 'DM Mono', monospace; width: 18px; flex-shrink: 0; }
.crate-item-info { flex: 1; min-width: 0; }
.crate-item-title { font-size: 14px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crate-item-artist { font-size: 12px; color: rgba(255,255,255,0.35); margin-top: 1px; }
.crate-item-meta { text-align: right; flex-shrink: 0; }
.crate-item-bpm { font-size: 11px; color: #1dff9e; font-family: 'DM Mono', monospace; }
.crate-item-key { font-size: 10px; color: rgba(255,255,255,0.3); font-family: 'DM Mono', monospace; }

.crate-empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  color: rgba(255,255,255,0.2); font-size: 13px;
}
.crate-empty-icon { font-size: 32px; opacity: 0.3; }

/* ============================================
   NAV
   ============================================ */
.nav {
  position: absolute; bottom: 0; left: 0; right: 0; height: 72px;
  background: rgba(0,0,8,0.97); backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex; align-items: center; justify-content: space-around;
  padding-bottom: 6px; z-index: 50;
}

.nav-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 3px; opacity: 0.3; cursor: pointer; padding: 4px 12px;
  transition: opacity 0.2s;
}
.nav-item.active { opacity: 1; }
.nav-icon { font-size: 20px; line-height: 1; }
.nav-label { font-size: 9px; color: rgba(255,255,255,0.5); font-family: 'DM Mono', monospace; letter-spacing: 0.06em; text-transform: uppercase; }
.nav-item.active .nav-label { color: #1dff9e; }
.nav-item.active .nav-icon { filter: drop-shadow(0 0 6px rgba(29,255,158,0.6)); }

/* ============================================
   SIDE PANEL
   ============================================ */
.side { padding-top: 20px; max-width: 220px; }

.demo-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 5px 12px; font-size: 10px;
  font-family: 'DM Mono', monospace; color: rgba(255,255,255,0.25);
  margin-bottom: 20px;
}
.demo-dot { width: 5px; height: 5px; border-radius: 50%; background: #1dff9e; animation: blink 2s ease-in-out infinite; }

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

.brand { font-size: 36px; font-weight: 800; color: #fff; letter-spacing: -0.03em; margin-bottom: 4px; }
.brand span { color: #1dff9e; }
.tagline { font-size: 13px; color: rgba(255,255,255,0.35); margin-bottom: 32px; line-height: 1.5; }

.feature { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.feat-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: rgba(29,255,158,0.08); border: 1px solid rgba(29,255,158,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}
.feat-text strong { display: block; font-size: 13px; color: #fff; font-weight: 600; margin-bottom: 2px; }
.feat-text p { font-size: 11px; color: rgba(255,255,255,0.3); line-height: 1.5; }

.divider { width: 36px; height: 2px; background: rgba(29,255,158,0.25); border-radius: 2px; margin: 28px 0; }

/* ============================================
   WAITLIST
   ============================================ */
.waitlist-title { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.waitlist-sub { font-size: 11px; color: rgba(255,255,255,0.3); margin-bottom: 14px; line-height: 1.5; }

.waitlist-form { display: flex; flex-direction: column; gap: 8px; }

.role-toggle { display: flex; gap: 6px; margin-bottom: 4px; }

.role-btn {
  flex: 1; padding: 7px; border-radius: 8px; font-size: 11px;
  font-family: 'DM Mono', monospace; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.4);
  transition: all 0.2s;
}
.role-btn.active {
  background: rgba(29,255,158,0.1); border-color: rgba(29,255,158,0.3);
  color: #1dff9e;
}

.waitlist-input {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 10px 14px; font-size: 12px;
  color: #fff; font-family: 'DM Sans', sans-serif; outline: none;
  transition: border-color 0.2s;
}
.waitlist-input:focus { border-color: rgba(29,255,158,0.4); }
.waitlist-input::placeholder { color: rgba(255,255,255,0.2); }

.waitlist-btn {
  background: #1dff9e; color: #000; font-weight: 700; font-size: 12px;
  padding: 11px 18px; border-radius: 24px; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: transform 0.15s, box-shadow 0.15s;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.waitlist-btn:hover { transform: scale(1.03); box-shadow: 0 0 20px rgba(29,255,158,0.35); }
.waitlist-btn:active { transform: scale(0.98); }

.success-msg {
  display: none; text-align: center; padding: 12px;
  background: rgba(29,255,158,0.08); border: 1px solid rgba(29,255,158,0.2);
  border-radius: 10px; font-size: 12px; color: #1dff9e;
  font-family: 'DM Mono', monospace;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
  .scene { flex-direction: column; align-items: center; padding: 20px; }
  .side { max-width: 340px; width: 100%; }
}
