/* Shared base for all Diskret Tanzbar pages. Each design adds its own <style>. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
::selection { background: #fff; color: #000; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* SoundCloud: the player only loads after a click (no third-party request before). */
.set-player:empty { display: none; }
.set-player iframe {
  display: block; width: 100%; height: 166px; border: 0;
  /* SoundCloud has no dark widget: invert it so it sits in a dark page. */
  filter: invert(0.92) hue-rotate(180deg) grayscale(1) contrast(1.05);
}
.set-play { position: relative; }
.set.is-loaded .set-play { pointer-events: none; }
.sc-note { font-size: 11px; opacity: .45; letter-spacing: .02em; }
.sc-note a { text-decoration: underline; text-underline-offset: 2px; }

/* Collective (artists from ARTISTS in mm.js). Colours and fonts come from each design. */
.crew { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 36px); max-width: 860px; }
.crew-pic { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.crew-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.crew-pic.is-empty { display: grid; place-items: center; border: 1px dashed rgba(127,127,127,.4); border-color: color-mix(in srgb, currentColor 28%, transparent); background: rgba(127,127,127,.06); background: color-mix(in srgb, currentColor 5%, transparent); }
.crew-pic.is-symbol { display: grid; place-items: center; border: 1px solid rgba(127,127,127,.3); border-color: color-mix(in srgb, currentColor 22%, transparent); background: rgba(127,127,127,.05); background: color-mix(in srgb, currentColor 5%, transparent); }
.crew-sym { width: 64%; height: auto; overflow: visible; }
.crew-ph { font-size: clamp(4rem, 12vw, 8rem); line-height: 1; opacity: .22; }
.crew-soon { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: .5; }
.crew-name { margin-top: 14px; font-size: clamp(1.3rem, 2.6vw, 2rem); line-height: 1.05; overflow-wrap: anywhere; }
.crew-role { margin-top: 4px; font-size: 13px; opacity: .65; }
.crew-links { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; }
.crew-links a { text-decoration: none; opacity: .8; } .crew-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

/* Variant switcher bar (only on /varianten/NN/ pages) */
.vbar {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 9999;
  display: flex; align-items: center; gap: 2px; max-width: calc(100vw - 24px);
  font: 500 11px/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(0,0,0,.82); color: #eee; border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 999px; padding: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.vbar a, .vbar span { display: inline-flex; align-items: center; padding: 9px 12px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.vbar a:hover { background: rgba(255,255,255,.12); }
.vbar .vbar-name { opacity: .7; }
@media (max-width: 520px) { .vbar .vbar-name { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Intro sound wave (assets/intro.js). Active only while <html> has .dt-intro (set by the bootstrap in the page head). */
html.dt-intro { overflow: hidden; scrollbar-gutter: stable; }
html.dt-intro::after { content: ""; position: fixed; inset: 0; z-index: 1000; background: #0a0a0a; }
html.dt-intro.dt-intro-run::after { display: none; }
html.dt-intro:not(.dt-intro-go) .hero *, html.dt-intro:not(.dt-intro-go) .hero *::before, html.dt-intro:not(.dt-intro-go) .hero *::after { animation-play-state: paused !important; }
.dt-intro-cv { position: fixed; inset: 0; z-index: 1001; display: block; width: 100%; height: 100%; }
.dt-intro-skip {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 1002; transform: translateX(-50%);
  padding: 10px 16px; font-size: 11px; line-height: 1; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap;
  color: rgba(255,255,255,.5); transition: color .3s, opacity .5s; animation: dt-intro-skip-in .8s 1s both;
}
.dt-intro-skip:hover, .dt-intro-skip:focus-visible { color: #fff; }
.dt-intro-skip.is-gone { opacity: 0; pointer-events: none; }
@keyframes dt-intro-skip-in { from { opacity: 0; } }
