:root {
  color-scheme: dark;
  --ink: 24, 20, 23;
  --paper: 242, 231, 228;
  --rose: 221, 153, 169;
  --rose-deep: 185, 96, 121;
  --cream: 252, 245, 238;
  --muted: 164, 149, 155;
  --green: 115, 205, 155;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100svh;
  overflow: hidden;
  color: rgb(var(--paper));
  background:
    radial-gradient(circle at 17% 24%, rgba(126, 65, 83, .18), transparent 28%),
    radial-gradient(circle at 80% 76%, rgba(139, 100, 89, .14), transparent 30%),
    linear-gradient(135deg, #100d0f 0%, #1c171a 48%, #0e0c0e 100%);
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  opacity: .038;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.76' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.ambient,
.ambient__orb,
.ambient__line,
#petals,
.pointer-light {
  position: fixed;
  pointer-events: none;
}

.ambient {
  inset: 0;
  z-index: -3;
  overflow: hidden;
}

.ambient__orb {
  border-radius: 50%;
  filter: blur(3px);
  animation: drift 12s ease-in-out infinite alternate;
}

.ambient__orb--one {
  top: -18vmax;
  left: -12vmax;
  width: 42vmax;
  height: 42vmax;
  border: 1px solid rgba(var(--rose), .14);
  background: radial-gradient(circle at 58% 61%, rgba(var(--rose-deep), .14), transparent 61%);
}

.ambient__orb--two {
  right: -17vmax;
  bottom: -22vmax;
  width: 48vmax;
  height: 48vmax;
  border: 1px solid rgba(var(--paper), .07);
  background: radial-gradient(circle, rgba(139, 104, 91, .13), transparent 62%);
  animation-delay: -5s;
}

.ambient__orb--three {
  top: 40%;
  left: 50%;
  width: 26vmax;
  height: 26vmax;
  opacity: .45;
  border: 1px solid rgba(var(--rose), .08);
  transform: translate(-50%, -50%);
}

.ambient__line {
  top: 50%;
  left: -12%;
  width: 124%;
  height: 1px;
  opacity: .34;
  background: linear-gradient(90deg, transparent, rgba(var(--rose), .38), transparent);
  transform: rotate(-9deg);
  animation: line-glow 5s ease-in-out infinite;
}

#petals {
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.pointer-light {
  z-index: -2;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, rgba(var(--rose), .085), transparent 67%);
  transform: translate(-50%, -50%);
  transition: opacity .4s;
}

body:hover .pointer-light {
  opacity: 1;
}

.page {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 32px 22px 24px;
}

.profile-card {
  position: relative;
  display: grid;
  width: min(100%, 800px);
  grid-template-columns: 290px 1fr;
  grid-template-rows: minmax(340px, auto) 100px;
  overflow: hidden;
  border: 1px solid rgba(var(--paper), .12);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .055), transparent 35%),
    rgba(20, 17, 20, .78);
  box-shadow:
    0 35px 100px rgba(0, 0, 0, .52),
    0 0 0 1px rgba(255, 255, 255, .02) inset,
    0 0 90px rgba(var(--rose-deep), .07);
  backdrop-filter: blur(25px) saturate(1.08);
  opacity: 0;
  transform: translateY(24px) scale(.985);
  animation: card-enter 1.05s .12s cubic-bezier(.16, 1, .3, 1) forwards;
}

.profile-card__edge {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, .065) 43%, transparent 58%);
  transform: translateX(-120%);
  animation: edge-shine 7s 1.5s ease-in-out infinite;
}

.portrait-panel {
  position: relative;
  padding: 20px 0 20px 20px;
}

.portrait-frame {
  position: relative;
  height: 100%;
  min-height: 300px;
  overflow: hidden;
  border-radius: 23px;
  background: #2e292b;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .3);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 23% 49%;
  filter: saturate(.88) contrast(.97);
  transform: scale(1.045);
  transition: filter .65s ease, transform 1.2s cubic-bezier(.16, 1, .3, 1);
  animation: portrait-enter 1.3s .25s cubic-bezier(.16, 1, .3, 1) both;
}

.portrait-frame:hover img {
  filter: saturate(1) contrast(1);
  transform: scale(1.085);
}

.portrait-frame__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(18, 13, 16, .46)),
    linear-gradient(120deg, rgba(var(--rose), .08), transparent 35%);
}

.portrait-frame__label {
  position: absolute;
  bottom: 15px;
  left: 17px;
  color: rgba(255, 255, 255, .7);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.portrait-caption {
  position: absolute;
  right: -25px;
  bottom: 43px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  color: rgba(var(--paper), .74);
  border: 1px solid rgba(var(--paper), .11);
  border-radius: 999px;
  background: rgba(28, 23, 27, .86);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
  backdrop-filter: blur(10px);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(var(--green));
  box-shadow: 0 0 0 4px rgba(var(--green), .08), 0 0 12px rgba(var(--green), .55);
  animation: pulse 2.4s ease-in-out infinite;
}

.content-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 24px 26px 21px 39px;
}

