/* ===============
   ASHNIKKO SHRINE
   MySpace Glitter Mode
   Scoped to .ash-shrine
================ */

.ash-shrine {
  min-height: 100vh;
  padding: 1rem 1rem 4rem;
  color: #ffe6ff;
  font-family: "Comic Sans MS", "Trebuchet MS", system-ui, sans-serif;

  /* audio-driven pulse (0..1) */
  --ash-pulse: 0;

  /* chaotic tiled bg */
  background:
    url("/assets/imgs/ash/bg/glitter-tile.gif") repeat,
    radial-gradient(circle at top, #0a0022, #000);
}

/* reduce motion safety */
@media (prefers-reduced-motion: reduce) {
  .ash-shrine * {
    animation: none !important;
    transition: none !important;
  }
}

/* HERO */
.ash-hero {
  position: relative;
  padding: 1.25rem;
  border: 4px dotted #ff4fd8;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 0 20px rgba(0, 234, 255, 0.35);
  overflow: hidden;
}

/* sticker layer */
.ash-stickers .sticker {
  position: absolute;
  width: 88px;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 0 8px rgba(255, 0, 200, 0.45));
  animation: floaty 3.5s ease-in-out infinite alternate;
  pointer-events: none;
}
.ash-stickers .s1 { top: 8px; left: 8px; }
.ash-stickers .s2 { top: 12px; right: 10px; animation-delay: .2s; }
.ash-stickers .s3 { bottom: 10px; left: 14px; animation-delay: .4s; }
.ash-stickers .s4 { bottom: 8px; right: 18px; animation-delay: .1s; }

@keyframes floaty {
  from { transform: translateY(0) rotate(-2deg) scale(1); }
  to   { transform: translateY(-10px) rotate(2deg) scale(1.05); }
}

/* fake marquee */
.marquee {
  margin: 0 0 0.75rem;
  border: 2px solid #00eaff;
  border-radius: 999px;
  background: rgba(255, 0, 200, 0.15);
  overflow: hidden;
  padding: 0.35rem 0.75rem;
}
.marquee span {
  display: inline-block;
  white-space: nowrap;
  animation: scroll 12s linear infinite;
  text-shadow: 0 0 10px rgba(0,234,255,0.6);
}
@keyframes scroll {
  from { transform: translateX(100%); }
  to   { transform: translateX(-100%); }
}

.ash-hero h1 {
  margin: 0.25rem 0 0.25rem;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: 2px;
  text-align: center;
  text-shadow:
    0 0 8px rgba(0, 234, 255, 0.9),
    0 0 14px rgba(255, 0, 200, 0.8);
}

/* BLINK text (classic) */
.blink {
  animation: blink 0.9s steps(2, end) infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

.sub {
  text-align: center;
  margin: 0 0 1rem;
  opacity: 0.95;
}

/* MUSIC */
.ash-music {
  max-width: 980px;
  margin: 1rem auto;
  padding: 0.85rem 1rem;
  text-align: center;

  border: 3px ridge #00eaff;
  border-radius: 18px;
  background: rgba(0,0,0,0.6);
  box-shadow: 0 0 16px rgba(0,234,255,0.25);
}

.music-toggle {
  cursor: pointer;
  font-weight: 800;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 3px solid #fff;
  background: linear-gradient(135deg, rgba(255,0,200,0.35), rgba(0,234,255,0.25));
  color: #fff;
  text-shadow: 0 0 10px rgba(255,0,200,0.6);
  box-shadow: 0 0 18px rgba(255,0,200,0.25);
  transform: rotate(-0.5deg);
}

.music-toggle:hover {
  filter: saturate(1.2) contrast(1.1);
  transform: rotate(0.5deg) scale(1.02);
}

.music-note {
  margin: 0.35rem 0 0;
  opacity: 0.85;
  font-size: 0.9rem;
}

/* “profile” card */
.profile-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: center;

  margin: 1rem auto 0;
  max-width: 820px;

  background: linear-gradient(135deg, rgba(0,234,255,0.18), rgba(255,0,200,0.14));
  border: 3px solid #fff;
  border-radius: 20px;
  padding: 12px;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.45), 0 0 18px rgba(255,0,200,0.3);
}

.pfp {
  width: 100px;
  height: 100px;
  border-radius: 16px;
  border: 3px ridge #00eaff;
  background: rgba(0,0,0,0.35);
}

.profile-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
}

.stats {
  margin: 0;
  padding-left: 1.1rem;
  line-height: 1.25;
  font-size: 0.95rem;
}

.status {
  margin: 0.65rem 0 0;
  font-size: 0.95rem;
  background: rgba(0,0,0,0.4);
  border: 2px dashed rgba(255,255,255,0.75);
  border-radius: 14px;
  padding: 0.45rem 0.6rem;
}
.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 50%;
  background: #00ff7a;
  box-shadow: 0 0 10px #00ff7a;
}

/* blinkies row */
.blinkies {
  margin: 1rem auto;
  padding: 0.65rem;
  max-width: 980px;

  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;

  border: 3px double #00eaff;
  border-radius: 18px;
  background: rgba(0,0,0,0.55);
}
.blinkies img {
  height: 28px;
  width: auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 6px rgba(255,0,200,0.35));
}

