   canvas {
      display: block;
      height: 30vh;
      width: 110vw;
      margin: 0;
      margin-top: -200px;
      position: fixed;
      padding: 0;
      left: -42px;
    }
    
/* Fade in from bottom animation */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.ux-floating-controls {
  position: fixed;
  bottom: 35px;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 9999;
}

.ux-control-btn {
  pointer-events: auto;
  position: absolute;
  bottom: 0;
  margin: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(46, 46, 46, 0);
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;

  /* animation */
  animation: fadeInUp 0.6s ease-out forwards;
}

.ux-control-btn:hover {
  background: rgba(15, 15, 15, 0.9);
  transform: scale(1.05);
}

.ux-control-btn svg {
  width: 26px;
  height: 26px;
}

.ux-control-btn.ux-left { left: 0; }
.ux-control-btn.ux-right { right: 0; }


/* ========== STARRY BACKGROUND ========== */
:root {
  --twinkle-duration: 10s;
}

.stars-wrapper {
  position: fixed;
  pointer-events: none;
  width: 100vw;
  height: 100vh;

  /* Night sky gradient */
  background: linear-gradient(-45deg,
        #000008,   /* near-black navy */
    #000010,   /* ultra-dark midnight blue */
    #030018,   /* extremely dark purple-blue */
    #000020,   /* deep indigo-black */
    #030018,
    #000010,
    #000008
  );
  background-size: 400% 400%;
  /* Smooth, slow shifting animation */
  animation: bgShift 90s ease-in-out infinite;

  overflow: hidden;
}

/* Smooth background movement */
@keyframes bgShift {
  0%   { background-position: 0% 50%; }
  25%  { background-position: 50% 75%; }
  50%  { background-position: 100% 50%; }
  75%  { background-position: 50% 25%; }
  100% { background-position: 0% 50%; }
}

/* Stars twinkling */
.stars {
  position: absolute;
  inset: 0;
  animation: twinkle var(--twinkle-duration) ease-in-out infinite;
}
.stars:nth-child(2) { animation-delay: calc(var(--twinkle-duration) * -2.66); }
.stars:nth-child(3) { animation-delay: calc(var(--twinkle-duration) * -4.16); }

@keyframes twinkle {
  25% { opacity: 0; }
}

.star { fill: white; }
.star:nth-child(3n)  { opacity: 0.8; }
.star:nth-child(7n)  { opacity: 0.6; }
.star:nth-child(13n) { opacity: 0.4; }
.star:nth-child(19n) { opacity: 0.2; }

/* Comets */
.comet {
  transform-origin: center center;
  animation: comet 10s linear infinite;
}
@keyframes comet {
  0%, 40%   { transform: translateX(0); opacity: 0; }
  50%       { opacity: 1; }
  60%, 100% { transform: translateX(-100vmax); opacity: 0; }
}
.comet-b { animation-delay: -5.3s; }
.comet-c { animation-delay: -8s; }

/* ========== MOBILE ========== */
@media (max-width: 768px) {
  .stars-wrapper {
    /* Special mobile gradient — deeper & smoother */
    background: radial-gradient(ellipse at center,
      #0C0C0C,  
#0D0D0D,  
#0E0E0E,  
#0F0F0F,  
#101010,  
#111111,  
#121212

    );
    background-size: 200% 200%;

    /* Layered glow effect */
    animation: mobileShift 60s ease-in-out infinite,
               mobileGlow 12s ease-in-out infinite;
  }

  /* Hide most stars, keep a "random" sprinkle */
  .star {
    display: none;
  }
  .star:nth-child(5n),
  .star:nth-child(9n),
  .star:nth-child(15n),
  .star:nth-child(23n) {
    display: inline;
  }

  /* Comet adjustments for mobile */
  .comet {
    /* Reduce animation duration for faster comets on mobile */
    animation-duration: 6s;
    /* Ensure comets are visible and properly positioned */
    display: inline !important;
  }
  
  /* Specific comet adjustments */
  .comet-a { animation-delay: 0s; }
  .comet-b { animation-delay: -2s; }
  .comet-c { animation-delay: -4s; }
  
  /* Adjust comet animation for mobile viewport */
  @keyframes comet {
    0%, 30%   { transform: translateX(0) scale(0.8); opacity: 0; }
    40%       { opacity: 1; }
    50%, 100% { transform: translateX(-120vmax) scale(0.8); opacity: 0; }
  }
}

/* Slow gradient drift */
@keyframes mobileShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Gentle pulsing glow */
@keyframes mobileGlow {
  0%, 100% { filter: brightness(0.9) contrast(1); }
  50%      { filter: brightness(1.2) contrast(1.1); }
}

