:root {
  --bg: #050507;
  --panel: #111018;
  --panel-strong: #191522;
  --ink: #f6f1ff;
  --muted: #b9accb;
  --line: rgba(255, 255, 255, 0.12);
  --violet: #a855f7;
  --violet-strong: #7c3aed;
  --cyan: #61dafb;
  --danger: #f43f5e;
  --success: #22c55e;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input,
textarea {
  font: inherit;
}

img,
svg,
canvas {
  max-width: 100%;
}

.site-body {
  overflow-x: hidden;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  padding: 10px 14px;
  border: 1px solid rgba(97, 218, 251, 0.52);
  background: #050507;
  color: var(--ink);
  font-weight: 800;
  transition: transform 0.16s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.aura-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(5, 5, 7, 0.74);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  min-width: 0;
}

.brand span {
  overflow-wrap: anywhere;
}

.brand-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 18px rgba(168, 85, 247, 0.34));
}

.site-nav nav,
.admin-sidebar nav {
  display: flex;
  gap: 8px;
}

.site-nav nav {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.site-nav nav a,
.admin-sidebar nav a {
  padding: 10px 12px;
  color: var(--muted);
}

.site-nav nav a:hover,
.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 120px clamp(18px, 6vw, 80px) 76px;
  overflow: hidden;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  filter: saturate(1.04) contrast(1.04);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(5, 5, 7, 0.93), rgba(5, 5, 7, 0.54) 48%, rgba(5, 5, 7, 0.28)),
    linear-gradient(0deg, #050507 0%, rgba(5, 5, 7, 0) 35%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 0.98;
}

h1 {
  font-size: clamp(3rem, 10vw, 8.8rem);
  overflow-wrap: anywhere;
}

.admin-body h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(2rem, 4vw, 4.2rem);
}

.hero-copy {
  max-width: 560px;
  margin: 22px 0 0;
  color: #dfd7ea;
  font-size: 1.12rem;
  line-height: 1.7;
}

.hero-actions,
.player-switches,
.admin-head,
.social-admin-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  overflow-wrap: anywhere;
}

.button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--violet), var(--violet-strong));
  box-shadow: 0 14px 36px rgba(124, 58, 237, 0.32);
}

.button.ghost:hover {
  border-color: rgba(168, 85, 247, 0.68);
}

.button.danger {
  border-color: rgba(244, 63, 94, 0.38);
  color: #fecdd3;
}

.button.full {
  width: 100%;
}

.section {
  position: relative;
  z-index: 1;
  padding: 84px clamp(18px, 6vw, 80px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.player-shell,
.contact-cta,
.admin-card,
.auth-panel,
.metric {
  border: 1px solid var(--line);
  background: rgba(17, 16, 24, 0.84);
  box-shadow: var(--shadow);
}

.player-shell {
  padding: clamp(18px, 3vw, 30px);
  min-width: 0;
}

.player-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.player-top > div:first-child {
  min-width: min(260px, 100%);
  padding: 12px 14px;
  border: 1px solid rgba(168, 85, 247, 0.24);
  background: rgba(5, 5, 7, 0.42);
}

#nowPlaying {
  display: block;
  max-width: 680px;
  color: #fff;
  font-size: clamp(1.06rem, 2vw, 1.36rem);
  line-height: 1.25;
  text-wrap: balance;
}

.player-switches {
  justify-content: flex-end;
  max-width: 100%;
}

.now-label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 4px;
}

.player-switches label,
.check-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.toggle {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  cursor: pointer;
  color: var(--muted);
}

.toggle input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.toggle span {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex: 0 0 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.toggle span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #d9d2e7;
  box-shadow: 0 0 0 rgba(168, 85, 247, 0);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.toggle input:checked + span {
  border-color: rgba(168, 85, 247, 0.86);
  background: rgba(168, 85, 247, 0.25);
}

.toggle input:checked + span::after {
  transform: translateX(22px);
  background: #fff;
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.74);
}

