body {
    background-color: #0f0f0f; /* Fallback for bg-road-black */
    color: #e5e7eb; /* Fallback for text-gray-200 */
    min-height: 100vh;
}

.glass-panel {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Only bottom border, very subtle */
}

.text-glow {
    text-shadow: 0 0 10px rgba(32, 231, 219, 0.3);
}

/* Animación para el botón de play */
@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(32, 231, 219, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(32, 231, 219, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(32, 231, 219, 0);
    }
}

.play-btn-anim {
    animation: pulse-gold 2s infinite;
}

.hidden {
    display: none;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Filter Panel Transition */
#filter-panel {
    transition: transform 0.3s ease-in-out;
}

.filter-open {
    transform: translateX(0) !important;
}

/* Range Inputs Custom */
.range-group-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.25rem 0.5rem;
}

.range-input-clean {
    background: transparent !important;
    border: none !important;
    padding: 0.25rem !important;
    text-align: center;
    width: 100%;
    font-size: 0.85rem;
}

.range-input-clean:focus {
    outline: none !important;
    box-shadow: none !important;
    color: #20E7DB !important;
    /* Force input text to also pop if needed or keep white */
}

/* Custom Scrollbar for Dropdown */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #20E7DB;
}

/* --- Auth Modal & Profile --- */
#auth-modal {
    transition: opacity 0.3s ease;
}

#auth-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

#auth-modal:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

#profile-menu {
    transform-origin: top right;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

#profile-menu:not(.hidden) {
    animation: fadeInScale 0.2s ease-out forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}