/* ==========================================================================
   SVRNITY STREAM — DESIGN SYSTEM MONOCHROME GLASSMORPHISM (NOIR & BLANC)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Core Monochrome Palette */
  --bg-black: #000000;
  --text-white: #ffffff;
  
  /* Nuances de gris (transparences sur fond noir) */
  --text-gray-light: rgba(255, 255, 255, 0.65);
  --text-gray-muted: rgba(255, 255, 255, 0.35);

  /* Glassmorphism Token Surfaces */
  --border-glass: rgba(255, 255, 255, 0.15);
  --border-glass-hover: rgba(255, 255, 255, 0.28);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);
  --bg-surface-subtle: rgba(255, 255, 255, 0.03);

  /* Overlays Noirs */
  --overlay-black-80: rgba(0, 0, 0, 0.8);
  --overlay-black-60: rgba(0, 0, 0, 0.6);

  /* Accents & VIP */
  --accent-gold: #FFD700;
  --accent-gold-bg: rgba(255, 215, 0, 0.15);

  /* Radius & Transitions */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 500px;
  
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.3, 0, 0, 1);
}

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

html, body {
  width: 100%;
  height: 100%;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-black);
  color: var(--text-white);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.4); }

/* APP CONTAINER */
.app-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  grid-template-rows: 1fr 90px;
  height: 100vh;
  width: 100vw;
  background-color: var(--bg-black);
}

/* ==========================================================================
   1. SIDEBAR & LOGO SECTION
   ========================================================================== */
.sidebar {
  grid-row: 1 / 2;
  grid-column: 1 / 2;
  background-color: var(--bg-black);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
  z-index: 10;
  border-right: 1px solid var(--border-glass);
}

/* LOGO SECTION requested */
.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.logo-section:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--text-white);
  color: #000000;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.25);
}

.logo-icon svg {
  width: 20px;
  height: 20px;
  fill: #000000;
}

.logo-title-group h1 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-title-group span {
  font-size: 0.65rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-white);
  padding: 2px 6px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-title {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-gray-muted);
  padding: 6px 12px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-gray-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link svg {
  width: 20px;
  height: 20px;
  color: var(--text-gray-light);
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--text-white);
  background-color: var(--bg-glass-hover);
}

.nav-link:hover svg { color: var(--text-white); }

.nav-link.active {
  color: var(--text-white);
  background-color: var(--bg-glass);
  border-left: 3px solid var(--text-white);
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.05);
}

.nav-link.active svg { color: var(--text-white); }

.nav-badge-count {
  margin-left: auto;
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--text-white);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.nav-link.active .nav-badge-count {
  background-color: var(--text-white);
  color: #000000;
}

.playlists-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.playlists-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.playlist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  color: var(--text-gray-light);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.playlist-item:hover {
  color: var(--text-white);
  background-color: var(--bg-glass-hover);
}

/* ==========================================================================
   2. TOP BAR & MAIN CONTENT
   ========================================================================== */
.main-content {
  grid-row: 1 / 2;
  grid-column: 2 / 3;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--bg-black);
}

.top-bar {
  height: 68px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  z-index: 5;
}

.search-box {
  position: relative;
  width: 380px;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--text-gray-muted);
}

.search-box input {
  width: 100%;
  padding: 10px 38px 10px 42px;
  background-color: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  color: var(--text-white);
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.search-box input:focus {
  background-color: var(--bg-glass-hover);
  border-color: var(--text-white);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.15);
}

.btn-clear-search {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-gray-muted);
  cursor: pointer;
  font-size: 0.9rem;
}

.user-profile-widget {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.guest-actions { display: flex; align-items: center; gap: 12px; }
.logged-actions { display: flex; align-items: center; gap: 14px; }

.user-avatar-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--bg-glass);
  border: 1px solid var(--border-glass);
  padding: 4px 14px 4px 4px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-avatar-menu:hover {
  background-color: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--text-white);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.user-name-label { font-size: 0.88rem; font-weight: 700; color: var(--text-white); }

.dropdown-menu {
  position: absolute;
  top: 52px;
  right: 0;
  width: 220px;
  background-color: var(--overlay-black-80);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 100;
}

.dropdown-header { padding: 8px 10px; }
.dd-name { font-weight: 700; font-size: 0.9rem; color: var(--text-white); }
.dd-email { font-size: 0.78rem; color: var(--text-gray-muted); }
.dropdown-divider { height: 1px; background-color: var(--border-glass); margin: 4px 0; }