.toggle input:focus-visible + span {
  outline: 2px solid rgba(97, 218, 251, 0.64);
  outline-offset: 3px;
}

.has-tooltip {
  position: relative;
}

.has-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 40;
  width: max-content;
  max-width: 260px;
  transform: translateX(-50%) translateY(4px);
  padding: 9px 11px;
  border: 1px solid rgba(168, 85, 247, 0.32);
  background: rgba(8, 7, 13, 0.96);
  color: var(--ink);
  font-size: 0.76rem;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.42);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.has-tooltip:hover::after,
.has-tooltip:focus-within::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.immersion-toggle.has-tooltip::after {
  z-index: 2147483003;
}

.wave-card {
  display: grid;
  grid-template-columns: 42px 58px 42px 42px 42px minmax(260px, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid rgba(168, 85, 247, 0.22);
  background:
    linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(97, 218, 251, 0.04)),
    rgba(255, 255, 255, 0.035);
  min-width: 0;
}

.play-button,
.player-nav-button,
.immersion-button {
  border: 1px solid rgba(168, 85, 247, 0.42);
  background: rgba(8, 7, 13, 0.9);
  color: var(--ink);
  cursor: pointer;
}

.player-nav-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.play-button {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #fff;
  box-shadow: inset 0 0 24px rgba(168, 85, 247, 0.18), 0 0 30px rgba(168, 85, 247, 0.18);
}

.play-button img,
.player-nav-button img,
.immersion-controls button img {
  width: 22px;
  height: 22px;
  filter: invert(1) drop-shadow(0 0 10px rgba(216, 180, 254, 0.42));
  pointer-events: none;
}

#immersionPlay img {
  width: 24px;
  height: 24px;
}

.is-playing .play-button {
  border-color: rgba(97, 218, 251, 0.56);
}

.wave-area {
  min-width: 0;
}

#waveform {
  min-height: 94px;
}

.time-row {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.immersion-button {
  min-height: 38px;
  padding: 0 13px;
  font-size: 0.82rem;
}

.volume-control {
  display: inline-grid;
  grid-template-columns: auto 94px auto;
  gap: 8px;
  align-items: center;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid rgba(168, 85, 247, 0.2);
  background: rgba(5, 5, 7, 0.42);
}

.volume-label,
#volumeValue {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1;
}

#volumeValue {
  justify-self: end;
  color: #e9d5ff;
  min-width: 34px;
  text-align: right;
}

.volume-control input[type="range"] {
  width: 94px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--violet);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  display: block;
  align-self: center;
}

.volume-control input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--violet) var(--volume-progress, 80%), rgba(255, 255, 255, 0.14) 0);
}

.volume-control input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -5px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #a855f7;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.74);
}

.volume-control input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.volume-control input[type="range"]::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--violet);
}

.volume-control input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #a855f7;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.74);
}

.immersion-button.is-active,
.immersion-button:hover {
  border-color: rgba(168, 85, 247, 0.86);
  background: rgba(168, 85, 247, 0.16);
}

.immersion-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  margin: 0;
  overflow: hidden;
  border: 0;
  isolation: isolate;
  background:
    linear-gradient(rgba(2, 2, 4, 0.88), rgba(2, 2, 4, 0.94)),
    url("/assets/hero-raven-butterfly.png") center / cover no-repeat;
  box-shadow: none;
}

.immersion-panel.is-open {
  display: block;
}

.immersion-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 44%, rgba(168, 85, 247, 0.22), transparent 42%),
    rgba(2, 2, 4, 0.38);
  pointer-events: none;
}

.immersion-close {
  position: fixed;
  top: 28px;
  right: 28px;
  z-index: 2147483002;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 1px solid rgba(216, 180, 254, 0.62);
  border-radius: 50%;
  background: rgba(5, 5, 7, 0.84);
  color: var(--ink);
  line-height: 1;
  cursor: pointer;
  box-shadow:
    0 0 0 8px rgba(168, 85, 247, 0.08),
    0 0 44px rgba(168, 85, 247, 0.42);
}

