.profile::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(130deg, rgba(255,255,255,.2), rgba(255,255,255,.035) 45%, rgba(239,51,79,.28));
  content: "";
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.profile {
  max-width: 470px;
  border-color: transparent;
  background: linear-gradient(145deg, rgba(16,16,20,.77), rgba(8,8,11,.7));
  box-shadow: 0 40px 120px rgba(0,0,0,.62), 0 0 70px rgba(239,51,79,.055);
}

.bio {
  min-height: 24px;
  margin-bottom: 12px;
}

.caret {
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 4px;
  vertical-align: -2px;
  background: #ef334f;
  animation: caret 1s steps(1) infinite;
}

.badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 21px;
}

.badges span {
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 4px;
  color: #a8a8b0;
  background: rgba(255,255,255,.035);
  font-size: .66rem;
  font-weight: 600;
  text-transform: uppercase;
}

.now-playing {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 42px 28px minmax(75px,1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  margin-top: 12px;
  padding: 8px 12px 8px 8px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 6px;
  background: rgba(255,255,255,.035);
}

.now-playing img {
  width: 42px;
  height: 42px;
  border-radius: 4px;
  object-fit: cover;
}

.player-button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #ef334f;
  cursor: pointer;
  font-size: .69rem;
  font-weight: 700;
}

.track-copy {
  min-width: 0;
  display: grid;
  text-align: left;
}

.track-copy strong { font-size: .82rem; }
.track-copy span { color: #85858d; font-size: .68rem; }
.track-time { color: #777780; font-size: .66rem; }

.wave {
  height: 20px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.wave i {
  width: 2px;
  height: 6px;
  display: block;
  border-radius: 2px;
  background: rgba(255,255,255,.42);
  animation: wave .9s ease-in-out infinite alternate;
}

.wave i:nth-child(2n) { animation-delay: -.3s; }
.wave i:nth-child(3n) { animation-delay: -.55s; }
body.audio-paused .wave i { animation-play-state: paused; }

.gate__button {
  min-width: 260px;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  padding-right: 14px;
}

.gate__button b {
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 4px;
  color: #b7b7bf;
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
}

@keyframes caret { 50% { opacity: 0; } }
@keyframes wave { from { height: 4px; } to { height: 18px; } }

@media (max-width: 520px) {
  .profile { max-width: 366px; }
  .badges span { font-size: .6rem; }
  .now-playing { grid-template-columns: 40px 28px minmax(70px,1fr) auto; }
  .now-playing img { width: 40px; height: 40px; }
  .wave { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .caret,.wave i { animation: none; }
}
