*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root{
  --text:#2d2d2d;
  --glass:rgba(255,255,255,0.50);
  --blur:blur(14px);
}

html,body{width:100%;height:100%;overflow:hidden;font-family:'DM Sans',sans-serif;color:var(--text);}

#bg{
  position:fixed;inset:0;z-index:0;
  background:url('../../assets/back.png') center/cover no-repeat;
}

.blossom{position:fixed;z-index:1;pointer-events:none;}
.blossom-tl{top:-10px;left:-10px;width:420px;transform-origin:top left;}
.blossom-br{bottom:-10px;right:-10px;width:380px;transform-origin:bottom right;transform:rotate(180deg);}

.petal{position:fixed;z-index:2;pointer-events:none;opacity:0;animation:fall linear infinite;}
@keyframes fall{
  0%  {transform:translateY(-20px) rotate(0deg) translateX(0);opacity:0;}
  10% {opacity:.7;}90%{opacity:.4;}
  100%{transform:translateY(100vh) rotate(720deg) translateX(60px);opacity:0;}
}

#weather{
  position:fixed;top:18px;left:18px;z-index:10;
  display:flex;align-items:center;gap:10px;
  background:var(--glass);backdrop-filter:var(--blur);
  border:1px solid rgba(255,255,255,.7);border-radius:14px;
  padding:8px 14px;opacity:0;animation:fadeIn .6s .3s forwards;
}
#weather .w-icon{font-size:20px;}
#weather .w-temp{font-size:15px;font-weight:400;}
#weather .w-desc{font-size:11px;opacity:.7;}

#socials{
  position:fixed;top:18px;right:18px;z-index:10;
  display:flex;gap:10px;opacity:0;animation:fadeIn .6s .4s forwards;
}
.icon-btn{
  width:38px;height:38px;border-radius:50%;
  background:var(--glass);backdrop-filter:var(--blur);
  border:1px solid rgba(255,255,255,.7);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;text-decoration:none;color:var(--text);
  transition:transform .2s,background .2s;
}
.icon-btn:hover{transform:scale(1.12);background:rgba(255,255,255,.8);}
.icon-btn svg{width:18px;height:18px;}

#card{
  position:fixed;top:50%;left:50%;
  transform:translate(-50%,-50%);
  z-index:10;text-align:center;
  opacity:0;animation:riseIn .8s .1s cubic-bezier(.22,1,.36,1) forwards;
}

.avatar-wrap{
  width:150px;height:150px;margin:0 auto 18px;
  border-radius:50%;overflow:hidden;
  box-shadow:0 8px 28px rgba(0,0,0,.18);
}
.avatar-wrap img{
  width:100%;height:100%;
  object-fit:cover;object-position:center;
  display:block;
}

#card h1{
  font-family:'Cormorant Garamond',serif;font-weight:300;
  font-size:2.6rem;letter-spacing:.12em;
  text-shadow:0 2px 8px rgba(255,255,255,.4);margin-bottom:22px;
}

.btns{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;}
.btn{
  display:flex;align-items:center;gap:8px;
  padding:9px 20px;border-radius:999px;
  border:1px solid rgba(255,255,255,.7);
  background:var(--glass);backdrop-filter:var(--blur);
  font-family:'DM Sans',sans-serif;font-size:13px;font-weight:400;
  color:var(--text);cursor:pointer;text-decoration:none;
  transition:transform .2s,background .2s,box-shadow .2s;
  box-shadow:0 2px 12px rgba(0,0,0,.07);
}
.btn:hover{transform:translateY(-2px);background:rgba(255,255,255,.8);box-shadow:0 6px 20px rgba(0,0,0,.12);}
.btn svg{width:16px;height:16px;flex-shrink:0;}

.btn-support{
  border-color:rgba(255,160,100,.5);
  background:rgba(255,220,180,.35);
}
.btn-support:hover{background:rgba(255,220,180,.65);}

#player{
  margin:14px auto 0;
  display:flex;align-items:center;gap:10px;
  background:var(--glass);backdrop-filter:var(--blur);
  border:1px solid rgba(255,255,255,.7);border-radius:999px;
  padding:8px 14px 8px 8px;
  width:fit-content;min-width:240px;max-width:340px;
  box-shadow:0 2px 12px rgba(0,0,0,.07);
  position:relative;overflow:hidden;
}

#p-art{
  width:36px;height:36px;border-radius:8px;
  object-fit:cover;flex-shrink:0;
  background:rgba(200,180,210,.4);
  display:block;
}
#p-art.is-hidden{display:none;}
#p-art.loaded ~ #p-note{display:none;}

#p-note{
  width:36px;height:36px;border-radius:8px;
  background:rgba(200,180,210,.35);
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;font-size:16px;
}