.dropdown-item {
  background: none;
  border: none;
  color: var(--text-white);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.15s ease;
}

.dropdown-item:hover { background-color: var(--bg-glass-hover); }

.content-scrollable {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* ==========================================================================
   3. HERO EDITORIAL BANNER (MONOCHROME GLASSMORPHISM)
   ========================================================================== */
.hero-banner {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.75) 60%, rgba(0, 0, 0, 0.3) 100%),
              url('https://images.unsplash.com/photo-1470225620780-dba8ba36b745?w=1200&auto=format&fit=crop&q=80') center/cover no-repeat;
  border-radius: var(--radius-lg);
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border-glass);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 620px;
  z-index: 2;
}

.hero-tag {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-white);
  text-transform: uppercase;
  background: var(--bg-glass);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  align-self: flex-start;
  border: 1px solid var(--border-glass);
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
  color: var(--text-white);
}

.hero-subtitle {
  font-size: 0.92rem;
  color: var(--text-gray-light);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}

/* ==========================================================================
   4. SECTIONS, HEADERS & MONOCHROME FILTER TABS
   ========================================================================== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text-white);
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-gray-light);
}

.view-toggles {
  display: flex;
  align-items: center;
  gap: 8px;
}

.view-toggles .btn-icon {
  background-color: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xs);
  width: 36px;
  height: 36px;
  color: var(--text-gray-light);
}

.view-toggles .btn-icon:hover {
  background-color: var(--bg-glass-hover);
  color: var(--text-white);
}

.view-toggles .btn-icon.active {
  background-color: var(--text-white);
  border-color: var(--text-white);
  color: #000000;
}

/* MONOCHROME FILTER TABS */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 24px 0;
  flex-wrap: wrap;
}

.filter-tag {
  background-color: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-gray-light);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tag:hover {
  background-color: var(--bg-glass-hover);
  color: var(--text-white);
  border-color: var(--border-glass-hover);
}

.filter-tag.active {
  background-color: var(--text-white);
  color: #000000;
  border-color: var(--text-white);
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   5. ARTISTS GRID & CARDS (GLASSMORPHISM MONOCHROME)
   ========================================================================== */
.artists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.artist-card {
  background-color: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.3, 0, 0, 1);
  position: relative;
  text-align: center;
}

.artist-card:hover {
  background-color: var(--bg-glass-hover);
  transform: translateY(-6px);
  border-color: var(--border-glass-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.artist-avatar {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-full);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  border: 2px solid var(--border-glass);
  flex-shrink: 0;
}

.artist-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.artist-card:hover .artist-avatar-img {
  transform: scale(1.08);
}

.artist-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.artist-card-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist-card-role {
  font-size: 0.8rem;
  color: var(--text-gray-light);
  font-weight: 700;
}

.artist-card-listeners {
  font-size: 0.72rem;
  color: var(--text-gray-muted);
  margin-top: 2px;
}

.btn-artist-play {
  position: absolute;
  bottom: 74px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background-color: var(--text-white);
  color: #000000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.2s ease;
  cursor: pointer;
}

.artist-card:hover .btn-artist-play {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   6. ARTIST DETAIL PAGE VIEW
   ========================================================================== */
.artist-detail-section {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.btn-back-home {
  align-self: flex-start;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-white);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-back-home:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
}

.artist-header-banner {
  border-radius: var(--radius-lg);
  padding: 44px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.artist-header-overlay {
  display: flex;
  align-items: center;
  gap: 36px;
  z-index: 2;
  position: relative;
}

.artist-avatar-large {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-full);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8);
  flex-shrink: 0;
  border: 3px solid var(--border-glass);
  overflow: hidden;
}

.artist-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artist-header-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-white);
}

.artist-page-name {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1px;
}

.artist-page-listeners {
  font-size: 0.9rem;
  color: var(--text-gray-light);
}

.artist-page-bio {
  font-size: 0.88rem;
  color: var(--text-gray-muted);
  max-width: 600px;
}

.artist-page-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

/* ==========================================================================
   7. TRACK CARDS & LISTS (MONOCHROME GLASS)
   ========================================================================== */
.tracks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 20px;
}

.track-card {
  background-color: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.3, 0, 0, 1);
  position: relative;
}

