body {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  background-image: url('../images/SoundRoomBackground.png');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  height: 100vh;
  overflow: hidden;
}

.title {
  position: absolute;
  top: 50px;
  right: 60px;
  font-family: 'Permanent Marker', cursive;
  font-size: 40px;
  color: #00ffff;
  text-shadow:
    0 0 5px #ff00ff,
    0 0 10px #8000ff,
    0 0 20px #8000ff;
  z-index: 10;
}

.glass-box {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  padding: 20px;
  color: white;
  width: 300px;
  box-shadow: 0 0 15px #00ffff;
}

.bandcamp-card {
  position: absolute;
  top: 160px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: 300px;
}

.bandcamp-card iframe {
  width: 100%;
  height: 120px;
  border: none;
  display: block;
}

.youtube-card {
  position: absolute;
  top: 450px;
  left: 60px;
}

.exclusives {
  position: absolute;
  top: 720px;
  left: 60px;
}

.prints {
  position: absolute;
  top: 100px;
  right: 50px;
}

.neon-heading {
  font-family: 'Permanent Marker', cursive;
  font-size: 24px;
  color: #00ffff;
  text-shadow:
    0 0 3px #ff00ff,
    0 0 6px #8000ff,
    0 0 12px #8000ff;
  margin-bottom: 10px;
}

/* 🔊 Audio Controls */
.audio-controls {
  position: fixed;
  bottom: 40px;
  right: 40px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 0 10px #ff00ff;
  z-index: 999;
}

.audio-controls button {
  font-family: 'Permanent Marker', cursive;
  background: none;
  border: none;
  color: #00ffff;
  font-size: 14px;
  cursor: pointer;
  text-shadow: 0 0 6px #00ffff, 0 0 12px #ff00ff;
  white-space: nowrap;
}

.audio-controls input[type="range"],
#volume-slider {
  width: 120px;
  max-width: 100%;
  flex-shrink: 1;
  accent-color: #ff00ff;
  cursor: pointer;
}

/* 🔙 Back to Home Button */
.home-button {
  position: absolute;
  top: 20px;
  left: 20px;
  font-family: 'Permanent Marker', cursive;
  color: #00ffff;
  font-size: 20px;
  text-decoration: none;
  text-shadow:
    0 0 3px #ff00ff,
    0 0 6px #8000ff,
    0 0 12px #8000ff;
  padding: 5px 10px;
  border: 2px solid #ff00ff;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.6);
  box-shadow: 0 0 8px #ff00ff;
}

.control-group {
  display: flex;
  gap: 14px;
  align-items: center;
}

.control-group button {
  font-family: 'Permanent Marker', cursive;
  background: none;
  border: none;
  color: #00ffff;
  font-size: 16px;
  cursor: pointer;
  text-shadow: 0 0 6px #00ffff, 0 0 12px #ff00ff;
  white-space: nowrap;
}

.control-group input[type="range"] {
  width: 140px;
  accent-color: #ff00ff;
  cursor: pointer;
}

/* === Welcome Message === */
.soundroom-welcome {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 960px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  padding: 24px 40px;
  text-align: center;
  box-shadow: 0 0 15px #ff00ff;
  z-index: 10;
}

.soundroom-welcome-text {
  font-family: 'Permanent Marker', cursive;
  font-size: 1.4rem;
  line-height: 1.6;
  color: #b68cff;
  text-shadow:
    0 0 5px #ff00e0,
    0 0 10px #ff00e0,
    0 0 20px #ff1ae0,
    0 0 30px #ff1ae0,
    0 0 40px #ff4de0;
}

/* Glitch effect */
.soundroom-welcome-text .glitch {
  display: inline-block;
  animation: glitch-flicker 1.5s infinite;
  color: #ff0055;
}

