/* =====================================================
   TOOTA SITARA PLAYLIST • FINAL
===================================================== */

:root {
  --pink: #ff5478;
  --pink-soft: #ff7895;
  --white: #f6f7fa;
  --tree-glow: 1;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  background: #02050b;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--white);
  font-family: "Playfair Display", serif;
}

/* ---------- fixed night scene ---------- */

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 34%, rgba(80, 100, 145, .17), transparent 28%),
    radial-gradient(circle at 50% 70%, rgba(22, 43, 67, .14), transparent 45%),
    linear-gradient(180deg, #02050b 0%, #030811 55%, #02050b 100%);
}

#stars {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  box-shadow: 0 0 7px rgba(255,255,255,.72);
  animation: starBlink var(--duration) ease-in-out var(--delay) infinite;
}

.star.big {
  width: 3px;
  height: 3px;
  box-shadow: 0 0 10px rgba(255,255,255,.9);
}

@keyframes starBlink {
  0%, 100% { opacity: .22; transform: scale(.7); }
  42% { opacity: 1; transform: scale(1.2); }
  68% { opacity: .48; }
}

/* ---------- moon ---------- */

.moon-system {
  position: absolute;
  left: 50%;
  top: 21%;
  width: 330px;
  height: 330px;
  transform: translateX(-50%);
  z-index: 2;
}

.moon-system::before {
  content: "";
  position: absolute;
  inset: -95px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230,240,255,.22), rgba(180,200,230,.08) 38%, transparent 72%);
  filter: blur(10px);
}

.moon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #f1f3f5 48%, #d4d9df 100%);
  box-shadow:
    0 0 45px rgba(255,255,255,.78),
    0 0 100px rgba(220,230,245,.36),
    0 0 170px rgba(120,150,190,.18);
  transition: background 1.4s ease, box-shadow 1.4s ease, clip-path 1.4s ease;
  animation: moonRotate 180s linear infinite;
}

@keyframes moonRotate {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}

.crater {
  position: absolute;
  border-radius: 50%;
  background: rgba(130,138,148,.16);
  box-shadow: inset 5px 5px 10px rgba(100,110,120,.06);
}

.crater-1 { width: 42px; height: 42px; left: 23%; top: 23%; }
.crater-2 { width: 55px; height: 55px; left: 55%; top: 20%; }
.crater-3 { width: 25px; height: 25px; left: 52%; top: 51%; }
.crater-4 { width: 50px; height: 50px; left: 22%; top: 60%; }
.crater-5 { width: 35px; height: 35px; left: 61%; top: 66%; }

.moon-new {
  background: #05080d;
  box-shadow: 0 0 20px rgba(120,140,170,.08);
  opacity: .35;
}

