* {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

.container {
  width: 100%;
  height: 100vh;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.music-player {
  background: #ffe0e5;
  width: 400px;
  padding: 25px 35px;
  text-align: center;
  position: relative;
  border-radius: 16px;
}

nav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}

.circle {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #f53192;
  box-shadow: 0 5px 10px rgba(255,26,26,0.22);
  cursor: pointer;
}

.song-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 8px solid #fff;
  object-fit: cover;
  box-shadow: 0 10px 60px rgba(255,26,26,0.22);
}

.music-player h1 {
  font-size: 20px;
  font-weight: 400;
  color: #333;
  margin-top: 20px;
}

.music-player p {
  font-size: 14px;
  color: #333;
}

#progress {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #f53192;
  border-radius: 4px;
  cursor: pointer;
  margin: 40px 0;
}

#progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  background: #f53192;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 8px solid #fff;
  box-shadow: 0 5px 5px rgba(255,26,26,0.22);
}

.controls {
  display: flex;
  justify-content: center;
  align-items: center;
}

.controls div {
  width: 60px;
  height: 60px;
  margin: 20px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #f53192;
  box-shadow: 0 10px 20px rgba(255,26,26,0.22);
  cursor: pointer;
}

.controls div:nth-child(2) {
  transform: scale(1.5);
  background: #f53192;
  color: #fff;
}

/* ===== Floating Overlay (position: fixed) ===== */
.overlay {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 720px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  z-index: 2000;
  overflow: hidden; /* keeps rounded corners */
}

.hidden { display: none; }

/* Fixed tab bar inside overlay */
.overlay-tabs {
  position: sticky; /* stays at top while scrolling content */
  top: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  background: #ffe0e5;
  padding: 10px;
  border-bottom: 1px solid #f7c0d0;
  z-index: 1;
}

.tab {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: none;
  border-radius: 10px;
  background: #fff;
  color: #f53192;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.tab.active {
  background: #f53192;
  color: #fff;
}

.overlay-close {
  margin-left: auto;
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #c0226e;
}

/* Scrollable area */
.overlay-content {
  max-height: 70vh; /* panel height; content scrolls */
  overflow: auto;
  padding: 12px 14px 16px 14px;
}

/* Lists */
.list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.list li:hover,
.list li.active {
  background: #fef3f7;
}

/* Albums grid */
.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

/* Album card */
.album-card {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.album-cover {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.album-head {
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.album-title {
  font-weight: 600;
  color: #c0226e;
  font-size: 14px;
}

.album-toggle {
  border: none;
  background: #f7d2e0;
  color: #b31566;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}

.album-tracks {
  padding: 4px 0 8px 0;
}

.album-tracks li {
  padding: 8px 10px;
  font-size: 14px;
  border-top: 1px solid #f0f0f0;
  cursor: pointer;
}

.album-tracks li:hover {
  background: #fef3f7;
}

#albums
{
  border-radius:50%;
}

.album-cover {
  width: 120px;      
  height: 120px;
  border-radius: 50%;  
  object-fit: cover;   
}
