/* ═══════════════════════════════════════════════
 *  DÉJÀ VOODOOO — Bite the Buffalo
 *  style.css
 *  ═══════════════════════════════════════════════ */

/* ── Custom properties ───────────────────────── */
:root {
  --c-bg:       #08000f;
  --c-magenta:  #ff006e;
  --c-yellow:   #ffbe0b;
  --c-cyan:     #00f5d4;
  --c-orange:   #fb5607;
  --c-green:    #06d6a0;
  --c-purple:   #9b5de5;
  --c-white:    #f0eaf8;

  --font-display: 'Creepster', cursive;
  --font-title:   'Unbounded', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-card: 18px;
  --shadow-glow: 0 0 40px rgba(255, 0, 110, .35), 0 0 80px rgba(0, 245, 212, .15);

  --transition-fast: 180ms ease;
  --transition-mid:  350ms ease;
}

/* ── Reset & base ────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--c-bg);
  color: var(--c-white);
  font-family: var(--font-body);
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ctext y='22' font-size='22'%3E🤘%3C/text%3E%3C/svg%3E") 4 4, auto;
}

img, svg, iframe {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

/* ── Background layers ───────────────────────── */
.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-gradient {
  background:
  radial-gradient(ellipse 60% 50% at 15% 20%,  rgba(106, 13, 173, .45) 0%, transparent 70%),
  radial-gradient(ellipse 50% 40% at 85% 75%,  rgba(0,  64, 128,  .35) 0%, transparent 70%),
  radial-gradient(ellipse 70% 60% at 50% 50%,  rgba(20,  0,  40,  .6)  0%, transparent 100%),
  var(--c-bg);
  animation: bgPulse 10s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  from { filter: hue-rotate(0deg)   brightness(1);    }
  to   { filter: hue-rotate(18deg)  brightness(1.08); }
}

.bg-noise {
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}

.bg-grid {
  background-image:
  linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at center, black, transparent);
}

/* ── Floating particles ──────────────────────── */
.particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  opacity: 0;
  font-size: clamp(.9rem, 2vw, 1.8rem);
  animation: particleFloat linear infinite;
  will-change: transform, opacity;
}

@keyframes particleFloat {
  0%   { transform: translateY(105vh) rotate(0deg);   opacity: 0; }
  8%   { opacity: .65; }
  92%  { opacity: .4; }
  100% { transform: translateY(-8vh)  rotate(360deg); opacity: 0; }
}

/* ══════════════════════════════════════════════
 *  HEADER
 ═ *═════════════════════════════════════════════ */
.site-header {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: clamp(2rem, 6vw, 4.5rem) 1.5rem clamp(1rem, 3vw, 2rem);
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
}

/* Band name */
.band-name {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(.75rem, 2vw, 1rem);
  letter-spacing: .5em;
  text-transform: uppercase;
  color: var(--c-cyan);
  text-shadow: 0 0 12px var(--c-cyan), 0 0 30px rgba(0,245,212,.4);
  animation: glowFlicker 4s ease-in-out infinite;
}

@keyframes glowFlicker {
  0%, 90%, 100% { opacity: 1;  }
  92%           { opacity: .4; text-shadow: 0 0 4px var(--c-cyan); }
  94%           { opacity: 1;  }
  96%           { opacity: .5; }
  98%           { opacity: 1;  }
}

/* Divider */
.header-divider {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  max-width: 280px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-magenta), transparent);
}

.divider-icon {
  font-size: 1rem;
  filter: drop-shadow(0 0 6px rgba(255,0,110,.7));
}

/* Song title */
.song-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  gap: .05em;
}

.title-deja,
.title-voodoo {
  font-family: var(--font-display);
  display: block;
  background: linear-gradient(135deg,
                              var(--c-magenta)  0%,
                              var(--c-yellow)   35%,
                              var(--c-orange)   65%,
                              var(--c-magenta)  100%);
  background-size: 250% 250%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradShift 5s ease infinite;
  filter: drop-shadow(0 0 20px rgba(255, 0, 110, .5));
}