/* PANELS */
.panel {
  max-width: 980px;
  margin: 1.25rem auto;
  padding: 1.1rem 1.1rem 1.25rem;

  border-radius: 20px;
  border: 4px groove #ff4fd8;
  background: rgba(0, 0, 0, 0.6);

  box-shadow: 0 0 22px rgba(0, 234, 255, 0.25);
  position: relative;
}

.panel h2 {
  margin: 0 0 0.25rem;
  font-size: 1.6rem;
  text-shadow: 0 0 10px rgba(255,0,200,0.6);
}

.tiny {
  margin: 0 0 0.9rem;
  opacity: 0.85;
  font-size: 0.95rem;
}

/* VIDEOS */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 200px));
  gap: 14px;
  justify-content: center;
}

.media-card {
  margin: 0;
  padding: 0.65rem;
  border-radius: 16px;
  border: 3px solid #00eaff;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 14px rgba(0,234,255,0.25);
  transform: rotate(-0.3deg);
}
.media-card:nth-child(even) { transform: rotate(0.4deg); }

.media-card video {
  width: 100%;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.75);
  background: #000;
}
.media-card figcaption {
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* PHOTOS */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.photo {
  display: block;
  border-radius: 16px;
  border: 3px solid #fff;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(255,0,200,0.35);
  transform: rotate(-0.2deg);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.photo:hover {
  transform: rotate(1deg) scale(1.03);
  filter: saturate(1.25) contrast(1.1);
}

.photo img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

/* GIF DUMP */
.gif-dump {
  border-color: #fff;
  box-shadow: 0 0 26px rgba(255,0,200,0.35);
}

.gif-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  align-items: center;
}
.gif-wall a { display: block; }

.gif-wall img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  background: rgba(255,255,255,0.05);
  border-radius: 14px;
  border: 2px dashed rgba(0,234,255,0.8);
  box-shadow: 0 0 10px rgba(0,234,255,0.2);
  display: block;
}

.guestbook {
  margin-top: 1rem;
  text-align: center;
  font-size: 1rem;
  padding: 0.75rem;
  border-radius: 16px;
  background: rgba(255, 0, 200, 0.12);
  border: 2px dotted #00eaff;
}

.sparkle {
  display: inline-block;
  animation: sparkle 0.8s steps(2, end) infinite;
}
@keyframes sparkle {
  50% { transform: scale(1.2); opacity: 0.3; }
}

/* FOOTER */
.ash-footer {
  margin: 2.2rem auto 0;
  max-width: 980px;
  text-align: center;
  padding: 1rem;

  border: 3px double #ff4fd8;
  border-radius: 18px;
  background: rgba(0,0,0,0.6);
}
.ash-footer a {
  color: #00eaff;
  text-decoration: none;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0,234,255,0.5);
}
.ash-footer a:hover {
  text-decoration: underline;
}
.divider { margin: 0 0.6rem; opacity: 0.9; }

/* =========================
   LIGHTBOX (PULSES TO MUSIC)
========================= */

.ash-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.ash-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(4px);
}

.ash-lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100vw - 24px));
  margin: 5vh auto;
  padding: 14px 14px 18px;

  border-radius: 22px;
  border: 4px groove #ff4fd8;

  /* pulse strength driven by JS (0..1) */
  /* we exaggerate it a bit for MySpace drama */
  box-shadow:
    0 0 calc(18px + (var(--ash-pulse) * 38px)) rgba(0,234,255,0.25),
    0 0 calc(22px + (var(--ash-pulse) * 48px)) rgba(255,0,200,0.28),
    0 0 calc(10px + (var(--ash-pulse) * 22px)) rgba(255,255,255,0.10);

  background:
    radial-gradient(circle at top,
      rgba(0,234,255, calc(0.12 + (var(--ash-pulse) * 0.18))),
      rgba(0,0,0,0.72)
    ),
    rgba(0,0,0,0.65);

  overflow: hidden;
}

.ash-lightbox__close,
.ash-lightbox__nav {
  border: 3px solid #fff;
  background: rgba(0,0,0,0.55);
  color: #fff;
  cursor: pointer;

  /* subtle pulse too */
  box-shadow:
    0 0 calc(8px + (var(--ash-pulse) * 18px)) rgba(255,0,200,0.25),
    0 0 calc(6px + (var(--ash-pulse) * 16px)) rgba(0,234,255,0.22);
}

.ash-lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 14px;
  padding: 0.35rem 0.55rem;
  text-shadow: 0 0 10px rgba(255,0,200,0.7);
}

.ash-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 16px;
  padding: 0.35rem 0.6rem;
  text-shadow: 0 0 10px rgba(0,234,255,0.6);
}

.ash-lightbox__prev { left: 10px; }
.ash-lightbox__next { right: 10px; }

.ash-lightbox__figure {
  margin: 1.6rem 2.6rem 0;
  text-align: center;
}

.ash-lightbox__img {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  border-radius: 18px;
  border: 3px solid rgba(255,255,255,0.85);

  box-shadow:
    0 0 calc(14px + (var(--ash-pulse) * 30px)) rgba(255,0,200,0.18),
    0 0 calc(10px + (var(--ash-pulse) * 26px)) rgba(0,234,255,0.16);

  background: rgba(0,0,0,0.6);
}

.ash-lightbox__cap {
  margin-top: 0.7rem;
  font-size: 1rem;
  opacity: 0.9;
  text-shadow: 0 0 10px rgba(0,234,255,0.35);
}

/* Force consistent vertical ratio */
.media-card video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 12px;
  background: #000;
}