#nowPlayingBg {
  background-size: cover;
  background-position: center;
	opacity:0;
}

/*
 * Line-only viz: gentle scale (spacing “breathes”). Hidden until .viz-playing. Opacity fades
 * via transition; motion only transform (no opacity in keyframes).
 */
#hearitViz.visualizer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

#hearIt > #addBar,
#hearIt > #aPlayer {
  position: relative;
  z-index: 1;
}

/*
 * With .opacity-100 (Bootstrap): bar stays full strength while adding tracks.
 * revealPlayer() removes the class → opacity animates down to fade into the layout.
 */
#addBar.navbar {
  opacity: 0.25;
  transition: opacity 2s cubic-bezier(0.785, 0.135, 0.15, 0.86);
  background: transparent !important;
  --bs-navbar-bg: transparent !important;
}

/* Dimmed after reveal: hover / keyboard focus brings the bar back to full strength */
#addBar.navbar:hover,
#addBar.navbar:focus-within {
  opacity: 1;
  transition-duration: 0.35s;
  transition-timing-function: ease;
}

#addBar .navbar-collapse {
  background: transparent !important;
}

/*
 * Glass pill: idle = subtle tint, blends in; hover / focus-within = frosted depth + SVG #glass-filter.
 */
.glass {
  position: relative;
  z-index: 0;
  border-radius: 9999px;
  transition:
    backdrop-filter 0.9s cubic-bezier(0.785, 0.135, 0.15, 0.86),
    -webkit-backdrop-filter 0.9s cubic-bezier(0.785, 0.135, 0.15, 0.86),
    background 0.9s cubic-bezier(0.785, 0.135, 0.15, 0.86),
    border-color 0.9s cubic-bezier(0.785, 0.135, 0.15, 0.86),
    box-shadow 0.9s cubic-bezier(0.785, 0.135, 0.15, 0.86),
    transform 0.25s ease;
}

/* Idle: almost nothing — fades into the page until hover / focus */
#addBar .glass {
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.05);
  box-shadow: none;
  -webkit-backdrop-filter: blur(0) saturate(1);
  backdrop-filter: blur(0) saturate(1);
}

#addBar:hover .glass,
#addBar:focus-within .glass {
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.42) 0%,
      rgba(0, 0, 0, 0.14) 22%,
      rgba(255, 255, 255, 0.26) 50%,
      rgba(0, 0, 0, 0.14) 78%,
      rgba(0, 0, 0, 0.42) 100%
    ),
    rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 -1px 0 rgba(0, 0, 0, 0.18) inset,
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 14px 40px rgba(0, 0, 0, 0.28),
    0 6px 16px rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(26px) saturate(1.45);
  backdrop-filter: blur(26px) saturate(1.45);
}

/* SVG stack: if url() is unsupported/invalid, prior blur+saturate still applies */
#addBar:hover .glass,
#addBar:focus-within .glass {
  -webkit-backdrop-filter: blur(26px) url("#glass-filter") saturate(1.45);
  backdrop-filter: blur(26px) url("#glass-filter") saturate(1.45);
}

/* Bootstrap defaults: outline-light → dark text + light fill on hover (looks like a dark smear on glass). */
#addBar .btn-outline-light:hover,
#addBar .btn-outline-light:focus,
#addBar .btn-outline-light:active {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
}

#addBar .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
}

#addBar .navbar-toggler:hover,
#addBar .navbar-toggler:focus {
  background-color: transparent !important;
  box-shadow: none;
  border-color: rgba(255, 255, 255, 0.5);
}

#hearitViz.visualizer::after {
  content: "";
  position: absolute;
  inset: -5%;
  pointer-events: none;
  background: repeating-linear-gradient(
    105deg,
    transparent 0,
    transparent 14px,
    rgba(255, 255, 255, 0.08) 14px,
    rgba(255, 255, 255, 0.08) 17px
  );
  background-size: 44px 215%;
  mix-blend-mode: overlay;
  opacity: 0;
  transform: translate3d(0, 0, 0) rotate(0.25deg) scale(1);
  transform-origin: 50% 45%;
  transition: opacity 0.55s cubic-bezier(0.33, 1, 0.68, 1);
  mask-image: linear-gradient(
    118deg,
    transparent 0%,
    rgba(0, 0, 0, 0.45) 18%,
    #000 50%,
    rgba(0, 0, 0, 0.45) 82%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    118deg,
    transparent 0%,
    rgba(0, 0, 0, 0.45) 18%,
    #000 50%,
    rgba(0, 0, 0, 0.45) 82%,
    transparent 100%
  );
}

