:root {
  --bg: #1a1030;
  --card: #fff;
  --text: #fff;
  --ink: #1a1030;
  --accent: #ffd93d;
  --pink: #ff4f9a;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg) radial-gradient(circle at 20% 0%, #3b1d6e 0, transparent 50%) fixed;
  color: var(--text);
  font-family: "Rubik", system-ui, sans-serif;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  overflow-x: hidden;
}

.top { text-align: center; padding: 32px 16px 12px; }
.top h1 {
  font-family: "Secular One", "Rubik", sans-serif;
  font-size: clamp(2.4rem, 11vw, 4rem);
    margin: 0;
  color: var(--accent);
  text-shadow: 3px 3px 0 var(--pink);
  transform: rotate(2deg);
}
.top p { margin: 10px auto 0; max-width: 28rem; opacity: .85; font-size: 1.05rem; }

/* Song section */
.song {
  max-width: 560px;
  margin: 8px auto 12px;
  margin-inline: max(16px, calc((100% - 560px) / 2));
  padding: 18px 14px 14px;
  border-radius: 22px;
  background: linear-gradient(160deg, #2c1655, #1a1030);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 6px rgba(255, 217, 61, .15), 0 14px 40px rgba(0,0,0,.45);
  text-align: center;
}
@media (min-width: 600px) { .song { margin-inline: auto; } }
.song-title {
  font-family: "Secular One", "Rubik", sans-serif;
  font-size: clamp(1.8rem, 8vw, 2.4rem);
  margin: 0;
  color: var(--accent);
  text-shadow: 2px 2px 0 var(--pink);
}
.song-sub { margin: 6px 0 14px; opacity: .85; }
.song-player video {
  display: block; width: 100%; height: auto;
  max-height: 75vh; max-height: 75dvh; object-fit: contain;
  border-radius: 14px; background: #000;
}
.song-soon {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  border: 2px dashed rgba(255,255,255,.35);
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 14px, transparent 14px 28px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.song-soon .soon-icon { font-size: 2.6rem; animation: bob 1.6s ease-in-out infinite; }
.song-soon strong { font-size: 1.3rem; }
.song-soon span:last-child { opacity: .75; font-size: .95rem; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-6deg); } }
.song-lyrics { margin-top: 14px; text-align: center; }
.song-lyrics summary {
  cursor: pointer; list-style: none;
  display: inline-block;
  padding: 10px 18px; border-radius: 999px;
  background: var(--accent); color: var(--ink); font-weight: 700;
}
.song-lyrics summary::-webkit-details-marker { display: none; }
.song-lyrics[open] summary { margin-bottom: 8px; }
.lyrics-body .stanza { margin: 14px 0; }
.lyrics-body h3 { margin: 0 0 4px; font-size: .95rem; color: var(--pink); letter-spacing: .5px; }
.lyrics-body p { margin: 2px 0; font-size: 1.1rem; line-height: 1.6; }

.gallery {
  max-width: 560px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.card {
  margin: 0;
  background: var(--card);
  color: var(--ink);
  border-radius: 18px;
  padding: 10px 10px 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  cursor: zoom-in;
  opacity: 0;
  transform: translateY(30px) rotate(var(--tilt, 0deg));
  transition: opacity .5s ease, transform .5s ease;
}
.card.show { opacity: 1; transform: translateY(0) rotate(var(--tilt, 0deg)); }
.card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #eee;
}
.card .media { position: relative; }
.card video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #000;
}
.card .badge {
  position: absolute; bottom: 10px; inset-inline-start: 10px;
  background: rgba(0,0,0,.6); color: #fff;
  font-size: .8rem; font-weight: 700;
  padding: 5px 10px; border-radius: 999px;
  pointer-events: none;
}
.card figcaption {
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
  padding: 12px 6px 0;
  text-align: center;
}

@media (min-width: 900px) {
  .gallery { display: block; max-width: 1200px; columns: 3; column-gap: 24px; }
  .card { break-inside: avoid; margin-bottom: 24px; }
}

.bottom { text-align: center; padding: 24px 16px 48px; opacity: .8; font-weight: 700; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 10;
  background: rgba(10, 5, 20, .95);
  display: flex; align-items: center; justify-content: center;
  touch-action: pan-y pinch-zoom;
}
.lightbox[hidden] { display: none; }
.lightbox [hidden] { display: none !important; }
.lightbox figure { margin: 0; max-width: 100%; padding: 0 12px; text-align: center; }
.lightbox img,
.lightbox video {
  max-width: 100%;
  max-height: 78vh;
  max-height: 78dvh;
  border-radius: 10px;
  transition: transform .2s ease, opacity .2s ease;
  user-select: none; -webkit-user-drag: none;
}
.lightbox figcaption { margin-top: 14px; font-weight: 700; font-size: 1.15rem; padding: 0 8px; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.5rem; cursor: pointer;
}
.lb-close { top: calc(12px + env(safe-area-inset-top)); left: 12px; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 2.2rem !important; line-height: 1; }
.lb-prev { right: 10px; }
.lb-next { left: 10px; }
.lb-count { position: absolute; bottom: calc(14px + env(safe-area-inset-bottom)); opacity: .6; font-size: .9rem; }
@media (hover: none) { .lb-nav { display: none; } }

/* Infinite-scroll sentinel */
.load-more { height: 1px; }

/* Placeholder size until a gallery photo has loaded (keeps "load 10 at a time" honest) */
.card img.pending { aspect-ratio: 3 / 4; object-fit: cover; }
.card.is-video video:not([data-ready]) { aspect-ratio: 9 / 16; }
