/* DREAMWAVE FM — Views Styles */

/* ===== VIEW CONTAINERS ===== */
.view {
  display: none;
  animation: fadeIn 0.3s ease;
}

.view.active {
  display: block;
}

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

/* ===== HOME VIEW ===== */
/* Home grid — deprecated, use .carousel-scroll + .track-row-compact instead */
.home-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  margin-bottom: 24px;
}

/* ===== HOME SCROLL ROWS — Spotify-style compact horizontal lists ===== */
.carousel-row {
  margin-bottom: 24px;
}

.carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.carousel-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 10px;
  color: var(--neon-pink);
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(255, 113, 206, 0.5);
}

.carousel-see-all {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: color 0.2s;
  font-family: 'VT323', monospace;
  letter-spacing: 1px;
}
.carousel-see-all:hover { color: var(--neon-blue); }

/* Compact horizontal scroll — THE KEY STYLE that replaces blocky grids */
.carousel-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(185, 103, 255, 0.3) transparent;
  -webkit-overflow-scrolling: touch;
}
.carousel-scroll::-webkit-scrollbar { height: 3px; }
.carousel-scroll::-webkit-scrollbar-track { background: transparent; }
.carousel-scroll::-webkit-scrollbar-thumb {
  background: rgba(185, 103, 255, 0.3);
  border-radius: 2px;
}

/* Compact track row — NOT a big album block — small image + text beside it */
.track-row-compact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(13, 2, 33, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 220px;
  max-width: 220px;
  flex-shrink: 0;
  box-sizing: border-box;
}
.track-row-compact:hover {
  background: rgba(185, 103, 255, 0.1);
  border-color: rgba(185, 103, 255, 0.3);
  transform: translateY(-1px);
}
.track-row-compact.playing {
  border-color: rgba(1, 205, 254, 0.4);
  background: rgba(1, 205, 254, 0.05);
}