@keyframes glitch-flicker {
  0%, 100% { opacity: 1; }
  10%, 90% { opacity: 0.4; transform: translateX(-1px); }
  20%, 80% { opacity: 0.8; transform: translateX(1px); }
  30%, 70% { opacity: 0.6; transform: translateX(-2px); }
  40%, 60% { opacity: 0.9; transform: translateX(2px); }
  50% { opacity: 0.3; transform: translateX(-1px); }
}

/* === FINAL FIX: Welcome Box Horizontal === */
.soundroom-welcome {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  max-width: 960px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  padding: 24px 40px;
  text-align: center;
  box-shadow: 0 0 15px #ff00ff;
  z-index: 10;
}

.soundroom-welcome-text {
  font-family: 'Permanent Marker', cursive;
  font-size: 1.4rem;
  line-height: 1.6;
  color: #b68cff;
  text-shadow:
    0 0 5px #ff00e0,
    0 0 10px #ff00e0,
    0 0 20px #ff1ae0,
    0 0 30px #ff1ae0,
    0 0 40px #ff4de0;
}

.soundroom-welcome-text .glitch {
  display: inline-block;
  animation: glitch-flicker 1.5s infinite;
  color: #ff0055;
}

/* === FINAL FIX: Bandcamp Box Shifted Down === */
.bandcamp-card {
  position: absolute;
  top: 180px; /* push it lower than welcome box */
  left: 60px;
  width: 300px;
  z-index: 5;
}

.bandcamp-card iframe {
  width: 100%;
  height: 120px;
  border: none;
  display: block;
}

/* === Final Welcome Message Fix === */
.soundroom-welcome {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 960px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  padding: 20px 30px;
  text-align: center;
  box-shadow: 0 0 15px #ff00ff;
  z-index: 10;
}

.soundroom-welcome-text {
  font-family: 'Permanent Marker', cursive;
  font-size: 1.4rem;
  line-height: 1.6;
  color: #b68cff;
  text-shadow:
    0 0 5px #ff00e0,
    0 0 10px #ff00e0,
    0 0 20px #ff1ae0,
    0 0 30px #ff1ae0,
    0 0 40px #ff4de0;
}

/* Ensure Bandcamp stays visible left-side */
.bandcamp-card {
  position: absolute;
  top: 160px;
  left: 60px;
  width: 300px;
}

.bandcamp-card iframe {
  width: 100%;
  max-width: 300px;
  height: 120px;
  border: none;
}

/* === Sound Room: targeted fixes (Bandcamp + YouTube link only) === */

