/* Anya Music — product card on the hub (loaded last, after ticluga-card.css) */
@property --am-ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: clamp(14px, 2vw, 22px); }

.pcard-anyamusic {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 26px; text-align: center;
  color: #fdf1ff; padding: 0; border: 0;
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(255, 111, 174, .30), transparent 60%),
    radial-gradient(100% 80% at 100% 100%, rgba(155, 107, 255, .34), transparent 60%),
    linear-gradient(165deg, #2b1049, #160a2b);
  box-shadow: 0 22px 54px -22px rgba(255, 111, 174, .6), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
/* rotating rainbow edge */
.pcard-anyamusic::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.6px; z-index: 3; pointer-events: none;
  background: conic-gradient(from var(--am-ang), #ff6fae, #9b6bff, #6ee7ff, #ffc58a, #ff6fae);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: am-edge 7s linear infinite;
}
/* cursor spotlight */
.pcard-anyamusic::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(260px circle at var(--am-mx, 50%) var(--am-my, 30%), rgba(255, 255, 255, .20), transparent 60%);
}
.pcard-anyamusic:hover::after { opacity: 1; }

.pcard-anyamusic .am-inner {
  position: relative; z-index: 1; padding: 30px 22px 24px; display: flex; flex-direction: column; align-items: center;
  transform: perspective(900px) rotateX(var(--am-rx, 0deg)) rotateY(var(--am-ry, 0deg));
  transition: transform .25s ease-out; will-change: transform;
}
.pcard-anyamusic h3 {
  margin: 18px 0 6px; font-family: "Fredoka", "Noto Sans Thai", sans-serif; font-weight: 600; font-size: 1.55rem;
  background: linear-gradient(100deg, #ffd1e6, #ff6fae 30%, #b79bff 60%, #6ee7ff 85%, #ffd1e6);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: am-shine 5s linear infinite;
}
.pcard-anyamusic p { margin: 0 0 16px; color: #e6d2f7; max-width: 24ch; line-height: 1.5; }
.pcard-anyamusic .pcard-links { margin-top: auto; }
.pcard-anyamusic .pcard-links a { color: #ffd1e6; }

/* "new" ribbon */
.pcard-anyamusic .am-new {
  position: absolute; top: 14px; right: 14px; z-index: 4; padding: 4px 11px; border-radius: 99px; font-size: .74rem; font-weight: 600;
  color: #2b1049; background: linear-gradient(100deg, #ffc58a, #ff6fae, #ffc58a); background-size: 220% 100%; animation: am-shine 3s linear infinite;
  box-shadow: 0 0 18px rgba(255, 111, 174, .7);
}

/* vinyl */
.am-pic { position: relative; width: 150px; height: 150px; display: grid; place-items: center; }
.am-halo { position: absolute; inset: -14px; border-radius: 50%; z-index: 0;
  background: conic-gradient(from var(--am-ang), rgba(255, 111, 174, .0), rgba(255, 111, 174, .55), rgba(110, 231, 255, .0) 40%, rgba(155, 107, 255, .55) 70%, rgba(255, 111, 174, 0));
  filter: blur(14px); animation: am-edge 6s linear infinite; }
.am-disc {
  position: relative; z-index: 1; width: 132px; height: 132px; border-radius: 50%; animation: am-rot 5.5s linear infinite;
  background:
    radial-gradient(circle, #0c0418 0 17%, transparent 17.5%),
    repeating-radial-gradient(circle, #1b0e30 0 2px, #2a1550 2px 4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .55), 0 0 0 3px rgba(255, 255, 255, .06);
}
.am-disc::before { /* groove shimmer that turns with the disc */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 10deg, transparent 0 18%, rgba(255, 255, 255, .20) 24%, transparent 30% 66%, rgba(255, 140, 200, .22) 74%, transparent 80%);
}
.am-label {
  position: absolute; inset: 33%; border-radius: 50%; overflow: hidden; display: grid; place-items: center; font-size: 1.15rem;
  background: conic-gradient(#ff6fae, #9b6bff, #6ee7ff, #ffc58a, #ff6fae); box-shadow: 0 0 0 2px #0c0418;
}
.am-label img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.am-label b { font-weight: 400; position: relative; }
.pcard-anyamusic:hover .am-disc { animation-duration: 1.7s; }
.pcard-anyamusic:hover .am-eq i { animation-duration: .45s; }

/* equalizer */
.am-eq { display: flex; align-items: flex-end; justify-content: center; gap: 4px; height: 30px; margin-top: 16px; }
.am-eq i {
  width: 5px; height: 100%; border-radius: 3px; transform-origin: bottom; transform: scaleY(.25);
  background: linear-gradient(#ff6fae, #9b6bff 60%, #6ee7ff);
  animation: am-bar 1.05s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.17s);
}

/* floating notes */
.am-notes { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.am-notes span {
  position: absolute; bottom: -24px; left: var(--x); font-size: var(--s, 1.1rem); color: rgba(255, 209, 230, .75);
  text-shadow: 0 0 12px rgba(255, 111, 174, .9); animation: am-float var(--d, 7s) linear infinite; animation-delay: var(--w, 0s); opacity: 0;
}

@keyframes am-edge { to { --am-ang: 360deg; } }
@keyframes am-rot { to { transform: rotate(360deg); } }
@keyframes am-shine { to { background-position: -250% 0; } }
@keyframes am-bar { 0% { transform: scaleY(.18); } 35% { transform: scaleY(.9); } 60% { transform: scaleY(.45); } 100% { transform: scaleY(1); } }
@keyframes am-float {
  0% { transform: translate(0, 0) rotate(-12deg) scale(.7); opacity: 0; }
  12% { opacity: 1; }
  50% { transform: translate(14px, -140px) rotate(12deg) scale(1); }
  100% { transform: translate(-10px, -300px) rotate(-8deg) scale(.8); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pcard-anyamusic::before, .pcard-anyamusic h3, .pcard-anyamusic .am-new, .am-halo, .am-disc, .am-eq i, .am-notes span { animation: none !important; }
  .am-eq i { transform: scaleY(.6); }
  .am-notes { display: none; }
  .pcard-anyamusic .am-inner { transition: none; transform: none; }
}
