/*1. FONT IMPORTS*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

/*2. ROOT TOKENS*/

:root {
  /*COLORS*/

  --bg-primary: #050505;
  --bg-secondary: #0b0b0b;
  --bg-tertiary: #111111;

  --surface-primary: #121212;
  --surface-secondary: #171717;
  --surface-hover: #1f1f1f;
  --surface-elevated: #202020;

  --text-primary: #ffffff;
  --text-secondary: #d1d1d1;
  --text-muted: #8f8f8f;
  --text-faint: #6d6d6d;

  --border-soft: rgba(255,255,255,0.06);
  --border-medium: rgba(255,255,255,0.12);

  --accent-primary: #ece7ff;
  --accent-soft: rgba(156, 110, 255, 0.18);
  --accent-hover: #ffffff;

  --overlay-dark: rgba(0,0,0,0.72);
  --glass-bg: rgba(255,255,255,0.03);
  --player-height: 65px;
  --bottom-nav-height: 60px;
  /* ---------- TYPOGRAPHY ---------- */

  --font-primary: 'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;

  --text-xs: 0.72rem;
  --text-sm: 0.82rem;
  --text-base: 0.95rem;
  --text-md: 1rem;
  --text-lg: 1.12rem;
  --text-xl: 1.35rem;
  --text-2xl: 1.8rem;
  --text-3xl: 2.4rem;
  --text-4xl: 3rem;

  /* ---------- SPACING ---------- */

  --space-1: 0.35rem;
  --space-2: 0.55rem;
  --space-3: 0.8rem;
  --space-4: 1rem;
  --space-5: 1.35rem;
  --space-6: 1.8rem;
  --space-7: 2.5rem;
  --space-8: 3.5rem;
  --space-9: 5rem;

  /* ---------- RADIUS ---------- */

  --radius-sm: 0.7rem;
  --radius-md: 1rem;
  --radius-lg: 1.4rem;
  --radius-xl: 2rem;
  --radius-pill: 999rem;

  /* ---------- TRANSITIONS ---------- */

  --transition-fast: 160ms ease;
  --transition-medium: 220ms ease;
  

  /* ---------- PLAYER HEIGHT ---------- */

  color-scheme: dark;
}

/* =========================================================
   3. RESET
   ========================================================= */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.hidden {
  display: none !important;
}

/* =========================================================
   4. APP BACKGROUND ATMOSPHERE
   ========================================================= */
body::before {
  display: none;
}

/* =========================================================
   5. APP SHELL
   ========================================================= */

.app-shell {
  padding-bottom:
    calc(
      var(--player-height) +
      var(--bottom-nav-height) +
      24px +
      env(safe-area-inset-bottom)
    );
}

.main-content {
  padding-bottom:
    calc(
      var(--player-height) +
      var(--bottom-nav-height) +
      env(safe-area-inset-bottom)
    );
}

body.creator-navbar-active .main-content {
  padding-bottom:
    calc(
      var(--player-height) +
      var(--bottom-nav-height) +
      40px +
      env(safe-area-inset-bottom)
    );
}

.content-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

/* =========================================================
   6. MOBILE TOPBAR
   ========================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1200;

  display: flex;
  align-items: center;
  justify-content: space-between;

  height: 64px;

  padding:
    env(safe-area-inset-top)
    var(--space-5)
    0;

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  background: rgba(0,0,0,.92);

  border-bottom: 1px solid var(--border-soft);
}
.logo {
  font-weight: 800;
  letter-spacing: -0.06em;
  font-size: 1.6rem;
}

.search-wrapper {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
/* =========================================================
   7. BUTTON SYSTEM
   ========================================================= */
.primary-btn,
.ghost-btn,
.secondary-btn {
  border-radius: var(--radius-pill);

  transition:
    transform 120ms ease,
    background 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease;
}

.primary-btn,
.secondary-btn {
  font-weight: 700;
}

.ghost-btn {
  font-weight: 600;
}

/* PRIMARY */

.primary-btn {
  background: #fff;
  color: #000;

  padding: 0.95rem 1.5rem;

  box-shadow:
    0 8px 30px rgba(255,255,255,0.08);
}

.primary-btn:hover {
  background: #f5f5f5;
  transform: translateY(-1px);
}

.primary-btn:active {
  transform: translateY(0);
}

/* GHOST */