.title-deja   { font-size: clamp(3.5rem, 11vw, 8rem); }
.title-voodoo { font-size: clamp(4rem,   14vw, 10rem); letter-spacing: .02em; }

@keyframes gradShift {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

/* Song meta — OVHcloud inline mention */
.song-meta {
  margin-top: .6rem;
}

.ovh-meta {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .45em 1.1em .45em .85em;
  border-radius: 50px;
  border: 1.5px solid rgba(0, 245, 212, .35);
  background: rgba(0, 245, 212, .06);
  backdrop-filter: blur(8px);
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(.65rem, 1.6vw, .82rem);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(0, 245, 212, .75);
  box-shadow: 0 0 18px rgba(0, 245, 212, .1);
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--transition-mid), box-shadow var(--transition-mid), color var(--transition-mid);
}

.ovh-meta:hover {
  border-color: rgba(0, 245, 212, .7);
  box-shadow: 0 0 28px rgba(0, 245, 212, .25);
  color: var(--c-cyan);
}

.ovh-meta strong {
  color: var(--c-cyan);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0,245,212,.5);
}

.ovh-icon {
  width: 1.5em;
  height: 1.5em;
  flex-shrink: 0;
  color: var(--c-cyan);
  filter: drop-shadow(0 0 4px rgba(0,245,212,.5));
}

/* ══════════════════════════════════════════════
 *  MAIN
 ═ *═════════════════════════════════════════════ */
.site-main {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem clamp(2rem, 5vw, 4rem);
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

/* ── Video section ───────────────────────────── */
.video-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

/* Outer wrapper (for runes + glow) */
.video-wrapper {
  position: relative;
  width: min(880px, 94vw);
}

/* Rune decorations */
.rune {
  position: absolute;
  font-size: clamp(1.4rem, 3vw, 2rem);
  z-index: 20;
  filter: drop-shadow(0 0 8px rgba(255,190,11,.8));
  animation: runePulse 2.5s ease-in-out infinite;
}

.rune-tl { top: -1.1rem; left: -1.1rem; }
.rune-tr { top: -1.1rem; right: -1.1rem; animation-delay: .6s; }
.rune-bl { bottom: -1.1rem; left: -1.1rem; animation-delay: 1.2s; }
.rune-br { bottom: -1.1rem; right: -1.1rem; animation-delay: 1.8s; }

@keyframes runePulse {
  0%, 100% { transform: scale(1)    rotate(0deg);  }
  50%       { transform: scale(1.2) rotate(12deg); }
}

/* Animated border glow ring */
.video-border-glow {
  position: absolute;
  inset: -4px;
  border-radius: calc(var(--radius-card) + 4px);
  background: linear-gradient(135deg,
                              var(--c-magenta),
                              var(--c-yellow),
                              var(--c-cyan),
                              var(--c-orange),
                              var(--c-purple),
                              var(--c-magenta));
  background-size: 300% 300%;
  animation: borderRotate 4s linear infinite;
  z-index: -1;
  box-shadow: var(--shadow-glow);
}

@keyframes borderRotate {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}

/* Inner embed container */
.video-embed-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #000;
}

.video-embed-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── EQ bars ─────────────────────────────────── */
.eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 38px;
}

.eq-bar {
  display: block;
  width: 9px;
  border-radius: 3px 3px 0 0;
  background: var(--c-magenta);
  animation: eqDance .7s ease-in-out infinite alternate;
}