#hearitViz.visualizer.viz-playing::after {
  opacity: 0.52;
  animation: vizLines 16s cubic-bezier(0.37, 0.01, 0.22, 1) infinite;
  will-change: transform;
}

@keyframes vizLines {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0.2deg) scale(1);
  }
  18% {
    transform: translate3d(36px, -24px, 0) rotate(-0.32deg) scale(1.045);
  }
  40% {
    transform: translate3d(-24px, 36px, 0) rotate(0.38deg) scale(0.972);
  }
  61% {
    transform: translate3d(48px, 12px, 0) rotate(-0.18deg) scale(1.028);
  }
  82% {
    transform: translate3d(-12px, -24px, 0) rotate(0.28deg) scale(1.012);
  }
}

@media (prefers-reduced-motion: reduce) {
  #hearitViz.visualizer::after {
    transition: opacity 0.4s ease;
  }
  #hearitViz.visualizer.viz-playing::after {
    animation: none;
    transform: none;
    opacity: 0.42;
  }
}

#nowPlayingBg.reveal{
	animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: .1s;
  transition-behavior: allow-discrete;
	opacity: 100%;
}

#hearIt{
	--bs-bg-opacity: 100%;
}

#hearIt.reveal{
	transition-duration: 1s;
  transition-timing-function: cubic-bezier(0.785, 0.135, 0.15, 0.86);
	 --bs-bg-opacity: 75%;
}

#aPlayer.reveal{
  animation-name: fadeInOpacityDelay;
  animation-duration: 1s;
  transition: max-height 1s cubic-bezier(0.785, 0.135, 0.15, 0.86);
  max-height:100%;
}

@keyframes fadeInOpacity {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

@keyframes fadeInOpacityDelay {
  0% {
		opacity: 0;
	}
  50% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

.bg-none{
  background:none !important;
  background-color:none !important;
}

.h-0{
  height:0;
  max-height: 0 !important;
  overflow: hidden;
}

#player {
  width: 0;
  height: 0;
  overflow: hidden;
  display:none;
}

.range:not([disabled]){
  cursor: pointer;
}

#progress {
  width: 100%;
}

#progress{
  margin-top: -2rem;
}

#progress:focus,
#progress:focus-visible {
  outline: none;
  box-shadow: none;
}

#timeHolder{
  margin-top: -2.5rem;
}

/* Fixed row height enables virtual scrolling */
#playlist {
  --playlist-row-height: 52px;
}

#playlistVirtualTrack {
  min-height: 0;
}

#playlist .loaded-entry {
  height: var(--playlist-row-height);
  min-height: var(--playlist-row-height);
  max-height: var(--playlist-row-height);
  box-sizing: border-box;
  overflow: hidden;
}

#playlist .loaded-entry .loaded-thumb{
  max-width: 3rem;
  max-height: 3rem;
  flex-shrink: 0;
}

#playlist .loaded-entry .playlist-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.2;
  max-height: calc(var(--playlist-row-height) - 12px);
}

#playlist li:not(.active):not(:hover):not(.drag-over-top):not(.drag-over-bottom) {
  background:#00000020;
}

#playlist .btn img {
  transform: scale(1.5);
}

.blur{
  /* Lighter blur = far less GPU cost on scroll/animations */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#playlistToggle{
  visibility: hidden
}

.drag-over-top { border-top: 2px solid white !important; }
.drag-over-bottom { border-bottom: 2px solid white !important; }

body:not(i){
  font-family: "NTR", sans-serif;
  font-weight: 400;
  font-size: 125%;
}

*:not(i){
  font-family: "NTR", sans-serif;
  font-weight: 200;
  letter-spacing: -.025rem;
}

i{line-height: unset !important}
