:root {
  --bg-obsidian: #0c0c0e;
  --bg-surface: #141418;
  --bg-card: #1b1b20;
  --accent-yellow: #f3fa7b;
  --accent-yellow-hover: #f7fc9a;
  --ink-dark: #0f0f12;
  --text-primary: #ffffff;
  --text-secondary: #9e9ea9;
  --text-muted: #686873;
  --glass-bg: rgba(34, 34, 39, 0.72);
  --glass-border: rgba(255, 255, 255, 0.1);
  --font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.14); border-radius: 99px; }

/* Toast */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translate(-50%, -20px);
  background: rgba(20, 20, 24, 0.94);
  border: 1px solid rgba(243, 250, 123, 0.45);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 5000;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-yellow);
  box-shadow: 0 0 8px var(--accent-yellow);
}

/* Shell Layout: Mobile First */
.app-shell {
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.desktop-sidebar {
  display: none;
}

.main-stage {
  width: 100%;
  flex: 1;
  padding-bottom: 168px;
}

.view-section {
  display: none;
  animation: fadeInView 0.25s ease;
}
.view-section.active {
  display: block;
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   SCREEN 1: DISCOVER (TOP NEON PASTEL YELLOW CURVED BLOCK)
   ═══════════════════════════════════════════════════════════════════════════ */
.discover-yellow-hero {
  background: var(--accent-yellow);
  color: var(--ink-dark);
  border-radius: 0 0 34px 34px;
  padding: 22px 18px 26px 14px;
  box-shadow: 0 18px 40px rgba(243, 250, 123, 0.08);
}

.discover-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 4px 18px 6px;
}

.hero-micro-brand {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(15, 15, 18, 0.65);
  margin-bottom: 2px;
}

.discover-heading {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.7px;
  line-height: 1.05;
  color: var(--ink-dark);
}

.circle-dark-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink-dark);
  color: var(--accent-yellow);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.circle-dark-btn:active { transform: scale(0.92); }

.discover-showcase-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vertical-playlist-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 2px;
  color: var(--ink-dark);
  user-select: none;
}
.vertical-playlist-label span:last-child {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.playlist-mini-ico {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1.5px solid rgba(15, 15, 18, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.discover-carousel {
  flex: 1;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-right: 14px;
  scrollbar-width: none;
}
.discover-carousel::-webkit-scrollbar { display: none; }

.featured-beat-card {
  position: relative;
  min-width: 224px;
  height: 268px;
  border-radius: 26px;
  overflow: hidden;
  background: #141418;
  scroll-snap-align: start;
  cursor: pointer;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
  flex-shrink: 0;
  transition: transform 0.22s ease;
}
.featured-beat-card:hover { transform: translateY(-2px); }

.featured-beat-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.featured-beat-card:hover .featured-beat-img { transform: scale(1.04); }

.featured-card-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.08) 25%, rgba(0,0,0,0.88) 100%);
}

.featured-top-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 15, 18, 0.72);
  backdrop-filter: blur(10px);
  color: var(--accent-yellow);
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid rgba(243, 250, 123, 0.35);
}

.featured-card-footer {
  position: absolute;
  left: 16px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.featured-genre-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.08;
}

.featured-artist-meta {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  margin-top: 3px;
}

.featured-white-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--ink-dark);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.18s ease, background 0.18s ease;
}
.featured-white-play:hover { background: var(--accent-yellow); transform: scale(1.06); }

/* Tracklist Section */
.tracklist-container {
  padding: 22px 18px 10px;
}

.section-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title-sm {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: #fff;
}

.section-sub-xs {
  display: block;
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.text-link-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.text-link-btn:hover { color: var(--accent-yellow); }

.track-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.track-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.2s ease;
}
.track-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}
.track-row.is-active {
  background: rgba(243, 250, 123, 0.08);
  border-color: rgba(243, 250, 123, 0.35);
}

.track-thumb-wrap {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: #1b1b20;
}
.track-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.track-eq-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.track-row.is-playing .track-eq-overlay {
  display: flex;
}
.eq-bar {
  width: 3px;
  height: 14px;
  background: var(--accent-yellow);
  border-radius: 2px;
  animation: eqPulse 0.7s infinite ease-in-out alternate;
}
.eq-bar:nth-child(2) { animation-delay: 0.2s; height: 20px; }
.eq-bar:nth-child(3) { animation-delay: 0.4s; height: 10px; }

@keyframes eqPulse {
  from { transform: scaleY(0.35); }
  to { transform: scaleY(1); }
}

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

.track-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-row.is-active .track-name { color: var(--accent-yellow); }

