/* ========== EKKO ULTRA MOTION ========== */
:root {
  --pink: #ff4d6d;
  --pink-soft: #ff8fa3;
  --violet: #c084fc;
  --cyan: #22d3ee;
  --glow: 0 0 40px rgba(255, 77, 109, .35);
}

/* Page enter */
body.page-ready .app {
  animation: appFadeIn .7s cubic-bezier(.22,1,.36,1) both;
}
@keyframes appFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* Floating ambient orbs */
.ambient {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.ambient span {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .35;
  animation: floatOrb 18s ease-in-out infinite;
}
.ambient span:nth-child(1) {
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--pink), transparent 70%);
  top: -80px; right: 10%;
  animation-duration: 16s;
}
.ambient span:nth-child(2) {
  width: 260px; height: 260px;
  background: radial-gradient(circle, var(--violet), transparent 70%);
  bottom: 15%; left: -40px;
  animation-duration: 22s;
  animation-delay: -4s;
}
.ambient span:nth-child(3) {
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--cyan), transparent 70%);
  top: 40%; left: 40%;
  animation-duration: 20s;
  animation-delay: -8s;
}
@keyframes floatOrb {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(40px,-30px) scale(1.08); }
  66% { transform: translate(-30px,25px) scale(.95); }
}

/* Reveal on scroll */
.motion-reveal {
  opacity: 0;
  transform: translateY(28px) scale(.98);
  transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
  transition-delay: calc(var(--reveal-order, 0) * 60ms);
}
.motion-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Hero cinematic */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,77,109,.25), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(192,132,252,.2), transparent 40%);
  animation: heroGlow 10s ease-in-out infinite alternate;
  z-index: -1;
}
@keyframes heroGlow {
  from { transform: scale(1) rotate(0deg); opacity: .8; }
  to { transform: scale(1.15) rotate(8deg); opacity: 1; }
}
.hero h1 span {
  background: linear-gradient(120deg, #fff 0%, var(--pink-soft) 40%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: shimmerText 5s linear infinite;
}
@keyframes shimmerText {
  to { background-position: 200% center; }
}
.hero-kicker-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink);
  animation: pulseDot 1.6s ease-in-out infinite;
  margin-left: 8px;
  vertical-align: middle;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: .5; }
}
.hero-art-core {
  display: inline-block;
  animation: spinSoft 12s linear infinite;
  filter: drop-shadow(0 0 20px rgba(255,77,109,.5));
}
@keyframes spinSoft {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.hero-orbit {
  animation: orbitSpin 20s linear infinite;
}
.hero-orbit-two { animation-direction: reverse; animation-duration: 28s; }
@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}
.hero-spark {
  animation: sparkle 2.4s ease-in-out infinite;
}
.hero-spark-two { animation-delay: 1.2s; }
@keyframes sparkle {
  0%, 100% { opacity: .3; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Buttons magnetic feel */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s;
  box-shadow: 0 8px 28px rgba(255,77,109,.35);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.25), transparent);
  transform: translateX(-120%);
  transition: transform .6s;
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 40px rgba(255,77,109,.5);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:active { transform: scale(.97); }

/* Song cards */
.song-card {
  transition: transform .35s cubic-bezier(.22,1,.36,1), background .25s, box-shadow .35s;
}
.song-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
}
.song-cover {
  overflow: hidden;
  position: relative;
}
.song-cover img {
  transition: transform .55s cubic-bezier(.22,1,.36,1);
}
.song-card:hover .song-cover img {
  transform: scale(1.1);
}
.play-btn {
  transition: opacity .25s, transform .35s cubic-bezier(.34,1.56,.64,1) !important;
  box-shadow: 0 8px 24px rgba(255,77,109,.4);
}
.song-card:hover .play-btn {
  transform: translateY(0) scale(1.08) !important;
}
.play-btn:hover {
  transform: scale(1.15) !important;
  box-shadow: var(--glow);
}

/* List items */
.song-list-item {
  transition: background .2s, transform .25s cubic-bezier(.22,1,.36,1);
}
.song-list-item:hover {
  transform: translateX(-6px);
  background: rgba(255,255,255,.06);
}

/* Sidebar nav */
.nav-item {
  transition: background .2s, color .2s, transform .2s;
  position: relative;
}
.nav-item:hover {
  transform: translateX(-4px);
}
.nav-item.active::before {
  content: "";
  position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--pink), var(--violet));
  box-shadow: 0 0 12px var(--pink);
}

/* Player bar */
.player {
  backdrop-filter: blur(24px);
  animation: playerSlide .5s cubic-bezier(.22,1,.36,1) both;
}
@keyframes playerSlide {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.ctrl-btn.play {
  transition: transform .2s cubic-bezier(.34,1.56,.64,1);
}
.ctrl-btn.play:hover {
  transform: scale(1.12);
}
.progress-fill {
  transition: width .1s linear;
  background: linear-gradient(90deg, var(--pink), var(--violet)) !important;
}

/* Auth cards */
.auth-card {
  animation: cardPop .55s cubic-bezier(.22,1,.36,1) both;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
@keyframes cardPop {
  from { opacity: 0; transform: translateY(24px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.form-group input {
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.form-group input:focus {
  border-color: var(--pink) !important;
  box-shadow: 0 0 0 3px rgba(255,77,109,.2);
  transform: scale(1.01);
}

/* Section titles underline draw */
.section-head h2 {
  position: relative;
  display: inline-block;
}
.section-head h2::after {
  content: "";
  position: absolute;
  right: 0; bottom: -6px;
  height: 3px;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--pink), transparent);
  transition: width .6s cubic-bezier(.22,1,.36,1);
}
.section.motion-reveal.is-visible .section-head h2::after,
.section-head h2:hover::after {
  width: 60%;
}

/* YT container pop */
#yt-container {
  animation: ytPop .4s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes ytPop {
  from { opacity: 0; transform: scale(.85) translateY(20px); }
  to { opacity: 1; transform: none; }
}

/* Heartbeat for brand */
.brand-icon {
  animation: brandPulse 3s ease-in-out infinite;
}
@keyframes brandPulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(255,77,109,.35); }
  50% { box-shadow: 0 4px 28px rgba(255,77,109,.65); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