.p-info{display:flex;flex-direction:column;min-width:0;flex:1;}
.p-title{font-size:13px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.p-artist{font-size:11px;opacity:.6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

#p-btn{
  width:30px;height:30px;border-radius:50%;
  background:rgba(255,255,255,.7);
  border:none;cursor:pointer;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  transition:background .2s,transform .15s;
}
#p-btn:hover{background:rgba(255,255,255,.95);transform:scale(1.08);}
#p-btn svg{width:13px;height:13px;fill:var(--text);}

#p-prog-wrap{
  position:absolute;bottom:0;left:0;right:0;height:2px;
  background:rgba(0,0,0,.06);cursor:pointer;
}
#p-prog-bar{height:100%;background:rgba(100,60,140,.4);width:0%;transition:width .5s linear;border-radius:0 0 999px 999px;}

.eq{display:flex;align-items:flex-end;gap:2px;height:14px;flex-shrink:0;}
.eq span{width:3px;background:rgba(120,70,160,.5);border-radius:2px;animation:eqb .8s ease-in-out infinite alternate;}
.eq span:nth-child(1){height:6px; animation-delay:0s;}
.eq span:nth-child(2){height:10px;animation-delay:.15s;}
.eq span:nth-child(3){height:7px; animation-delay:.3s;}
.eq span:nth-child(4){height:12px;animation-delay:.1s;}
@keyframes eqb{from{transform:scaleY(.3)}to{transform:scaleY(1)}}
.eq.paused span{animation-play-state:paused;transform:scaleY(.4);}

#site-copy{
  position:fixed;bottom:10px;left:50%;transform:translateX(-50%);
  z-index:10;font-size:11px;letter-spacing:.04em;
  text-shadow:0 1px 6px rgba(255,255,255,.8);
  pointer-events:none;user-select:none;
  opacity:0;
  animation:fadeInMuted .8s .5s forwards;
}
@keyframes fadeInMuted{from{opacity:0}to{opacity:.55}}

#sup-modal{
  display:none;position:fixed;inset:0;z-index:100;
  background:rgba(0,0,0,.28);backdrop-filter:blur(6px);
  align-items:center;justify-content:center;
}
#sup-modal.open{display:flex;}
.sup-box{
  background:rgba(255,255,255,.75);backdrop-filter:blur(22px);
  border:1px solid rgba(255,255,255,.9);border-radius:22px;
  width:min(360px,90vw);
  box-shadow:0 20px 60px rgba(0,0,0,.13);
  animation:popIn .3s cubic-bezier(.22,1,.36,1);
  overflow:hidden;
}
.sup-header{
  display:flex;align-items:center;justify-content:space-between;
  padding:16px 18px 12px;
  font-family:'Cormorant Garamond',serif;font-size:1.15rem;font-weight:300;
  border-bottom:1px solid rgba(0,0,0,.06);
}
.sup-close{background:none;border:none;cursor:pointer;font-size:18px;opacity:.45;transition:opacity .2s;color:var(--text);}
.sup-close:hover{opacity:1;}
.sup-body{padding:18px;}
.sup-body p{font-size:13px;opacity:.65;margin-bottom:16px;line-height:1.6;}
.sup-links{display:flex;flex-direction:column;gap:10px;}
.sup-link{
  display:flex;align-items:center;gap:12px;
  padding:11px 14px;border-radius:14px;
  background:rgba(255,255,255,.6);
  border:1px solid rgba(255,255,255,.8);
  text-decoration:none;color:var(--text);
  font-size:13px;font-weight:400;
  transition:background .2s,transform .15s;
}
.sup-link:hover{background:rgba(255,255,255,.9);transform:translateX(3px);}
.sup-link-icon{
  width:32px;height:32px;border-radius:8px;
  display:flex;align-items:center;justify-content:center;
  font-size:17px;flex-shrink:0;
}
.sup-link-info{display:flex;flex-direction:column;}
.sup-link-name{font-weight:400;}
.sup-link-desc{font-size:11px;opacity:.55;}

#map-modal{
  display:none;position:fixed;inset:0;z-index:100;
  background:rgba(0,0,0,.28);backdrop-filter:blur(6px);
  align-items:center;justify-content:center;
}
#map-modal.open{display:flex;}
.map-box{
  background:rgba(255,255,255,.72);backdrop-filter:blur(20px);
  border:1px solid rgba(255,255,255,.9);border-radius:20px;overflow:hidden;
  width:min(520px,90vw);box-shadow:0 20px 60px rgba(0,0,0,.15);
  animation:popIn .3s cubic-bezier(.22,1,.36,1);
}
@keyframes popIn{from{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}
.map-header{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 18px;
  font-family:'Cormorant Garamond',serif;font-size:1.1rem;font-weight:300;
  border-bottom:1px solid rgba(255,255,255,.5);
}
.map-close{background:none;border:none;cursor:pointer;font-size:18px;opacity:.5;transition:opacity .2s;color:var(--text);}
.map-close:hover{opacity:1;}
.map-body{padding:14px 18px 18px;text-align:center;}
.map-body p{font-size:13px;opacity:.6;margin-bottom:14px;}
.map-body iframe{width:100%;height:280px;border:none;border-radius:12px;box-shadow:0 4px 16px rgba(0,0,0,.1);}

@keyframes fadeIn{from{opacity:0}to{opacity:1}}
@keyframes riseIn{
  from{opacity:0;transform:translate(-50%,calc(-50% + 20px));}
  to{opacity:1;transform:translate(-50%,-50%);}
}
