/* ════════════════════════════════════════════════════════
   cariim.studio — style.css  v5
   ────────────────────────────────────────────────────────
   Palette
     --void    #060809   Hintergrund (tiefstes Schwarz-Blau)
     --deep    #0B0E14   Karten / Surfaces
     --border  #18202E   Trennlinien
     --muted   #36404F   deaktivierter Text
     --text    #B8C0CC   Fließtext
     --bright  #E6EAF0   Überschriften
     --silver  #D0D5DE   Logo / Special
     --accent  #7B6EF6   Violett-Indigo
     --accent2 #2EFFC8   Aqua-Mint
   Fonts
     Logo     — Cormorant Garamond 300/400 (luxuriös, editorialisch)
     Display  — Syne 800
     UI       — Space Grotesk 300/400/500
════════════════════════════════════════════════════════ */

/* ── Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --void:         #060809;
  --deep:         #0B0E14;
  --border:       #18202E;
  --muted:        #36404F;
  --text:         #B8C0CC;
  --bright:       #E6EAF0;
  --silver:       #D0D5DE;
  --accent:       #7B6EF6;
  --accent2:      #2EFFC8;
  --font-logo:    'Cormorant Garamond', serif;
  --font-display: 'Syne', sans-serif;
  --font-ui:      'Space Grotesk', sans-serif;
  --nav-h:        64px;
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-expo:    cubic-bezier(0.16, 1, 0.3, 1);
}

html { font-size: 16px; }

body {
  background: var(--void);
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 400;
  line-height: 1.65;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
}

/* ── Globale Grain-Textur via CSS ──────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  mix-blend-mode: overlay;
}

/* Vignette */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(
    ellipse 75% 75% at 50% 45%,
    transparent 40%,
    rgba(6,8,9,0.65) 100%
  );
}


/* ════════════════════════════════════════════════════════
   INTRO CANVAS
   ────────────────────────────────────────────────────────
   Liegt über allem — zeigt die Partikel-Materialisierungs-
   Animation beim ersten Laden. Wird durch JS ausgeblendet
   und entfernt wenn die Animation fertig ist.

   Nahtloser Handoff vom Preloader:
   Beide Layer (#preloader und #intro-canvas) sitzen exakt
   übereinander (position:fixed, inset:0, gleicher --void
   Hintergrund) und teilen sich dieselbe Timing-Function
   (--ease-expo) für ihren Opacity-Übergang. So entsteht beim
   Wechsel "Preloader fadet aus → Intro-Partikel sind schon
   in Position" kein Doppel-Flash und kein sichtbarer
   Hintergrund-Sprung, selbst wenn beide Layer für einen
   Frame gleichzeitig im DOM überlappen.
════════════════════════════════════════════════════════ */

#intro-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 8000;
  pointer-events: none;
  display: block;
  background: var(--void);
  opacity: 1;
  transition: opacity 1.2s var(--ease-expo);
  will-change: opacity;
  /* Verhindert Sub-Pixel-Flackern beim Compositing */
  backface-visibility: hidden;
  transform: translateZ(0);
}

#intro-canvas.dissolving {
  opacity: 0;
}


/* ════════════════════════════════════════════════════════
   PRELOADER — Partikel-"cvc"-Canvas
   ────────────────────────────────────────────────────────
   Minimalistischer Partikelpreloader. Kein DOM-Text,
   kein Gradient-Spin — nur ein Canvas mit feinen Silber-
   Partikeln die "cvc" bilden und sich wieder auflösen.

   Liegt über #intro-canvas (höherer z-index), damit der
   Preloader während der allerersten Ladephase sichtbar
   bleibt, auch wenn die Intro-Materialisierung im Hintergrund
   bereits ihre Partikel-Ziele aus dem (unsichtbaren) DOM
   sammelt. Der Opacity-Fade nutzt dieselbe --ease-expo
   Kurve wie #intro-canvas für einen einheitlichen Handoff.
════════════════════════════════════════════════════════ */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--void);
  opacity: 1;
  transition: opacity 0.6s var(--ease-expo);
  will-change: opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}

#preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