.ghost-btn {
  background: transparent;

  border: 1px solid rgba(255,255,255,0.1);

  color: var(--text-secondary);

  padding: 0.95rem 1.5rem;
}

.ghost-btn:hover {
  background: rgba(255,255,255,0.04);

  border-color: rgba(255,255,255,0.16);
}

.ghost-btn:active {
  transform: scale(0.98);
}
/* =========================================================
   8. HERO SECTION
   ========================================================= */

.hero {
  position: relative;
  overflow: hidden;

  min-height: 50vh;

  display: flex;
  align-items: flex-start;
  align-items: center;
  padding-top: 10vh;
  padding-bottom: 4vh;

  padding: var(--space-6);
}
.hero-actions {
  margin-bottom: 0;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;

  background:
    radial-gradient(circle at top left, rgba(98, 62, 210, 0.18), transparent 40%),
    radial-gradient(circle at bottom right, rgba(130, 0, 60, 0.12), transparent 35%),
    linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.78));
}

.hero-content {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 620px;
}
.hero-subtitle {
  color: rgba(255,255,255,0.7);
  font-size: var(--text-sm);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  opacity: 0.85;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5rem);
  letter-spacing: 0.01em;
  line-height: 1.08;
  margin-bottom: var(--space-4);
}

.hero-description {
  max-width: 560px;
  color: #cfcfcf;
  line-height: 1.7;
  margin-bottom: var(--space-6);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* =========================================================
   9. SECTION SYSTEM
   ========================================================= */

section {
  margin-bottom: var(--space-8);
  background: transparent !important;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  background: transparent !important;
}

.section-title {
  font-size: 24px;
  margin-left: 15px;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: transparent !important;
}
.section-category {
  font-size: 24px;
  margin-left: 15px;
  font-weight: 700;
  letter-spacing: -0.04em;
  background: transparent;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: var(--text-sm);
  background: transparent !important;
}

.section-link {
  color: var(--text-muted);
  font-size: var(--text-sm);
  transition: color var(--transition-medium);
  background: transparent !important;
}

.section-link:hover {
  color: var(--text-primary);
  background: transparent !important;
}

/* =========================================================
   10. HORIZONTAL MUSIC ROWS
   ========================================================= */

.horizontal-scroll {
  display: flex;
  gap: var(--space-5);

  overflow-x: auto;
  overflow-y: hidden;

  padding-bottom: var(--space-2);
  scrollbar-width: none;
}

.horizontal-scroll::-webkit-scrollbar {
  display: none;
}

/* =========================================================
   11. SONG CARD SYSTEM
   ========================================================= */

.song-card {
  flex: 0 0 180px;
  position: relative;
  background: transparent;
  border: none;
  border-radius: 10px; 
  overflow: hidden;
}

.song-image-wrapper {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
}

.song-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px; /* IMPORTANT */
}

.song-card:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
  transform: translateY(-4px);
}

.song-card:hover .song-image-wrapper img {
  transform: scale(1.04);
}

.song-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.35), transparent 45%);
  pointer-events: none;
}

.play-overlay {
  display: none;
}

.song-card:hover .play-overlay {
  opacity: 0;
  transform: translateY(10px);
}

.play-overlay:hover {
  background: white;
}

.song-info {
  padding: var(--space-4);
}

.song-info h3 {
  font-size: var(--text-md);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: var(--space-2);
}

.song-info p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================================
   12. FEATURED LARGE CARD
   ========================================================= */

.featured-card {
  position: relative;
  min-height: 260px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: var(--space-7);
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.18)),
    radial-gradient(circle at top left, rgba(120,80,255,0.18), transparent 40%),
    #121212;
}

.featured-card-content {
  position: relative;
  z-index: 2;
}

.featured-label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.featured-title {
  font-size: clamp(2rem, 8vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-5);
}

/* =========================================================
   13. SEARCH INPUT
   ========================================================= */

#search-input {
  width: 100%;
  height: 52px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
  padding: 0 1.2rem;
  transition:
    background var(--transition-medium),
    border-color var(--transition-medium);
}

#search-input::placeholder {
  color: var(--text-faint);
}

#search-input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.06);
}

