/* ============================================
   SOUNDTRACK PAGE STYLES
   ============================================ */
.soundtrack-hero { text-align: center; }

/* PLAYER BAR */
.player-bar {
  position: sticky;
  top: 65px;
  z-index: 100;
  background: rgba(7,7,15,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}
.player-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.player-art {
  width: 48px; height: 48px;
  border-radius: 8px;
  background: var(--gradient-main);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-neon-pink);
}
.player-info { flex: 1; min-width: 0; }
.player-track { font-weight: 700; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-artist { font-size: 0.8rem; color: var(--color-text-muted); }
.player-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ctrl-btn {
  background: none; border: none; color: var(--color-text-muted);
  cursor: pointer; font-size: 1rem; transition: var(--transition);
  padding: 0.3rem;
}
.ctrl-btn:hover { color: var(--color-text); }
.ctrl-play {
  width: 44px; height: 44px;
  background: var(--gradient-main);
  border: none; border-radius: 50%;
  color: white; font-size: 1.1rem;
  cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-neon-pink);
}
.ctrl-play:hover { transform: scale(1.1); box-shadow: 0 0 30px rgba(255,45,120,0.7); }
.player-progress {
  flex: 1; max-width: 300px;
  display: flex; align-items: center; gap: 0.5rem;
}
.progress-track {
  flex: 1; height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  position: relative; cursor: pointer;
}
.progress-fill {
  height: 100%; background: var(--gradient-main);
  border-radius: 2px; width: 35%;
  transition: width 0.1s linear;
}
.progress-time { font-size: 0.7rem; color: var(--color-text-muted); white-space: nowrap; }
.player-vol {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 1rem; color: var(--color-text-muted);
}
.vol-slider {
  width: 80px; height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px; cursor: pointer;
  position: relative;
}
.vol-fill {
  height: 100%; background: var(--gradient-main);
  border-radius: 2px; width: 70%;
}

/* STATS BAR */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
}
.stat-cell {
  background: var(--color-bg-card);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}
.stat-cell:hover { background: var(--color-bg-card-hover); }
.stat-cell-num {
  font-size: 2rem; font-weight: 900; display: block; line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-cell-label { font-size: 0.75rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* FILTER BAR */
.filter-bar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.filter-search {
  flex: 1; min-width: 220px;
  padding: 0.65rem 1.25rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 50px;
  color: var(--color-text);
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none; transition: var(--transition);
}
.filter-search:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255,45,120,0.15);
}
.filter-search::placeholder { color: var(--color-text-muted); }
.filter-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-chip {
  padding: 0.4rem 1rem;
  border-radius: 50px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  color: var(--color-text-muted);
  font-size: 0.8rem; font-weight: 600;
  cursor: pointer; transition: var(--transition);
}
.filter-chip:hover, .filter-chip.active {
  background: rgba(255,45,120,0.15);
  border-color: rgba(255,45,120,0.5);
  color: var(--color-primary);
}

/* TRACKLIST */
.tracklist-header {
  display: grid;
  grid-template-columns: 36px 52px 1fr 140px 80px 80px 44px;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1.25rem;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0.5rem;
}
.track-row {
  display: grid;
  grid-template-columns: 36px 52px 1fr 140px 80px 80px 44px;
  align-items: center;
  gap: 1rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 0.75rem 1.25rem;
  transition: var(--transition);
  cursor: pointer;
  margin-bottom: 0.4rem;
}
.track-row:hover {
  background: var(--color-bg-card-hover);
  border-color: rgba(255,45,120,0.3);
  transform: translateX(4px);
}
.track-row.playing {
  border-color: rgba(255,45,120,0.5);
  background: rgba(255,45,120,0.05);
}
.track-row.playing .tr-num { display: none; }
.track-row.playing .tr-eq { display: flex; }
.tr-num { font-size: 0.8rem; color: var(--color-text-muted); text-align: right; }
.tr-eq {
  display: none;
  align-items: flex-end; gap: 2px; height: 20px;
}
.tr-eq-bar {
  width: 3px; background: var(--color-primary);
  border-radius: 1px;
  animation: eqBar 0.8s ease-in-out infinite;
}
.tr-eq-bar:nth-child(1) { animation-delay: 0s; height: 60%; }
.tr-eq-bar:nth-child(2) { animation-delay: 0.15s; height: 100%; }
.tr-eq-bar:nth-child(3) { animation-delay: 0.3s; height: 40%; }
.tr-eq-bar:nth-child(4) { animation-delay: 0.1s; height: 80%; }
@keyframes eqBar {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.3); }
}
.tr-art {
  width: 42px; height: 42px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
  position: relative;
}
.tr-art-overlay {
  position: absolute; inset: 0; border-radius: 8px;
  background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; opacity: 0; transition: opacity 0.2s;
}
.track-row:hover .tr-art-overlay { opacity: 1; }
.tr-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 2px; }
.tr-artist { font-size: 0.8rem; color: var(--color-text-muted); }
.tr-album { font-size: 0.8rem; color: var(--color-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-genre { }
.tr-dur { font-size: 0.85rem; color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.tr-fav {
  background: none; border: none; font-size: 1.1rem;
  cursor: pointer; opacity: 0.3; transition: var(--transition);
}
.tr-fav:hover, .tr-fav.active { opacity: 1; }

/* ARTIST SECTION */
.artists-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.artist-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}
.artist-card:hover {
  border-color: rgba(255,45,120,0.3);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.artist-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 900;
  border: 3px solid rgba(255,255,255,0.1);
}
.artist-name { font-size: 1rem; font-weight: 800; margin-bottom: 0.25rem; }
.artist-tracks { font-size: 0.78rem; color: var(--color-text-muted); margin-bottom: 0.75rem; }
.artist-tags { display: flex; gap: 0.4rem; justify-content: center; flex-wrap: wrap; }
.artist-tag {
  font-size: 0.65rem; font-weight: 700; padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

/* GENRE CHART */
.genre-chart {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.genre-row {
  display: grid;
  grid-template-columns: 120px 1fr 40px;
  align-items: center;
  gap: 1rem;
}
.genre-name { font-size: 0.85rem; font-weight: 600; color: var(--color-text-muted); }
.genre-bar-track {
  height: 8px; background: rgba(255,255,255,0.06);
  border-radius: 4px; overflow: hidden;
}
.genre-bar-fill {
  height: 100%; border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.genre-count { font-size: 0.8rem; color: var(--color-text-muted); font-weight: 700; }

/* PLAYLIST EXPORT */
.export-box {
  background: linear-gradient(135deg, rgba(255,45,120,0.06), rgba(139,47,201,0.06));
  border: 1px solid rgba(255,45,120,0.2);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.export-text h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.export-text p { font-size: 0.9rem; color: var(--color-text-muted); }
.export-btns { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.export-btn {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 50px; border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  color: var(--color-text); font-size: 0.85rem; font-weight: 700;
  cursor: pointer; transition: var(--transition);
}
.export-btn:hover {
  background: var(--color-bg-card-hover);
  border-color: rgba(255,45,120,0.4);
}

@media (max-width: 1024px) {
  .tracklist-header, .track-row {
    grid-template-columns: 36px 44px 1fr 80px 44px;
  }
  .tr-album, .tr-genre { display: none; }
  .artists-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .tracklist-header { display: none; }
  .track-row { grid-template-columns: 36px 44px 1fr 44px; }
  .tr-dur { display: none; }
  .player-vol, .player-progress { display: none; }
  .export-box { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .artists-grid { grid-template-columns: repeat(2, 1fr); }
}