#loader-canvas {
  /* Kleiner, präziser Canvas — nur groß genug für "cvc".
     Feste Box bereits vor dem ersten Paint reserviert,
     damit beim Init() (Pixel-Sampling + Canvas-Resize in
     app.js) kein Reflow/Sprung entsteht. */
  width:  240px;
  height: 80px;
  display: block;
  will-change: contents;
}


/* ════════════════════════════════════════════════════════
   THREE.JS CANVAS
════════════════════════════════════════════════════════ */

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}


/* ════════════════════════════════════════════════════════
   HEADER / NAV
════════════════════════════════════════════════════════ */

#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(
    180deg,
    rgba(6,8,9,0.96) 0%,
    rgba(6,8,9,0.00) 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.logo {
  font-family: var(--font-logo);
  font-weight: 300;
  font-size: 1.4rem;
  letter-spacing: 0.22em;
  color: var(--silver);
  text-transform: lowercase;
  user-select: none;
  transition: color 0.3s var(--ease), letter-spacing 0.4s var(--ease);
}

.logo:hover {
  color: var(--bright);
  letter-spacing: 0.28em;
}

#main-nav {
  display: flex;
  gap: 0.15rem;
}

.nav-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  padding: 0.5rem 0.9rem;
  border-radius: 2px;
  position: relative;
  transition: color 0.2s var(--ease);
  /* Taktile Verformung via CSS-Variablen, gesteuert durch JS */
  --deform-x: 0px;
  --deform-y: 0px;
  --deform-scale: 1;
  transform:
    translate(var(--deform-x), var(--deform-y))
    scale(var(--deform-scale));
  transform-origin: center center;
  will-change: transform;
}

.nav-btn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 70%;
  height: 1px;
  background: var(--accent);
  transition: transform 0.3s var(--ease);
}

.nav-btn:hover          { color: var(--text); }
.nav-btn.active         { color: var(--bright); }
.nav-btn.active::after  { transform: translateX(-50%) scaleX(1); }


/* ════════════════════════════════════════════════════════
   CONTENT WRAPPER + TABS
════════════════════════════════════════════════════════ */

#content-wrapper {
  position: relative;
  z-index: 10;
  height: 100dvh;
  padding-top: var(--nav-h);
}

.tab-section {
  position: absolute;
  inset: 0;
  top: var(--nav-h);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease);
  overflow-y: auto;
  overflow-x: hidden;
  height: calc(100dvh - var(--nav-h));
}

.tab-section.active {
  opacity: 1;
  pointer-events: all;
}

.section-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vh, 5.5rem) clamp(1.5rem, 4vw, 2.5rem) 4rem;
}


/* ════════════════════════════════════════════════════════
   SHARED TOKENS
════════════════════════════════════════════════════════ */

.eyebrow {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}


/* ════════════════════════════════════════════════════════
   HOME TAB
════════════════════════════════════════════════════════ */

.home-bio { margin-bottom: 3rem; }

.display-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 9.5vw, 6.5rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--bright);
  background: linear-gradient(155deg, var(--bright) 55%, rgba(176,182,194,0.6) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.4rem;
}

.bio-text {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--text);
  max-width: 460px;
  line-height: 1.85;
}

.bio-text + .bio-text {
  margin-top: 1.1rem;
}

/* Zweiter Absatz — minimal gedämpfter Ton, leiser als der
   erste, wie eine Randnotiz statt eines weiteren Statements.
   Trägt die "Kult"-Anmutung über Farbe, nicht über Worte. */
.bio-text--secondary {
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 430px;
}


/* ── Linktree-Buttons ─────────────────────────────────── */
.linktree {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 340px;
}