/* =========================================================
   14. AUTH MODALS
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;

  display: flex;
  align-items: flex-start;
  justify-content: center;

  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;

  padding: 20px;
  padding-top: 90px;
  padding-bottom: 40px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;

  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(14px);
}
body.modal-open {
    height: 100vh;
    overflow: hidden !important;
    position: fixed; 
    width: 100%;
}

.auth-card {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 420px;

  max-height: calc(100vh - 80px);
  overflow-y: auto;

  padding: var(--space-8) var(--space-6);

  border-radius: var(--radius-xl);

  background: #0b0b0b;

  border: 1px solid rgba(255,255,255,0.08);
}

.auth-card h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.auth-card p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-7);
}
.auth-card input,
.auth-card textarea,
.auth-card select {
  width: 100%;

  border-radius: var(--radius-md);

  border: 1px solid transparent;

  background: rgba(255,255,255,0.04);

  color: white;

  margin-bottom: var(--space-4);

  transition:
    background var(--transition-medium),
    border-color var(--transition-medium);
}

.auth-card input {
  height: 56px;
  padding: 0 1rem;
}

.auth-card textarea {
  min-height: 120px;
  padding: 1rem;
  resize: vertical;
}
.auth-card input[type="file"] {
  height: auto;
  padding: 14px;
  cursor: pointer;
}

.auth-card input:focus {
  outline: none;
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);

  margin-top: var(--space-6);
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;

  width: 42px;
  height: 42px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.04);

  color: white;
}

/* =========================================================
   15. CREATOR SECTION
   ========================================================= */

.creator-section {
  position: relative;

  border-radius: var(--radius-xl);

  overflow: hidden;

  padding: var(--space-8) var(--space-6);
background: transparent;
  border: none;
}

.upload-card {
  max-width: 720px;
  width: 100%;
}

.upload-card h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-6);
}

.upload-card input {
  width: 100%;

  height: 56px;

  margin-bottom: var(--space-5);

  border-radius: var(--radius-md);

  border: 1px solid transparent;

  background: rgba(255,255,255,0.04);

  padding: 0 1rem;

  color: white;
}
.upload-field {
  width: 100%;

  height: 56px;

  margin-bottom: var(--space-5);

  border-radius: var(--radius-md);

  background: rgba(255,255,255,0.04);

  padding: 0 1rem;

  display: flex;
  align-items: center;

  color: rgba(255,255,255,0.7);

  cursor: pointer;
}

.upload-card input[type="file"] {
  display: none;
}
/* =========================================================
   16. MUSIC PLAYER
   ========================================================= */
/* ================= MAIN CONTAINER ================= */
/* ================================================== */
/* FULL REPLACEMENT: MUSIC PLAYER                     */
/* ================================================== */

.music-player {
  position: fixed;

  left: 0;
  right: 0;

  bottom: var(--bottom-nav-height);

  z-index: 1400;

  background: #3b1111;
  backdrop-filter: blur(20px);

  border-top: 1px solid rgba(255,255,255,0.06);

  display: flex;
  flex-direction: column;

  padding:
    12px
    16px
    calc(14px + env(safe-area-inset-bottom));
}

/* ================= TOP ROW ================= */
.player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.player-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

#player-cover {
  width: 50px;
  height: 50px;
  border-radius: 4px; 
  object-fit: cover;
}

.player-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

#player-title {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin: 0 0 4px 0; 
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#player-artist {
  font-size: 14px;
  color: #ccc;
  margin: 0;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ================= CONTROLS (RIGHT SIDE) ================= */
.player-controls {
  display: flex;
  align-items: center;
  gap: 24px; 
}

.player-controls button {
  background: transparent;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
   -webkit-tap-highlight-color: transparent;
}

.player-controls button:focus,
.player-controls button:active {
  outline: none;
  box-shadow: none;
  background: transparent;
}

.play-btn {
  font-size: 26px; 
}

/* ================= PROGRESS (ABSOLUTE BOTTOM STRIP) ================= */
.player-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px; /* Your super thin line spec */
  width: 100%;
}

#progress {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  display: block;
  border-radius: 0;
  border: none;
  outline: none;

  /* REPLACED accent-color with dynamic gradient. 
     This allows the white "fill" to show even though the thumb is hidden.
  */
  background: linear-gradient(to right, 
    #ffffff 0%, 
    #ffffff var(--progress-percent, 0%), 
    rgba(255, 255, 255, 0.2) var(--progress-percent, 0%), 
    rgba(255, 255, 255, 0.2) 100%
  );
}

