:root {
  --bg: #140312;
  --bg-soft: rgba(36, 8, 31, 0.82);
  --panel: rgba(21, 6, 24, 0.74);
  --panel-strong: rgba(12, 3, 16, 0.9);
  --text: #fff7fd;
  --muted: #f7cfe8;
  --pink: #ff4fa7;
  --pink-strong: #ff0f90;
  --pink-soft: #ffb4db;
  --line: rgba(255, 162, 217, 0.3);
  --shadow: 0 22px 70px rgba(255, 20, 147, 0.18);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 90, 170, 0.3), transparent 34%),
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.08), transparent 20%),
    radial-gradient(circle at 80% 12%, rgba(255, 98, 176, 0.18), transparent 22%),
    linear-gradient(180deg, #22041b 0%, #120211 42%, #09010d 100%);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input {
  font: inherit;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("petra_im_herzen_lk1-cover.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.12;
  filter: blur(14px) saturate(1.2);
  transform: scale(1.08);
  pointer-events: none;
}

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

.sparkles-foreground {
  z-index: 3;
}

.sparkle {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 68%);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.7);
  animation: twinkle 4s ease-in-out infinite;
}

.sparkles-foreground .sparkle {
  width: 18px;
  height: 18px;
  opacity: 0.88;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.85);
  animation-duration: 3.4s;
  mix-blend-mode: screen;
}

.sparkle::before,
.sparkle::after {
  content: "";
  position: absolute;
  inset: 50%;
  background: rgba(255, 255, 255, 0.84);
  transform: translate(-50%, -50%);
}

.sparkle::before {
  width: 2px;
  height: 20px;
}

.sparkle::after {
  width: 20px;
  height: 2px;
}

.sparkle-a {
  top: 12%;
  left: 9%;
  animation-delay: -1.2s;
}

.sparkle-b {
  top: 18%;
  right: 14%;
  animation-delay: -2.1s;
}

.sparkle-c {
  top: 40%;
  left: 6%;
}

.sparkle-d {
  top: 55%;
  right: 9%;
  animation-delay: -3.1s;
}

.sparkle-e {
  top: 72%;
  left: 18%;
  animation-delay: -0.7s;
}

.sparkle-f {
  top: 82%;
  right: 22%;
  animation-delay: -2.8s;
}

.sparkle-front-a {
  top: 11%;
  left: 21%;
  animation-delay: -0.4s;
}

.sparkle-front-b {
  top: 26%;
  right: 17%;
  animation-delay: -1.8s;
}

.sparkle-front-c {
  top: 48%;
  left: 12%;
  animation-delay: -2.6s;
}

.sparkle-front-d {
  top: 66%;
  right: 11%;
  animation-delay: -0.9s;
}

.sparkle-front-e {
  top: 86%;
  left: 28%;
  animation-delay: -2.2s;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(34, 7, 37, 0.85), rgba(11, 4, 19, 0.88));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.16), transparent 24%),
    radial-gradient(circle at top right, rgba(255, 117, 184, 0.18), transparent 30%);
  pointer-events: none;
}

.hero {
  display: block;
  padding: 36px;
}

.hero-copy,
.player-body,
.lyrics {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-text {
  width: 100%;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.74rem;
  color: var(--pink-soft);
}

.hero-logo {
  width: min(430px, 100%);
  margin-bottom: 0;
  filter: drop-shadow(0 16px 34px rgba(255, 62, 157, 0.35));
}

.hero h1,
.section-copy h2 {
  margin: 0;
  line-height: 0.96;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  font-weight: 900;
  text-shadow: 0 0 28px rgba(255, 93, 179, 0.35);
}

.hero h1 span {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.2rem, 3.2vw, 2rem);
  color: var(--muted);
}

.lead,
.section-copy p,
.lyrics-block p,
.artist-line,
.player-text {
  color: var(--muted);
}

.lead {
  max-width: 34rem;
  margin: 20px 0 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions,
.player-controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button,
.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.play-button:hover,
.button:focus-visible,
.play-button:focus-visible {
  transform: translateY(-1px);
}

.button-primary,
.play-button {
  color: #1a0517;
  font-weight: 800;
  background: linear-gradient(180deg, #ffd0ea 0%, #ff66b4 42%, #ff2a97 100%);
  box-shadow: 0 16px 34px rgba(255, 52, 154, 0.34);
}

.button-secondary,
.button-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 177, 224, 0.38);
}

.button-secondary:hover,
.button-ghost:hover,
.button-secondary:focus-visible,
.button-ghost:focus-visible {
  border-color: rgba(255, 177, 224, 0.64);
  box-shadow: 0 12px 24px rgba(255, 73, 170, 0.12);
}

.player-art {
  position: relative;
  border-radius: 30px;
}

.player {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 28px;
  padding: 30px;
}

.player-art {
  width: min(100%, 300px);
  margin-inline: auto;
}

