/* ============================================================
   سحر ✨  —  تم طلوع، کیوت، راست‌چین
   ============================================================ */

:root {
  --night:  #160c26;
  --dusk:   #4a2668;
  --rose:   #b4607f;
  --peach:  #d98a6f;
  --cream:  #ffe9c9;
  --gold:   #f5bd5c;
  --pink:   #ff8fb1;
  --ink:    #2a1638;

  --glass:      rgba(44, 22, 60, .46);
  --glass-soft: rgba(255, 255, 255, .07);
  --glass-line: rgba(255, 255, 255, .17);

  --r-lg: 34px;
  --r-md: 22px;
  --r-sm: 14px;

  --shadow: 0 18px 45px rgba(52, 26, 66, .30);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: "Vazirmatn RD", "Vazirmatn", "Tahoma", sans-serif;
  font-weight: 400;
  color: #fff7ec;
  background: var(--night);
  min-height: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------------- آسمان ---------------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  /* لایه‌ی اول: حجابِ تاریک — لایه‌ی دوم: طلوعِ ملایم‌تر */
  background:
    linear-gradient(180deg,
      rgba(9, 4, 18, .62) 0%,
      rgba(9, 4, 18, .44) 35%,
      rgba(9, 4, 18, .52) 70%,
      rgba(9, 4, 18, .60) 100%),
    linear-gradient(180deg,
      #140a24 0%,
      #251240 18%,
      #421d57 40%,
      #7a3a63 60%,
      #b5566c 78%,
      #d97a63 90%,
      #eda76f 100%);
  animation: dawn 26s ease-in-out infinite alternate;
  overflow: hidden;
}

@keyframes dawn {
  0%   { filter: saturate(1)   brightness(1); }
  100% { filter: saturate(1.18) brightness(1.07); }
}

/* ستاره‌ها */
.stars { position: absolute; inset: 0; }
.star {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 2px rgba(255,255,255,.55);
  animation: twinkle 3.6s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: .18; transform: scale(.7); }
  50%      { opacity: 1;   transform: scale(1.15); }
}

/* خورشید */
.sun-orbit {
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  animation: rise 18s ease-in-out infinite alternate;
}
@keyframes rise {
  0%   { transform: translate(-50%, 26px); }
  100% { transform: translate(-50%, -10px); }
}

.sun {
  position: relative;
  width: 168px; height: 168px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #fff6d8 0%, var(--gold) 45%, #ff9f6e 78%, #ff7f7f 100%);
  box-shadow:
    0 0 0 22px rgba(255, 209, 102, .16),
    0 0 0 48px rgba(255, 209, 102, .09),
    0 0 90px 34px rgba(255, 176, 120, .42);
  animation: pulse 5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.045); }
}

.sun .ray {
  position: absolute;
  top: 50%; left: 50%;
  width: 190px; height: 190px;
  margin: -95px 0 0 -95px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 236, 190, .38);
  animation: spin 30s linear infinite;
}
.sun .ray.r2 { width: 250px; height: 250px; margin: -125px 0 0 -125px; animation-duration: 46s; animation-direction: reverse; opacity: .7; }
.sun .ray.r3 { width: 320px; height: 320px; margin: -160px 0 0 -160px; animation-duration: 64s; opacity: .5; }
.sun .ray.r4 { width: 400px; height: 400px; margin: -200px 0 0 -200px; animation-duration: 90s; animation-direction: reverse; opacity: .3; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ابرها */
.cloud {
  position: absolute;
  width: 200px;
  filter: drop-shadow(0 8px 18px rgba(60, 28, 70, .18));
}
.cloud.c1 { top: 20%; left: -240px; animation: drift 52s linear infinite; }
.cloud.c2 { top: 46%; left: -240px; width: 150px; animation: drift 74s linear infinite 8s; }
.cloud.c3 { top: 66%; left: -240px; width: 260px; animation: drift 96s linear infinite 20s; }
@keyframes drift {
  from { transform: translateX(0) }
  to   { transform: translateX(calc(100vw + 480px)) }
}

/* پرنده‌ها */
.birds { position: absolute; top: 30%; right: 0; }
.bird { position: absolute; width: 40px; opacity: .55; }
.bird.b1 { animation: fly 26s linear infinite; }
.bird.b2 { top: 26px;  animation: fly 34s linear infinite 6s; }
.bird.b3 { top: -18px; animation: fly 22s linear infinite 12s; }
@keyframes fly {
  from { transform: translateX(20vw) translateY(0) }
  to   { transform: translateX(-40vw) translateY(-40px) }
}

/* تپه‌ها */
.hills {
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 30vh;
  min-height: 200px;
}

/* ---------------- محتوا ---------------- */
.wrap {
  position: relative;
  z-index: 2;
  max-width: 560px;
  margin: 0 auto;
  padding: 56px 20px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

/* هدر */
.hero { text-align: center; animation: fadeUp .9s cubic-bezier(.2,.8,.3,1) both; }

.eyebrow {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .5px;
  color: rgba(255, 245, 225, .82);
}

.name {
  margin: 0;
  font-size: clamp(74px, 20vw, 128px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 2px;
  background: linear-gradient(180deg, #fffaf0 0%, #ffe3b0 48%, #ff9f9a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 24px rgba(120, 44, 78, .35));
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) }
  50%      { transform: translateY(-8px) }
}

.tagline {
  margin: 14px 0 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 2;
  color: rgba(255, 246, 232, .92);
  text-shadow: 0 2px 10px rgba(70, 30, 70, .35);
}

/* کارت پلیر */
.card {
  position: relative;
  width: 100%;
  padding: 26px 24px 22px;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: fadeUp 1.1s cubic-bezier(.2,.8,.3,1) .15s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px) }
  to   { opacity: 1; transform: translateY(0) }
}