/* Stagger delays & colours */
.eq-bar:nth-child(1)  { animation-delay: .00s; height: 40%; background: var(--c-magenta); }
.eq-bar:nth-child(2)  { animation-delay: .08s; height: 85%; background: var(--c-orange); }
.eq-bar:nth-child(3)  { animation-delay: .16s; height: 55%; background: var(--c-yellow); }
.eq-bar:nth-child(4)  { animation-delay: .24s; height: 100%;background: var(--c-green); }
.eq-bar:nth-child(5)  { animation-delay: .32s; height: 65%; background: var(--c-cyan); }
.eq-bar:nth-child(6)  { animation-delay: .40s; height: 90%; background: var(--c-purple); }
.eq-bar:nth-child(7)  { animation-delay: .48s; height: 45%; background: var(--c-magenta); }
.eq-bar:nth-child(8)  { animation-delay: .56s; height: 75%; background: var(--c-orange); }
.eq-bar:nth-child(9)  { animation-delay: .64s; height: 60%; background: var(--c-yellow); }
.eq-bar:nth-child(10) { animation-delay: .72s; height: 95%; background: var(--c-green); }
.eq-bar:nth-child(11) { animation-delay: .80s; height: 50%; background: var(--c-cyan); }
.eq-bar:nth-child(12) { animation-delay: .88s; height: 80%; background: var(--c-purple); }
.eq-bar:nth-child(13) { animation-delay: .96s; height: 38%; background: var(--c-magenta); }
.eq-bar:nth-child(14) { animation-delay: 1.04s;height: 70%; background: var(--c-orange); }
.eq-bar:nth-child(15) { animation-delay: 1.12s;height: 55%; background: var(--c-yellow); }
.eq-bar:nth-child(16) { animation-delay: 1.20s;height: 88%; background: var(--c-green); }

@keyframes eqDance {
  from { transform: scaleY(.15); opacity: .5; }
  to   { transform: scaleY(1);   opacity: 1; }
}

/* ── Genre tags ──────────────────────────────── */
.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  width: min(880px, 94vw);
}

.tag {
  padding: .4em 1.1em;
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(.65rem, 1.4vw, .8rem);
  letter-spacing: .04em;
  border: 1.5px solid transparent;
  cursor: default;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.tag:hover {
  transform: scale(1.08) rotate(-2deg);
}

.tag--magenta { color: var(--c-magenta); border-color: var(--c-magenta); background: rgba(255,0,110,.08);  }
.tag--yellow  { color: var(--c-yellow);  border-color: var(--c-yellow);  background: rgba(255,190,11,.08); }
.tag--cyan    { color: var(--c-cyan);    border-color: var(--c-cyan);    background: rgba(0,245,212,.08);  }
.tag--orange  { color: var(--c-orange);  border-color: var(--c-orange);  background: rgba(251,86,7,.08);   }
.tag--green   { color: var(--c-green);   border-color: var(--c-green);   background: rgba(6,214,160,.08);  }

.tag--magenta:hover { box-shadow: 0 0 14px rgba(255,0,110,.4); }
.tag--yellow:hover  { box-shadow: 0 0 14px rgba(255,190,11,.4); }
.tag--cyan:hover    { box-shadow: 0 0 14px rgba(0,245,212,.4); }
.tag--orange:hover  { box-shadow: 0 0 14px rgba(251,86,7,.4); }
.tag--green:hover   { box-shadow: 0 0 14px rgba(6,214,160,.4); }

/* ══════════════════════════════════════════════
 *  FOOTER
 ═ *═════════════════════════════════════════════ */
.site-footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: clamp(1.5rem, 3vw, 2.5rem) 1rem clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: .35rem;
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: 1rem;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .1em;
  color: rgba(240,234,248,.3);
}

.footer-sub {
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .06em;
  color: rgba(240,234,248,.2);
}

.footer-sub strong {
  color: rgba(0, 245, 212, .45);
  font-weight: 400;
}

.footer-ovh-link {
  color: rgba(0, 245, 212, .5);
  font-weight: 400;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 245, 212, .2);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.footer-ovh-link:hover {
  color: var(--c-cyan);
  border-color: rgba(0, 245, 212, .6);
}

/* ── Cursor colour glow canvas ───────────────── */
#cursor-glow {
position: fixed;
inset: 0;
z-index: 2;
pointer-events: none;
width: 100%;
height: 100%;
}

/* ══════════════════════════════════════════════
 *  RESPONSIVE TWEAKS
 ═ *═════════════════════════════════════════════ */
@media (max-width: 540px) {
  .badge-inner {
    flex-wrap: wrap;
    gap: .9rem;
  }

  .badge-status {
    width: 100%;
    justify-content: flex-start;
  }

  .eq-bar:nth-child(n+13) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