/* Hide the circle thumb entirely */
#progress::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 0;
  height: 0;
}

#progress::-moz-range-thumb {
  border: none;
  width: 0;
  height: 0;
}


/* =========================================================
   18. TOASTS
   ========================================================= */

#toast-container {
  position: fixed;
  top: calc(
    env(safe-area-inset-top) +
    64px +
    12px);
  left: 50%;

  transform: translateX(-50%);

  z-index: 9999;

  width: calc(100% - 2rem);
  max-width: 420px;
}

.toast {
  width: 100%;

  border-radius: var(--radius-lg);

  background: rgba(24,24,24,0.92);

  border: 1px solid rgba(255,255,255,0.06);

  backdrop-filter: blur(18px);

  padding: 1rem 1.2rem;

  color: white;

  margin-bottom: var(--space-3);

  animation: toastSlide 220ms ease;
}

@keyframes toastSlide {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   20. EMPTY STATES
   ========================================================= */

.empty-state {
  text-align: center;
  padding: var(--space-9) var(--space-5);
}

.empty-state h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.empty-state p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* =========================================================
   22. TABLET BREAKPOINT
   ========================================================= */

@media (min-width: 768px) {

  .main-content {
    padding-inline: var(--space-7);
  }

  .search-wrapper {
    display: flex;
    justify-content: center;
    flex: 1;

    padding-inline: var(--space-7);
  }

  .horizontal-scroll {
    gap: var(--space-6);
  }

  .song-card {
    flex-basis: 220px;
  }

  .music-player {
    padding-inline: var(--space-7);
  }
}

/* =========================================================
   24. HTML COMPATIBILITY FIXES
   ========================================================= */

.navbar-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.artist-grid {
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  overflow-y: hidden;
  margin-left: 15px;
  padding-bottom: 8px;

  scrollbar-width: none;
}

.artist-grid::-webkit-scrollbar {
  display: none;
}
.artist-card {
  flex: 0 0 180px;
}
.artist-card img {
  width: 100%;
  aspect-ratio: 1 / 1;

  object-fit: cover;
  display: block;

  border-radius: 12px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-4);
}

.category-card {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 120px;

  border-radius: var(--radius-lg);
background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.05);

  font-weight: 600;
  text-align: center;

  transition:
    background var(--transition-medium),
    transform var(--transition-medium),
    border-color var(--transition-medium);
}

.category-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
  transform: translateY(-3px);
}

.modal-content {
  width: 100%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.player-left > div {
  min-width: 0;
}

@media (min-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}/* =========================================================
   UPDATED: NAVBAR IMPROVEMENTS
   ========================================================= */

/* Make login low priority */
.nav-actions .ghost-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.4rem 0.6rem;
}

/* Remove strong CTA from navbar */
.nav-actions .primary-btn {
  display: none;
}

/* =========================================================
   HERO IMPROVEMENTS
   ========================================================= */

/* PRIMARY CTA (dominant) */
.hero-actions .primary-btn {
  min-width: 200px;
  min-height: 60px;
  font-weight: 700;
}

/* =========================================================
   BUTTON HIERARCHY FIX
   ========================================================= */
/* =========================================================
   BUTTON HIERARCHY
   ========================================================= */

/* Hero-specific emphasis */

.hero-actions .primary-btn {
  min-width: 200px;
  min-height: 60px;
}

.hero-actions .ghost-btn {
  min-height: 60px;
}


.icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  display: block;
}

/* =========================================================
   MOBILE OPTIMIZATION
   ========================================================= */

