* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body, html {
  width: 100%;
  height: 100%;
  background: #050509;
  color: #f5f5f5;
  overflow: hidden;
}

#app {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

header {
  padding: 16px;
}

main {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.hidden {
  display: none;
}

/* --- IMPORT --- */

#dropzone {
  border: 2px dashed #555;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: #aaa;
  cursor: pointer;
}

#dropzone.dragover {
  border-color: #b27bff;
  color: #b27bff;
}

#importProgress {
  width: 100%;
  background: #222;
  border-radius: 8px;
  height: 20px;
  margin-top: 15px;
  overflow: hidden;
  display: none;
}

#importBar {
  height: 100%;
  width: 0%;
  background: #b27bff;
  transition: width 0.2s;
}

#importLabel {
  margin-top: 8px;
  font-size: 14px;
  color: #b27bff;
  display: none;
}

/* --- ALBUM GRID --- */

#albumGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.album-card {
  background: #111;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  text-align: center;
}

.album-card:hover {
  transform: scale(1.05);
  background: #1b1b1b;
}

.album-cover {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  background: #222;
}

.album-title {
  margin-top: 8px;
  font-size: 14px;
  color: #ddd;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

/* --- FULL-SCREEN ALBUM VIEW --- */

#albumView {
  position: fixed;
  inset: 0;
  background: #050509;
  padding: 20px;
  overflow-y: auto;
  z-index: 999;
}

#backButton {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  margin-bottom: 15px;
  cursor: pointer;
}

#albumHeader {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  width: 100%;
  overflow: hidden;
}

#albumViewCover {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 8px;
}

#albumViewTitle {
  font-size: 20px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#albumViewTrackList li {
  padding: 10px;
  background: #111;
  border-radius: 6px;
  margin-bottom: 6px;
  cursor: pointer;
}

#albumViewTrackList li:hover {
  background: #1b1b1b;
}

/* --- PLAYER BAR --- */

#playerBar {
  background: #111;
  border-top: 1px solid #222;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
