* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #000;
  color: #eee;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.bg-image-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: black;
  z-index: -2;
  overflow: hidden;
}

#bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blur-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: pointer;
  color: #fff;
  font-size: 2rem;
  background: rgba(0,0,0,0.4);
}

.blurred {
  filter: blur(10px);
  transition: filter 0.3s;
}

#blur-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100vh;
  width: 100%;
}

.main-content {
  flex: 1;
  background: #2a2a2a;
}

.sidebar {
  width: 340px;
  background: rgba(35, 35, 45, 0.4);
  border: 1px solid rgba(90, 90, 110, 0.28);
  border-radius: 20px;
  padding: 28px 24px;
  height: 88vh;
  margin: auto 30px auto auto;
  overflow-y: auto;
  position: sticky;
  top: 6vh;
  z-index: 10;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.player {
  text-align: center;
  margin-bottom: 35px;
}

.cover {
  width: 200px;
  height: 200px;
  margin: 0 auto 18px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

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

.song-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.song-artist {
  font-size: 0.95rem;
  opacity: 0.75;
  margin-bottom: 18px;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 12px;
}

.btn {
  background: none;
  border: none;
  color: #ddd;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.18s, color 0.2s;
}

.btn:hover {
  transform: scale(1.15);
  color: #ffffff;
}

.progress-container {
  height: 6px;
  background: rgba(100, 100, 120, 0.4);
  border-radius: 6px;
  margin: 18px 0;
  cursor: pointer;
}

.progress {
  height: 100%;
  width: 0%;
  background: #aaaaaa;
  border-radius: 6px;
  transition: width 0.1s linear;
}

.progress-container:hover .progress {
  background: #cccccc;
}

.time {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 30px;
}

.playlist {
  list-style: none;
}

.playlist li {
  display: flex;
  align-items: center;
  padding: 14px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.25s;
  background: rgba(60, 60, 80, 0.2);
}

.playlist li:hover,
.playlist li.playing {
  background: rgba(100, 100, 120, 0.35);
  transform: translateY(-1px);
}

.playlist li img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  margin-right: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.playlist-info {
  flex: 1;
  overflow: hidden;
}

.playlist-title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playlist-artist {
  font-size: 0.85rem;
  opacity: 0.75;
}

.playlist li.playing .playlist-title {
  color: #ffffff;
}

@media (max-width: 768px) {
  body {
    overflow: auto;
    background: #000;
    color: red;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
  }
  body > * {
    display: none !important;
  }
  body::before {
    content: "rotate your screen to view";
    font-size: 2rem;
    text-align: center;
    color: red;
    font-family: sans-serif;
  }
}