/*
  TAKTILE BUTTON-VERFORMUNG
  ─────────────────────────
  Kein Overlay, kein Konfetti. Stattdessen verformt sich
  das Element selbst beim Drücken — durch CSS-Filter (blur,
  brightness) + border-radius-Manipulation + subtile
  translate/skew-Verschiebung, die organisch und asymmetrisch
  wirkt. JS setzt die CSS-Variablen präzise in Echtzeit.

  Die Werte werden via pointer-Events in app.js berechnet
  und als --press-* Custom Properties gesetzt.
*/
.link-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.2rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(11, 14, 20, 0.25);
  border: 1px solid rgba(24, 32, 46, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  /* Basis-Transition für Hover-Farben */
  transition:
    color        0.3s var(--ease),
    border-color 0.3s var(--ease);

  /* CSS-Variablen für taktile Verformung — JS schreibt diese */
  --px: 0;         /* Klick-X relativ zum Element (0..1) */
  --py: 0;         /* Klick-Y relativ zum Element (0..1) */
  --press: 0;      /* Druck-Intensität 0→1→0 */

  will-change: transform, border-radius, filter;
}

/*
  Die eigentliche Verformung:
  transform greift auf --press + --px/--py zurück,
  um die Eindrückung an der Klickstelle zu simulieren.
  border-radius wird asymmetrisch über clip-path angepasst.
  filter: blur reagiert minimal, um eine weiche Materialität
  zu erzeugen — wie Gummi das nachgibt.
*/
.link-btn.pressing {
  /* Leichtes Einsinken + laterale Asymmetrie via skew */
  transform:
    translateY(calc(var(--press) * 1.8px))
    scaleX(calc(1 - var(--press) * 0.012))
    scaleY(calc(1 - var(--press) * 0.022));
  border-radius:
    calc(3px + var(--press) * (var(--px) * 3px))
    calc(3px + var(--press) * ((1 - var(--px)) * 3px))
    calc(3px + var(--press) * ((1 - var(--py)) * 3px))
    calc(3px + var(--press) * (var(--py) * 3px));
  filter: brightness(calc(1 - var(--press) * 0.08));
  border-color: rgba(123, 110, 246, calc(0.2 + var(--press) * 0.6));
  transition: none; /* Kein CSS-Delay beim Drücken */
}

.link-btn.releasing {
  transform: translateY(0) scaleX(1) scaleY(1);
  border-radius: 3px;
  filter: brightness(1);
  transition:
    transform     0.55s var(--ease-spring),
    border-radius 0.4s  var(--ease-expo),
    filter        0.3s  var(--ease),
    color         0.3s  var(--ease),
    border-color  0.3s  var(--ease);
}

/* Gleitender Hintergrund-Schimmer */
.link-btn-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(123, 110, 246, 0.0) 0%,
    rgba(123, 110, 246, 0.1) 50%,
    rgba(46,  255, 200, 0.06) 100%
  );
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease);
  pointer-events: none;
}

.link-btn:hover .link-btn-bg  { transform: translateX(0); }
.link-btn:hover                { color: var(--bright); border-color: rgba(123,110,246,0.4); }

.link-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.25s;
  position: relative;
  z-index: 1;
}

.link-btn:hover .link-icon { opacity: 1; }

.link-label {
  flex: 1;
  position: relative;
  z-index: 1;
}

.link-arrow {
  width: 14px;
  height: 14px;
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity 0.25s, transform 0.25s var(--ease);
  position: relative;
  z-index: 1;
}

.link-btn:hover .link-arrow {
  opacity: 0.6;
  transform: translate(0, 0);
}


/* ── Spotify-Button — Priorität #1 im Linktree ─────────
   Bewusst eine Stufe heller/größer als die übrigen Links,
   damit er als erster, klar bevorzugter CTA wahrgenommen
   wird — ohne sich stilistisch vom restlichen System zu
   lösen. Nutzt denselben taktilen Press-Mechanismus wie
   .link-btn (--press / --px / --py werden von app.js
   identisch gesetzt), bekommt aber einen eigenen Akzent-
   Rahmen, kräftigeren Hintergrund und einen weichen
   Glow-Puls im Ruhezustand. */
.link-btn--spotify {
  border-color: rgba(46, 255, 200, 0.32);
  background: rgba(46, 255, 200, 0.05);
  color: var(--bright);
  padding: 1.15rem 1.3rem;
}

.link-btn--spotify .link-icon {
  opacity: 0.92;
  color: var(--accent2);
}

.link-btn--spotify .link-btn-bg {
  background: linear-gradient(
    110deg,
    rgba(46, 255, 200, 0.0) 0%,
    rgba(46, 255, 200, 0.14) 50%,
    rgba(123, 110, 246, 0.08) 100%
  );
}