.content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.eyebrow {
  margin: 0;
  color: rgba(var(--paper), .35);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .32em;
}

.views {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(var(--paper), .28);
  font-size: 9px;
  font-weight: 650;
}

.views svg {
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.identity {
  margin: auto 0 27px;
}

.handle {
  margin: 0 0 8px;
  color: rgb(var(--rose));
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 10px;
  letter-spacing: .05em;
}

.name-line {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

h1 {
  margin: 0;
  overflow: hidden;
  color: rgb(var(--cream));
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 64px);
  font-weight: 400;
  letter-spacing: -.065em;
  line-height: .95;
  text-overflow: ellipsis;
  text-shadow: 0 8px 30px rgba(var(--rose), .09);
}

.sparkle {
  display: inline-block;
  margin-top: 1px;
  color: rgb(var(--rose));
  font-size: 15px;
  animation: sparkle 3.3s ease-in-out infinite;
}

.bio {
  max-width: 330px;
  margin: 18px 0 12px;
  color: rgba(var(--paper), .7);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-style: italic;
  line-height: 1.5;
}

.mood {
  min-height: 17px;
  margin: 0;
  color: rgba(var(--paper), .38);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 9px;
  letter-spacing: .04em;
}

.mood__marker {
  display: inline-block;
  width: 14px;
  height: 1px;
  margin-right: 8px;
  vertical-align: middle;
  background: rgb(var(--rose-deep));
}

.caret {
  display: inline-block;
  width: 4px;
  height: 10px;
  margin-left: 3px;
  vertical-align: -1px;
  background: rgb(var(--rose));
  animation: blink 1s steps(1) infinite;
}

.socials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.social-link {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 10px;
  color: rgba(var(--paper), .7);
  border: 1px solid rgba(var(--paper), .08);
  border-radius: 14px;
  background: rgba(255, 255, 255, .025);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  transition: color .25s, border-color .25s, background-color .25s, transform .25s;
}

.social-link:hover,
.social-link:focus-visible {
  color: rgb(var(--cream));
  border-color: rgba(var(--rose), .26);
  outline: none;
  background: rgba(var(--rose), .07);
  transform: translateY(-2px);
}

.social-link__icon {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  place-items: center;
  color: rgb(var(--rose));
  border: 1px solid rgba(var(--rose), .16);
  border-radius: 9px;
  background: rgba(var(--rose), .06);
}

.social-link__icon svg {
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.social-link__icon--vk svg {
  fill: currentColor;
  stroke: none;
}

.social-link small {
  display: block;
  margin-bottom: 2px;
  color: rgba(var(--paper), .28);
  font-size: 7px;
  font-weight: 600;
  letter-spacing: .08em;
}

.social-link__arrow {
  margin-left: auto;
  color: rgba(var(--paper), .25);
  font-size: 11px;
}

.player {
  position: relative;
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-top: 1px solid rgba(var(--paper), .07);
  background:
    linear-gradient(90deg, rgba(var(--rose), .045), transparent 48%),
    rgba(7, 6, 7, .24);
}

.play-button,
.volume-button {
  display: grid;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  border: 0;
  cursor: pointer;
}

.play-button {
  width: 41px;
  height: 41px;
  color: #1c1518;
  border-radius: 50%;
  background: linear-gradient(135deg, rgb(var(--cream)), rgb(var(--rose)));
  box-shadow: 0 8px 25px rgba(var(--rose-deep), .19);
  transition: transform .2s, box-shadow .2s;
}

.play-button:hover {
  box-shadow: 0 10px 30px rgba(var(--rose-deep), .29);
  transform: scale(1.05);
}

.play-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.play-button .play-icon {
  fill: currentColor;
  stroke: none;
}

.pause-icon {
  display: none;
}

.play-button[aria-pressed="true"] .play-icon {
  display: none;
}

.play-button[aria-pressed="true"] .pause-icon {
  display: block;
}

.track-cover {
  position: relative;
  width: 47px;
  height: 47px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
}

.track-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 25% 45%;
}

.track-cover__ring {
  position: absolute;
  inset: 43%;
  border: 2px solid rgba(var(--cream), .8);
  border-radius: 50%;
  background: #231d20;
}

.player.is-playing .track-cover {
  animation: vinyl 7s linear infinite;
}

.track-info {
  min-width: 0;
  flex: 1;
}

.track-info__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.track-info strong,
.track-info small {
  display: block;
}

.track-info strong {
  overflow: hidden;
  color: rgba(var(--cream), .88);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track-info small,
.track-info time {
  color: rgba(var(--paper), .3);
  font-size: 8px;
}

.track-info small {
  margin-top: 3px;
}

.track-info time {
  flex: 0 0 auto;
  font-family: Consolas, monospace;
}

.progress {
  position: relative;
  display: block;
  width: 100%;
  height: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.progress::before,
.progress__played {
  position: absolute;
  top: 5px;
  left: 0;
  height: 2px;
  border-radius: 2px;
}

.progress::before {
  content: "";
  width: 100%;
  background: rgba(var(--paper), .12);
}

.progress__played {
  width: 0%;
  background: linear-gradient(90deg, rgb(var(--rose-deep)), rgb(var(--rose)));
}

.progress__thumb {
  position: absolute;
  top: 2px;
  left: 0%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgb(var(--cream));
  box-shadow: 0 0 10px rgba(var(--rose), .5);
  transform: translateX(-50%);
}

.volume-button {
  width: 32px;
  height: 32px;
  color: rgba(var(--paper), .34);
  background: transparent;
  transition: color .2s;
}

.volume-button:hover {
  color: rgb(var(--rose));
}

.volume-button svg {
  width: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.volume-off {
  display: none;
}

.volume-button[aria-pressed="true"] .volume-on {
  display: none;
}

.volume-button[aria-pressed="true"] .volume-off {
  display: block;
}

.footnote {
  margin: 0;
  color: rgba(var(--paper), .25);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  font-style: italic;
  letter-spacing: .08em;
}

.footnote span {
  margin-right: 6px;
  color: rgba(var(--rose), .55);
  font-style: normal;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  z-index: 20;
  max-width: calc(100% - 30px);
  padding: 10px 14px;
  color: rgba(var(--paper), .8);
  border: 1px solid rgba(var(--paper), .1);
  border-radius: 12px;
  background: rgba(20, 17, 20, .9);
  box-shadow: 0 15px 40px rgba(0, 0, 0, .4);
  backdrop-filter: blur(12px);
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 9px);
  transition: opacity .25s, transform .25s;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes card-enter {
  to { opacity: 1; transform: none; }
}

@keyframes portrait-enter {
  from { opacity: 0; transform: scale(1.13); }
  to { opacity: 1; transform: scale(1.045); }
}

@keyframes edge-shine {
  0%, 70% { transform: translateX(-120%); }
  88%, 100% { transform: translateX(120%); }
}

@keyframes drift {
  from { transform: translate3d(-1.5%, -1%, 0) scale(.98); }
  to { transform: translate3d(2%, 1.5%, 0) scale(1.05); }
}

@keyframes line-glow {
  0%, 100% { opacity: .2; }
  50% { opacity: .5; }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(var(--green), .08), 0 0 12px rgba(var(--green), .45); }
  50% { box-shadow: 0 0 0 7px rgba(var(--green), 0), 0 0 17px rgba(var(--green), .75); }
}

@keyframes sparkle {
  0%, 100% { opacity: .45; transform: rotate(0) scale(.9); }
  50% { opacity: 1; transform: rotate(25deg) scale(1.18); }
}

@keyframes blink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

@keyframes vinyl {
  to { transform: rotate(360deg); }
}

@media (max-width: 760px) {
  body {
    overflow: auto;
  }

  .page {
    min-height: 100svh;
    padding: 26px 14px 20px;
  }

  .profile-card {
    width: min(100%, 420px);
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    border-radius: 28px;
  }

  .portrait-panel {
    padding: 14px 14px 0;
  }

  .portrait-frame {
    height: clamp(230px, 61vw, 280px);
    min-height: 0;
    border-radius: 19px;
  }

  .portrait-frame img {
    object-position: 25% 38%;
  }

  .portrait-caption {
    right: 26px;
    bottom: -12px;
  }

  .content-panel {
    padding: 28px 18px 17px;
  }

  .identity {
    margin: 35px 0 25px;
  }

  h1 {
    font-size: clamp(43px, 14vw, 58px);
  }

  .bio {
    max-width: 100%;
  }

  .player {
    grid-column: 1;
    gap: 10px;
    padding: 15px 16px;
  }

  .socials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .social-link[data-social="vk"] {
    grid-column: 1 / -1;
  }

  .track-cover {
    display: none;
  }
}

@media (max-width: 390px) {
  .social-link__arrow {
    display: none;
  }

  .social-link {
    gap: 7px;
    padding: 8px;
  }

  .social-link__icon {
    width: 27px;
    height: 27px;
  }

  .volume-button {
    display: none;
  }
}

@media (pointer: coarse) {
  .pointer-light {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