/* 1) Make the YouTube link clearly visible inside its card */
.youtube-card a,
.youtube-card a:visited {
  color: #ffffff !important;                 /* strong contrast */
  text-shadow: 0 0 4px #00e5ff, 0 0 10px #00e5ff; /* neon glow to match theme */
  font-weight: 700;
}
.youtube-card a:hover {
  text-decoration: underline;
  filter: drop-shadow(0 0 6px #00e5ff);
}

/* 2) Ensure the Bandcamp player isn't hidden and is clickable */
.bandcamp-card {
  position: relative;   /* keeps layout as-is, but allows z-index */
  z-index: 20;          /* above the welcome box overlay if it overlaps */
  margin-top: 12px;     /* tiny nudge so it's not tucked under anything */
}

/* (If your welcome box has a high z-index overlay, keep it below the player without changing its look) */
.soundroom-welcome {
  z-index: 10;          /* lower than the Bandcamp card only */
  pointer-events: none; /* prevents the welcome box from blocking clicks */
}

/* === Bandcamp visibility/overlap hard fix (targeted) === */

/* Keep YouTube link readable (unchanged from before) */
.youtube-card a,
.youtube-card a:visited { color:#fff !important; text-shadow:0 0 4px #00e5ff,0 0 10px #00e5ff; font-weight:700; }
.youtube-card a:hover { text-decoration:underline; filter:drop-shadow(0 0 6px #00e5ff); }

/* 1) Guarantee Bandcamp sits ABOVE any welcome/overlay glass */
.bandcamp-card {
  position: relative !important;
  z-index: 10000 !important;          /* outrank any stacking context */
  margin-top: 16px;                    /* small lift so it isn't tucked under */
  pointer-events: auto !important;     /* clickable */
}

/* If your embed is an iframe or embed element, raise it too */
.bandcamp-card iframe,
.bandcamp-card embed {
  position: relative !important;
  z-index: 10001 !important;
  display: block;
  width: 100%;
  max-width: 540px;                    /* typical Bandcamp width; adjust if needed */
  height: 472px;                       /* typical tall player; adjust to your embed */
  pointer-events: auto !important;
}

/* 2) Ensure the welcome panel can’t cover/capture clicks */
.soundroom-welcome,
.soundroom-welcome::before,
.soundroom-welcome::after {
  z-index: 1 !important;               /* keep visuals intact but below Bandcamp */
  pointer-events: none !important;     /* prevent blocking clicks on player */
}

/* === FINAL OVERRIDE: Bandcamp position & stacking (only) === */
.bandcamp-card {
  position: absolute !important;
  top: 210px !important;          /* adjust this value as needed */
  left: 60px !important;          /* left-side placement */
  transform: none !important;     /* cancel earlier translateX(-50%) */
  width: 540px !important;        /* typical Bandcamp embed width */
  max-width: 540px !important;
  z-index: 10001 !important;      /* above welcome box */
  pointer-events: auto !important;
}

.bandcamp-card iframe {
  display: block;
  width: 100% !important;
  height: 472px !important;       /* tall player; set to your embed’s height */
  border: 0;
  position: relative !important;
  z-index: 10002 !important;
}

/* Keep YouTube link readable inside its card */
.youtube-card a,
.youtube-card a:visited {
  color:#fff !important;
  text-shadow:0 0 4px #00e5ff,0 0 10px #00e5ff;
  font-weight:700;
}
.youtube-card a:hover { text-decoration:underline; filter:drop-shadow(0 0 6px #00e5ff); }

/* Ensure welcome panel sits below Bandcamp without changing its look */
.soundroom-welcome { z-index: 10 !important; }

/* === Bandcamp: match YouTube card size & align above with gap === */
.bandcamp-card {
  position: absolute !important;
  top: 310px !important;       /* 20px gap above YouTube card at 450px */
  left: 60px !important;       /* align with YouTube card */
  width: 300px !important;     /* match YouTube card width */
  height: auto !important;
  transform: none !important;
  z-index: 10001 !important;
}

.bandcamp-card iframe {
  width: 100% !important;
  height: 120px !important;    /* same visual block height as YouTube */
  border: 0;
  display: block;
}

/* === Neon match: Bandcamp + YouTube cards ONLY === */
.bandcamp-card,
.youtube-card {
  background: rgba(0, 0, 0, 0.55) !important;   /* frosted glass */
  border: 2px solid #00e5ff !important;         /* cyan edge */
  border-radius: 18px !important;
  padding: 14px !important;
  box-shadow:
    0 0 6px #00e5ff,
    0 0 14px #00e5ff,
    inset 0 0 24px rgba(0, 229, 255, 0.18) !important;  /* inner glow */
  backdrop-filter: blur(4px);
}

/* Keep the Bandcamp position/size aligned above YouTube with a 20px gap */
.bandcamp-card {
  position: absolute !important;
  top: 310px !important;       /* 20px above YouTube at 450px */
  left: 60px !important;
  width: 300px !important;
  transform: none !important;
  z-index: 10001 !important;
}

/* Bandcamp iframe size (same visual block height as YouTube card) */
.bandcamp-card iframe {
  width: 100% !important;
  height: 120px !important;
  border: 0;
  display: block;
  position: relative !important;
  z-index: 10002 !important;
}

/* YouTube link legibility (inside its card only) */
.youtube-card a,
.youtube-card a:visited {
  color: #fff !important;
  text-shadow: 0 0 4px #00e5ff, 0 0 10px #00e5ff;
  font-weight: 700;
}
.youtube-card a:hover {
  text-decoration: underline;
  filter: drop-shadow(0 0 6px #00e5ff);
}

/* Unified neon CTA for all cards (YouTube, Bandcamp, Prints, Exclusives) */
.youtube-card a,
.bandcamp-card a,
.prints a,
.exclusives a {
  color: #fff !important;
  text-shadow: 0 0 4px #00e5ff, 0 0 10px #00e5ff;
  font-weight: 700;
}
.youtube-card a:hover,
.bandcamp-card a:hover,
.prints a:hover,
.exclusives a:hover {
  text-decoration: underline;
  filter: drop-shadow(0 0 6px #00e5ff);
}

/* Lift Bandcamp block higher (no other layout changes) */
.bandcamp-card { top: 245px !important; }  /* try 250–270px to taste */

/* ===== Neon Footer Navigation ===== */
.glow-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 10px 0;
  width: 100%;

  background: transparent;   /* no blur/haze */
  backdrop-filter: none;
  box-shadow: none;
  border: none;
}

.glow-footer__wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.glow-card {
  --neon1: #00ffff;
  --neon2: #ff00ff;
  --neon3: #7d3cff;

  font-family: 'Permanent Marker', system-ui, sans-serif;
  font-size: 1rem;
  padding: 8px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;

  background: rgba(15, 15, 30, 0.70);
  border: 2px solid var(--neon1);
  box-shadow:
    0 0 6px var(--neon1),
    0 0 16px var(--neon2),
    inset 0 0 6px rgba(255, 255, 255, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.glow-card:hover,
.glow-card:focus {
  border-color: var(--neon2);
  box-shadow:
    0 0 8px var(--neon2),
    0 0 22px var(--neon3),
    0 0 40px var(--neon2);
  transform: translateY(-1px) scale(1.02);
  outline: none;
}

@media (max-width: 720px) {
  .glow-card {
    padding: 7px 12px;
    font-size: 0.95rem;
    border-radius: 12px;
  }
}

/* ==== SOUND ROOM: Neon Footer (local overrides) ==== */

/* reserve space so content/players don't hide under the footer */
#page-content {
  padding-bottom: 120px; /* adjust if your row wraps */
}

/* footer container (no blur bar; just floating neon buttons) */
footer.glow-footer{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1200;           /* above page decor */
  display: grid;
  place-items: center;
  padding: 10px 0 12px;
  width: 100%;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  border: none;
}

/* centered button row */
footer.glow-footer .glow-footer__wrap{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

/* neon link pills (match global look) */
footer.glow-footer .glow-card{
  --neon1:#00ffff; --neon2:#ff00ff; --neon3:#7d3cff;

  font-family:'Permanent Marker', system-ui, sans-serif;
  font-size: 1rem;
  padding: 8px 14px;
  border-radius: 12px;
  text-decoration: none;
  color:#fff;

  background: rgba(15,15,30,.70);
  border:2px solid var(--neon1);
  box-shadow:
    0 0 6px var(--neon1),
    0 0 16px var(--neon2),
    inset 0 0 6px rgba(255,255,255,.08);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}

footer.glow-footer .glow-card:hover,
footer.glow-footer .glow-card:focus{
  border-color: var(--neon2);
  box-shadow:
    0 0 8px var(--neon2),
    0 0 22px var(--neon3),
    0 0 40px var(--neon2);
  transform: translateY(-1px) scale(1.02);
  outline: none;
}

/* keep the page's bottom-right audio widget clear of the footer */
.audio-controls, .music-controls, .player-controls {
  bottom: 84px !important;   /* nudge up so it doesn't overlap footer */
  z-index: 1100;             /* under footer but above content */
}

@media (max-width: 720px){
  #page-content{ padding-bottom: 132px; }
  footer.glow-footer .glow-card{
    padding: 7px 12px;
    font-size: .95rem;
    border-radius: 12px;
  }
}