.track-artist {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.track-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  flex-wrap: wrap;
}
.pill-price {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
}
.pill-fmt {
  background: rgba(255, 255, 255, 0.08);
  color: #d4d4d8;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
}

.track-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.track-duration {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.track-dl-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(243, 250, 123, 0.12);
  border: 1px solid rgba(243, 250, 123, 0.3);
  color: var(--accent-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.track-dl-icon-btn:hover {
  background: var(--accent-yellow);
  color: var(--ink-dark);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCREEN 3: RECOMMENDED / COLLECTION & SEARCH
   ═══════════════════════════════════════════════════════════════════════════ */
.collection-header {
  padding: 24px 18px 10px;
}

.collection-eyebrow {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: var(--accent-yellow);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.collection-heading {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

.search-pill-wrap {
  position: relative;
  margin-bottom: 18px;
}
.search-svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}
.search-pill-input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  border-radius: 999px;
  background: #1b1b20;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.search-pill-input:focus {
  border-color: rgba(243, 250, 123, 0.5);
}
.search-pill-input::placeholder { color: var(--text-muted); }

.spotlight-card {
  position: relative;
  width: 100%;
  height: 142px;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
}
.spotlight-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.spotlight-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12,12,14,0.88) 0%, rgba(12,12,14,0.35) 100%);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.spotlight-listeners {
  align-self: flex-end;
  background: rgba(15, 15, 18, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}
.spotlight-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.spotlight-sub {
  font-size: 12px;
  color: var(--accent-yellow);
  font-weight: 600;
  margin-top: 2px;
}

.new-collection-wrap {
  padding: 12px 18px;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.col-art-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.22s ease;
}
.col-art-card:hover {
  transform: translateY(-3px);
  border-color: rgba(243, 250, 123, 0.4);
}
.col-art-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 10px;
}
.col-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.col-art-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(12, 12, 14, 0.78);
  backdrop-filter: blur(8px);
  color: var(--accent-yellow);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 99px;
}
.col-art-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.col-art-artist {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.col-art-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.col-price {
  font-size: 11px;
  font-weight: 800;
  color: #34d399;
}
.col-dl-mini {
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
}
.col-dl-mini:hover {
  background: var(--accent-yellow);
  color: var(--ink-dark);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCREEN 2: FULLSCREEN PLAYER (MOBILE OVERLAY / DESKTOP STICKY RIGHT DECK)
   ═══════════════════════════════════════════════════════════════════════════ */
.player-panel {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 18px 26px;
  background: #0c0c0e;
  transform: translateY(105%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}
.player-panel.open {
  transform: translateY(0);
}

.player-backdrop-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.player-full-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: opacity 0.25s ease;
}
.player-scrim-top {
  position: absolute;
  inset: 0 0 auto 0;
  height: 140px;
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, transparent 100%);
}
.player-scrim-bottom {
  position: absolute;
  inset: auto 0 0 0;
  height: 62%;
  background: linear-gradient(0deg, rgba(10,10,12,0.92) 0%, rgba(10,10,12,0.35) 55%, transparent 100%);
}

.player-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.player-back-btn,
.player-dl-top-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(24, 24, 28, 0.68);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.art-switch-pill {
  background: rgba(20, 20, 24, 0.72);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(243, 250, 123, 0.4);
  color: var(--accent-yellow);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.art-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-yellow);
}

.player-bottom-stack {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.glass-info-card {
  background: rgba(78, 78, 84, 0.42);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  padding: 18px 18px 14px;
}

.player-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.player-track-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}
.player-artist-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 2px;
}
.player-price-badge {
  background: var(--accent-yellow);
  color: var(--ink-dark);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* Interactive Waveform (Screen 2 exact Dribbble vibe) */
.waveform-container {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5px;
  cursor: pointer;
  padding: 4px 0;
  user-select: none;
  touch-action: none;
}

.wave-bar {
  flex: 1;
  min-width: 2px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 99px;
  transition: background-color 0.08s linear, transform 0.15s ease;
}
.wave-bar.played {
  background: var(--accent-yellow);
}
.waveform-container:hover .wave-bar.played {
  background: var(--accent-yellow-hover);
}

.player-meta-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.72);
}
.time-mono {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #fff;
}

/* Frosted Glass Transport Controls */
.glass-controls-card {
  background: rgba(78, 78, 84, 0.42);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.transport-circle-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(20, 20, 24, 0.85);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s;
}
.transport-circle-btn:active { transform: scale(0.92); }

