:root {
  --bg: #07040b;
  --panel: rgba(20, 12, 28, 0.72);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f3e9f7;
  --muted: #a493b4;
  --pink: #ff3fa4;
  --violet: #9b5cff;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 "Quicksand", system-ui, sans-serif;
  padding: 0 20px;
  overflow-x: hidden;
}

a { color: inherit; }

/* ---------- background: glows, perspective grid, scanlines ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.45; }
.glow-a { width: 520px; height: 520px; background: var(--pink);   top: -180px; left: -120px; animation: drift 18s ease-in-out infinite alternate; }
.glow-b { width: 600px; height: 600px; background: var(--violet); top: 30%;    right: -260px; animation: drift 22s ease-in-out infinite alternate-reverse; }

@keyframes drift { to { transform: translate(60px, 80px) scale(1.1); } }

.grid {
  position: absolute; left: -50%; right: -50%; bottom: -10%; height: 60%;
  background-image:
    linear-gradient(rgba(255, 63, 164, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 92, 255, 0.35) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(500px) rotateX(62deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, black 10%, transparent 85%);
  animation: grid-scroll 6s linear infinite;
}
@keyframes grid-scroll { to { background-position: 0 60px, 0 0; } }

body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 10;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px);
}

/* ---------- hero ---------- */
.hero {
  max-width: 900px; margin: 0 auto;
  padding: clamp(72px, 14vh, 140px) 0 56px;
  text-align: center;
}

.kicker {
  font-family: "Share Tech Mono", monospace;
  letter-spacing: 0.3em; text-transform: uppercase;
  font-size: 0.78rem; color: var(--muted); margin: 0 0 18px;
}

.logo {
  position: relative; display: inline-block; margin: 0;
  font: 900 clamp(3.6rem, 16vw, 8.5rem)/1 "Orbitron", sans-serif;
  letter-spacing: 0.08em;
  background: linear-gradient(100deg, #fff 10%, #ffc2e3 40%, var(--pink) 65%, var(--violet) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 24px rgba(255, 63, 164, 0.45));
}
.logo::before, .logo::after {
  content: attr(data-text); position: absolute; inset: 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0.7; mix-blend-mode: screen;
}
.logo::before { background-color: var(--pink);   animation: glitch 4s steps(1) infinite; }
.logo::after  { background-color: var(--violet); animation: glitch 4s steps(1) infinite reverse; }

@keyframes glitch {
  0%, 88%, 100% { transform: none; clip-path: inset(0 0 100% 0); }
  90% { transform: translate(-4px, 1px);  clip-path: inset(20% 0 55% 0); }
  93% { transform: translate(4px, -1px);  clip-path: inset(60% 0 10% 0); }
  96% { transform: translate(-2px, 0);    clip-path: inset(40% 0 35% 0); }
}

.bio { font-size: 1.15rem; color: var(--muted); margin: 22px 0 26px; }

.links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.links a {
  font-family: "Share Tech Mono", monospace; font-size: 0.9rem;
  text-decoration: none; padding: 9px 20px; border-radius: 999px;
  border: 1px solid rgba(255, 63, 164, 0.5);
  background: rgba(255, 63, 164, 0.08);
  transition: background 0.2s, box-shadow 0.2s;
}
.links a:hover { background: rgba(255, 63, 164, 0.2); box-shadow: 0 0 20px rgba(255, 63, 164, 0.4); }

/* ---------- sections ---------- */
main { max-width: 900px; margin: 0 auto; }
section { margin-bottom: 64px; }

.section-title {
  display: flex; align-items: center; gap: 14px;
  font: 500 1.05rem/1 "Orbitron", sans-serif;
  letter-spacing: 0.2em; text-transform: uppercase;
  margin: 0 0 22px;
}
.section-title span { color: var(--pink); font-family: "Share Tech Mono", monospace; }
.section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--violet), transparent); }

/* ---------- track cards ---------- */
.tracks { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }

.track {
  display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center;
  padding: 16px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.track:hover { border-color: rgba(155, 92, 255, 0.45); transform: translateY(-2px); }
.track.playing {
  border-color: rgba(255, 63, 164, 0.7);
  box-shadow: 0 0 0 1px rgba(255, 63, 164, 0.3), 0 0 40px rgba(255, 63, 164, 0.25);
}

.art { aspect-ratio: 1; border-radius: 12px; overflow: hidden; position: relative; }
.art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.track:hover .art img, .track.playing .art img { transform: scale(1.05); }

.art-placeholder {
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, var(--pink), transparent 60%),
              radial-gradient(circle at 70% 75%, var(--violet), transparent 60%), #12091a;
}
.art-placeholder span { font-size: 3rem; color: #fff; text-shadow: 0 0 20px #fff; }

.body { min-width: 0; display: flex; flex-direction: column; gap: 10px; }

.head { display: flex; align-items: flex-start; gap: 12px; }
.num { font-family: "Share Tech Mono", monospace; color: var(--pink); padding-top: 4px; }
.titles { flex: 1; min-width: 0; }
.title { margin: 0; font: 500 1.2rem/1.3 "Orbitron", sans-serif; letter-spacing: 0.04em; }
.meta { margin: 2px 0 0; color: var(--muted); font-size: 0.9rem; }

.sc-link {
  text-decoration: none; color: var(--muted);
  width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line);
  transition: color 0.2s, border-color 0.2s;
}
.sc-link:hover { color: var(--pink); border-color: var(--pink); }

/* ---------- custom player ---------- */
.player { --p: 0%; display: flex; align-items: center; gap: 16px; }

.play {
  flex: none; width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--pink), var(--violet));
  box-shadow: 0 0 22px rgba(255, 63, 164, 0.45);
  display: grid; place-items: center; position: relative;
  transition: transform 0.15s, box-shadow 0.2s;
}
.play:hover { transform: scale(1.06); box-shadow: 0 0 32px rgba(255, 63, 164, 0.7); }
.play:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* play triangle → pause bars */
.play::before {
  content: ""; width: 0; height: 0; margin-left: 4px;
  border-style: solid; border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
}
.track.playing .play::before {
  width: 16px; height: 18px; margin: 0; border: 0;
  background: linear-gradient(90deg, #fff 0 35%, transparent 35% 65%, #fff 65%);
}
.track.loading .play::before {
  width: 22px; height: 22px; margin: 0; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.35); border-top-color: #fff;
  background: none; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.wave { flex: 1; min-width: 0; height: 64px; position: relative; cursor: pointer; }
.bars { position: absolute; inset: 0; display: flex; align-items: center; gap: 2px; }
.bars i { flex: 1; border-radius: 2px; background: rgba(255, 255, 255, 0.16); transition: background 0.2s; }
.wave:hover .bars i { background: rgba(255, 255, 255, 0.26); }
.bars.fill { clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.bars.fill i, .wave:hover .bars.fill i { background: linear-gradient(to top, var(--violet), var(--pink)); }
.track.playing .bars.fill i { box-shadow: 0 0 8px rgba(255, 63, 164, 0.6); }

.time {
  flex: none; min-width: 92px; text-align: right;
  font: 0.82rem "Share Tech Mono", monospace; color: var(--muted);
}

/* hidden SoundCloud widget doing the actual streaming */
.sc-frame {
  position: fixed; width: 1px; height: 1px; opacity: 0; pointer-events: none;
  border: 0; left: 0; bottom: 0;
}
/* shown only if the browser blocked autoplay */
.sc-frame.fallback {
  left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: calc(100% - 32px); max-width: 900px; margin: 0 auto; height: 166px;
  opacity: 1; pointer-events: auto; border-radius: 10px; z-index: 20;
  box-shadow: 0 0 40px rgba(255, 63, 164, 0.4);
}

/* ---------- footer ---------- */
footer {
  text-align: center; padding: 20px 0 48px;
  font-family: "Share Tech Mono", monospace; font-size: 0.8rem; color: var(--muted);
}
.heart { color: var(--pink); }

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  .track { grid-template-columns: 84px 1fr; gap: 14px; padding: 12px; }
  .player { grid-column: 1 / -1; gap: 12px; }
  .play { width: 46px; height: 46px; }
  .wave { height: 48px; }
  .bars { gap: 1px; }
  .time { min-width: 0; font-size: 0.75rem; }
  .body { display: contents; }
  .head { grid-column: 2; grid-row: 1; align-self: center; }
  .art { grid-row: 1; }
  .title { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