@media (max-width: 480px) {

  .music-player {
    padding: 10px 12px;
  }

  #player-cover {
    width: 48px;
    height: 48px;
  }

  .player-controls {
    gap: 14px;
  }

  .player-controls button {
    width: 34px;
    height: 34px;
  }
}
.songs-grid {
  display: flex;
  gap: var(--space-5);
  margin-left: 15px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: var(--space-2);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.artist-songs-layout {
  display: flex;
  flex-direction: column;

  gap: 16px;

  overflow: visible;
}
.songs-grid::-webkit-scrollbar {
  display: none;
}
/* =========================================================
   FIX: BOTTOM NAVBAR
   ========================================================= */

.bottom-navbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  z-index: 1100;

  height: var(--bottom-nav-height);

  display: flex;
  align-items: center;
  justify-content: space-around;

  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border-top: 1px solid rgba(255,255,255,0.06);

  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-navbar button {
  flex: 1;

  height: 100%;

  color: var(--text-muted);

  font-size: var(--text-sm);
  font-weight: 600;

  transition:
    color var(--transition-medium),
    background var(--transition-medium);
}

.bottom-navbar button:hover {
  color: white;
  background: rgba(255,255,255,0.03);
}

/* =========================================================
   FIX: PLAYER POSITIONING
   ========================================================= */

.music-player {
  border-top: 1px solid rgba(255,255,255,0.06);
}


.app-menu {
  position: fixed;

  left: 16px;
  right: 16px;

  bottom: calc(
    var(--bottom-nav-height) +
    var(--player-height) +
    16px +
    env(safe-area-inset-bottom)
  );

  z-index: 1500;

  display: flex;
  flex-direction: column;
  gap: 8px;

  padding: 14px;

  border-radius: 20px;

  background: rgba(15,15,15,0.96);

  border: 1px solid rgba(255,255,255,0.06);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.menu-item {
  width: 100%;

  min-height: 52px;

  border-radius: 14px;

  background: rgba(255,255,255,0.03);

  color: white;

  font-weight: 600;

  transition:
    background var(--transition-medium),
    opacity var(--transition-medium);
}

.menu-item:hover {
  background: rgba(255,255,255,0.06);
}
@media (max-width: 767px) {
  .music-player {
    bottom: var(--bottom-nav-height) !important;
    z-index: 1400;
  }
}
.artist-back-btn {
  margin-bottom: 20px;
}

.artist-profile-meta {
  position: relative;
  z-index: 3;
}
.artist-profile-name {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.artist-profile-instagram {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  text-decoration: none;

  font-weight: 600;
}

@media (max-width: 768px) {


  .artist-profile-name {
    font-size: 1.8rem;
  }

  #artist-profile-view {
    padding: 16px;
  }
}
html,
body,
#home-page,
#home-view,
#artist-profile-view,
#dashboard-page {
  background: #000;
}
/* ==========================================
   CLEANED ARTIST PROFILE
   ========================================== */

#artist-profile-view {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 0 140px 0; /* No top padding so image hits the top edge */
  position: relative;
  background: #000;
}

/* Back button sits on top of the image */
.artist-profile-back-btn {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8); /* Better shadow for visibility */
  color: #fff;
}

.artist-profile-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start; 
  text-align: left;
  margin-bottom: 48px;
  min-height: 70vh; /* High enough to show the artist's face */
  justify-content: flex-end;
  padding: 24px;
  overflow: hidden;
}

.artist-profile-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%; 
  z-index: 1;
  border-radius: 0; 
}

/* Dark gradient overlay so text is readable */
.artist-profile-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 30%, rgba(0,0,0,0.8) 100%);
  z-index: 2;
}

/* Meta info (Name, Bio) stays above the image */
.artist-profile-meta {
  position: relative;
  z-index: 3;
  width: 100%;
}

.artist-profile-name {
  font-size: clamp(2rem, 8vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

/* Titles for Song sections below the image */
.artist-profile-section-title {
  padding: 0;
  margin-bottom: 16px;
  font-size: 1.5rem;
  font-weight: 700;
  background: transparent;
}

/* --- SONG LIST (Popular Covers) --- */
.artist-song-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 12px;
}

.artist-song-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: background .2s ease;
}

.artist-song-row:hover {
  background: rgba(255,255,255,.08);
}

.artist-song-cover {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
}

.artist-song-title {
  font-weight: 600;
  font-size: 1rem;
}

.artist-song-artist {
  color: rgba(255,255,255,.6);
  font-size: .85rem;
}
/* ==========================================
   ARTIST ABOUT SECTION
   ========================================== */

.artist-about-section {
  font-size: 1.5rem;
  padding: 8px 24px 24px;
}
.artist-songs-section,
.artist-about-section {
  padding-left: 24px;
  padding-right: 24px;
}
.artist-about-bio {
  max-width: 650px;

  font-size: 0.95rem;
  font-weight: 400;

  line-height: 1.7;

  color: rgba(255,255,255,.72);

  margin-bottom: 24px;
}

.artist-about-instagram {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: white;
  opacity: .85;
  transition: opacity .2s ease;
}

.artist-about-instagram:hover {
  opacity: 1;
}