.transport-yellow-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--accent-yellow);
  color: var(--ink-dark);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(243, 250, 123, 0.35);
  transition: transform 0.18s ease, background 0.18s ease;
}
.transport-yellow-btn:hover { background: var(--accent-yellow-hover); transform: scale(1.04); }
.transport-yellow-btn:active { transform: scale(0.94); }

.player-format-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.stream-format-switch {
  display: flex;
  background: rgba(20, 20, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 3px;
}
.fmt-pill {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
}
.fmt-pill.active {
  background: #fff;
  color: var(--ink-dark);
}

.btn-get-beat-pill {
  flex: 1;
  background: rgba(243, 250, 123, 0.16);
  border: 1px solid rgba(243, 250, 123, 0.45);
  color: var(--accent-yellow);
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  text-align: center;
}
.btn-get-beat-pill:hover {
  background: var(--accent-yellow);
  color: var(--ink-dark);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE MINI PLAYER & FLOATING GLASS BOTTOM DOCK
   ═══════════════════════════════════════════════════════════════════════════ */
.mobile-mini-player {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 84px;
  background: rgba(26, 26, 31, 0.88);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}
.mobile-mini-player.hidden { display: none; }

.mini-art {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}
.mini-info { flex: 1; min-width: 0; }
.mini-title { font-size: 13px; font-weight: 700; color: #fff; }
.mini-sub { font-size: 11px; color: var(--accent-yellow); }
.mini-dl-btn, .mini-play-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
}
.mini-dl-btn { background: rgba(255,255,255,0.1); color: #fff; }
.mini-play-btn { background: var(--accent-yellow); color: var(--ink-dark); font-weight: 900; }

.mobile-bottom-dock {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 16px;
  height: 62px;
  background: rgba(34, 34, 40, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 18px;
  z-index: 2000;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.dock-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.dock-btn.active {
  background: var(--accent-yellow);
  color: var(--ink-dark);
  box-shadow: 0 4px 14px rgba(243, 250, 123, 0.35);
}
.dock-btn-play.playing {
  background: #ffffff;
  color: var(--ink-dark);
}

/* ═══════════════════════════════════════════════════════════════════════════
   MODALS (DOWNLOAD WAV / MP3 — R$ 0,00)
   ═══════════════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 4000;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.modal-overlay.open { display: flex; }

.modal-sheet {
  width: 100%;
  max-width: 480px;
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px 28px 0 0;
  padding: 22px 20px 28px;
  animation: slideUpSheet 0.25s ease;
}
@keyframes slideUpSheet {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.modal-beat-summary {
  display: flex;
  align-items: center;
  gap: 12px;
}
.modal-beat-thumb {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
}
.modal-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-yellow);
  display: block;
}
.modal-beat-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}
.modal-beat-specs {
  font-size: 12px;
  color: var(--text-secondary);
}
.modal-x-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  cursor: pointer;
}

.modal-price-banner {
  margin-top: 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.modal-price-zero {
  font-family: var(--font-display);
  font-size: 20px;
  color: #34d399;
}

.modal-helper-txt {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin: 14px 0 10px;
}

.version-options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.version-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: #fff;
  transition: all 0.2s;
}
.version-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}
.version-card-wav {
  border-color: rgba(243, 250, 123, 0.32);
  background: rgba(243, 250, 123, 0.06);
}
.ver-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}
.ver-badge-yellow {
  background: var(--accent-yellow);
  color: var(--ink-dark);
}
.ver-info { flex: 1; }
.ver-info strong { display: block; font-size: 14px; }
.ver-info span { font-size: 11.5px; color: var(--text-secondary); }
.ver-price-cta { text-align: right; }
.ver-price { display: block; font-size: 12px; font-weight: 800; color: #34d399; margin-bottom: 3px; }
.ver-dl-pill {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.ver-dl-pill-yellow {
  background: var(--accent-yellow);
  color: var(--ink-dark);
}

.modal-art-preview-strip {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-art-label {
  font-size: 12px;
  color: var(--text-secondary);
}
.modal-art-thumbs {
  display: flex;
  gap: 8px;
}
.modal-art-thumbs img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
}
.modal-art-thumbs img:hover {
  border-color: var(--accent-yellow);
}

/* ═══════════════════════════════════════════════════════════════════════════
   DESKTOP RESPONSIVE ADAPTATION (>= 960px)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (min-width: 960px) {
  .app-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 390px;
    max-width: 1480px;
    margin: 0 auto;
    gap: 22px;
    padding: 20px 24px;
    align-items: start;
  }

  .desktop-sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: sticky;
    top: 20px;
    height: calc(100dvh - 40px);
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 28px;
    padding: 22px 16px;
  }

  .sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .brand-badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: linear-gradient(145deg, #1b1b21, #0e0e11);
    border: 1px solid rgba(245, 196, 81, 0.35);
    color: var(--ink-dark);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 5px;
    box-shadow: 0 4px 14px rgba(245, 196, 81, 0.14);
  }
  .brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }
  .brand-name { font-family: var(--font-display); font-weight: 800; font-size: 16px; }
  .brand-sub { font-size: 12px; color: var(--text-secondary); }

  .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .side-nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.18s;
  }
  .side-nav-btn:hover { background: rgba(255,255,255,0.05); color: #fff; }
  .side-nav-btn.active {
    background: var(--accent-yellow);
    color: var(--ink-dark);
    font-weight: 700;
  }

  .sidebar-artist-card {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 16px;
  }
  .artist-pill-top { font-size: 10px; font-weight: 800; color: var(--accent-yellow); letter-spacing: 1px; }
  .artist-name-lg { font-family: var(--font-display); font-size: 22px; font-weight: 800; margin: 2px 0 6px; }
  .artist-bio { font-size: 12px; color: var(--text-secondary); line-height: 1.45; margin-bottom: 12px; }
  .artist-price-chip {
    display: inline-block;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 99px;
  }

  .main-stage {
    padding-bottom: 30px;
    background: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 30px;
    overflow: hidden;
  }

  .discover-yellow-hero {
    border-radius: 30px 30px 34px 34px;
    padding: 26px 24px 28px;
  }

  .featured-beat-card {
    min-width: 245px;
    height: 280px;
  }

  .collection-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* On desktop, show BOTH Discover and Collection nicely or toggle smoothly, and ALWAYS dock Screen 2 Player on the right! */
  .player-panel {
    position: sticky;
    top: 20px;
    inset: auto;
    height: calc(100dvh - 40px);
    max-height: 760px;
    transform: none !important;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  }
  .player-back-btn {
    visibility: hidden;
    pointer-events: none;
  }

  .mobile-bottom-dock,
  .mobile-mini-player {
    display: none !important;
  }

  .modal-overlay {
    align-items: center;
  }
  .modal-sheet {
    border-radius: 26px;
  }
}

@media (min-width: 1280px) {
  .collection-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PIX CHECKOUT MODAL STYLES (R$ 50,00 • CPF PIX)
   ═══════════════════════════════════════════════════════════════════════════ */
.pill-price-paid,
.col-price-yellow {
  background: rgba(243, 250, 123, 0.16);
  color: var(--accent-yellow);
  border-radius: 6px;
}

.col-price-yellow {
  padding: 2px 7px;
}

.modal-price-paid {
  background: rgba(243, 250, 123, 0.08);
  border: 1px solid rgba(243, 250, 123, 0.35);
}

.modal-price-yellow {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-yellow);
}

.included-formats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.inc-fmt-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-secondary);
}

.inc-fmt-wav {
  border-color: rgba(243, 250, 123, 0.25);
  background: rgba(243, 250, 123, 0.04);
}

.inc-badge {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 800;
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 6px;
}

.inc-badge-y {
  background: var(--accent-yellow);
  color: var(--ink-dark);
}

.premium-license-chip {
  margin-top: 10px;
  background: linear-gradient(135deg, rgba(245, 196, 81, 0.12), rgba(243, 250, 123, 0.06));
  border: 1px solid rgba(245, 196, 81, 0.38);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lic-crown {
  font-size: 18px;
  flex-shrink: 0;
}

.premium-license-chip strong {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: #f7cf6a;
  margin-bottom: 1px;
}

.premium-license-chip span {
  display: block;
  font-size: 11px;
  color: #d4d4d8;
  line-height: 1.38;
}

.pix-checkout-box {
  margin-top: 12px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 12px 14px;
}

.pix-row-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  margin-bottom: 8px;
}

.pix-lbl { color: var(--accent-yellow); font-weight: 800; letter-spacing: 0.4px; }
.pix-holder { color: #d4d4d8; font-weight: 600; }

.pix-key-copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pix-key-num {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.8px;
  color: #fff;
  user-select: all;
}

.btn-copy-pix-yellow {
  background: var(--accent-yellow);
  color: var(--ink-dark);
  border: none;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-copy-pix-yellow:hover { background: var(--accent-yellow-hover); transform: scale(1.03); }

.pix-steps-mini {
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}
.pix-steps-mini strong { color: #fff; }

.btn-wpp-pix-confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 8px 22px rgba(34, 197, 94, 0.3);
  transition: transform 0.18s ease;
}
.btn-wpp-pix-confirm:hover { transform: translateY(-1px); }

