:root {
  --bg-blur: 6px;
  --card: rgba(18,18,18,.75);
  --text: #f2f2f2;
  --muted: #bdbdbd;
  --accent: #fff; /* helder wit voor knoppen en outline */
  --gap: clamp(14px, 2.4vw, 24px);
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #000;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: scroll; /* Always show vertical scrollbar to prevent reflow differences */
  overflow-x: hidden; /* Prevent horizontal overflow from full-width elements */
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  filter: grayscale(1) contrast(1.1) brightness(.65);
}

.bg__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .bg__video { display: none; }
  .bg { background: #000 url('assets/img/album-cover.jpg') center/cover no-repeat; }
}

/* Corner logos */
.logo {
  position: fixed;
  top: 14px;
  z-index: 10;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.logo img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  animation: spin 12s linear infinite;
}

.logo--left { left: 14px; }
.logo--right { right: 14px; }

/* Logo Spinner */
/*@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }*/

/* Page container */
.page {
  max-width: 1100px;
  margin: 10px auto;
  padding: 0 var(--gap);
  flex: 1 0 auto;
}

/* Header */
.hero {
  text-align: center;
  margin-bottom: clamp(24px, 5vh, 40px);
  text-shadow: 0 2px 8px rgba(0,0,0,.55);
}

.hero__brand {
  margin: 0;
  letter-spacing: .25em;
  font-weight: 700;
  font-size: clamp(22px, 5vw, 40px);
}

.hero__album {
  margin: .25em 0 0;
  font-weight: 900;
  font-size: clamp(28px, 7vw, 56px);
}

/* Album section: centered */
.album {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap);
  margin-bottom: var(--gap);
}

/* Flip container (takes place of your old .album__cover) */
.album__flip {
  width: 100%;
  max-width: 400px; /* upper limit on desktop */
  min-width: 200px;
  cursor: pointer;
  perspective: 1000px; /* enables 3D effect */
}

/* Both faces share same box */
.album__face {
  margin: 0;
  overflow: hidden;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  transition: transform 0.7s ease-in-out;
}

.album__face img {
  display: block;
  width: 100%;
  height: auto; /* keep natural album ratio */
  object-fit: cover;
}

/* Front is in normal flow and defines height */
.album__face--front {
  position: relative;
  z-index: 2;
  transform: rotateY(0deg);
}

/* Back is stacked on top, initially rotated away */
.album__face--back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
}

/* On click: rotate both faces */
.album__flip.is-flipped .album__face--front {
  transform: rotateY(-180deg);
}

.album__flip.is-flipped .album__face--back {
  transform: rotateY(0deg);
}

/* Your existing meta styling */
.album__meta {
  background: var(--card);
  backdrop-filter: blur(var(--bg-blur));
  padding: clamp(14px, 2vw, 22px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 600px;
  margin-top: var(--gap);
  text-align: center;
}

.intro { margin: 0 0 10px; }

.quote {
  margin: 6px 0 16px;
  padding-left: 14px;
  border-left: 3px solid rgba(255,255,255,.35);
  color: #e6e6e6;
  font-style: italic;
}

.quote cite {
  color: var(--muted);
  font-style: normal;
}

/* CTA */
.cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.cta--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .7em 1.05em;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
}

.btn--primary {
  background: var(--accent);
  color: #111;
  border-color: transparent;
  font-weight: 700;
}

.btn--primary:hover { filter: brightness(.92); }

.btn--ghost {
  color: #fff;
  background: rgba(0,0,0,.2);
}

.btn--ghost:hover { background: rgba(0,0,0,.35); }

.donate {
  display: flex;
  gap: 8px;
  justify-content: center; /* keep it centered */
}

/* Outer wrapper box */
.snippets-wrapper {
  background: var(--card);
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 12px;
  position: relative; /* needed for ::after */
  overflow: visible; /* allow logo to hang out a bit */
}

/* Title at top */
.snippets-title {
  margin: 0;
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Existing snippet grid */
.snippets {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr 1fr;
  position: relative;
  padding: 0;
}

/* Vertical center line */
/*.snippets::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--accent, #999);
  transform: translateX(-50%);
  opacity: 0.3;
}*/

/* Inner half-cards (no shadows, only spacing) */
.snippets__col {
  padding: 16px;
  padding-bottom: 0;
}

/* Remove rounding on inner seam */
.snippets__col:first-child {
  border-right: none;
}

.snippets__col:last-child {
  border-left: none;
}

/* Quote block at bottom */
.snippets-quote {
  text-align: center;
  font-style: italic;
  opacity: 0.8;
  margin-top: 0.5em;
  padding-top: 0.5rem;
}

/* footer stays at the bottom, but in normal flow */
.footer {
  flex-shrink: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 15% 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 5%;
}

/* Left + right (no longer absolute) */
.footer-logo {
  width: 2.5em;
  opacity: 0.6;
}

/* Centered logo wrapper */
.footer-center {
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none; /* optional */
}

.footer-center img {
  width: 12em;
  opacity: 0.6;
}

.tracks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.track {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.02);
}

.play {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(0,0,0,.2);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  padding-left: 7.5px;
  padding-bottom: 2px;
}

.play.is-playing {
  background: #fff;
  color: #111;
}

.title {
  font-weight: 600;
}

.len {
  color: var(--muted);
  font-size: .9rem;
}

.note {
  margin: 12px auto 0;
  background: var(--card);
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: #e9e9e9;
  max-width: 60%; /* NEW: limit width */
  min-width: 300px; /* avoid too narrow on mobile */
}

.title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  margin: 0;
  text-wrap-mode: nowrap;
}

.title img {
  width: 40%;
  height: auto;
  object-fit: cover;
  margin-bottom: 1.5em;
}

/* Collapsible donation block that matches .note styling and pushes content */
.donation-section {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 320ms ease, opacity 220ms ease;
  will-change: max-height, opacity;
  margin-top: 0; /* small gap from CTA */
  padding: 0; /* removed until opened to avoid visual jump */
}

/* When open, let it expand. adjust max-height if your content is larger */
.donation-section.open {
  max-height: 240px; /* sufficient for the small content; increase if needed */
  opacity: 1;
  padding: 16px;
}

/* Responsive */
@media (max-width: 880px) {
  .album { grid-template-columns: 1fr; }
  .logo { width: 82px; height: 82px; }
  .logo img { width: 84px; height: 84px; }
  body { font-size: 0.9em; }
}

@media (max-width: 701px) {
  .hero__brand { letter-spacing: .18em; }
  body { font-size: 0.875em; }

}

@media (max-width: 550px) {
  .snippets { grid-template-columns: none; }
  body { font-size: 0.85em; }
}