@font-face {
  font-family: "Syne Variable";
  src: url("./node_modules/@fontsource-variable/syne/files/syne-latin-wght-normal.woff2") format("woff2-variations");
  font-display: swap;
  font-style: normal;
  font-weight: 400 800;
}

@property --release-accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #a970ff;
}

@font-face {
  font-family: "Manrope Variable";
  src: url("./node_modules/@fontsource-variable/manrope/files/manrope-cyrillic-wght-normal.woff2") format("woff2-variations");
  font-display: swap;
  font-style: normal;
  font-weight: 200 800;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Manrope Variable";
  src: url("./node_modules/@fontsource-variable/manrope/files/manrope-latin-wght-normal.woff2") format("woff2-variations");
  font-display: swap;
  font-style: normal;
  font-weight: 200 800;
}

:root {
  color-scheme: dark;
  --ink: #050407;
  --surface: rgba(11, 8, 17, 0.9);
  --surface-solid: #0d0a13;
  --line: rgba(247, 243, 255, 0.14);
  --line-strong: rgba(247, 243, 255, 0.26);
  --text: #f8f6fc;
  --muted: #aaa2b7;
  --accent: #a970ff;
  --accent-ink: #11051f;
  --radius: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}

body {
  color: var(--text);
  font-family: "Manrope Variable", "Segoe UI", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(169, 112, 255, 0.88);
  color: #11051f;
}

button,
input,
select {
  font: inherit;
}

button,
select,
input[type="range"] {
  touch-action: manipulation;
}

button {
  color: inherit;
}

.experience {
  --release-accent: #a970ff;
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--ink);
  transition: --release-accent 2100ms var(--ease);
}

#gl-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
}

#gl-canvas.is-glass-target {
  cursor: pointer;
}

#gl-canvas.is-dragging {
  cursor: grabbing;
}

#gl-canvas:focus-visible {
  outline: none;
}

.glass-focus-ring {
  position: fixed;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: min(64vw, 520px);
  aspect-ratio: 0.78;
  border: 1px solid color-mix(in srgb, var(--release-accent) 54%, transparent);
  border-radius: 18%;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.985);
  transition: opacity 160ms ease-out, transform 240ms var(--ease);
}

#gl-canvas:focus-visible + .glass-focus-ring {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(18px, env(safe-area-inset-top)) 28px 0;
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  font-family: "Syne Variable", "Manrope Variable", sans-serif;
  font-size: 14px;
  font-weight: 680;
  letter-spacing: -0.025em;
  pointer-events: auto;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #020203;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.46);
  transform-origin: center;
}

.artist-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  pointer-events: auto;
}

.artist-nav a {
  color: #c6bfd0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color 180ms var(--ease);
}

.artist-nav a:hover {
  color: var(--text);
}

.artist-nav a:last-child {
  padding: 7px 9px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  color: var(--accent);
}

.intro {
  position: fixed;
  z-index: 3;
  left: clamp(24px, 5vw, 76px);
  bottom: clamp(28px, 7vh, 82px);
  width: min(400px, calc(100vw - 48px));
  pointer-events: none;
}

.content-stack {
  display: contents;
}

.intro h1 {
  margin: 0;
  color: #fbfaff;
  font-family: "Syne Variable", "Manrope Variable", sans-serif;
  font-size: clamp(46px, 6vw, 84px);
  font-weight: 500;
  letter-spacing: -0.038em;
  line-height: 0.88;
  text-wrap: balance;
}

.intro-copy {
  max-width: 350px;
  margin: 22px 0 0;
  color: #b9b1c4;
  font-size: 13px;
  font-weight: 470;
  line-height: 1.6;
}

.release-index {
  position: fixed;
  z-index: 3;
  right: clamp(24px, 5vw, 76px);
  bottom: clamp(28px, 7vh, 82px);
  width: min(260px, 24vw);
  border-top: 1px solid var(--line-strong);
  pointer-events: auto;
}

.release-index a,
.release-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: #d7d1df;
  font-size: 12px;
  font-weight: 540;
  text-decoration: none;
  transition: color 180ms var(--ease), padding 220ms var(--ease);
}

