* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, sans-serif;
}

body {
  background: #c7a3a3;
  color: #fff;
}

.container {
  max-width: 900px;
  width: 92%;
  margin: 40px auto;
  padding: 60px 24px;
  text-align: center;
}

.avatar {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.name {
  font-size: 36px;
  margin-top: 28px;
  letter-spacing: 0.2px;
}

.role {
  opacity: .85;
  margin-bottom: 28px;
}


.socials {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-bottom: 36px;
}

/* Dark mode toggle (iPhone style) placed in flow under socials */
#darkToggle {
  display: block;
  margin: 8px auto 0;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}

.iphone-toggle {
  width: 54px;
  height: 25px;
  background: #cfcfcf;
  border-radius: 13px;
  display: inline-block;
  position: relative;
  transition: background .18s ease;
}
.iphone-toggle .knob {
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 2px;
  transform: translateY(-50%);
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
  transition: left .18s ease, transform .18s ease;
}

#darkToggle.on .iphone-toggle { background: #4cd964; }
#darkToggle.on .iphone-toggle .knob { left: calc(100% - 2px - 22px); }

/* Dark mode styles */
body.dark {
  background: #0b0f14;
  color: #e6eef8;
}

body.dark .container { }
body.dark .music-box { background: transparent; }
body.dark #progressBar { background: rgba(255,255,255,0.08); }
body.dark #progress { background: linear-gradient(90deg,#4b5cff,#8b6bff); }

.socials img {
  width: 48px;
}

.music-box {
  margin-top: 36px;
  width: 100%;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding: 8px 16px;
  background: transparent;
  border-radius: 12px;
}

#playBtn {
  font-size: 22px;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.title {
  font-size: 22px;
  margin-top: 12px;
}

.author {
  opacity: .8;
  margin-bottom: 14px;
}

#progressBar {
  height: 8px;
  background: rgba(255,255,255,0.18);
  cursor: pointer;
  width: 100%;
  margin: 12px 0;
  border-radius: 999px;
}

#progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg,#ff5f8f,#ff8fb0);
  border-radius: 999px;
}

.time {
  font-size: 15px;
  margin-top: 10px;
}

/* Responsive tweaks */
@media (max-width: 700px) {
  .container { padding: 36px 16px; }
  .avatar { width: 160px; height: 160px; }
  .name { font-size: 28px; }
  .music-box { max-width: 100%; padding: 8px 12px; }
}