.link-btn--spotify:hover {
  border-color: rgba(46, 255, 200, 0.6);
  color: var(--bright);
}

.link-btn--spotify:hover .link-icon { opacity: 1; }

/* Ruhiger Glow-Atem hinter dem Button — sehr subtil,
   kein Lauflicht, kein Badge, kein "Listen Now"-Banner.
   Reine atmosphärische Betonung. */
.link-btn-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  box-shadow: 0 0 0 0 rgba(46, 255, 200, 0);
  animation: spotify-pulse 4.5s ease-in-out infinite;
}

@keyframes spotify-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 255, 200, 0); }
  50%      { box-shadow: 0 0 22px 1px rgba(46, 255, 200, 0.16); }
}

@media (prefers-reduced-motion: reduce) {
  .link-btn-glow { animation: none; }
}


/* ════════════════════════════════════════════════════════
   MUSIC TAB
════════════════════════════════════════════════════════ */

.music-inner {
  position: relative;
  min-height: calc(100dvh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 3.5rem;
  max-width: 100%;
}

/* Hintergrundvideo */
.music-video-bg {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  display: none;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}

.music-video-bg.visible {
  display: block;
}

.music-video-bg.faded-in {
  opacity: 1;
}

.video-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(0.3) brightness(0.5);
  transition: opacity 0.9s var(--ease);
}

.video-slot.active-slot {
  opacity: 0.30;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6,8,9,0.98) 0%,
    rgba(6,8,9,0.40) 55%,
    rgba(6,8,9,0.65) 100%
  );
}

/* Player */
.music-player-wrap {
  position: relative;
  z-index: 5;
  max-width: 580px;
  margin: 0 auto;
  width: 100%;
  padding: 0 clamp(1.5rem, 4vw, 2.5rem);
}

#music-player {
  background: rgba(11, 14, 20, 0.72);
  border: 1px solid rgba(24, 32, 46, 0.9);
  border-radius: 5px;
  padding: 1.6rem 1.8rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin-bottom: 1.25rem;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 24px 48px rgba(0,0,0,0.6);
}

.player-track-info {
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.player-label {
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  color: var(--accent2);
  text-transform: uppercase;
}

.player-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#waveform {
  height: 60px;
  margin-bottom: 1.1rem;
  cursor: pointer;
  border-radius: 2px;
  overflow: hidden;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.ctrl-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*
  PLAY-BUTTON — TAKTILE VERFORMUNG
  Der Button verformt sich organisch beim Drücken.
  Kein Schimmer-Overlay mehr (::before entfernt).
  Stattdessen: physische Eindrückung + border-radius-Mutation
  + minimaler filter-Einsatz.
*/
.play-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  transition:
    background  0.2s var(--ease),
    transform   0.55s var(--ease-spring),
    box-shadow  0.2s,
    border-radius 0.4s var(--ease-expo),
    filter 0.3s;
  position: relative;
  overflow: hidden;
  /* JS schreibt --press-scale, --press-filter */
  will-change: transform, filter, border-radius;
}

.play-btn.pressing {
  /* Eindrückung: 3D-Druck-Effekt über scale + box-shadow */
  transform: scale(0.91);
  border-radius: 40% 50% 50% 40% / 45% 45% 55% 55%;
  filter: brightness(0.85);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.6),
    inset 0 2px 4px rgba(0,0,0,0.4);
  transition: none;
}

.play-btn.releasing {
  transform: scale(1);
  border-radius: 50%;
  filter: brightness(1);
  box-shadow: none;
  transition:
    transform     0.55s var(--ease-spring),
    border-radius 0.45s var(--ease-expo),
    filter        0.3s  var(--ease),
    box-shadow    0.3s  var(--ease);
}

.play-btn svg {
  width: 16px;
  height: 16px;
  fill: #fff;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.play-btn:hover {
  background: #9086ff;
  box-shadow: 0 0 24px rgba(123,110,246,0.6), 0 0 48px rgba(123,110,246,0.2);
}