.immersion-trackbar {
  position: fixed;
  left: clamp(16px, 4vw, 54px);
  right: 112px;
  top: 28px;
  z-index: 2147483001;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 66px;
  padding: 12px 16px;
  border: 1px solid rgba(168, 85, 247, 0.26);
  background: rgba(5, 5, 7, 0.68);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.34);
  min-width: 0;
}

.immersion-trackbar strong {
  display: block;
  color: var(--ink);
  font-size: clamp(1rem, 2vw, 1.6rem);
  line-height: 1.1;
}

.immersion-title-block {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.immersion-title-block img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(168, 85, 247, 0.42));
}

.immersion-title-block div {
  min-width: 0;
}

.immersion-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.immersion-controls button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(168, 85, 247, 0.42);
  border-radius: 50%;
  background: rgba(8, 7, 13, 0.86);
  color: var(--ink);
  cursor: pointer;
}

#immersionPlay {
  width: 52px;
  height: 52px;
  border-color: rgba(216, 180, 254, 0.58);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.34), rgba(5, 5, 7, 0.86));
  box-shadow: 0 0 28px rgba(168, 85, 247, 0.24);
}

#immersionFavorite {
  border-color: rgba(168, 85, 247, 0.34);
}

#immersionFavorite.is-favorite {
  border-color: rgba(216, 180, 254, 0.76);
  background: rgba(168, 85, 247, 0.18);
  box-shadow: inset 0 0 22px rgba(168, 85, 247, 0.18);
}

.immersion-controls button:hover {
  border-color: rgba(216, 180, 254, 0.82);
  background: rgba(168, 85, 247, 0.16);
}

.immersion-volume {
  display: inline-grid;
  grid-template-columns: auto 112px auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(168, 85, 247, 0.24);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 0.78rem;
}

.immersion-toggle {
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(168, 85, 247, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.immersion-volume input {
  width: 112px;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--violet);
}

.immersion-timeline {
  position: fixed;
  left: clamp(18px, 5vw, 72px);
  right: clamp(18px, 5vw, 72px);
  bottom: 30px;
  z-index: 2147483001;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(168, 85, 247, 0.26);
  background: rgba(5, 5, 7, 0.7);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.34);
}

.immersion-timeline span {
  color: #e9d5ff;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.immersion-timeline span:last-child {
  text-align: right;
}

#immersionSeek {
  width: 100%;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

#immersionSeek::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(216, 180, 254, 0.95) var(--seek-progress, 0%), rgba(168, 85, 247, 0.22) 0),
    repeating-linear-gradient(90deg, rgba(168, 85, 247, 0.35) 0 2px, transparent 2px 10px);
  box-shadow: 0 0 22px rgba(168, 85, 247, 0.28);
}

#immersionSeek::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -5px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #a855f7;
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.9);
}

#immersionSeek::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.22);
}

#immersionSeek::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: rgba(216, 180, 254, 0.95);
}

#immersionSeek::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #a855f7;
}

.immersion-close:hover,
.immersion-close:focus-visible {
  border-color: rgba(216, 180, 254, 0.8);
  background: rgba(168, 85, 247, 0.18);
  outline: none;
}

.immersion-close img {
  width: 30px;
  height: 30px;
  filter: invert(1) drop-shadow(0 0 18px rgba(216, 180, 254, 0.72));
  pointer-events: none;
}

.immersion-visual {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
}

#immersion3d {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  opacity: 0.96;
}

#immersionSpectrumBg {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.72;
  mix-blend-mode: screen;
}

html.immersion-active,
body.immersion-active {
  overflow: hidden;
  overscroll-behavior: none;
  height: 100%;
}

.cursor-particle {
  position: fixed;
  z-index: 10003;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(245, 208, 254, 0.95), rgba(168, 85, 247, 0.74) 42%, rgba(124, 58, 237, 0) 74%);
  filter: blur(0.2px);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.88);
  animation: cursorParticle 720ms ease-out forwards;
}