/* ---------- پاپ‌آپِ عذرخواهی ---------- */
.bubble {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 0; right: 0;
  width: min(88%, 320px);
  margin: 0 auto;
  padding: 16px 20px 18px;
  border-radius: 26px 26px 26px 8px;
  background: linear-gradient(150deg, rgba(255, 236, 200, .96), rgba(255, 205, 214, .93));
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 16px 38px rgba(20, 8, 32, .48);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
  z-index: 5;
  pointer-events: none;

  opacity: 0;
  transform: scale(.4) translateY(16px) rotate(-8deg);
  transform-origin: 50% 100%;
  transition: opacity .3s ease, transform .3s ease;
}

.bubble.show {
  animation:
    popIn .55s cubic-bezier(.34, 1.56, .64, 1) both,
    floaty 2.6s ease-in-out .55s infinite alternate;
}

@keyframes popIn {
  0%   { opacity: 0; transform: scale(.35) translateY(18px) rotate(-10deg); }
  55%  { opacity: 1; transform: scale(1.14) translateY(-6px) rotate(4deg); }
  78%  { transform: scale(.95) translateY(0) rotate(-2deg); }
  100% { opacity: 1; transform: scale(1) translateY(0) rotate(0deg); }
}
@keyframes floaty {
  from { transform: translateY(0) rotate(-1.5deg) }
  to   { transform: translateY(-9px) rotate(1.5deg) }
}

.bubble .tail {
  position: absolute;
  bottom: -11px;
  left: 28px;
  width: 22px; height: 22px;
  background: linear-gradient(150deg, rgba(255, 236, 200, .96), rgba(255, 214, 214, .93));
  border-right: 1px solid rgba(255, 255, 255, .7);
  border-bottom: 1px solid rgba(255, 255, 255, .7);
  border-bottom-right-radius: 6px;
  transform: rotate(45deg);
}

.bubble-text {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 2;
  color: #6b2f4e;
}

.bubble .spark {
  position: absolute;
  font-size: 17px;
  opacity: 0;
}
.bubble.show .spark { animation: sparkle 2.2s ease-in-out infinite; }
.bubble.show .s1 { top: -12px; right: 6px;  animation-delay: .1s; }
.bubble.show .s2 { top: -10px; left: 10px;  animation-delay: .7s; }
.bubble.show .s3 { bottom: -14px; right: 34px; animation-delay: 1.3s; }

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(.5) translateY(4px) rotate(-12deg); }
  40%      { opacity: 1; transform: scale(1.15) translateY(-4px) rotate(8deg); }
  70%      { opacity: .8; transform: scale(1) translateY(-2px) rotate(0deg); }
}

/* صفحه‌ی گردان */
.disc {
  position: relative;
  width: 132px; height: 132px;
  border-radius: 50%;
  padding: 6px;
  background: conic-gradient(from 0deg, #ffd9a8, #ff9fb2, #c9a5e8, #ffd9a8);
  box-shadow: 0 14px 30px rgba(60, 24, 66, .45);
  animation: spin 9s linear infinite;
  animation-play-state: paused;
}
.disc.playing { animation-play-state: running; }

/* هاله‌ی گرم پشت دیسک */
.disc::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 209, 102, .55) 0%, rgba(255, 143, 177, .28) 45%, transparent 72%);
  filter: blur(10px);
  z-index: -1;
  animation: haloPulse 3.4s ease-in-out infinite;
}
@keyframes haloPulse {
  0%, 100% { transform: scale(1); opacity: .8; }
  50%      { transform: scale(1.12); opacity: 1; }
}

