* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Circular', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: #000;
  color: #fff;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.top-bar {
  height: 64px;
  background: #000;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  border-bottom: 1px solid #282828;
}
.nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #000;
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.7;
}
.nav-btn:hover { opacity: 1; }
.search-bar {
  flex: 1;
  max-width: 400px;
  margin: 0 auto;
  position: relative;
}
.search-bar input {
  width: 100%;
  background: #242424;
  border: none;
  border-radius: 500px;
  padding: 10px 16px 10px 40px;
  color: #fff;
  font-size: 14px;
}
.search-bar input::placeholder { color: #b3b3b3; }
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #b3b3b3;
}
.user-menu {
  display: flex;
  align-items: center;
  gap: 16px;
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #535353;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  cursor: pointer;
}
.main-container {
  flex: 1;
  display: flex;
  overflow: hidden;
}
.sidebar {
  width: 280px;
  background: #000;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-section {
  background: #121212;
  border-radius: 8px;
  padding: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.logo svg {
  width: 32px;
  height: 32px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px;
  color: #b3b3b3;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s;
}
.nav-item:hover, .nav-item.active {
  color: #fff;
}
.nav-item svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.library-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  color: #b3b3b3;
  font-weight: 600;
  font-size: 14px;
}
.playlist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.playlist-item:hover, .playlist-item.active {
  background: #1a1a1a;
}
.playlist-cover {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: linear-gradient(135deg, #1db954, #191414);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
}
.playlist-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.playlist-info p {
  font-size: 12px;
  color: #b3b3b3;
}
.main-content {
  flex: 1;
  background: linear-gradient(180deg, #1e3a2f 0%, #121212 300px);
  overflow-y: auto;
  border-radius: 8px;
  margin: 8px 8px 0 0;
  position: relative;
}
.playlist-header {
  padding: 24px 32px;
  display: flex;
  gap: 24px;
  align-items: flex-end;
}
.big-cover {
  width: 232px;
  height: 232px;
  border-radius: 4px;
  background: linear-gradient(135deg, #1db954, #0d5c2e);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.playlist-meta {
  flex: 1;
  padding-bottom: 8px;
}
.playlist-meta .type {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.playlist-meta h1 {
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -2px;
}
.playlist-meta .details {
  font-size: 14px;
  color: #b3b3b3;
}
.playlist-meta .details strong {
  color: #fff;
}
.action-bar {
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #1db954;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.1s, background 0.2s;
}
.play-btn:hover {
  transform: scale(1.06);
  background: #1ed760;
}
.play-btn svg {
  width: 24px;
  height: 24px;
  fill: #000;
  margin-left: 3px;
}
.track-list {
  padding: 0 32px 32px;
}
.track-header {
  display: grid;
  grid-template-columns: 40px 1fr 1fr 80px;
  gap: 16px;
  padding: 8px 16px;
  border-bottom: 1px solid #282828;
  color: #b3b3b3;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.track-row {
  display: grid;
  grid-template-columns: 40px 1fr 1fr 80px;
  gap: 16px;
  padding: 8px 16px;
  border-radius: 4px;
  align-items: center;
  cursor: pointer;
  transition: background 0.15s;
}
.track-row:hover {
  background: rgba(255,255,255,0.1);
}
.track-row .num {
  color: #b3b3b3;
  font-size: 16px;
  text-align: center;
}
.track-row .title {
  font-size: 16px;
  font-weight: 500;
}
.track-row .title span {
  display: block;
  font-size: 13px;
  color: #b3b3b3;
  margin-top: 2px;
}
.track-row .album {
  color: #b3b3b3;
  font-size: 14px;
}
.track-row .duration {
  color: #b3b3b3;
  font-size: 14px;
  text-align: right;
}
.now-playing-bar {
  height: 90px;
  background: #181818;
  border-top: 1px solid #282828;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
}
.now-playing-left {
  width: 30%;
  display: flex;
  align-items: center;
  gap: 12px;
}
.now-cover {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  background: linear-gradient(135deg, #1db954, #191414);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
}
.now-info h4 {
  font-size: 14px;
  font-weight: 500;
}
.now-info p {
  font-size: 12px;
  color: #b3b3b3;
}
.now-playing-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.player-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}
.control-btn {
  background: none;
  border: none;
  color: #b3b3b3;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.control-btn:hover { color: #fff; }
.control-btn.play {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: #000;
}
.control-btn.play:hover {
  transform: scale(1.06);
}
.progress-bar {
  width: 100%;
  max-width: 500px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #b3b3b3;
}
.progress-track {
  flex: 1;
  height: 4px;
  background: #4d4d4d;
  border-radius: 2px;
  position: relative;
  cursor: pointer;
}
.progress-fill {
  height: 100%;
  width: 35%;
  background: #fff;
  border-radius: 2px;
}
.now-playing-right {
  width: 30%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}
.volume-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 120px;
}
.volume-track {
  flex: 1;
  height: 4px;
  background: #4d4d4d;
  border-radius: 2px;
}
.volume-fill {
  height: 100%;
  width: 70%;
  background: #fff;
  border-radius: 2px;
}
#fx-layer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: #000;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
#fx-layer.active {
  display: block;
}