.player-time {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.time-sep { margin: 0 0.2rem; }

.volume-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.vol-icon {
  width: 14px;
  height: 14px;
  fill: var(--muted);
  flex-shrink: 0;
}

#volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 68px;
  height: 1px;
  background: var(--border);
  border-radius: 1px;
  outline: none;
  cursor: pointer;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

#volume-slider::-webkit-slider-thumb:hover {
  background: #9086ff;
  transform: scale(1.3);
}

/* Track-Auswahlliste */
.music-track-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.music-track-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  background: rgba(11, 14, 20, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s, border-color 0.2s,
    transform 0.55s var(--ease-spring),
    border-radius 0.4s var(--ease-expo),
    filter 0.3s;
  will-change: transform, filter, border-radius;
}

.music-track-item:hover,
.music-track-item.playing {
  background: rgba(123, 110, 246, 0.09);
  border-color: rgba(123, 110, 246, 0.35);
}

.music-track-item.pressing {
  transform: scaleY(0.94) scaleX(0.99);
  border-radius: 2px 4px 4px 2px;
  filter: brightness(0.88);
  transition: none;
}

.music-track-item.releasing {
  transform: scaleY(1) scaleX(1);
  border-radius: 3px;
  filter: brightness(1);
}

.music-track-item .track-num {
  font-size: 0.62rem;
  color: var(--muted);
  min-width: 1.4rem;
  font-variant-numeric: tabular-nums;
}

.music-track-item .track-name {
  font-size: 0.83rem;
  color: var(--bright);
  flex: 1;
}

.music-track-item .track-dur {
  font-size: 0.68rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}


/* ════════════════════════════════════════════════════════
   BEATS TAB
════════════════════════════════════════════════════════ */

.beats-header { margin-bottom: 2.25rem; }

.beats-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 5vw, 2.8rem);
  color: var(--bright);
  letter-spacing: -0.01em;
}

.beats-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* num | play | name | meta | buy | pointcloud
   Die sechste Spalte (.beat-pointcloud) ist standardmäßig
   auf 0 Breite kollabiert und unsichtbar — sie nimmt im
   Ruhezustand keinen visuellen oder Layout-Platz ein.
   app.js (Phase 2) setzt beim Abspielen eines Beats die
   Klasse .active auf das jeweilige .beat-item, wodurch sich
   die Spalte aufklappt und Platz für eine Canvas-basierte
   Punktwolken-Visualisierung der Waveform schafft. */
.beat-item {
  display: grid;
  grid-template-columns: 2rem 38px 1fr auto auto 0px;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 0.9rem;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s,
    transform 0.55s var(--ease-spring),
    border-radius 0.4s var(--ease-expo),
    filter 0.3s,
    grid-template-columns 0.5s var(--ease-expo),
    gap 0.5s var(--ease-expo);
  cursor: default;
  will-change: transform, filter;
}

.beat-item.active {
  grid-template-columns: 2rem 38px 1fr auto auto 64px;
}

.beat-item:hover {
  background: rgba(24, 32, 46, 0.65);
  border-color: rgba(24, 32, 46, 1);
}

.beat-item.playing {
  background: rgba(123, 110, 246, 0.07);
  border-color: rgba(123, 110, 246, 0.3);
}

.beat-num {
  font-size: 0.62rem;
  color: var(--muted);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/*
  BEAT PLAY BUTTON — TAKTILE VERFORMUNG
  Kreisförmiger Button: wird beim Drücken oval eingedrückt.
*/
.beat-play-btn {
  background: none;
  border: 1px solid var(--border);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
  flex-shrink: 0;
  transition:
    border-color   0.2s,
    color          0.2s,
    background     0.2s,
    transform      0.55s var(--ease-spring),
    border-radius  0.45s var(--ease-expo),
    filter         0.3s;
  position: relative;
  overflow: hidden;
  will-change: transform, border-radius, filter;
}

.beat-play-btn.pressing {
  transform: scale(0.88);
  border-radius: 38% 52% 52% 38% / 42% 42% 58% 58%;
  filter: brightness(0.82);
  transition: none;
}

.beat-play-btn.releasing {
  transform: scale(1);
  border-radius: 50%;
  filter: brightness(1);
  transition:
    transform      0.6s var(--ease-spring),
    border-radius  0.5s var(--ease-expo),
    filter         0.35s var(--ease);
}

.beat-play-btn svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
  pointer-events: none;
  position: relative;
  z-index: 1;
}