.moon-crescent {
  background:
    radial-gradient(circle at 72% 50%, #05080d 0 48%, transparent 49%),
    radial-gradient(circle at 35% 30%, #fff, #e8edf2 55%, #cbd2da);
}

.moon-quarter {
  background: linear-gradient(90deg, #eef1f4 0 50%, #05080d 50% 100%);
}

.moon-gibbous {
  background:
    radial-gradient(ellipse at 72% 50%, #05080d 0 37%, transparent 38%),
    radial-gradient(circle at 35% 30%, #fff, #e8edf2 55%, #cbd2da);
}

.moon-full {
  background: radial-gradient(circle at 35% 30%, #fff 0%, #edf0f3 55%, #d0d5dc 100%);
  box-shadow:
    0 0 52px rgba(255,255,255,.92),
    0 0 115px rgba(205,220,245,.45),
    0 0 180px rgba(130,160,205,.25);
}

/* ---------- forest ---------- */

.forest {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -35px;
  height: 350px;
  z-index: 4;
}

.pine {
  position: absolute;
  bottom: 0;
  width: 175px;
  height: 310px;
  opacity: .95;
  filter: drop-shadow(0 0 calc(32px * var(--tree-glow)) rgba(100,145,180,.22));
  transition: filter 1.4s ease, opacity 1.4s ease;
}

.pine::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 14px;
  height: 65px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #071017, #1a2730, #071017);
}

.pine i {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 78px solid transparent;
  border-right: 78px solid transparent;
  border-bottom: 120px solid rgba(4,18,27,.97);
  filter: drop-shadow(0 0 12px rgba(80,125,155,.14));
}

.pine i:nth-child(1) { bottom: 130px; }
.pine i:nth-child(2) { bottom: 88px; border-left-width: 92px; border-right-width: 92px; }
.pine i:nth-child(3) { bottom: 43px; border-left-width: 108px; border-right-width: 108px; }
.pine i:nth-child(4) { bottom: 0; border-left-width: 125px; border-right-width: 125px; }

.pine-1 { left: -30px; height: 345px; }
.pine-2 { left: 100px; height: 270px; }
.pine-3 { left: 255px; height: 315px; }
.pine-4 { left: 420px; height: 235px; }
.pine-5 { right: -30px; height: 350px; }
.pine-6 { right: 110px; height: 280px; }
.pine-7 { right: 275px; height: 325px; }
.pine-8 { right: 440px; height: 240px; }

.ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  z-index: 6;
  background: linear-gradient(180deg, transparent, #02050b 82%);
}

/* ---------- glass ---------- */

.glass {
  background: linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  border: 1px solid rgba(255,255,255,.15);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 15px 50px rgba(0,0,0,.30);
  backdrop-filter: blur(22px) saturate(125%);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
}

/* ---------- header ---------- */

.top-header {
  position: fixed;
  top: 28px;
  left: 50%;
  width: min(900px, calc(100% - 40px));
  height: 58px;
  transform: translateX(-50%);
  border-radius: 999px;
  z-index: 50;
}

.brand {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.brand-english {
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--pink);
}

.brand-hindi {
  font-family: "Noto Serif Devanagari", serif;
  font-size: 17px;
  color: #f1dbe1;
}

/* ---------- hero ---------- */

main {
  position: relative;
  z-index: 10;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 250px;
  text-align: center;
  z-index: 10;
}

.era {
  font-family: Arial, sans-serif;
  font-size: 9px;
  letter-spacing: 5px;
  color: var(--pink);
  margin-bottom: 18px;
}

.hero h1 {
  position: relative;
  font-family: "Noto Serif Devanagari", serif;
  font-size: clamp(52px, 7vw, 92px);
  font-weight: 500;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 3px 20px rgba(0,0,0,.65), 0 0 35px rgba(255,255,255,.16);
}

.hero-line {
  width: 55px;
  height: 1px;
  margin: 20px auto;
  background: var(--pink);
  box-shadow: 0 0 12px rgba(255,84,120,.6);
}

.hero p {
  font-family: "Noto Serif Devanagari", serif;
  color: rgba(255,255,255,.62);
  font-size: 12px;
  line-height: 2;
}

/* ---------- shayari ---------- */

.shayari-button {
  position: fixed;
  left: 16px;
  bottom: 90px;
  z-index: 70;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(255,255,255,.72);
  font-size: 10px;
  cursor: pointer;
  transition: .3s ease;
}

.shayari-button:hover {
  color: #fff;
  border-color: rgba(255,84,120,.5);
  box-shadow: 0 0 20px rgba(255,84,120,.14);
}

.shayari-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: .4s ease;
  z-index: 100;
}

.shayari-overlay.open {
  opacity: 1;
  visibility: visible;
}

.shayari-card {
  position: relative;
  width: min(450px, calc(100% - 35px));
  padding: 38px;
  border-radius: 28px;
  text-align: center;
}

.close-button {
  position: absolute;
  right: 18px;
  top: 14px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  color: #fff;
  cursor: pointer;
  font-size: 20px;
}

.shayari-label {
  font-family: Arial, sans-serif;
  font-size: 8px;
  letter-spacing: 4px;
  color: var(--pink);
}

.shayari-card h2 {
  margin-top: 18px;
  font-family: "Noto Serif Devanagari", serif;
  font-size: 22px;
  font-weight: 500;
}

.shayari-line {
  width: 40px;
  height: 1px;
  margin: 20px auto;
  background: var(--pink);
}

.shayari-card p {
  font-family: "Noto Serif Devanagari", serif;
  color: rgba(255,255,255,.75);
  line-height: 2;
  font-size: 15px;
}

.next-shayari {
  margin-top: 25px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: #fff;
  cursor: pointer;
}

/* ---------- player ---------- */

.player-container {
  position: fixed;
  left: 50%;
  bottom: 26px;
  width: min(620px, calc(100% - 120px));
  transform: translateX(-50%);
  z-index: 80;
}

.player {
  height: 66px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px 7px 12px;
  transition: .4s ease;
}

.song-information {
  display: flex;
  align-items: center;
  min-width: 0;
}

.music-symbol {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--pink);
  font-size: 17px;
}

.song-text {
  margin-left: 10px;
  min-width: 0;
}

.song-text strong {
  display: block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: Arial, sans-serif;
  font-size: 11px;
}

.song-text small {
  display: block;
  margin-top: 4px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,.42);
  font-family: Arial, sans-serif;
  font-size: 8px;
}

.controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.control-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.055);
  color: rgba(255,255,255,.8);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 11px;
  transition: .3s ease;
  backdrop-filter: blur(15px);
}