.zen-bell-wrapper {
      padding: 24px;
      border-radius: 12px;
      background: transparent;
      margin-top: -64px;
      max-width: 360px;
      text-align: center;
    }

    .zen-bell-title {
      margin-top: 0;
      margin-bottom: 16px;
      font-size: 1.4rem;
      font-weight: 600;
    }

    .zen-btn {
      background: #2b2b2b;
      color: #ffffff;
      border: none;
      padding: 10px 18px;
      margin: 8px 0;
      border-radius: 8px;
      font-size: 1rem;
      cursor: pointer;
      transition: background 0.2s ease;
    }

    .zen-btn:hover:not(:disabled) {
      background: #3a3a3a;
    }

    .zen-btn:disabled {
      background: #888888;
      cursor: not-allowed;
    }

    .zen-label {
      display: block;
      margin: 12px 0 6px;
      font-size: 0.9rem;
      text-align: left;
    }

    .zen-input,
    .zen-slider,
    .zen-select {
      width: 100%;
      padding: 8px;
      font-size: 1rem;
      border-radius: 6px;
      border: 1px solid #cccccc;
      margin-bottom: 8px;
    }

    .zen-slider {
      padding: 0;
      height: 6px;
      cursor: pointer;
      accent-color: #2b2b2b;
    }

    .zen-row {
      display: flex;
      gap: 8px;
      margin-top: 8px;
      justify-content: center;
    }

    .zen-countdown {
      margin-top: 10px;
      font-size: 0.95rem;
      color: #aaaaaa;
    }


      /* Keep it minimal and safe for embedding */
  .bell-container {
  max-width: 360px;
  margin: 14vh auto 20px; /* combines margin-top + margin-bottom */
  padding: 16px;
  border: 1px solid transparent; /* #cccccc00 is just transparent */
  border-radius: 8px;
  background: transparent;
  color: #ffffff;
  font-family: Arial, sans-serif;
  text-align: center;
  position: relative; /* allows future positioning if needed */
}

/* ✅ FIXED MEDIA QUERY */
@media (max-width: 600px) {
  .bell-container {
    margin-top: 4vh;
  }
}

  .bell-container h2 {
    margin-top: 0;
    font-size: 1.2rem;
  }

  .bell-container label {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    text-align: left;
  }

  .bell-container select,
  .bell-container input[type="number"],
  .bell-container input[type="range"] {
    width: 100%;
    padding: 6px;
    margin-top: 4px;
    border: 1px solid #aaa;
    border-radius: 4px;
  }

  .bell-container .button-row {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    justify-content: center;
  }

  .bell-selector {
    display: flex;
    gap: 8px;
    flex-direction: row;
    justify-content: center;
    margin-top: 6vh;
    flex-wrap: wrap;
    margin-bottom: 12px;
  }

  .bell-container button {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 4px;
    background: #333;
    color: white;
    cursor: pointer;
  }

  .bell-container button:disabled {
    background: #999;
    cursor: not-allowed;
  }

  .bell-container .countdown {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #555;
  }




  .playlists {
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  margin-top: 0px;
  color: white;
  justify-content: center;
  gap: 5px;
}

.playlists button {
  background: #222;
  color: #fff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
  transition: 0.2s;
  flex: 1 1 auto;
  min-width: 100px;
}

.playlists button.active {
  background: #0f0;
  color: #000;
}

.controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 20px 0;
}

.controls button {
  background: #222;
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 5px;
  transition: 0.2s;
  flex: 1 1 auto;
  min-width: 100px;
}

.controls button:hover {
  background: #0f0;
  color: #000;
}

.progress-container {
  width: 100%;
  background: #333;
  height: 10px;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 10px;
}

.progress {
  background: #0f0;
  height: 100%;
  width: 0%;
  border-radius: 5px;
}

.volume-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.song-list {
  max-height: 160px;
  overflow-y: auto;
  color: white;
  width: 80%;
  margin-bottom: 90px;
}

.song-list div {
  padding: 5px;
  margin-bottom: -20px:
  cursor: pointer;
  border-bottom: 1px solid #222;
}

.song-list div.active {
  color: #0f0;
}

/* Mobile-friendly adjustments */
@media (max-width: 600px) {
  .playlists, .controls {
    flex-direction: row;       /* Keep buttons in rows */
    flex-wrap: wrap;           /* Wrap if needed */
    justify-content: center;
    gap: 2px;
  }

  .playlists , .controls  {
    flex: 1 1 calc(50% - 10px); /* Two buttons per row if possible */
    min-width: 80px;
  }

  .volume-container {
    flex-direction: column;
    align-items: center;
  }

  .song-list {
    width: 100%;
  }
}



#ss-controls {
  position: relative;
  top: 25vh;
  margin: 0 auto; /* This will center it */
  width: 95%;
}

@media (min-width: 666px) { /* Removed extra colon */
  #ss-controls {
    padding-left: 2px;
    margin-top: 100px;
  }
}





.ss-sound-label { 
  font-size: 0.95rem; 
  text-align: center; 
  width: 100%;
  margin-bottom: 4px;
}