.track-row-compact .compact-cover {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.track-row-compact .compact-info {
  flex: 1;
  min-width: 0;
}
.track-row-compact .compact-title {
  font-family: 'VT323', monospace;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-row-compact:hover .compact-title { color: #fff; }
.track-row-compact.playing .compact-title {
  color: var(--neon-blue);
  text-shadow: 0 0 8px rgba(1, 205, 254, 0.4);
}
.track-row-compact .compact-artist {
  font-family: 'VT323', monospace;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-row-compact .compact-play {
  font-size: 14px;
  color: var(--neon-green);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s;
}
.track-row-compact:hover .compact-play { opacity: 1; }

/* Minimal carousel-item for special rows (not album grids) */
.carousel-item {
  min-width: 160px;
  max-width: 160px;
  flex-shrink: 0;
}
.carousel-item-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.carousel-item-title {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.carousel-item-subtitle {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== SEARCH VIEW ===== */
.search-results {
  padding: 10px 0;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 4px;
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.search-result-item.playing {
  background: rgba(255, 113, 206, 0.08);
  border-left: 3px solid var(--neon-pink);
}

.search-result-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

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

.search-result-name {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-item:hover .search-result-name {
  color: rgba(255, 255, 255, 1);
}

.search-result-item.playing .search-result-name {
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 113, 206, 0.5);
}

.search-result-artist {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-meta {
  font-size: 11px;
  color: rgba(185, 103, 255, 0.5);
  margin-top: 2px;
}

.search-no-results {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

/* ===== LIBRARY VIEW ===== */
.library-section {
  margin-bottom: 24px;
}

.library-section-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 10px;
  color: var(--neon-purple);
  letter-spacing: 2px;
  margin-bottom: 12px;
  text-shadow: 0 0 10px rgba(185, 103, 255, 0.5);
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.library-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.library-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.library-item-icon {
  width: 100%;
  aspect-ratio: 1;
  background: rgba(185, 103, 255, 0.1);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.library-item-title {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.library-item-subtitle {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== PLAYLIST VIEW ===== */
.playlist-header {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
  padding: 20px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.playlist-cover {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.playlist-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.playlist-info-type {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.playlist-info-title {
  font-family: 'Press Start 2P', cursive;
  font-size: 18px;
  color: var(--neon-pink);
  text-shadow: 0 0 15px rgba(255, 113, 206, 0.5);
  margin-bottom: 8px;
}

.playlist-info-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
}

.playlist-info-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
}

.playlist-tracks {
  margin-top: 16px;
}

/* ===== ARTIST VIEW ===== */
.artist-header {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.artist-avatar {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--neon-purple);
  box-shadow: 0 0 30px rgba(185, 103, 255, 0.4);
  flex-shrink: 0;
}

.artist-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.artist-info-type {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.artist-info-name {
  font-family: 'Press Start 2P', cursive;
  font-size: 24px;
  color: var(--neon-blue);
  text-shadow: 0 0 20px rgba(1, 205, 254, 0.5);
  margin-bottom: 16px;
}

.artist-info-stats {
  display: flex;
  gap: 24px;
}

.artist-stat {
  text-align: center;
}

.artist-stat-val {
  font-size: 20px;
  color: var(--neon-pink);
}

.artist-stat-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
}

/* ===== GENRE TAGS ===== */
.genre-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0;
}

.genre-tile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  font-size: 12px;
}

.genre-tile:hover {
  background: rgba(185, 103, 255, 0.1);
  border-color: rgba(185, 103, 255, 0.3);
  color: rgba(185, 103, 255, 0.85);
  transform: translateY(-1px);
}

.genre-tile span {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

.genre-tile-icon {
  font-size: 12px;
  margin-bottom: 0;
}

.genre-tile-name {
  font-size: inherit;
  color: inherit;
  letter-spacing: 0.5px;
}

/* ===== TAGS ===== */
.tag {
  display: inline-block;
  background: rgba(1, 205, 254, 0.1);
  border: 1px solid rgba(1, 205, 254, 0.3);
  color: var(--neon-blue);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 1px;
  margin: 2px;
}

.tag:hover {
  background: rgba(1, 205, 254, 0.2);
}

/* ===== EMPTY STATES ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.empty-state-title {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.empty-state-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}

/* ===== LOADING STATES ===== */
.skeleton {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.04) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
}

.skeleton-title {
  height: 20px;
  width: 60%;
  margin-bottom: 12px;
}

.skeleton-thumb {
  width: 48px;
  height: 48px;
  margin-right: 12px;
  flex-shrink: 0;
}

/* ===== SIDEBAR NAV ===== */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 8px;
  background: rgba(0,0,20,0.4);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.sidebar-nav-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-family: 'Press Start 2P', cursive;
  font-size: 8px;
  letter-spacing: 1px;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.sidebar-nav-btn:hover {
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.06);
}

.sidebar-nav-btn.active {
  color: var(--neon-pink);
  background: rgba(185,103,255,0.12);
  box-shadow: inset 2px 0 0 var(--neon-pink);
}

/* ===== LIBRARY ARTISTS / ALBUMS GRID ===== */
.library-artists-grid,
.library-albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.library-artist-card,
.library-album-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
}

.library-artist-card:hover,
.library-album-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.lac-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Press Start 2P', cursive;
  font-size: 20px;
  color: #fff;
  margin: 0 auto 10px;
}

.lac-cover {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  margin: 0 auto 10px;
}

.lac-name {
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lac-count {
  font-size: 9px;
  color: rgba(255,255,255,0.35);
}

/* ===== VAPOR BOOST 2026 ===== */
.sidebar-nav {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(185,103,255,0.05));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 16px 34px rgba(0,0,0,0.22);
}

.sidebar-nav-btn {
  border-radius: 12px;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.sidebar-nav-btn:hover {
  transform: translateX(3px);
  box-shadow: 0 0 18px rgba(255,113,206,0.12);
}

.sidebar-nav-btn.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(255,113,206,0.22), rgba(1,205,254,0.14));
  box-shadow:
    0 0 18px rgba(255,113,206,0.18),
    0 0 28px rgba(1,205,254,0.08),
    inset 2px 0 0 rgba(255,255,255,0.35);
  text-shadow: 0 0 10px rgba(255,255,255,0.15);
}

.playlist-header,
.artist-header,
.library-artist-card,
.library-album-card {
  box-shadow:
    0 18px 38px rgba(0,0,0,0.24),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