.release-track {
  width: 100%;
  margin: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.release-index a:hover,
.release-track:hover,
.release-track.is-current {
  padding-left: 7px;
  color: var(--text);
}

.release-action {
  color: var(--accent);
  font-size: 11px;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-trigger {
  display: none;
}

.controls {
  position: fixed;
  z-index: 5;
  top: 84px;
  right: 20px;
  bottom: 20px;
  width: 342px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 36%),
    var(--surface);
  -webkit-backdrop-filter: blur(28px) saturate(130%);
  backdrop-filter: blur(28px) saturate(130%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 30px 80px rgba(0, 0, 0, 0.44);
}

.mobile-handle,
.close-panel {
  display: none;
}

.controls-heading {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--line);
}

.controls-heading p,
.controls-heading h2 {
  margin: 0;
}

.controls-heading p {
  margin-bottom: 5px;
  color: var(--muted);
  font-family: "Manrope Variable", sans-serif;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.controls-heading h2 {
  font-family: "Syne Variable", "Manrope Variable", sans-serif;
  font-size: 17px;
  font-weight: 610;
  letter-spacing: -0.03em;
}

.control-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(169, 112, 255, 0.4) transparent;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.preset-fieldset {
  padding: 19px 18px 20px;
  border-bottom: 1px solid var(--line);
}

legend,
.group-heading {
  color: #b8b0c3;
  font-family: "Manrope Variable", sans-serif;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

legend {
  margin-bottom: 12px;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(5, 3, 8, 0.52);
}

.preset {
  min-width: 0;
  min-height: 34px;
  padding: 8px 5px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #9b93a8;
  font-size: 11px;
  font-weight: 560;
  cursor: pointer;
  transition: background 180ms var(--ease), color 180ms var(--ease), transform 120ms ease;
}

.preset:hover {
  color: var(--text);
}

.preset.active {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.preset:active,
.reset-button:active,
.panel-trigger:active,
.close-panel:active {
  transform: scale(0.98);
}

.control-group {
  border-bottom: 1px solid var(--line);
}

.group-heading {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 13px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.group-glyph,
.trigger-glyph {
  position: relative;
  width: 10px;
  height: 10px;
}

.group-glyph::before,
.group-glyph::after,
.trigger-glyph::before,
.trigger-glyph::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 1px;
  background: currentColor;
  transform-origin: center;
  transition: transform 180ms var(--ease);
}

.group-glyph::after,
.trigger-glyph::after {
  transform: rotate(90deg);
}

.group-heading[aria-expanded="true"] .group-glyph::after {
  transform: rotate(0deg);
}

.group-body {
  display: grid;
  gap: 17px;
  padding: 2px 18px 20px;
}

.group-heading[aria-expanded="false"] + .group-body {
  display: none;
}

.range-control {
  display: grid;
  gap: 9px;
}

.range-control > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #c8c1d1;
  font-size: 11px;
  font-weight: 500;
}

output {
  color: var(--accent);
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

input[type="range"] {
  width: 100%;
  height: 14px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: ew-resize;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 999px;
  background:
    linear-gradient(to right, var(--accent) 0 var(--range-progress, 50%), rgba(247, 243, 255, 0.16) var(--range-progress, 50%) 100%);
}

input[type="range"]::-moz-range-track {
  height: 2px;
  border-radius: 999px;
  background: rgba(247, 243, 255, 0.16);
}

input[type="range"]::-moz-range-progress {
  height: 2px;
  background: var(--accent);
}

input[type="range"]::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  margin-top: -5px;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid #1b1127;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(169, 112, 255, 0.36);
}

input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 2px solid #1b1127;
  border-radius: 50%;
  background: var(--accent);
}

input:focus-visible,
button:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.mini-player {
  position: fixed;
  z-index: 7;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  width: min(748px, calc(100vw - 40px));
  min-height: 72px;
  display: grid;
  grid-template-columns: 52px 44px minmax(0, 1fr) 112px auto;
  align-items: center;
  gap: 12px;
  padding: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(8, 5, 13, 0.9);
  -webkit-backdrop-filter: blur(24px) saturate(125%);
  backdrop-filter: blur(24px) saturate(125%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, calc(100% + 28px));
  transition:
    opacity 180ms ease-out,
    visibility 180ms step-end,
    transform 420ms var(--ease);
}

.experience[data-player-active="true"] .mini-player {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition:
    opacity 220ms ease-out,
    visibility 0ms step-start,
    transform 420ms var(--ease);
}

.player-artwork {
  width: 52px;
  height: 52px;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  background: #030204;
}

.player-toggle {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(169, 112, 255, 0.13);
  cursor: pointer;
  transition: background-color 180ms ease-out, border-color 180ms ease-out;
}

.player-toggle:hover {
  border-color: rgba(190, 147, 255, 0.68);
  background: rgba(169, 112, 255, 0.22);
}

.player-icon {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}

.icon-pause,
.mini-player.is-playing .icon-play {
  display: none;
}

.mini-player.is-playing .icon-pause {
  display: block;
}

.player-main {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.player-meta {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.player-meta strong {
  overflow: hidden;
  color: var(--text);
  font-family: "Syne Variable", "Manrope Variable", sans-serif;
  font-size: 13px;
  font-weight: 620;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-meta span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.mini-player .player-progress {
  --range-progress: 0%;
  height: 16px;
}

.player-volume {
  min-width: 0;
  min-height: 44px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.player-volume svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.35;
}

.mini-player .player-volume input {
  --range-progress: 82%;
  height: 18px;
}

.player-source {
  min-width: 106px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #d7d1df;
  font-size: 11px;
  font-weight: 620;
  text-decoration: none;
  transition: border-color 180ms ease-out, color 180ms ease-out;
}

.player-source:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.player-source svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.panel-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px;
  padding: 18px;
}

.select-control {
  display: grid;
  gap: 7px;
  color: #a9a1b5;
  font-size: 11px;
}

select,
.reset-button,
.close-panel {
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(5, 3, 8, 0.5);
  color: #ded8e6;
  font-size: 11px;
  font-weight: 560;
  cursor: pointer;
}

select {
  width: 100%;
  padding: 0 30px 0 10px;
}

.reset-button {
  padding: 0 12px;
  white-space: nowrap;
}

.error-state {
  position: fixed;
  z-index: 8;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  padding: 24px;
  background: var(--ink);
  text-align: center;
}

.error-state[hidden] {
  display: none;
}

.error-state p {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.error-state span {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  html,
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .experience {
    min-height: calc(100dvh + 270px);
    overflow: clip;
  }

  .experience[data-player-active="true"] {
    min-height: calc(100dvh + 360px);
  }

  #gl-canvas {
    touch-action: pan-y;
  }

  .topbar {
    height: 64px;
    padding: max(14px, env(safe-area-inset-top)) 18px 0;
  }

  .artist-nav {
    gap: 13px;
  }

  .artist-nav a {
    font-size: 11px;
  }

  .artist-nav a:last-child {
    padding: 6px 8px;
  }

  .content-stack {
    position: absolute;
    z-index: 3;
    top: clamp(300px, 80dvh, 525px);
    left: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-bottom: max(36px, env(safe-area-inset-bottom));
  }

  .experience[data-player-active="true"] .content-stack {
    padding-bottom: max(126px, calc(env(safe-area-inset-bottom) + 104px));
  }

  .intro {
    position: static;
    width: min(310px, calc(100vw - 40px));
  }

  .intro h1 {
    font-size: clamp(44px, 14vw, 62px);
    line-height: 0.9;
  }

  .intro-copy {
    max-width: 260px;
    margin-top: 16px;
    font-size: 12px;
  }

  .release-index {
    position: static;
    display: block;
    width: 100%;
  }

  .release-index::before {
    content: "релизы";
    display: block;
    padding-bottom: 11px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 680;
    letter-spacing: 0.09em;
    text-transform: uppercase;
  }

  .release-index a,
  .release-track {
    min-height: 48px;
    align-items: center;
    padding: 13px 0;
    font-size: 13px;
  }

  .release-action {
    font-size: 11px;
  }

  .mini-player {
    bottom: max(10px, env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
    min-height: 64px;
    grid-template-columns: 44px 44px minmax(0, 1fr);
    gap: 9px;
    padding: 8px;
  }

  .player-artwork {
    width: 44px;
    height: 44px;
    border-radius: 9px;
  }

  .player-toggle {
    width: 44px;
    height: 44px;
  }

  .player-meta {
    gap: 8px;
  }

  .player-meta strong {
    font-size: 12px;
  }

  .player-meta span {
    font-size: 11px;
  }

  .mini-player .player-progress {
    height: 18px;
  }

  .player-source {
    display: none;
  }

  .player-volume {
    display: none;
  }

  .panel-trigger {
    position: fixed;
    z-index: 4;
    left: 16px;
    right: 16px;
    bottom: max(14px, env(safe-area-inset-bottom));
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 17px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: rgba(11, 8, 17, 0.86);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
    font-size: 12px;
  }

  .controls {
    top: auto;
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    height: min(76dvh, 690px);
    border-radius: 16px;
    transform: translateY(calc(100% + 18px));
    transition: transform 420ms var(--ease);
  }

  .experience[data-panel-open="true"] .controls {
    transform: translateY(0);
  }

  .experience[data-panel-open="true"] .intro,
  .experience[data-panel-open="true"] .panel-trigger {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
  }

  .mobile-handle {
    width: 38px;
    height: 4px;
    display: block;
    flex: 0 0 auto;
    margin: 9px auto 2px;
    border-radius: 999px;
    background: rgba(247, 243, 255, 0.25);
  }

  .close-panel {
    display: block;
    min-width: 54px;
    height: 44px;
    padding: 0 11px;
  }

  .controls-heading {
    padding: 12px 16px 15px;
  }

  .preset-fieldset {
    padding: 16px;
  }

  .preset {
    min-height: 40px;
  }

  .group-heading {
    padding-inline: 16px;
  }

  .group-body {
    padding-inline: 16px;
  }

  input[type="range"] {
    height: 26px;
  }

  .panel-footer {
    padding: 16px 16px max(18px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 380px) {
  .intro h1 {
    font-size: 40px;
  }

  .intro-copy {
    max-width: 300px;
    margin-top: 12px;
    font-size: 14px;
  }
}

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

@media (prefers-reduced-transparency: reduce) {
  .controls,
  .panel-trigger,
  .mini-player {
    background: var(--surface-solid);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