@keyframes cursorParticle {
  0% {
    opacity: 0.95;
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.2);
  }
}

#immersion3d canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.immersion-visual::before,
.immersion-visual::after {
  content: "";
  position: absolute;
  inset: auto 8% 12% 8%;
  height: 34%;
  background: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.25), transparent 68%);
  filter: blur(12px);
  z-index: 0;
}

.immersion-visual::after {
  inset: 8% 18% auto 18%;
  height: 28%;
  background: radial-gradient(ellipse at center, rgba(97, 218, 251, 0.12), transparent 72%);
}

.track-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.track-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: stretch;
  min-width: 0;
}

.track-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin: 0 0 10px;
}

.track-filters label {
  gap: 7px;
}

.track-filters span,
.filter-count {
  color: var(--muted);
  font-size: 0.82rem;
}

.track-filters select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(168, 85, 247, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  padding: 0 12px;
}

.track-filters select option {
  background: #111018;
  color: var(--ink);
}

.track-filters select:focus {
  outline: 2px solid rgba(168, 85, 247, 0.42);
  border-color: transparent;
}

.filter-reset {
  min-height: 44px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  padding: 0 14px;
  cursor: pointer;
}

.filter-reset:hover {
  color: var(--ink);
  border-color: rgba(168, 85, 247, 0.58);
}

.filter-count {
  min-height: 20px;
  margin: 0 0 14px;
}

.track-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  scroll-margin-top: 120px;
  min-height: 82px;
  padding: 14px;
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  cursor: pointer;
}

.favorite-toggle,
.track-share-button,
.favorites-fab,
.favorites-head button {
  display: grid;
  place-items: center;
  border: 1px solid rgba(168, 85, 247, 0.28);
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  cursor: pointer;
}

.current-favorite {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.current-share {
  width: 42px;
  height: 42px;
  max-height: 42px;
  min-height: 42px;
  align-self: center;
  border-radius: 50%;
}

.track-row .track-share-button {
  width: 42px;
  min-height: 82px;
  align-self: stretch;
}

.track-share-button:hover,
.track-share-button:focus-visible {
  border-color: rgba(216, 180, 254, 0.76);
  background: rgba(168, 85, 247, 0.16);
}

.favorite-toggle img,
.track-share-button img,
.favorites-fab img,
.favorites-head button img,
.favorite-row button img,
#immersionFavorite img {
  width: 20px;
  height: 20px;
  filter: invert(1) drop-shadow(0 0 10px rgba(216, 180, 254, 0.28));
  pointer-events: none;
}

.favorite-toggle.is-favorite,
#immersionFavorite.is-favorite {
  border-color: rgba(216, 180, 254, 0.76);
  background: rgba(168, 85, 247, 0.18);
}

.favorite-toggle.is-favorite img,
#immersionFavorite.is-favorite img,
.favorites-fab.has-favorites img {
  filter: invert(1) sepia(1) saturate(4) hue-rotate(215deg) drop-shadow(0 0 14px rgba(168, 85, 247, 0.72));
}

.featured-track {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1.1fr);
  gap: 16px;
  align-items: center;
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid rgba(168, 85, 247, 0.38);
  background:
    linear-gradient(135deg, rgba(168, 85, 247, 0.16), rgba(97, 218, 251, 0.045)),
    rgba(255, 255, 255, 0.035);
}

.featured-track h3 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  line-height: 1.05;
}

.featured-track p:not(.eyebrow) {
  color: var(--muted);
  margin: 10px 0 0;
}

.featured-trigger {
  width: 100%;
}

.track-item[hidden] {
  display: none;
}

.track-share-button[hidden] {
  display: none;
}

.track-item.is-active {
  border-color: rgba(168, 85, 247, 0.82);
  background: rgba(168, 85, 247, 0.12);
}

.track-item.is-active .track-main strong {
  color: #fff;
}