.player-art img {
  position: relative;
  z-index: 1;
  border-radius: 26px;
  border: 1px solid rgba(255, 191, 226, 0.34);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.player-art-ring {
  position: absolute;
  inset: -12px;
  border-radius: 34px;
  background: conic-gradient(from 210deg, rgba(255, 39, 148, 0.8), rgba(255, 225, 240, 0.2), rgba(255, 39, 148, 0.8));
  filter: blur(12px);
  opacity: 0.52;
}

.section-copy h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.artist-line {
  margin: 10px 0 0;
  font-size: 1.1rem;
}

.player-text {
  max-width: 40rem;
  margin: 14px 0 0;
  line-height: 1.7;
}

.play-button-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background: currentColor;
}

.player.is-playing .play-button-icon {
  width: 15px;
  height: 15px;
  clip-path: polygon(0 0, 35% 0, 35% 100%, 0 100%, 0 0, 65% 0, 100% 0, 100% 100%, 65% 100%, 65% 0);
}

.progress-panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 186, 227, 0.16);
}

.timecode {
  min-width: 42px;
  font-variant-numeric: tabular-nums;
  color: var(--pink-soft);
}

.progress {
  width: 100%;
  height: 8px;
  appearance: none;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 47, 147, 0.9), rgba(255, 177, 223, 0.55));
  outline: none;
}

.progress::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 47, 147, 0.9), rgba(255, 177, 223, 0.55));
}

.progress::-webkit-slider-thumb {
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -5px;
  border: 2px solid #fff2fb;
  border-radius: 50%;
  background: #ff77bf;
  box-shadow: 0 0 16px rgba(255, 100, 184, 0.8);
}

.progress::-moz-range-track {
  height: 8px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 47, 147, 0.9), rgba(255, 177, 223, 0.55));
}

.progress::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid #fff2fb;
  border-radius: 50%;
  background: #ff77bf;
  box-shadow: 0 0 16px rgba(255, 100, 184, 0.8);
}

.equalizer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
}

.equalizer {
  display: inline-flex;
  align-items: flex-end;
  gap: 7px;
  min-height: 34px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 186, 227, 0.16);
}

.equalizer span {
  width: 6px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe5f4, #ff47a4 65%, #cf005f);
  opacity: 0.7;
  animation: equalize 1.2s ease-in-out infinite;
  animation-play-state: paused;
  transform-origin: bottom;
}

.equalizer span:nth-child(2) { animation-delay: -0.15s; }
.equalizer span:nth-child(3) { animation-delay: -0.4s; }
.equalizer span:nth-child(4) { animation-delay: -0.95s; }
.equalizer span:nth-child(5) { animation-delay: -0.6s; }
.equalizer span:nth-child(6) { animation-delay: -0.22s; }
.equalizer span:nth-child(7) { animation-delay: -0.75s; }
.equalizer span:nth-child(8) { animation-delay: -0.52s; }

.player.is-playing .equalizer span {
  animation-play-state: running;
}

.lyrics-block h3 {
  margin: 0;
  font-size: 1.34rem;
}

.lyrics {
  margin-top: 28px;
  padding: 30px;
}

.lyrics-head p:last-child {
  max-width: 48rem;
  margin-top: 16px;
  line-height: 1.7;
}

.lyrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.lyrics-block {
  min-width: 0;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 186, 227, 0.14);
}

.lyrics-block p {
  margin: 14px 0 0;
  line-height: 1.9;
}

.lyrics-block-chorus {
  background: linear-gradient(180deg, rgba(255, 76, 167, 0.17), rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 146, 208, 0.34);
}

.lyrics-block-outro {
  grid-column: 1 / -1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.18);
  }
}

@keyframes equalize {
  0%,
  100% {
    transform: scaleY(0.42);
    opacity: 0.56;
  }

  50% {
    transform: scaleY(1.45);
    opacity: 1;
  }
}

@media (max-width: 920px) {
  .hero-copy,
  .player,
  .lyrics-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .player,
  .lyrics {
    padding: 24px;
  }

  .hero-copy,
  .hero-text {
    text-align: center;
  }

  .hero-copy {
    justify-items: center;
  }

  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 20px), 1180px);
    padding-top: 18px;
    padding-bottom: 36px;
  }

  .hero,
  .player,
  .lyrics {
    border-radius: 24px;
  }

  .hero,
  .player,
  .lyrics {
    padding: 20px;
  }

  .hero-actions,
  .player-controls-row {
    flex-direction: column;
  }

  .button,
  .play-button {
    width: 100%;
  }

  .progress-panel {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .timecode {
    min-width: 0;
  }

  .progress-panel .timecode:first-child {
    order: 1;
  }

  .progress-panel .progress {
    order: 2;
  }

  .progress-panel .timecode:last-child {
    order: 3;
    justify-self: end;
  }

  .lyrics-block-outro {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
