/* @tweakable Grid background color */
:root {
  --grid-bg-color: #1A1A1A;
}

html, body {
  height: auto;
  min-height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body {
    background-color: #000;
}

#grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image:
        linear-gradient(to right, var(--grid-bg-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-bg-color) 1px, transparent 1px);
    background-size: 3rem 3rem;
    opacity: 0.3;
    z-index: -1;
    border: 1px solid white;
}

@keyframes slideInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Custom Volume Slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

input[type="range"]:focus {
  outline: none;
}

/* Chrome, Safari, Opera, Edge */
input[type="range"]::-webkit-slider-runnable-track {
  background-color: #3f3f46;
  border-radius: 0.5rem;
  height: 0.25rem;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  margin-top: -6px; /* Centers thumb on track */
  background-color: #ffffff;
  border-radius: 50%;
  height: 16px;
  width: 16px;
  border: 1px solid rgba(0,0,0,0.2);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

input[type="range"]:focus::-webkit-slider-thumb {
  outline: 2px solid #a7a7a7;
  outline-offset: 2px;
}

/* Firefox */
input[type="range"]::-moz-range-track {
  background-color: #3f3f46;
  border-radius: 0.5rem;
  height: 0.25rem;
}

input[type="range"]::-moz-range-thumb {
  background-color: #ffffff;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 50%;
  height: 16px;
  width: 16px;
}

input[type="range"]:focus::-moz-range-thumb {
    outline: 2px solid #a7a7a7;
    outline-offset: 2px;
}

.history-item {
  animation: slideInUp 0.5s ease-out forwards;
  opacity: 0;
}

#player-card {
    background-image: radial-gradient(circle at top left, rgba(255,255,255,0.05) 0%, transparent 40%),
                      radial-gradient(circle at bottom right, rgba(255,255,255,0.05) 0%, transparent 30%);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
}

#player-card.playing {
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 0 40px -10px rgba(255,255,255,0.2);
}

@keyframes pulse-bright {
    50% { filter: brightness(1.1); }
}

#playButton.playing img {
    animation: pulse-bright 4s ease-in-out infinite;
    transform: scale(1.05);
}

#playButton.playing .group-hover\:opacity-100 {
    opacity: 1;
}

.text-fade-enter {
    opacity: 0;
    transform: translateY(10px);
}

.nav-link.active {
    font-weight: 500;
}