.track-card:hover {
  background-color: var(--bg-glass-hover);
  transform: translateY(-4px);
  border-color: var(--border-glass-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.track-card.playing {
  border-color: var(--text-white);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.08);
}

.card-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.track-card:hover .card-cover img {
  transform: scale(1.06);
}

.btn-card-play {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--text-white);
  color: #000000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.3);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.2s ease;
  cursor: pointer;
}

.track-card:hover .btn-card-play {
  opacity: 1;
  transform: translateY(0);
}

.card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-artist {
  font-size: 0.78rem;
  color: var(--text-gray-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.track-duration-chip {
  font-size: 0.75rem;
  color: var(--text-gray-muted);
}

.track-plays-chip {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-gray-light);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-glass);
  padding: 2px 7px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  letter-spacing: -0.01em;
}

/* TRACKS TABLE LIST VIEW */
.tracks-list-table {
  background-color: var(--bg-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.tracks-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.tracks-table th {
  padding: 14px 18px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-gray-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-glass);
}

.tracks-table td {
  padding: 12px 18px;
  font-size: 0.88rem;
  color: var(--text-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tracks-table tr:hover td {
  background-color: var(--bg-glass-hover);
  cursor: pointer;
}

.tracks-table tr.playing td {
  color: var(--text-white);
  font-weight: 800;
}

.table-cover-thumb {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xs);
  object-fit: cover;
}

/* ==========================================================================
   8. FIXED BOTTOM AUDIO PLAYER BAR (MONOCHROME GLASS)
   ========================================================================== */
.bottom-player {
  grid-row: 2 / 3;
  grid-column: 1 / 3;
  background-color: var(--overlay-black-80);
  backdrop-filter: blur(25px);
  border-top: 1px solid var(--border-glass);
  padding: 0 24px;
  display: grid;
  grid-template-columns: 300px 1fr 300px;
  align-items: center;
  gap: 16px;
  z-index: 50;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.8);
}

.player-track-info { display: flex; align-items: center; gap: 14px; min-width: 0; }

.track-thumb {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xs);
  background-color: var(--bg-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

.track-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.equalizer-bars {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.equalizer-bars span {
  width: 3px;
  height: 16px;
  background-color: var(--text-white);
  border-radius: 2px;
  animation: eq-anim 0.8s ease-in-out infinite alternate;
}

.equalizer-bars span:nth-child(1) { animation-delay: 0s; }
.equalizer-bars span:nth-child(2) { animation-delay: 0.2s; }
.equalizer-bars span:nth-child(3) { animation-delay: 0.4s; }

@keyframes eq-anim { 0% { height: 4px; } 100% { height: 18px; } }

.track-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.track-title { font-size: 0.88rem; font-weight: 700; color: var(--text-white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-artist { font-size: 0.75rem; color: var(--text-gray-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.player-controls-container { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.player-buttons { display: flex; align-items: center; gap: 16px; }

.btn-play-main {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background-color: var(--text-white);
  color: #000000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.25);
}

.btn-play-main:hover { transform: scale(1.08); }

.player-progress-bar { width: 100%; max-width: 520px; display: flex; align-items: center; gap: 10px; }
.time-label { font-size: 0.72rem; color: var(--text-gray-muted); font-weight: 500; min-width: 32px; }

.seek-bar { flex: 1; height: 4px; background-color: rgba(255, 255, 255, 0.15); border-radius: var(--radius-full); position: relative; cursor: pointer; }
.seek-fill { height: 100%; background-color: var(--text-white); border-radius: var(--radius-full); width: 0%; }

.seek-handle {
  position: absolute; top: 50%; left: 0%; width: 12px; height: 12px;
  background-color: var(--text-white); border-radius: var(--radius-full);
  transform: translate(-50%, -50%); opacity: 0; transition: opacity 0.15s ease;
}

.seek-bar:hover .seek-handle { opacity: 1; }

.player-right-tools { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.ad-counter-badge {
  background-color: var(--bg-glass); border: 1px solid var(--border-glass);
  padding: 6px 12px; border-radius: var(--radius-full); font-size: 0.75rem; color: var(--text-gray-light);
}
.ad-counter-badge strong { color: var(--text-white); }

.volume-control { display: flex; align-items: center; gap: 8px; width: 120px; }
.volume-slider { width: 100%; accent-color: var(--text-white); cursor: pointer; height: 4px; }

/* ==========================================================================
   9. BUTTONS & UI COMPONENTS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 26px; border-radius: var(--radius-full); font-family: inherit;
  font-size: 0.88rem; font-weight: 700; border: none; cursor: pointer; transition: all 0.2s ease;
}

.btn-primary { background-color: var(--text-white); color: #000000; box-shadow: 0 0 16px rgba(255, 255, 255, 0.25); }
.btn-primary:hover { background-color: #F1F5F9; transform: translateY(-2px); }

.btn-primary-sm {
  background-color: var(--text-white);
  color: #000000;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary-sm:hover {
  transform: scale(1.04);
  background-color: #F1F5F9;
}

.btn-ghost {
  background: transparent;
  color: var(--text-gray-light);
  font-size: 0.88rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  padding: 8px 16px;
  transition: all 0.15s ease;
}

.btn-ghost:hover {
  color: var(--text-white);
}

.btn-secondary { background-color: var(--bg-glass); border: 1px solid var(--border-glass); color: var(--text-white); }
.btn-secondary:hover { background-color: var(--bg-glass-hover); border-color: var(--border-glass-hover); transform: translateY(-2px); }

.btn-danger { background: rgba(255, 77, 77, 0.12); color: #FF4D4D; border: 1px solid rgba(255, 77, 77, 0.25); }

.btn-vip-gold { background-color: var(--accent-gold); color: #000000; box-shadow: 0 0 16px rgba(255, 215, 0, 0.3); }

.btn-vip-pill {
  background: var(--accent-gold-bg);
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: var(--accent-gold);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-vip-pill:hover {
  background: rgba(255, 215, 0, 0.25);
  transform: scale(1.03);
}

.btn-icon {
  background: none; border: none; color: var(--text-gray-light);
  width: 34px; height: 34px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.15s ease;
}
.btn-icon svg { width: 18px; height: 18px; }
.btn-icon:hover { color: var(--text-white); background-color: var(--bg-glass-hover); }
.btn-icon.active { color: var(--text-white); }

.suggestion-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-white);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.suggestion-tag:hover {
  background: var(--text-white);
  color: #000000;
  transform: translateY(-2px);
}

.search-empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  gap: 12px;
}

.search-empty-state .empty-icon {
  font-size: 2.5rem;
}

.search-empty-state h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-white);
}

.search-empty-state p {
  font-size: 0.88rem;
  color: var(--text-gray-light);
  max-width: 480px;
  line-height: 1.5;
}

.search-suggestions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.btn-block { width: 100%; }

/* ==========================================================================
   10. MODALS & FORMS (MONOCHROME GLASS)
   ========================================================================== */
.modal-overlay {
  position: fixed; inset: 0; background-color: var(--overlay-black-80);
  backdrop-filter: blur(16px); display: flex; align-items: center; justify-content: center;
  z-index: 1000; opacity: 1; transition: opacity 0.2s ease;
}

.modal-overlay.hidden { display: none !important; opacity: 0; pointer-events: none; }

.modal-card {
  background-color: rgba(15, 15, 15, 0.95);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-close {
  position: absolute; top: 16px; right: 16px; background: none; border: none;
  color: var(--text-gray-muted); font-size: 1.1rem; cursor: pointer; width: 32px; height: 32px;
  border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { color: var(--text-white); background-color: var(--bg-glass-hover); }

.modal-badge-icon {
  width: 56px; height: 56px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin: 0 auto;
}
.modal-badge-icon.warning { background: rgba(255, 170, 0, 0.15); color: #FFAA00; }
.modal-title { font-size: 1.35rem; font-weight: 800; text-align: center; color: var(--text-white); }
.modal-text { font-size: 0.9rem; color: var(--text-gray-light); text-align: center; line-height: 1.5; }
.modal-subtext { font-size: 0.85rem; color: var(--text-white); text-align: center; font-weight: 600; }
.modal-buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }

/* AD OVERLAY */
.ad-overlay { background-color: var(--overlay-black-80); }
.ad-card {
  background-color: rgba(15, 15, 15, 0.95); border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg); padding: 40px; width: 100%; max-width: 480px;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.ad-badge { background: var(--bg-glass); color: var(--text-gray-light); font-size: 0.72rem; font-weight: 700; padding: 4px 12px; border-radius: var(--radius-full); }
.ad-spinner { position: relative; width: 100px; height: 100px; }
.ad-spinner svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.circle-bg { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 6; }
.circle-progress { fill: none; stroke: var(--text-white); stroke-width: 6; stroke-dasharray: 283; stroke-dashoffset: 0; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.ad-seconds { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 800; color: var(--text-white); }
.ad-title { font-size: 1.35rem; font-weight: 800; color: var(--text-white); }
.ad-description { font-size: 0.88rem; color: var(--text-gray-light); line-height: 1.5; }
.ad-vip-promo { background: var(--accent-gold-bg); border: 1px solid rgba(255, 215, 0, 0.3); padding: 12px 18px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: space-between; width: 100%; font-size: 0.82rem; font-weight: 600; }
.ad-footer-note { font-size: 0.75rem; color: var(--text-gray-muted); }

/* AUTH TABS & FORM ELEMENTS */
.auth-tabs {
  display: flex;
  background-color: var(--bg-glass);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
}

.auth-tab {
  flex: 1;
  background: none;
  border: none;
  padding: 10px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-gray-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab.active {
  background-color: var(--text-white);
  color: #000000;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-gray-light);
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background-color: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--text-white);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
}

.auth-quick-accounts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background-color: var(--bg-glass);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
}

.quick-title { font-size: 0.75rem; color: var(--text-gray-muted); font-weight: 600; }
.quick-btns { display: flex; gap: 8px; }

/* ROLE SELECTOR CARDS IN REGISTER FORM */
.role-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.role-option { cursor: pointer; }
.role-option input { display: none; }

.role-box {
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background-color: var(--bg-glass);
  transition: all 0.2s ease;
}

.role-option input:checked + .role-box {
  border-color: var(--text-white);
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.15);
}

.role-option input:checked + .vip-border {
  border-color: var(--accent-gold);
  background-color: var(--accent-gold-bg);
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.25);
}

.role-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-white);
}

.role-desc {
  font-size: 0.75rem;
  color: var(--text-gray-light);
  line-height: 1.35;
}

.playlist-picker-list { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; }
.picker-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background-color: var(--bg-glass); border: 1px solid var(--border-glass); border-radius: var(--radius-xs); cursor: pointer; transition: all 0.15s ease; }
.picker-item:hover { background-color: var(--bg-glass-hover); border-color: var(--border-glass-hover); }

/* ADMIN PANEL STYLES */
.modal-card-xl {
  width: 100%;
  max-width: 1040px;
  padding: 32px;
  max-height: 88vh;
  overflow-y: auto;
}

.admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-glass);
}

.admin-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-badge-icon {
  font-size: 1.4rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-glass);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.admin-modal-header h2 {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-close-static {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: var(--text-gray-light);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.modal-close-static:hover {
  background: var(--text-white);
  color: #000000;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.kpi-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.kpi-card:hover {
  border-color: var(--border-glass-hover);
  background: var(--bg-glass-hover);
  transform: translateY(-2px);
}

.kpi-card-vip {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
}

.kpi-icon { font-size: 1.8rem; }
.kpi-val { font-size: 1.4rem; font-weight: 900; color: var(--text-white); line-height: 1.1; }
.kpi-lbl { font-size: 0.74rem; color: var(--text-gray-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }

.admin-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 20px;
}

.admin-tab {
  background: none;
  border: none;
  color: var(--text-gray-muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 18px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.admin-tab:hover { color: var(--text-white); }
.admin-tab.active { color: var(--text-white); border-bottom-color: var(--text-white); }

.admin-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.84rem;
}

.admin-table th {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-gray-light);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border-glass);
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-white);
}

.admin-table tbody tr:hover { background: rgba(255, 255, 255, 0.04); }

.role-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.role-badge-vip { background: #ffffff; color: #000000; }
.role-badge-free { background: rgba(255, 255, 255, 0.12); color: var(--text-gray-light); border: 1px solid var(--border-glass); }

.nav-badge-admin { margin-left: auto; font-size: 0.8rem; color: var(--text-white); }

.hidden { display: none !important; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .app-container { grid-template-columns: 200px 1fr; }
  .artists-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

@media (max-width: 768px) {
  .app-container { grid-template-columns: 1fr; grid-template-rows: 1fr 90px; }
  .sidebar { display: none; }
  .bottom-player { grid-template-columns: 1fr auto; padding: 0 16px; }
  .player-progress-bar, .player-right-tools { display: none; }
}
