:root {
  --bg-0: #0a0f1c;
  --bg-1: #10233a;
  --bg-2: #1d3557;
  --text-main: #f3f7ff;
  --text-soft: #b8c7e6;
  --accent: #88f2d5;
  --card: rgba(11, 20, 38, 0.62);
  --card-border: rgba(199, 224, 255, 0.22);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text-main);
  background: radial-gradient(1200px 700px at 8% 12%, #1f4c7a 0%, transparent 58%),
              radial-gradient(1000px 600px at 92% 86%, #315d84 0%, transparent 52%),
              linear-gradient(135deg, var(--bg-0), var(--bg-1) 42%, var(--bg-2));
}

body { position: relative; overflow-x: hidden; }

.bg-orb {
  position: fixed;
  width: 40vmax;
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.2;
  pointer-events: none;
}
.bg-orb-a { top: -14vmax; left: -10vmax; background: #6bc6ff; }
.bg-orb-b { right: -16vmax; bottom: -16vmax; background: var(--accent); }

.wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 4.2rem 1.2rem;
}

.panel {
  width: min(980px, 100%);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  backdrop-filter: blur(6px);
  padding: clamp(1.2rem, 2.2vw, 2rem);
  box-shadow: 0 18px 45px rgba(4, 11, 21, 0.45);
}

.kicker {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--text-soft);
}

.dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(184, 199, 230, 0.4);
}
.dot.on {
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(136, 242, 213, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 0.6rem rgba(136, 242, 213, 0); }
  100% { box-shadow: 0 0 0 0 rgba(136, 242, 213, 0); }
}
@media (prefers-reduced-motion: reduce) { .dot.on { animation: none; } }

.title {
  margin: 0.5rem 0 0;
  font-size: clamp(1.8rem, 4vw, 3.3rem);
  line-height: 1.08;
  text-wrap: balance;
}

.desc {
  margin: 0.9rem 0 0;
  color: var(--text-soft);
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  max-width: 70ch;
}

.player {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: clamp(1.2rem, 3vw, 2rem);
}

.art-frame {
  margin: 0;
  width: min(33vw, 460px);
  min-width: min(80vw, 280px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.8rem;
}

.art {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.art-fallback {
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--text-soft);
  background: rgba(5, 10, 18, 0.5);
  border: 1px dashed rgba(203, 225, 255, 0.2);
  font-size: 0.95rem;
}

.controls { flex: 1 1 260px; min-width: 0; }
.controls audio { width: 100%; }

.meta {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  color: var(--text-soft);
}
.link { color: var(--accent); text-decoration: none; }
.link:hover, .link:focus-visible { text-decoration: underline; }

.hidden { display: none !important; }

@media (max-width: 780px) {
  .wrap { padding: 1rem; }
  .panel { border-radius: 14px; }
  .art-frame { width: min(92vw, 460px); margin-inline: auto; }
}