.disc-face {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: #fff8ea;
  overflow: hidden;
}
.disc-face img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.disc-heart {
  position: absolute;
  top: -6px; right: -6px;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  background: #fff8ea;
  border-radius: 50%;
  font-size: 16px;
  box-shadow: 0 5px 14px rgba(60, 24, 66, .45);
  animation: heartBeat 1.4s ease-in-out infinite;
  transform-origin: 50% 60%;
}
@keyframes heartBeat {
  0%, 100% { transform: scale(1)    rotate(-6deg); }
  25%      { transform: scale(1.18) rotate(-2deg); }
  40%      { transform: scale(1)    rotate(-6deg); }
  55%      { transform: scale(1.12) rotate(-2deg); }
}

/* متن آهنگ */
.meta { text-align: center; margin-top: 2px; }
.track {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  color: #fffaf0;
}
.artist {
  margin: 3px 0 0;
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 246, 232, .72);
}

/* نوار پیشرفت */
.progress { width: 100%; }

.bar {
  position: relative;
  height: 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .22);
  cursor: pointer;
  touch-action: none;
}
.bar:focus-visible { outline: 3px solid rgba(255, 236, 190, .8); outline-offset: 4px; }

.bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), var(--pink));
  box-shadow: 0 0 14px rgba(255, 143, 177, .55);
}

.bar-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 20px; height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  background: #fff8ea;
  border: 3px solid var(--pink);
  box-shadow: 0 3px 10px rgba(60, 24, 66, .35);
  transition: transform .15s ease;
}
.bar:hover .bar-thumb { transform: scale(1.18); }

.times {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(255, 246, 232, .78);
  font-variant-numeric: tabular-nums;
}

/* دکمه‌ها */
.controls {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 2px;
}

.ctrl {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .16);
  color: #fff6e8;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .18s cubic-bezier(.2,.8,.3,1), background .18s;
}
.ctrl:hover  { transform: translateY(-3px) scale(1.06); background: rgba(255, 255, 255, .26); }
.ctrl:active { transform: scale(.94); }
.ctrl.off    { opacity: .45; }

.play {
  width: 74px; height: 74px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(160deg, #fff3d6, var(--gold) 45%, #ff8fa8 100%);
  box-shadow: 0 12px 28px rgba(120, 44, 78, .40), inset 0 -4px 10px rgba(255,255,255,.35);
  display: grid;
  place-items: center;
  transition: transform .18s cubic-bezier(.2,.8,.3,1), box-shadow .18s;
}
.play:hover  { transform: translateY(-4px) scale(1.05); }
.play:active { transform: scale(.93); }
.play svg { width: 32px; height: 32px; fill: #6b2f4e; }

/* ولوم */
.volume { width: 100%; display: flex; justify-content: center; }

#vol {
  -webkit-appearance: none;
  appearance: none;
  width: 78%;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), var(--pink));
  background-color: rgba(255,255,255,.22);
  outline: none;
  cursor: pointer;
}
#vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff8ea;
  border: 3px solid var(--pink);
  box-shadow: 0 3px 10px rgba(60, 24, 66, .3);
  cursor: pointer;
}
#vol::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff8ea;
  border: 3px solid var(--pink);
  cursor: pointer;
}

.status {
  margin: 0;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 246, 232, .8);
  min-height: 18px;
}

/* فوتر */
.foot {
  text-align: center;
  font-size: 12.5px;
  font-weight: 300;
  line-height: 2;
  color: rgba(255, 246, 232, .70);
  text-shadow: 0 2px 8px rgba(60, 24, 66, .35);
}

/* ---------------- دروازه ---------------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(12, 6, 22, .68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeUp .45s ease both;
}
.gate[hidden] { display: none; }

.gate-inner {
  text-align: center;
  padding: 34px 30px;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow);
  max-width: 340px;
}

.gate-sun {
  font-size: 62px;
  animation: bob 3s ease-in-out infinite;
}

.gate-title {
  margin: 10px 0 6px;
  font-size: 22px;
  font-weight: 700;
}
.gate-sub {
  margin: 0 0 18px;
  font-size: 14px;
  font-weight: 300;
  line-height: 2;
  color: rgba(255, 246, 232, .85);
}

.gate-btn {
  border: none;
  cursor: pointer;
  padding: 13px 30px;
  border-radius: 99px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #6b2f4e;
  background: linear-gradient(160deg, #fff3d6, var(--gold) 50%, #ff8fa8 100%);
  box-shadow: 0 10px 24px rgba(120, 44, 78, .4);
  transition: transform .18s cubic-bezier(.2,.8,.3,1);
}
.gate-btn:hover  { transform: translateY(-3px) scale(1.04); }
.gate-btn:active { transform: scale(.95); }

/* ---------------- ریسپانسیو ---------------- */
@media (max-width: 480px) {
  .wrap { padding: 40px 16px 52px; }
  .sun  { width: 128px; height: 128px; }
  .card { padding: 22px 18px 20px; }
  .name { font-size: clamp(64px, 24vw, 100px); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  /* پاپ‌آپ باید حتی بدون انیمیشن دیده بشه */
  .bubble.show { opacity: 1 !important; transform: none !important; }
}