.ss-slider-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.ss-sound-control input[type="range"] { flex: 1;}

.ss-favorite-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
  padding: 0;
  margin: 0;
  transition: color 0.2s;
}
.ss-favorite-btn.ss-favorited {
  color: gold;
}


input { width: 100%; }



.ss-sound-control {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: space-between;
  background: #1b1b1b00;
  border-radius: 12px;
  padding: 8px 12px;
  margin: 8px auto;
  width: 95%;
}


.ss-slider-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.ss-sound-control input[type="range"] { flex: 1; margin-right: 8px; }

.ss-favorite-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
}
.ss-favorite-btn.ss-favorited {
  color: gold;
}

#ss-unlock {
  border-radius: 50%;
  background: radial-gradient(circle, rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0.753) 40%, rgba(0, 0, 0, 0.466) 100%);
  color: white;
  padding: 140vh 140vw;
  font-size: 2.2rem;
  margin-left: 0px;
  position: fixed;
  z-index: 9999 !important;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border: none;
  cursor: pointer;
}
#ss-unlock.ss-hidden { display: none; }

input { width: 100%; }

#counter-box {
  position: fixed;
  top: 50%;
  left: 50%;
  padding: 140%;
  background: radial-gradient(circle, rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0.753) 40%, rgba(0, 0, 0, 0.466) 100%);
  transform: translate(-50%, -50%);
  font-size: 4rem;
  font-weight: bold;
  color: white;
  display: none; /* hidden until tap */
  z-index: 9998;
  opacity: 1;
  transition: opacity 0.5s ease;
}
#counter-box.hidden {
  opacity: 0;
}




/* anchor buttons */
.bbg-trigger,
.ep-trigger {
   width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.233);
  align-items: center;
  position: fixed;
  font-size: 24px;
  top: 145px;
  color: white;
  background: linear-gradient(45deg, #2727276c, #0f0f0f41);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}
@media (max-width: 768px) {
  .bbg-trigger,
  .ep-trigger {
    top: 130px; /* Adjust for smaller screens */
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}

.bbg-trigger {
  left: 6px;
}

.ep-trigger {
  right: 6px;
}
/* overlays */
.bbg-overlay,
.ep-overlay {
  display: none;
  position: fixed;
  height: 100vh;
  width: 100vw;
  padding: 0;
  inset: 0;
  text-align: center;
  background: rgba(0, 0, 0, 0.804);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.bbg-inner,
.ep-inner {
  background: #ffffff00;
  padding: 0px;
  width: 100%;
  height: 100vh;
  color: white;
  overflow-y: n;
  border-radius: 8px;
  position: relative;
}
.bbg-close,
.ep-close {
  position: fixed;
  bottom: 5vh; /* better than top: 80vh for centering relative to bottom */
  left: 50%; /* move its left edge to the middle of the screen */
  transform: translateX(-50%); /* pull it back left by half its own width */
  
  margin: 0;
  border-radius: 15px;
  font-size: 22px;
  cursor: pointer;
  border: none;
 background: linear-gradient(45deg, #272727, #0f0f0f);
  color: white;
  border-radius: 60px; /* rounder edges to match bigger size */
  box-shadow: 0 45px 85px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.bbg-content h1 {

}


.bbg_controls, .bbg_mixer {
  display: flex;
  justify-content: center; /* horizontally center */
  align-items: center;     /* vertically center (optional) */
  gap: 20px;
  margin: 10px 0;
  text-align: center;
}


  .bbg_controls label, .bbg_mixer label {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .bbg-input[type="range"], .bbg-input[type="number"] {
    width: 150px;
  }

  button, select {
    margin: 10px;
    padding: 5px 10px;
  }

    .bbg-button {
      position: fixed;
      left: 50%; /* move its left edge to the middle of the screen */
      transform: translateX(-50%); /* pull it back left by half its own width */
      margin-top: 44px;
      margin: 0;
      border-radius: 15px;
      font-size: 22px;
      cursor: pointer;
      border: none;
      font-weight: bold;
      background: linear-gradient(45deg, #272727, #1d1d1d);
      color: white;
      border-radius: 60px; /* rounder edges to match bigger size */
      box-shadow: 0 45px 85px rgba(0, 0, 0, 0.35);
      display: flex;
      align-items: center;
      cursor: pointer;
      transition: all 0.3s ease;
  }

  #bbg_beatDisplay {
    margin-top: 10px;
    font-size: 1.2em;
    color: #0f0;
  }

.embed-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  cursor: pointer;
  transition: 
    background 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-decoration: none; /* if used on <a> */
}

.embed-button:hover {
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

.embed-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.embed-button:focus {
  outline: 2px solid rgba(255,255,255,0.4);
  outline-offset: 2px;
}

.sviframe-container {
  margin-top: 10vh;
}