.control-button:hover {
  color: #fff;
  border-color: rgba(255,255,255,.3);
  box-shadow: 0 0 18px rgba(255,255,255,.12);
  transform: translateY(-1px);
}

.play-button {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,.10);
  color: #fff;
  border-color: rgba(255,84,120,.55);
  box-shadow: 0 0 20px rgba(255,84,120,.12);
}

/* ---------- spotify ---------- */

.spotify-button {
  position: fixed;
  right: 18px;
  bottom: 25px;
  height: 48px;
  padding: 0 17px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #6fffa0;
  font-family: Arial, sans-serif;
  font-size: 10px;
  cursor: pointer;
  z-index: 85;
  transition: .3s ease;
}

.spotify-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(55,255,130,.1);
}

.spotify-icon {
  width: 21px;
  height: 21px;
  border: 1px solid rgba(80,255,145,.5);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 9px;
}

.spotify-status {
  position: fixed;
  right: 25px;
  bottom: 80px;
  font-family: Arial, sans-serif;
  font-size: 7px;
  color: #5bff9b;
  opacity: .8;
  z-index: 85;
}

/* ---------- petals ---------- */

#petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 8;
}

.petal {
  position: absolute;
  top: var(--top);
  left: 0;
  width: 9px;
  height: 14px;
  border-radius: 75% 25% 75% 25%;
  background: linear-gradient(135deg, #ff7a98 0%, #e73f65 55%, #7d1835 100%);
  box-shadow: 0 0 8px rgba(255, 70, 105, .28);
  opacity: 0;
  will-change: transform, opacity;
  animation-duration: var(--duration);
  animation-delay: var(--delay);
  animation-timing-function: cubic-bezier(.18,.68,.24,1);
  animation-fill-mode: forwards;
  animation-iteration-count: 1;
}

.petal.from-left {
  animation-name: petalFromLeft;
}

.petal.from-right {
  animation-name: petalFromRight;
}

@keyframes petalFromLeft {
  0% {
    opacity: 0;
    transform: translate3d(-30px, 0, 0) rotate(-20deg) scale(.65);
  }
  10% {
    opacity: .95;
  }
  45% {
    opacity: .8;
  }
  100% {
    opacity: 0;
    transform: translate3d(115vw, var(--drift), 0) rotate(620deg) scale(.45);
  }
}

@keyframes petalFromRight {
  0% {
    opacity: 0;
    transform: translate3d(calc(100vw + 30px), 0, 0) rotate(20deg) scale(.65);
  }
  10% {
    opacity: .95;
  }
  45% {
    opacity: .8;
  }
  100% {
    opacity: 0;
    transform: translate3d(-115vw, var(--drift), 0) rotate(-620deg) scale(.45);
  }
}

/* ---------- transition ---------- */

#player.song-change {
  animation: playerPulse 1.1s ease;
}

@keyframes playerPulse {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 15px 50px rgba(0,0,0,.30); }
  45% { box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 42px rgba(255,84,120,.18), 0 15px 55px rgba(0,0,0,.35); }
}

/* ---------- responsive ---------- */

@media (max-width: 700px) {
  .top-header {
    top: 15px;
    width: calc(100% - 25px);
  }

  .brand-english {
    font-size: 9px;
    letter-spacing: 2.5px;
  }

  .brand-hindi {
    font-size: 13px;
  }

  .moon-system {
    top: 21%;
    width: 240px;
    height: 240px;
  }

  .moon {
    width: 195px;
    height: 195px;
  }

  .hero {
    padding-top: 270px;
  }

  .hero h1 {
    font-size: 47px;
  }

  .hero p {
    font-size: 10px;
  }

  .forest {
    transform: scale(.78);
    transform-origin: bottom center;
    width: 130%;
    left: -15%;
  }

  .player-container {
    width: calc(100% - 100px);
    bottom: 18px;
  }

  .player {
    height: 58px;
  }

  .music-symbol {
    width: 34px;
    height: 34px;
  }

  .song-text strong,
  .song-text small {
    max-width: 125px;
  }

  .control-button {
    width: 31px;
    height: 31px;
    font-size: 9px;
  }

  .play-button {
    width: 36px;
    height: 36px;
  }

  .spotify-button {
    right: 10px;
    bottom: 82px;
    height: 38px;
    padding: 0 12px;
  }

  .spotify-status {
    right: 15px;
    bottom: 124px;
  }

  .shayari-button {
    bottom: 82px;
    left: 10px;
  }
}