.beat-play-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(123, 110, 246, 0.1);
  transform: scale(1.12);
}

.beat-item.playing .beat-play-btn {
  border-color: var(--accent2);
  color: var(--accent2);
  background: rgba(46, 255, 200, 0.07);
}

.beat-name {
  font-size: 0.83rem;
  color: var(--bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.beat-meta {
  font-size: 0.66rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-align: right;
  display: none;
}

/* PayPal-Button — aktuell ausgeblendet */
.beat-buy-btn {
  display: none;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  background: #003087;
  border: none;
  border-radius: 3px;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.beat-buy-btn:hover { background: #0052CC; }

/* Equaliser-Indikator */
@keyframes eq-bar {
  0%, 100% { transform: scaleY(0.15); }
  50%       { transform: scaleY(1.0);  }
}

.eq-icon {
  display: none;
  gap: 2px;
  align-items: flex-end;
  height: 13px;
  width: 13px;
}

.eq-icon span {
  display: block;
  width: 2.5px;
  height: 100%;
  background: var(--accent2);
  border-radius: 1px;
  transform-origin: bottom;
}

.beat-item.playing .eq-icon                    { display: flex; }
.beat-item.playing .eq-icon span:nth-child(1)  { animation: eq-bar 0.65s 0.00s ease infinite; }
.beat-item.playing .eq-icon span:nth-child(2)  { animation: eq-bar 0.65s 0.18s ease infinite; }
.beat-item.playing .eq-icon span:nth-child(3)  { animation: eq-bar 0.65s 0.09s ease infinite; }


/*
  BEAT POINT-CLOUD WAVEFORM — Vorbereitung
  ─────────────────────────────────────────
  Unsichtbarer Container pro Beat-Item für eine spätere
  Canvas-basierte Punktwolken-Waveform (Three.js oder 2D-
  Canvas, wird in Phase 2 / JS entschieden). Im Ruhezustand
  null Breite, keine Pointer-Events, opacity 0 — komplett aus
  dem Layout- und Interaktionsfluss genommen, sodass er das
  bestehende Grid nicht stört, solange kein Beat abgespielt
  wird.

  Sobald JS beim Play eines Beats die Klasse .active auf das
  übergeordnete .beat-item setzt (zusammen mit .playing),
  expandiert die Grid-Spalte (siehe .beat-item.active oben)
  und dieser Container blendet sich weich ein. Die eigentliche
  Canvas-Instanz wird dynamisch von app.js hineingerendert —
  hier wird nur der Slot und sein Übergangsverhalten definiert.
*/
.beat-pointcloud {
  width: 0;
  height: 30px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  border-radius: 2px;
  transition: width 0.5s var(--ease-expo), opacity 0.4s var(--ease);
  will-change: width, opacity;
}

.beat-item.active .beat-pointcloud {
  width: 64px;
  opacity: 1;
  pointer-events: auto;
}

.beat-pointcloud canvas {
  display: block;
  width: 100%;
  height: 100%;
}


/* ════════════════════════════════════════════════════════
   SCROLLBAR
════════════════════════════════════════════════════════ */
::-webkit-scrollbar              { width: 3px; }
::-webkit-scrollbar-track        { background: transparent; }
::-webkit-scrollbar-thumb        { background: var(--border); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover  { background: var(--muted); }


/* ════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .beat-item               { grid-template-columns: 1.5rem 34px 1fr auto 0px; gap: 0.6rem; }
  .beat-item.active         { grid-template-columns: 1.5rem 34px 1fr auto 44px; }
  .beat-meta               { display: none; }
  .volume-wrap             { display: none; }
  .music-player-wrap       { padding: 0 1rem; }
  #music-player            { padding: 1.2rem; }
}


/* ════════════════════════════════════════════════════════
   REDUCED MOTION
════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration:  0.01ms !important;
    animation-duration:   0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  #intro-canvas { display: none !important; }
}
