:root {
  color-scheme: dark;
  --bg: #050505;
  --text: #ffffff;
  --muted: #9a9a9a;
  --glass: rgba(13, 13, 13, .48);
  --glass-hover: rgba(62, 62, 62, .22);
  --line: rgba(255, 255, 255, .11);
  --shadow: 0 0 8px rgba(255, 255, 255, .62);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: Eurofence, "Eurofence Regular", "Eurostile", "Pixelify Sans", monospace;
  background: var(--bg);
}

button {
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.noise-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .045;
  background-image:
    linear-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px),
    repeating-radial-gradient(circle at 18% 22%, rgba(255, 255, 255, .13) 0 1px, transparent 1px 5px);
  background-size: 4px 4px, 4px 4px, 170px 170px;
}

.mute-button {
  position: fixed;
  top: 32px;
  left: 32px;
  z-index: 10;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(12, 12, 12, .72);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(12px);
  transition: transform .2s ease, filter .2s ease, background .2s ease;
}

.mute-button:hover {
  transform: translateY(-2px);
  background: rgba(48, 48, 48, .34);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, .25));
}

.mute-button svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 7px rgba(255, 255, 255, .35));
}

.mute-button .volume-off,
.mute-button.muted .volume-on {
  display: none;
}

.mute-button.muted .volume-off {
  display: block;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  animation: pageIn .72s ease both;
}

.profile-card {
  position: relative;
  width: min(850px, calc(100vw - 44px));
  overflow: hidden;
  display: grid;
  gap: 70px;
  padding: clamp(42px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--glass);
  box-shadow:
    0 35px 120px rgba(0, 0, 0, .58),
    inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(18px);
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: -45%;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 35% 45%, rgba(255, 255, 255, .12), transparent 22%),
    radial-gradient(circle at 64% 42%, rgba(170, 170, 170, .11), transparent 24%),
    linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .08), transparent 62%);
  filter: blur(24px);
  transform: translateX(-14%) rotate(0deg);
  transition: opacity .35s ease;
  animation: greyDrift 5.5s ease-in-out infinite alternate;
}

.profile-card:hover {
  background:
    radial-gradient(circle at 50% 50%, var(--glass-hover), transparent 64%),
    var(--glass);
  border-color: rgba(255, 255, 255, .17);
  box-shadow:
    0 35px 120px rgba(0, 0, 0, .58),
    0 0 55px rgba(255, 255, 255, .055),
    inset 0 1px 0 rgba(255, 255, 255, .1);
}

.profile-card:hover::before {
  opacity: 1;
}

.profile-header,
.music-player {
  position: relative;
  z-index: 1;
}

.profile-header {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
}

.avatar {
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .28), transparent 25%),
    linear-gradient(145deg, #2a2a2a, #070707);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 0 25px rgba(255, 255, 255, .20), 0 18px 46px rgba(0, 0, 0, .42);
}

.avatar span {
  font-size: 5.4rem;
  font-weight: 700;
  line-height: 1;
  text-shadow: var(--shadow);
}

.profile-avatar {
  width: 140px;
  height: 140px;
}

.name-line {
  display: flex;
  align-items: center;
  gap: 14px;
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(50px, 6vw, 66px);
  font-weight: 700;
  line-height: .86;
  letter-spacing: -.035em;
  text-shadow:
    0 0 8px rgba(255, 255, 255, .75),
    0 0 20px rgba(255, 255, 255, .35),
    0 0 34px rgba(255, 255, 255, .18);
}

.name-badges {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 4px;
}

.name-badges span {
  font-size: 18px;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, .26));
}

.description {
  margin: 8px 0 0;
  color: #fff;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1;
  letter-spacing: -.02em;
  text-shadow: 0 0 8px rgba(255, 255, 255, .56);
}

.joined {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: clamp(21px, 2.2vw, 26px);
  line-height: 1;
  text-shadow: 0 0 8px rgba(255, 255, 255, .16);
}

.music-player {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 124px;
  align-items: end;
  gap: 14px;
}

.cover-art {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    radial-gradient(circle at 26% 20%, rgba(255, 255, 255, .3), transparent 26%),
    linear-gradient(135deg, #202020, #050505 65%, #303030);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 0 20px rgba(255, 255, 255, .12);
}

.cover-art span {
  font-size: 42px;
  color: white;
  text-shadow: var(--shadow);
}

.track-area h2 {
  margin: 0 0 10px;
  color: white;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 500;
  line-height: 1;
  text-shadow: var(--shadow);
}

.progress-line {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto;
  align-items: center;
  gap: 10px;
  color: #d5d5d5;
  font-size: clamp(22px, 2.3vw, 28px);
  line-height: 1;
}

.progress-track {
  position: relative;
  height: 12px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
}

.progress-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .25);
  transform: translateY(-50%);
}

#progressFill {
  position: absolute;
  left: 0;
  top: 50%;
  width: 0%;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 0 8px rgba(255, 255, 255, .25);
  transform: translateY(-50%);
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-bottom: 2px;
}

.player-controls button {
  padding: 0;
  background: transparent;
  color: white;
  font-size: 22px;
  line-height: 1;
  text-shadow: var(--shadow);
  transition: transform .2s ease, filter .2s ease;
}

.player-controls button:hover {
  transform: translateY(-2px);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, .35));
}

.player-controls .play-button {
  min-width: 30px;
  font-size: 32px;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes greyDrift {
  from {
    transform: translateX(-14%) rotate(-4deg);
  }
  to {
    transform: translateX(12%) rotate(4deg);
  }
}

@media (max-width: 840px) {
  .mute-button {
    top: 18px;
    left: 18px;
    width: 54px;
    height: 54px;
  }

  .page-shell {
    padding: 86px 20px 34px;
  }

  .profile-card {
    gap: 44px;
    padding: 34px 24px;
  }

  .music-player {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .cover-art {
    width: 68px;
    height: 68px;
  }

  .player-controls {
    grid-column: 1 / -1;
    justify-content: center;
    margin-top: 8px;
  }
}

@media (max-width: 620px) {
  .profile-header {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .name-line {
    justify-content: center;
  }

  .profile-avatar {
    width: 128px;
    height: 128px;
  }

  .track-area h2 {
    font-size: 27px;
  }
}