.track-item.is-active .track-orbit {
  border-color: rgba(216, 180, 254, 0.95);
  background: rgba(168, 85, 247, 0.28);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.58);
}

.player-shell.is-playing .track-item.is-active {
  border-color: rgba(97, 218, 251, 0.8);
  background:
    linear-gradient(90deg, rgba(97, 218, 251, 0.12), rgba(168, 85, 247, 0.16)),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 4px 0 0 rgba(97, 218, 251, 0.86), 0 0 34px rgba(97, 218, 251, 0.08);
}

.player-shell.is-playing .track-item.is-active .track-orbit {
  animation: activeTrackPulse 1.2s ease-in-out infinite;
}

@keyframes activeTrackPulse {
  0%,
  100% {
    transform: scale(0.84);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

.track-index {
  color: var(--cyan);
  font-weight: 800;
}

.track-main small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.track-main,
.favorite-row > div,
.social-link span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.track-orbit {
  width: 16px;
  height: 16px;
  border: 1px solid var(--violet);
  border-radius: 50%;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.social-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.contact-cta {
  position: relative;
  z-index: 1;
  margin: 20px clamp(18px, 6vw, 80px) 80px;
  padding: clamp(24px, 5vw, 54px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.favorites-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(8, 7, 13, 0.88);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42), 0 0 32px rgba(168, 85, 247, 0.18);
}

.favorites-fab.is-over-immersion {
  z-index: 2147483002;
}

.favorites-fab span {
  position: absolute;
  right: -4px;
  top: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.favorites-panel {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 31;
  width: min(360px, calc(100vw - 32px));
  max-height: min(520px, calc(100vh - 124px));
  display: none;
  overflow: hidden;
  border: 1px solid rgba(168, 85, 247, 0.32);
  background: rgba(9, 8, 14, 0.96);
  box-shadow: var(--shadow);
}

.favorites-panel.is-over-immersion {
  z-index: 2147483002;
}

.toast-region {
  position: fixed;
  right: 22px;
  bottom: 92px;
  z-index: 2147483003;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  padding: 13px 15px;
  border: 1px solid rgba(168, 85, 247, 0.34);
  background: rgba(9, 8, 14, 0.96);
  color: var(--ink);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42), 0 0 28px rgba(168, 85, 247, 0.18);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.is-leaving {
  opacity: 0;
  transform: translateY(10px);
}

.favorites-panel.is-open {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.favorites-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.favorites-head button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.favorites-list {
  display: grid;
  gap: 10px;
  overflow: auto;
  padding: 14px;
}

.favorite-row {
  display: grid;
  grid-template-columns: 1fr 38px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
}

.favorite-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.favorite-row button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(168, 85, 247, 0.28);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.favorites-mail {
  margin: 14px;
}

.empty-state,
.muted {
  color: var(--muted);
}

.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(168, 85, 247, 0.18), transparent 32rem),
    #07070a;
}

.not-found-body {
  min-height: 100vh;
  background:
    linear-gradient(115deg, rgba(5, 5, 7, 0.82), rgba(5, 5, 7, 0.5)),
    url("/assets/og-feelmotionstudio.png") center / cover fixed,
    var(--bg);
}

.not-found-page {
  position: relative;
  z-index: 1;
  width: min(780px, calc(100% - 36px));
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 22px;
  padding: 96px 0;
  margin: 0 auto;
}

.not-found-page h1 {
  font-size: clamp(2.6rem, 7vw, 6.4rem);
}

.not-found-page p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.08rem;
}

.auth-panel {
  width: min(440px, calc(100% - 32px));
  margin: 8vh auto;
  padding: 30px;
}

.auth-title {
  font-size: clamp(1.85rem, 5vw, 2.7rem);
}

.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 250px;
  padding: 22px;
  background: rgba(12, 11, 17, 0.95);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.admin-sidebar nav {
  flex-direction: column;
}

.admin-main {
  margin-left: 250px;
  padding: 32px;
  min-width: 0;
}

.admin-head {
  justify-content: space-between;
  margin-bottom: 24px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.metric {
  padding: 24px;
}

.metric span {
  color: var(--muted);
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 2.4rem;
}

.admin-card {
  padding: 22px;
  margin-bottom: 18px;
}

.admin-card h2 {
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.stack-form,
.grid-form {
  display: grid;
  gap: 14px;
}

.grid-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.settings-group {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0 0 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.settings-group legend {
  margin-bottom: 12px;
  color: var(--ink);
  font-weight: 800;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.settings-wide {
  grid-column: 1 / -1;
}

.security-form {
  max-width: 520px;
  margin-top: 16px;
}

.two-factor-setup {
  display: grid;
  gap: 12px;
  max-width: 520px;
  margin: 16px 0;
}

.two-factor-setup img {
  width: min(260px, 100%);
  padding: 12px;
  background: #fff;
}

code {
  color: #e9d5ff;
  overflow-wrap: anywhere;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  padding: 12px 13px;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(168, 85, 247, 0.48);
  border-color: transparent;
}

.wide {
  grid-column: span 2;
}

.row-form,
.social-admin-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) minmax(120px, 1fr) minmax(120px, 1fr) 86px minmax(112px, auto) minmax(102px, auto) minmax(86px, auto) minmax(104px, auto);
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.social-admin-row {
  grid-template-columns: 220px 1fr 90px;
}

.alert {
  padding: 12px 14px;
  border: 1px solid var(--line);
}

.alert.error {
  color: #fecdd3;
  border-color: rgba(244, 63, 94, 0.38);
}

.alert.success {
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.38);
}

@media (max-width: 1120px) {
  .admin-sidebar {
    width: 220px;
    padding: 18px;
  }

  .admin-main {
    margin-left: 220px;
    padding: 26px;
  }

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

  .row-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    padding: 16px 0;
  }

  .row-form .button {
    min-width: 0;
  }

  .immersion-trackbar {
    right: 96px;
  }

  .immersion-volume {
    grid-template-columns: auto 88px auto;
  }

  .immersion-volume input {
    width: 88px;
  }
}

@media (max-width: 840px) {
  .site-nav {
    position: absolute;
    align-items: stretch;
    gap: 12px;
    flex-direction: column;
  }

  .site-nav nav {
    justify-content: flex-start;
    gap: 6px;
  }

  .site-nav nav a,
  .admin-sidebar nav a {
    padding: 9px 10px;
  }

  .hero {
    min-height: 94vh;
    padding-top: 150px;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .section {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .player-top,
  .player-switches {
    align-items: stretch;
    justify-content: flex-start;
  }

  .player-switches {
    width: 100%;
  }

  .volume-control {
    grid-template-columns: auto minmax(86px, 1fr) auto;
    width: min(100%, 270px);
  }

  .volume-control input[type="range"] {
    width: 100%;
  }

  .admin-sidebar {
    position: static;
    width: 100%;
    gap: 16px;
  }

  .admin-sidebar nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .admin-main {
    margin-left: 0;
    padding: 18px;
  }

  .grid-form,
  .settings-grid,
  .row-form,
  .social-admin-row,
  .track-filters {
    grid-template-columns: 1fr;
  }

  .featured-track {
    grid-template-columns: 1fr;
  }

  .wave-card {
    grid-template-columns: 42px 52px 42px 42px 42px;
  }

  .wave-area {
    grid-column: 1 / -1;
  }

  .play-button {
    width: 52px;
    height: 52px;
  }

  .wide {
    grid-column: auto;
  }

  .immersion-close {
    top: 14px;
    right: 14px;
    width: 52px;
    height: 52px;
  }

  .immersion-close img {
    width: 24px;
    height: 24px;
  }

  .immersion-trackbar {
    left: 12px;
    right: 78px;
    top: 14px;
    min-height: 52px;
    padding: 10px;
    gap: 12px;
    align-items: flex-start;
    flex-direction: column;
  }

  .immersion-title-block {
    grid-template-columns: 42px minmax(0, 1fr);
    width: 100%;
  }

  .immersion-title-block img {
    width: 42px;
    height: 42px;
  }

  .immersion-controls {
    justify-content: flex-start;
    gap: 8px;
  }

  .immersion-controls button {
    width: 38px;
    height: 38px;
  }

  #immersionPlay {
    width: 46px;
    height: 46px;
  }

  .immersion-toggle,
  .immersion-volume {
    min-height: 38px;
  }

  .immersion-timeline {
    left: 12px;
    right: 12px;
    bottom: 14px;
    grid-template-columns: 42px 1fr 42px;
    gap: 10px;
    padding: 12px;
  }
}

@media (max-width: 560px) {
  .site-nav {
    padding: 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
  }

  .site-nav nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .site-nav nav a {
    display: grid;
    place-items: center;
    min-height: 38px;
    padding: 8px 6px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: 90vh;
    padding: 136px 16px 48px;
    align-items: end;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, #050507 0%, rgba(5, 5, 7, 0.16) 48%, rgba(5, 5, 7, 0.42)),
      linear-gradient(90deg, rgba(5, 5, 7, 0.9), rgba(5, 5, 7, 0.35));
  }

  h1 {
    font-size: clamp(2.55rem, 16vw, 4rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(1.85rem, 10vw, 2.65rem);
    line-height: 1.02;
  }

  .hero-actions,
  .contact-cta {
    align-items: stretch;
  }

  .hero-actions .button,
  .contact-cta .button {
    width: 100%;
  }

  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .player-shell,
  .featured-track,
  .track-item,
  .admin-card,
  .metric {
    padding: 14px;
  }

  .player-switches {
    display: grid;
    grid-template-columns: 1fr;
  }

  .volume-control,
  .immersion-button {
    width: 100%;
  }

  .wave-card {
    grid-template-columns: repeat(5, minmax(42px, 1fr));
    padding: 14px;
  }

  .play-button,
  .player-nav-button,
  .current-favorite,
  .current-share {
    justify-self: center;
  }

  #waveform {
    min-height: 76px;
  }

  .track-list,
  .social-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .track-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
  }

  .contact-cta {
    margin: 12px 16px 62px;
  }

  .favorites-fab {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }

  .favorites-panel,
  .toast-region {
    left: 12px;
    right: 12px;
    bottom: 78px;
    width: auto;
  }

  .auth-panel {
    width: calc(100% - 24px);
    margin: 24px auto;
    padding: 22px;
  }

  .admin-main {
    padding: 14px;
  }

  .admin-head {
    align-items: flex-start;
  }

  .admin-head .button {
    width: 100%;
  }

  .admin-sidebar {
    padding: 14px;
  }

  .admin-sidebar nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-sidebar nav a {
    display: grid;
    place-items: center;
    min-height: 38px;
    text-align: center;
  }

  .row-form,
  .social-admin-row {
    gap: 8px;
    padding: 14px 0;
  }

  .row-form .button,
  .social-admin-row .button {
    width: 100%;
  }

  .immersion-trackbar {
    right: 12px;
    top: 76px;
    max-height: calc(100vh - 168px);
    overflow: auto;
  }

  .immersion-controls {
    width: 100%;
  }

  .immersion-volume {
    grid-template-columns: auto minmax(70px, 1fr) auto;
    width: 100%;
  }

  .immersion-volume input {
    width: 100%;
  }

  .immersion-toggle {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .site-nav nav,
  .admin-sidebar nav {
    grid-template-columns: 1fr;
  }

  .wave-card {
    grid-template-columns: repeat(2, minmax(42px, 1fr));
  }

  .hero {
    padding-top: 228px;
  }

  .wave-area {
    grid-column: 1 / -1;
  }

  .immersion-timeline {
    grid-template-columns: 1fr 1fr;
  }

  #immersionSeek {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}
