/* MDN V27: five main categories glow, nothing else in the sections. V24 base: one vertical title line, equal release cards, mobile menu fix, GROOVE LIST hook + popup, one newsletter block only. */
:root { --mdn-inset: 21px; }
@media (min-width: 640px) { :root { --mdn-inset: 25px; } }

/* Titles share the card-title line (card padding + border). */
.mdn-next-heading { padding-left: var(--mdn-inset); }
.mdn-next-shell { grid-template-columns: 228px minmax(0,1fr); }
@media (max-width: 900px) { .mdn-next-shell { grid-template-columns: 180px minmax(0,1fr); } }
#music .mdn-latest-band .reveal { padding-left: var(--mdn-inset); }
#catalogue > div:first-child, #catalogue > .draw-rule { margin-left: var(--mdn-inset); }
@media (max-width: 640px) { .mdn-next-heading { padding-left: var(--mdn-inset); padding-right: var(--mdn-inset); } .mdn-next-empty { padding-left: var(--mdn-inset); padding-right: var(--mdn-inset); } .mdn-next-kicker { white-space: nowrap; } }

/* Latest releases: all cards the same height. */
#music .grid:has(> .reveal > article.glow-card) { align-items: stretch; }
#music .grid > .reveal:has(> article.glow-card) { height: 100%; }

/* Mobile menu: the header's backdrop blur made the fixed overlay size itself to the
   73px header instead of the screen. While the menu is open the header drops the blur,
   so the overlay covers the full screen; logo and close button stay on top. */
header:has(> #mobile-nav) { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background-color: transparent !important; border-bottom-color: transparent !important; }
#mobile-nav { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; z-index: -1; }

/* Only one big newsletter block (footer). The island under MONKEY WEAR goes. */
#label .glow-card:has(#newsletter-email-fanbase) { display: none; }

/* NEXT RELEASES strip: one line + the footer button, nothing bigger than the heading. */
.mdn-next-empty .mdn-next-line { margin: 0; font-family: var(--font-mono, monospace); font-size: 11px; line-height: 1.8; letter-spacing: .1em; text-transform: uppercase; color: #b6b1a7; }
.mdn-next-empty .mdn-next-line strong { font-weight: 400; color: var(--brand-gold, #d4af37); }
.mdn-next-empty .mdn-next-join { flex: none; }

/* Popup */
.mdn-gl { width: min(92vw, 460px); padding: 30px 28px 28px; border: 1px solid rgba(255,255,255,.12); background: #0b0a0f; color: var(--brand-cream, #f5f2ea); }
.mdn-gl::backdrop { background: rgba(8,7,10,.78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mdn-gl-close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; font-size: 22px; line-height: 1; color: rgba(245,242,234,.6); background: none; border: 0; cursor: pointer; }
.mdn-gl-close:hover { color: var(--accent-acid, #a8ff3e); }
.mdn-gl-kicker { margin: 0; font-family: var(--font-mono, monospace); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-acid, #a8ff3e); }
.mdn-gl-title { margin: 10px 0 22px; font-family: var(--font-display, 'Syne', sans-serif); font-size: 22px; font-weight: 800; line-height: 1.1; letter-spacing: -.03em; text-transform: uppercase; }
.mdn-gl-form { display: flex; flex-direction: column; gap: 12px; }
.mdn-gl-label { font-family: var(--font-mono, monospace); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: rgba(245,242,234,.55); }
.mdn-gl-consent { display: flex; align-items: flex-start; gap: 12px; }
.mdn-gl-consent label { font-family: var(--font-mono, monospace); font-size: 9px; line-height: 1.7; letter-spacing: .12em; text-transform: uppercase; color: rgba(245,242,234,.55); }
.mdn-gl-consent a { color: var(--accent-acid, #a8ff3e); }
.mdn-gl-error { margin: 0; font-family: var(--font-mono, monospace); font-size: 10px; letter-spacing: .1em; color: #ff6b6b; }
.mdn-gl-submit { align-self: flex-start; margin-top: 6px; }
.mdn-gl-done { margin: 4px 0 0; font-family: var(--font-display, 'Syne', sans-serif); font-size: 18px; font-weight: 800; text-transform: uppercase; color: var(--accent-acid, #a8ff3e); }
@media (max-width: 640px) { .mdn-next-empty { flex-direction: column; align-items: flex-start; } }

/* ===== V27: every glowing title follows the MONKEY WEAR pattern =====
   glow bar -> mini line "MONKEY DANCE NATION" -> glowing title, same size, same inset line. */
:root { --mdn-glow-text: linear-gradient(100deg, var(--accent-acid), var(--brand-gold) 34%, var(--accent-pink) 66%, var(--accent-blue));
        --mdn-glow-bar: linear-gradient(90deg, transparent, rgba(168,255,62,.6), rgba(212,175,55,.6), transparent); }

/* Glowing titles (Vinyl on demand keeps its own existing glow). */
.mdn-cat-title, #label h3.display-md, #catalogue > div:first-child h3 {
  background-image: var(--mdn-glow-text); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: kit-gradient-shift 12s ease-in-out infinite; margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .mdn-cat-title, #label h3.display-md, #catalogue > div:first-child h3 { animation: none; } }

/* One size: the MONKEY WEAR title size (display-md). */
#catalogue > div:first-child h3 { font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: .98; letter-spacing: -.02em; }

/* Category heads: bar on top, mini line, title. */
.mdn-cat-head { position: relative; margin-bottom: 56px; }
.mdn-cat-bar { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--mdn-glow-bar); pointer-events: none; }
.mdn-cat-head > .eyebrow { margin-top: 0; }
.mdn-cat-head > :not(.mdn-cat-bar), #label h3.display-md, #label p.eyebrow:has(+ h3.display-md) { margin-left: var(--mdn-inset); }
@media (max-width: 640px) { .mdn-cat-head { margin-bottom: 40px; } }
.mdn-cat-music { padding-top: 72px; margin-bottom: 0; }
.mdn-cat-music > .mdn-cat-bar { top: 72px; }
@media (max-width: 640px) { .mdn-cat-music { padding-top: 48px; } .mdn-cat-music > .mdn-cat-bar { top: 48px; } }
.max-w-\[62ch\] > [data-mdn-cat] { margin-bottom: 24px; }
.max-w-\[62ch\] > [data-mdn-cat] + p.eyebrow { margin-top: 0; }

/* THE CATALOGUE and VINYL ON DEMAND: bar on top, mini line, title on the same inset line; no bar under the title. */
#catalogue > div:first-child, .mdn-vinyl-column > div:first-child { position: relative; }
#catalogue > div:first-child::before, .mdn-vinyl-column > div:first-child::before {
  content: ""; position: absolute; top: 0; left: calc(-1 * var(--mdn-inset)); right: 0; height: 1px; background: var(--mdn-glow-bar); pointer-events: none; }
.mdn-vinyl-column > div:first-child::before { left: 0; }
.mdn-vinyl-column > div:first-child > .min-w-0 { margin-left: var(--mdn-inset); }
#catalogue > .draw-rule { display: none; }

/* V28: THE PLAYLIST uses the same category head; card follows directly. */
.mdn-cat-playlist { margin-bottom: 0; }
